Game interaction control method and device and electronic equipment
By providing a graphical user interface and target drawing tools in the game system, players can customize the appearance of game objects, solving the problems of limited types of objects and difficult to meet personalized needs in the prior art, and achieving a richer and personalized gaming experience.
Patent Information
- Application Number
- CN202411825132.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-12-11
AI Technical Summary
There are limited types of objects to draw appearances in the game system, which makes it difficult to meet the player's custom needs, and the appearance is highly similar, which affects the personalized experience.
Provide a graphical user interface through the terminal device, respond to drawing trigger instructions, display drawing areas and preview areas, use the target drawing tools to control graphic properties, generate and save drawing graphics and effects, and support a variety of objects such as character faces, dress and scene components.
It enriches the types of objects that draw appearance, meets the personalized customization needs of players, and improves the personalization of the game experience.
Smart Images

Figure CN119633379A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a method, device and electronic equipment for interactive control of games. Background Art
[0002] A customization function can be provided in the game system, through which players can draw the appearance of objects such as character costumes and scene components; the types of objects that can be drawn are very limited, resulting in a high degree of similarity in the appearance of objects owned by different players in the game system, making it difficult to meet players' more personalized customization needs. Summary of the invention
[0003] In view of this, an object of the present invention is to provide a method, device and electronic device for interactive control of a game, so as to enrich the types of objects of drawn appearance and meet the personalized customization needs of players.
[0004] In a first aspect, an embodiment of the present invention provides an interactive control method for a game, providing a graphical user interface through a terminal device, the method comprising: in response to a drawing trigger instruction, displaying a drawing area and a preview area on the graphical user interface; in response to a drawing operation on the drawing area, determining a target drawing tool, generating a drawing graphic in the drawing area through the target drawing tool, and displaying a drawing effect corresponding to the drawing graphic in the preview area; wherein the target drawing tool is used to: control a specified graphic attribute of the drawing graphic; the specified graphic attribute includes at least one of a graphic color, a graphic shape, and a graphic line; in response to a save operation on a drawing effect, determining whether an effect display object is pre-set for the drawing effect; wherein the effect display object includes at least one of a game character face, a game character outfit, and a game scene component; determining that an effect display object is pre-set for the drawing effect, and saving the drawing effect according to the object shape of the effect display object; or, determining that an effect display object is not pre-set for the drawing effect, and saving the drawing effect according to the preset shape.
[0005] In a second aspect, an embodiment of the present invention provides an interactive control device for a game, which provides a graphical user interface through a terminal device, and the device includes: a drawing trigger module, which is used to respond to a drawing trigger instruction and display a drawing area and a preview area on the graphical user interface; a graphics generation module, which is used to respond to a drawing operation on the drawing area, determine a target drawing tool, generate a drawing graphic in the drawing area through the target drawing tool, and display a drawing effect corresponding to the drawing graphic in the preview area; wherein the target drawing tool is used to: control the specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of the graphic color, graphic shape, and graphic line; a judgment module, which is used to respond to a save operation on the drawing effect, and judge whether the drawing effect has a pre-set effect display object; wherein the effect display object includes: at least one of the game character face, game character clothing, and game scene components; a saving module, which is used to determine that the drawing effect has a pre-set effect display object, and save the drawing effect according to the object shape of the effect display object; or, if it is determined that the drawing effect has no pre-set effect display object, save the drawing effect according to the default shape.
[0006] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the interactive control method of the game.
[0007] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the interactive control method of the above-mentioned game.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The interactive control method, device and electronic device of the above-mentioned game provide a graphical user interface through a terminal device, and in response to a drawing trigger instruction, display a drawing area and a preview area on the graphical user interface; in response to a drawing operation on the drawing area, determine a target drawing tool, generate a drawing graphic in the drawing area through the target drawing tool, and display a drawing effect corresponding to the drawing graphic in the preview area; wherein the target drawing tool is used to: control the specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of the graphic color, graphic shape, and graphic line; in response to a save operation on the drawing effect, determine whether the drawing effect has a pre-set effect display object; wherein the effect display object includes: at least one of the game character face, game character clothing and game scene components; determine that the drawing effect has a pre-set effect display object, and save the drawing effect according to the object shape of the effect display object; or, determine that the drawing effect has no pre-set effect display object, and save the drawing effect according to the preset shape.
[0010] In this way, players can draw effects based on specific objects or directly draw effects. Drawing effects can be applied to a variety of objects such as character faces, clothing, scene components, etc., enriching the types of objects for drawing appearance and meeting the players' personalized customization needs.
[0011] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0012] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0014] Figure 1 A flowchart of an interactive control method for a game provided by an embodiment of the present invention;
[0015] Figure 2 A schematic diagram of a drawing area, a drawing effective area, and a preview area provided in an embodiment of the present invention;
[0016] Figure 3 A schematic diagram of drawing an effective area after switching positions provided by an embodiment of the present invention;
[0017] Figure 4 A schematic diagram of an operation of copying a drawing effect to other parts provided by an embodiment of the present invention;
[0018] Figure 5 A schematic diagram of a color picking control provided by an embodiment of the present invention;
[0019] Figure 6 A schematic diagram of an interactive control device for a game provided by an embodiment of the present invention;
[0020] Figure 7 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0022] In the related art, the types of objects whose appearance can be drawn are very limited. For example, only a small number of components or clothes can be drawn, which results in a high degree of similarity in the appearance of objects owned by different players in the game system, making it difficult to meet the players' more personalized customization needs, affecting the players' customized game experience.
[0023] Based on this, the interactive control method, device and electronic device of a game provided by the embodiments of the present invention can be applied to various types of games, for example, games with custom functions.
[0024] In one embodiment of the present disclosure, the interactive control method of the game can be run on a local terminal device or a server. When the interactive control method of the game is run on a server, the method can be implemented and executed based on a cloud interactive system, wherein the cloud interactive system includes a server and a client device.
[0025] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interactive system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the interactive control method of the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0026] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0027] In a possible implementation, an embodiment of the present invention provides an interactive control method for a game, providing a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or can be a client device in the cloud interactive system mentioned above.
[0028] like Figure 1 As shown, the interactive control method of the game includes the following steps:
[0029] Step S102, in response to the drawing trigger instruction, displaying a drawing area and a preview area on the graphical user interface;
[0030] The drawing trigger instruction can be generated by triggering a specified control, such as a drawing trigger control, or by triggering a shortcut key. Before generating the drawing trigger instruction, you can select an effect display object through a selection operation, or you can directly trigger the generation of the drawing trigger instruction without selecting any object.
[0031] The drawing area is used to draw graphics. Players generate drawing graphics by performing drawing operations, such as clicking operations, sliding operations, etc.; in the initial state, the drawing area is blank; the drawing area can be an area with a very small pixel size and a large number of pixels. In this case, the drawing graphics are relatively smooth and flowing curves; the position area can also be an area with a large pixel size and a limited number of pixels. In this case, the drawing graphics are visually composed of individual pixels, and the drawing graphics have "jaggies".
[0032] The preview area can display the drawing effect corresponding to the drawing figure in real time, and can also display the corresponding drawing effect after saving the drawing figure. In addition to the drawing area and the preview area, the graphical user interface can also provide alternative drawing tools, alternative drawing colors, undo function controls, etc.
[0033] Step S104, in response to the drawing operation on the drawing area, determining a target drawing tool, generating a drawing graphic in the drawing area by the target drawing tool, and displaying the drawing effect corresponding to the drawing graphic in the preview area; wherein the target drawing tool is used to: control the specified graphic attribute of the drawing graphic; the specified graphic attribute includes at least one of the graphic color, graphic shape, and graphic line;
[0034] The target drawing tool can be the drawing tool selected by default in the game system, or the player can select and set the target drawing tool. In the above-mentioned specified graphic attributes, the graphic color can be a line color or a fill color, and the graphic color is determined by selecting an alternative color; the graphic shape can be determined by the tool type or the selected tool parameters. For example, the graphic shape corresponding to the brush tool is a line, and the specified graphic drawing tool can draw various specified graphics, such as a star, heart, bubble, etc. The specified graphic is determined by selecting the graphic type. The graphic lines can be controlled by the brush tool. The graphic lines can include line thickness, line fluorescent effect, line hollowing effect, etc. The graphic lines are determined by selecting the tool parameters of the brush tool.
[0035] The target drawing tool includes a tool type and tool parameters corresponding to the tool type; the tool type may be a brush tool, a specified graphic drawing tool, a coloring tool, etc.; for a brush tool, its tool parameters may include line thickness and line color; for a specified graphic drawing tool, its tool parameters may include graphic shape, graphic size, graphic color, etc.; for a coloring tool, its tool parameters may include fill color, etc. Among them, color-related parameters may be selected and determined from preset candidate colors.
[0036] The above-mentioned drawing operation can be a click operation, a sliding operation, etc. acting on the drawing area; the type of drawing operation can also be related to the target drawing tool. For example, the drawing operation corresponding to the brush tool is a sliding operation, and the drawing operation corresponding to the specified graphic drawing tool can be a click operation or a sliding operation, etc.
[0037] When performing a drawing operation, the target drawing tool can determine the drawing position according to the operating contact point of the drawing operation, and generate a drawing graphic at the drawing position; when the drawing operation is a sliding operation, the target drawing tool can move along with the operating contact point of the sliding operation. For example, when the target drawing operation is a brush tool, the brush tool moves along with the operating contact point of the sliding operation, and a drawing line is generated at the position where the brush tool passes; for another example, when the target drawing operation is a designated graphic drawing tool, the drawing operation is a click operation, then a designated graphic is generated at the click position of the click operation, and when the drawing operation is a sliding operation, multiple designated graphics are continuously generated on the operating track of the sliding operation. The designated graphics may include a five-pointed star, a heart, etc.
[0038] After the drawing area generates a drawing graphic, the preview area displays the drawing effect of the drawing graphic; the drawing effect may be the same as the drawing graphic, or the drawing effect may correspond to the drawing graphic but may be visually different. For example, the drawing graphic may be a low-pixel style graphic, while the drawing effect is a high-pixel style, smoother image processed from the drawing graphic.
[0039] In addition, the size of the drawing effect and the drawing graphic may be different. For example, the size of the drawing graphic is larger and the size of the drawing effect is smaller. By displaying the drawing graphic in the preview area, the visual effect of the small-sized drawing effect corresponding to the drawing graphic can be observed.
[0040] The preview area can be in a plane form, that is, the drawing effect is displayed in the form of a two-dimensional image; when the effect display object is preset, the preview area can also be an object model of the effect display object, and the drawing effect is rendered to the surface of the object model.
[0041] Step S106, in response to the save operation for the drawing effect, determining whether the drawing effect has a preset effect display object; wherein the effect display object includes: at least one of: a game character face, a game character dress, and a game scene component;
[0042] The save operation can be triggered by a save control or by triggering a preset shortcut key. The effect display object can be pre-selected, for example, the effect display object is selected before the aforementioned drawing trigger instruction is generated, and then the graphics are drawn based on the selected effect display object; in addition, different effect display objects can provide different windows, and the drawing area and preview area corresponding to the effect display object are displayed in the corresponding window. When the save operation is executed, the effect display object corresponding to the window that responds to the save operation is the same as the aforementioned pre-set effect display object.
[0043] In the above-mentioned effect display objects, the face of the game character includes the face and hairstyle, and may also include the facial features; the game character's clothing may include hats, tops, pants, shoes, skirts, etc.; the game scene components may include blocks, rings, frustums, conveyor belts, etc.
[0044] Currently, players can also draw graphics directly without selecting any effect display objects.
[0045] Step S108, determining that an effect display object is preset for the drawing effect, and saving the drawing effect according to the object shape of the effect display object; or determining that no effect display object is preset for the drawing effect, and saving the drawing effect according to a default shape.
[0046] When an effect display object is set, the drawing effect is saved as a shape that matches the effect display object; for example, if the drawing effect is a rectangle and the effect display object is a triangle, the player can select a triangle area from the drawing effect and save the drawing effect corresponding to the drawing graphics within the triangle area; in addition, when an effect display object is set in advance, the object shape of the effect display object can be prompted in the drawing area, thereby guiding the player to draw according to the object shape when drawing graphics.
[0047] When the effect display object is not set, the drawing effect can be saved in a preset shape. The preset shape can be the shape of the drawing area, such as a rectangle, or a shape edited by the player, such as a circle, diamond, etc.
[0048] In addition, it can be seen from the above embodiments that the drawing effect may be the same as the above drawing graphic, or it may be different. When saving the drawing effect, the data of the drawing effect itself can be saved, or the drawing graphic can be saved. When the drawing effect needs to be displayed, the drawing effect is generated based on the drawing graphic. In order to save storage resources, the data volume of the drawing graphic and the drawing effect can be compared. If the data volume of the drawing graphic is small, the drawing graphic is saved, and if the data volume of the drawing effect is small, the drawing effect is saved.
[0049] The interactive control method of the above-mentioned game provides a graphical user interface through a terminal device, and in response to a drawing trigger instruction, displays a drawing area and a preview area on the graphical user interface; in response to a drawing operation on the drawing area, determines a target drawing tool, generates a drawing graphic in the drawing area through the target drawing tool, and displays a drawing effect corresponding to the drawing graphic in the preview area; wherein the target drawing tool is used to: control the specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of the graphic color, graphic shape, and graphic line; in response to a save operation on the drawing effect, determines whether the drawing effect has a pre-set effect display object; wherein the effect display object includes: at least one of the game character face, game character clothing, and game scene components; determines that the drawing effect has a pre-set effect display object, and saves the drawing effect according to the object shape of the effect display object; or, determines that the drawing effect has no pre-set effect display object, and saves the drawing effect according to the preset shape.
[0050] In this way, players can draw effects based on specific objects or directly draw effects. Drawing effects can be applied to a variety of objects such as character faces, clothing, scene components, etc., enriching the types of objects for drawing appearance and meeting the players' personalized customization needs.
[0051] In a specific implementation method, in response to an object selection operation on an effect display object, an object editing control for the selected effect display object is provided in a graphical user interface; in response to a trigger operation on the object editing control, a drawing trigger instruction is generated, and a drawing area and a preview area for the effect display object are displayed in the graphical user interface.
[0052] A plurality of alternative effect display objects may be provided in the graphical user interface. When an object selection operation is performed on one of the effect display objects, such as a click operation on the effect display object, the graphical user interface displays an object editing control for the effect display object.
[0053] If the effect display object includes multiple object types, you also need to select the object type, or do not make a selection and directly use the system default object type; for example, if the effect display object is a hat, the hat may include multiple types such as fisherman's hat and peaked cap. Different types may correspond to different shapes, and players can select one type from them; after selecting the object type, the object editing control is displayed.
[0054] After the object editing control is triggered, the graphical user interface switches to a drawing window, in which a drawing area and a preview area for the effect display object are provided.
[0055] Specifically, the drawing area at least includes a drawing effective area, and the area shape of the drawing effective area matches the object shape of the effect display object; the drawing effective area is used to respond to the drawing operation.
[0056] exist Figure 2 In the example, the drawing area is a rectangle. The effect display object is a top. The shape of the drawing effective area is similar to the outline of the top. In addition to the drawing effective area, the drawing area also includes the ineffective area. When the drawing operation acts on the drawing effective area, the drawing graphics corresponding to the drawing operation are displayed. When the drawing operation acts on the ineffective area, the drawing operation is not responded to, that is, the ineffective area will not display the drawing graphics corresponding to the drawing operation.
[0057] By setting the drawing effective area, players can be assisted in drawing graphics that match the shape of the effect display object, thereby improving the convenience and efficiency of drawing operations.
[0058] Furthermore, the above-mentioned preview area includes: a plane preview sub-area; the plane preview sub-area is used to display the texture drawing effect of the drawn graphics; and / or, the preview area includes: an object preview sub-area; the object preview sub-area is used to display the drawing effect of the drawn graphics rendered to the object model of the effect display object.
[0059] The preview area may include only the plane preview sub-area, only the object preview sub-area, or both the plane preview sub-area and the object preview sub-area; the plane preview sub-area displays the drawn graphics in the form of a two-dimensional image, i.e., a texture drawing effect, which may be rendered to the object model of the effect display model.
[0060] The object preview sub-area includes the object model of the effect display object, and the drawing effect is directly rendered to the specified model part of the object model; for example, if the effect display object is a top, the drawing effect is rendered on the front chest of the object model.
[0061] This method can display the drawing effect of the drawn graphics in real time through a variety of ways, improving the player's drawing efficiency and drawing quality.
[0062] In another implementation, the effect display object includes the game character's clothing; considering that the area for displaying the drawing effect in the game character's clothing is relatively large, in order to perform more detailed drawing, the game character device can be divided into multiple parts; for example, when the game character is wearing a top, the clothing part is divided into the left sleeve, the right sleeve and the chest; when the game character is wearing pants, the clothing part is divided into the left leg and the right leg.
[0063] Determine the first clothing part currently selected in the game character's clothing; and provide a drawing effective area in the drawing area that matches the shape of the first clothing part.
[0064] The clothing part can be selected through the control, such as Figure 3 In the example, after the 'left sleeve' control is triggered, a window or list can be generated to display the optional clothing parts of the character's clothing; the 'left sleeve' control displays 'left sleeve', which can be understood as the first clothing part currently selected is the left sleeve. Accordingly, the shape of the effective area is drawn to match the shape of the first clothing part; Figure 3 In the example, the effective area is similar to the shape of the left sleeve. When the first clothing part is switched to another clothing part, the shape of the effective area is switched accordingly.
[0065] In this way, players can draw various parts of the game character's clothing more finely, improve drawing treatment and drawing effects, and make custom drawings more personalized.
[0066] Furthermore, in response to a part switching operation, alternative clothing parts are displayed; in response to a copy operation for the drawing effect of the first clothing part, copy parameters are determined, and according to the copy parameters, the drawing effect of the first clothing part is copied to a second clothing part among the alternative clothing parts; wherein the copy parameters include: mirror copy or translation copy.
[0067] The part switching operation can be triggered by, for example Figure 3 The 'left sleeve' control in the drawing area can also be triggered by the preset shortcut key. By performing a selection operation on the alternative clothing part, the first clothing part can be switched, and the shape of the drawing effective area in the drawing area will also change accordingly.
[0068] Since the drawing effect of the first clothing part has been obtained above, when displaying the alternative clothing parts, the drawing effect of the first clothing part can be copied to other parts; for example, when the shapes of two clothing parts are the same or symmetrical, the drawing effect can be copied.
[0069] like Figure 4 , the first clothing part is the left sleeve, and the right sleeve is symmetrical with the left sleeve in shape, so the drawing effect of the left sleeve can be copied to the right sleeve; the copy parameters are used to indicate the copy method, such as mirror copy, translation copy, enlarged copy, reduced copy, etc.; before triggering the copy operation, you can select the copy parameters first, or use the default copy parameters.
[0070] By triggering the "Copy to Right Sleeve" control, the aforementioned copy operation can be performed. At this time, the operation parameter of the copy operation includes the part identifier of the second clothing part, and the drawing effect of the first clothing part can be copied to the second clothing part. Figure 4 In the drawing effect display area corresponding to the "right sleeve", the drawing effect that is the same as or symmetrical to that of the "left sleeve" is displayed.
[0071] The above method can switch the various clothing parts of the game character's clothing, draw each clothing part separately to obtain the drawing effect, and can also edit the drawing effect of the clothing part by copying to improve the drawing efficiency.
[0072] Furthermore, the above-mentioned graphical user interface also provides alternative drawing tools; in response to a tool type selection operation for the alternative drawing tools, a target tool type is determined; wherein the target tool type includes: a brush tool, a specified graphic drawing tool or a color fill tool; in response to a tool parameter setting operation for the target tool type, a target drawing tool corresponding to the target tool type is generated based on the set tool parameters.
[0073] For reference Figure 3 , each tool type sets a control, where the brush tool corresponds to the 'brush' control, the specified graphics drawing tool corresponds to the 'graphics' control, and the color fill tool corresponds to the 'fill' control. Each tool type has corresponding tool parameters; after selecting the target tool type, the target tool type can pre-set default tool parameters. If the aforementioned tool parameter setting operation is not performed, the target drawing tool is generated based on the default tool parameters.
[0074] Taking the brush tool as an example, the tool parameters include line thickness parameters, specifically thin lines, medium lines, and thick lines. The default tool parameters of the brush tool may be thin lines; players may select medium lines or thick lines by executing the aforementioned tool parameter setting operations.
[0075] Specifically, in response to the tool parameter setting operation for the brush tool, the line thickness parameter of the brush tool is determined, and the brush tool corresponding to the line thickness parameter is generated; for example, by triggering the 'brush' control, the parameter setting window of the brush tool can be displayed, and the parameter setting window can provide multiple alternative line thickness parameters, such as thin lines, medium lines, and thick lines; the line thickness parameter can also be adjusted through the data input box or the data axis, so as to more finely control the line thickness.
[0076] In response to a tool parameter setting operation for a specified graphic drawing tool, a graphic tool parameter of the specified graphic drawing tool is determined, and a specified graphic drawing tool corresponding to the graphic tool parameter is generated; wherein the graphic tool parameter includes: a specified graphic shape and / or a graphic size.
[0077] For example, by triggering the 'Graphics' control, the parameter setting window of the specified graph drawing tool can be displayed, and the parameter setting window can provide multiple alternative specified graph shapes, such as star, heart, water drop, bubble, etc.; for each specified graph shape, the graph size can also be adjusted. The graph size can include multiple alternative sizes, such as small size, medium size, and large size, and the size parameter can also be entered through the data input box or data axis.
[0078] In a specific implementation, in response to a trigger operation on a drawing area, the target drawing tool is determined to be a brush tool, and a drawing line is generated based on an operation track of the trigger operation, a line thickness parameter of the brush tool, and a currently selected target color.
[0079] Before executing the trigger operation, you can select the target color, such as Figure 3 In the game, the graphical user interface provides multiple alternative colors, and trigger operations can be performed on the alternative colors, such as clicking operations, and the clicked color is the target color. The player can also choose not to select a color and use the default color as the target color.
[0080] The shape of the drawn line usually matches the operation track of the triggering operation; for example, if the operation track is a straight line, the line shape is also a straight line; if the operation track is a curve, the line shape is also a curve. The thickness of the drawn line matches the line thickness parameter of the brush tool.
[0081] During the execution of the trigger operation, the drawing line can be directly generated on the operation track, that is, the drawing line is generated in real time along the operation track.
[0082] Furthermore, the above-mentioned drawing area includes multiple drawing pixels arranged in a preset order; based on the operation trajectory of the triggering operation and the line thickness parameter of the brush tool, the target drawing pixels passed by the brush tool are determined; and the target drawing pixels are filled with the currently selected target color to obtain a drawing line.
[0083] The drawing area can be drawing pixels arranged in a row and column matrix, in which case the drawing pixels are rectangular, and one side of adjacent drawing pixels overlaps; the drawing pixels can also be hexagonal, with each drawing pixel closely arranged, and one side of adjacent drawing pixels overlaps. When the trigger operation is performed, the operating contact will pass through the local drawing pixels, and the target drawing pixels passed by the brush tool usually include the drawing pixels passed by the operating contact. When the line thickness parameter indicates a thicker line thickness, the target drawing pixels also include the surrounding pixels of the drawing pixels passed by the operating contact; that is, the drawing line composed of the target drawing pixels includes the drawing pixels passed by the operation track and the surrounding pixels of the drawing pixels passed by the operating contact. After determining the target drawing pixels, the target drawing pixels are filled with the target color.
[0084] In other methods, the drawing pixels have a pixel area with a preset area size; based on the operation trajectory of the triggering operation and the line thickness parameter of the brush tool, the drawing pixels through which the brush tool passes through at least a portion of the pixel area are determined as target drawing pixels; or, based on the operation trajectory of the triggering operation and the line thickness parameter of the brush tool, the drawing pixels through which the brush tool passes that are larger than a first area size are determined as target drawing pixels; wherein the first area size is less than or equal to the preset area size.
[0085] For example, when drawing pixels as a rectangle, the pixel area has a specified length and width; when drawing pixels as a regular hexagon, the pixel area has a specified side length. Since the brush tool has a certain line thickness, the brush tool may pass through the entire area of the drawing pixels, or may pass through a partial area of the drawing pixels, for example, the brush passes through nearly half of a certain drawing pixel.
[0086] When determining the target drawing pixel, the first method is that as long as the drawing pixel passed by the brush tool, no matter the size of the pixel area passed by the brush tool, the drawing pixel is determined as the target drawing pixel; the second method is to pre-set the first area size, for the drawing pixels passed by the brush tool, compare whether the pixel area passed by the brush tool is larger than the first area size, and only the drawing pixels larger than the first area size are determined as the target drawing pixels.
[0087] It can be understood that the first method determines more target drawing pixels. At the turning point of the line, drawing pixels with a smaller pixel area passed by the brush will also be determined as target drawing pixels, so the line is smoother; relatively speaking, the second method determines fewer target drawing pixels. At the turning point of the line, drawing pixels with a smaller pixel area passed by the brush will not be determined as target drawing pixels, so the turning point of the line is sharper.
[0088] Players can choose the target pixel drawing method according to their needs, so that the line trend meets the player's custom needs and drawing style.
[0089] In one approach, in response to a trigger operation on a drawing area, a target drawing tool is determined to be a designated graphic drawing tool, and a designated graphic is generated based on an operation position of the trigger operation, graphic tool parameters of the designated graphic drawing tool, and a currently selected target color.
[0090] For a specified graphic drawing tool, the aforementioned trigger operation can be a click operation, in which the contact position of the click operation is used as the center of the specified graphic to generate the specified graphic; the shape and size of the specified graphic are affected by the graphic tool parameters, and the color of the specified graphic is the currently selected target color; in addition, the trigger operation can also be a sliding operation, in which the sliding track of the sliding operation is used as the center line to continuously trigger multiple specified graphics.
[0091] In response to a trigger operation on the drawing area, the target drawing tool is determined to be a color filling tool, and the filling area to which the operation position of the trigger operation belongs is filled with the currently selected target color. For the color filling tool, the trigger operation can be a click operation or a slide operation, etc.; if the trigger operation is located in a closed figure, the filling area to which the operation position of the trigger operation belongs is the area within the figure; if the trigger operation is not located in a closed figure, the edge of the filling area can be composed of a drawing line and the edge of the drawing effective area.
[0092] After the trigger operation is executed, the connected area where the operation position of the trigger operation is located is used as the filling area and filled with the target color.
[0093] The following embodiments provide a color selection method.
[0094] The graphical user interface also provides alternative colors; in response to a selection operation on the alternative colors, the selected alternative color is determined as the currently selected target color. Figure 3 The graphical user interface provides four alternative colors. By clicking one of the alternative colors, the clicked alternative color becomes the target color; if the player does not perform a selection operation on the alternative color, the system can select an alternative color as the target color by default.
[0095] Specifically, in response to a designated trigger operation for an alternative color, a triggered target color is determined, and a color editing area for the target color is displayed; in response to an editing operation for the color editing area, target editing parameters are determined, and the target color is updated based on the target editing parameters.
[0096] This designated trigger operation is different from the aforementioned selection operation for the candidate colors. When the selection operation is a click operation, the designated trigger operation here can be a long press operation, a long press and slide operation, etc. The color editing area can be displayed in the form of a window. The color editing area can provide a color palette, a color depth adjustment control, a color value setting control, etc. When performing an editing operation, you can select a color by selecting a color in the color palette or setting a color value. By adjusting the color depth adjustment control, you can adjust the depth of the selected color to obtain the final target color.
[0097] There is another implementation method, in response to a color picking trigger operation for an alternative color, a color picking control is displayed in the drawing area; wherein the color picking control is used to indicate: the currently selected first position, and the first color in the first position; and the currently selected target color is updated to the first color.
[0098] The color picking control is used to select a color from the drawing area, and is used to update the currently selected target color. At the same time, the target color is also saved as an alternative color. The color picking trigger operation can be implemented by triggering the color picking trigger control. After the color picking trigger operation is executed, the first position indicated by the color picking control can be a specified position of the drawing area, for example, the center position; and the first color at the center position is displayed by the color picking control. At this time, the first color is saved; if the color picking control is controlled to cancel the display at this time, the target color is updated to the first color; the target color in the alternative colors displayed in the graphical user interface is also updated to the first color.
[0099] Of course, the player can also adjust the first color by adjusting the first position indicated by the color picking control. Specifically, the color picking control has a specified control display area and a position selection mark, the position selection mark indicates the first position; based on the first position, a specified sub-area is determined in the drawing area; and the drawing pixels in the specified sub-area are magnified and displayed in the control display area.
[0100] The control display area usually has a preset shape, such as a circle, an ellipse, a rectangle, etc.; the position selection mark can be a dot mark or a ring mark, and the position current mark can be displayed at the center position or other position of the control display area; the position where the position selection mark is located is the first position.
[0101] refer to Figure 5, the drawing pixels in the control display area are enlarged, so that the color of the pixels in the area can be clearly displayed, which is convenient for players to operate. Usually, with the drawing pixel where the position selection mark is located as the center, a specified number of drawing pixels around the drawing pixel form the above-mentioned designated sub-area; the drawing pixels in the designated sub-area are enlarged and displayed in the control display area.
[0102] Furthermore, the first control edge of the color picking control displays the first color, and the second control edge of the color picking control displays the target color. The first control edge is the first edge of the control display area, and the second control edge is the second edge of the control display area. The control edge of the color picking control can be divided into multiple, for example Figure 5 In the figure, the upper edge of the color picking control is the first control edge, and the first color is displayed at the first control edge; the lower edge of the color picking control is the second control edge, and the target color is displayed at the second control edge.
[0103] When the position indicated by the position selection indicator changes, the first color may change accordingly; the target color remains unchanged.
[0104] There are multiple operation modes for the color picking control. In one mode, in response to a first trigger operation in the control display area, the position selection mark is moved from the first position to the second position according to the movement control of the first trigger operation, and the color at the second position is displayed by the color picking control.
[0105] The first trigger operation can act on any position of the control display area, for example, the position indicated by the position selection mark, or other positions. After the first trigger operation is executed, the position of the position selection mark changes, and the position of the color picking control also changes accordingly.
[0106] Specifically, the operation position of the first trigger operation is different from the position indicated by the position selection mark; at this time, the operation position of the first trigger operation is a position other than the position indicated by the position selection mark; since the operation position is usually the position where the player's finger is located, in order to avoid the position indicated by the position selection mark being blocked by the finger, during the execution of the first trigger operation, the operation position is a position other than the position indicated by the position selection mark; at the beginning of the execution of the first trigger operation, if the operation position is not the position indicated by the position selection mark, the relative position of the operation position and the position display mark is kept unchanged; if the operation position is the position indicated by the position selection mark, the position selection mark and the operation position can be controlled to have a certain position offset, so that the operation position and the position of the position selection mark are staggered, so as to avoid the finger at the operation position blocking the position selection mark.
[0107] At the same time, when the first trigger operation is executed, the relative position of the indicated position of the position selection mark and the contact position remains unchanged. The position of the trigger point of the first trigger operation and the position of the position selection mark remain unchanged during the movement. For example, when the first trigger operation is initially executed in the control display area, the distance between the trigger point position and the position indication mark at this time is the same as the distance between the position of the trigger point when it leaves the screen at the end of the first trigger operation and the final position of the position selection mark.
[0108] In actual implementation, in response to a long press operation applied to the control display area, and a sliding operation continuous with the long press operation, the position selection marker is controlled to move to a second position following the operating contact of the sliding operation; wherein, during the movement of the position selection marker, the indicated position of the position selection marker is different from the contact position.
[0109] After performing a long press operation on the control display area, the position selection mark enters a state of following the operation contact point. When a sliding operation is performed, the position selection mark moves with the operation contact point; at the same time, the color picking control as a whole moves with the operation contact point.
[0110] When the operating contact moves to the second position and the sliding operation ends, the position selection marker stays at the second position and the color at the second position is saved; during the sliding operation, the indication position of the position selection marker is different from the contact position, and the relative position of the indication position of the position selection marker and the contact position remains unchanged, so that the player can control the movement of the position selection marker through a sliding operation.
[0111] During the sliding operation, the position indicated by the position selection mark will change continuously, and thus the first color displayed on the color picking control will also change continuously. When the position selection mark stays at the second position, the first color is the color at the second position.
[0112] In another implementation, in response to a second trigger operation applied outside the control display area, the control position selection indicator moves from the first position to a third position determined according to the operation position of the second trigger operation; wherein the third position is different from the operation position of the second trigger operation; and the color at the third position is displayed through the color picking control.
[0113] The second trigger operation here is a different trigger operation from the aforementioned first trigger operation. The second trigger operation can act on any position outside the control display area. Considering that the drawn pixels outside the control display area are not magnified and displayed, the pixel size is small. Therefore, after executing the second trigger operation, the third position to which the position selection mark moves is determined according to the operation position, but the third position is different from the operation position; for example, the third position and the operation position have a preset relative direction, relative distance, etc.
[0114] After the position selection mark moves to the third position, the color picking control moves accordingly, and the first color displayed on the color picking control is the color at the third position.
[0115] In a specific operation, in response to a click operation outside the control display area, the control position selection mark is switched from the first position to a third position determined according to the operation position of the click operation. When the player clicks any position outside the control display area, the position selection mark is directly switched from the first position to the third position.
[0116] When the color at the position indicated by the position selection mark in the color picking control is the color the player wants, the player can trigger the specified control to control the color picking control to cancel display. The specified control can be a brush control, a color picking trigger control, etc. In response to the trigger operation on the specified control, the color picking control is canceled; after the color picking control is canceled, when the color picking control is canceled, the color at the position indicated by the position selection mark is updated to the target color, and in the alternative colors, the target color is also updated to the color at the position indicated by the position selection mark.
[0117] In the above method, players can use the color picker to conveniently pick colors from the drawing area without having to reset the color.
[0118] In one implementation, in response to the image import operation, the target image is determined and displayed in the drawing area. In addition to drawing a graphic using a drawing tool, the target image can also be imported and used as part of the drawn graphic.
[0119] Specifically, the target image is controlled to be displayed in an editable state; in response to an editing operation on the target image, the display mode of the target image is updated based on the editing operation; the editing operation may include a zoom-in operation, a zoom-out operation, a rotation operation, a mirror operation, etc.; when the editing operation is performed, the target image changes accordingly; for example, when the zoom-in operation is performed, the size of the area occupied by the target image in the drawing area increases. In response to an edit end operation on the target image, the target image is controlled to be displayed in a non-editable state. The edit end operation may be an area outside the target image in the triggering drawing area, or may be any control in the triggering image user interface. After the edit end operation is performed, the target image switches to a non-editable state.
[0120] Furthermore, when saving the drawing effect, the drawing graphic data is specifically saved; wherein the drawing graphic data includes: pixel position information of the drawing pixel with the fill color, the fill color of the drawing pixel, and a shape identifier indicating the shape of the drawing effect. The pixel position information here can specifically be the pixel coordinates of the drawing pixel; when the effect display object is preset, the shape identifier in the drawing graphic data can specifically be the object identifier of the effect display object, or the identifier of the object shape of the effect display object; when the effect display object is not preset, the shape identifier in the drawing graphic data can be the identifier of the shape of the drawing area, for example, the identifier of a rectangular shape.
[0121] In response to a drawing effect display instruction for drawing graphic data, a drawing graphic is generated based on the drawing graphic data; specified image processing is performed on the drawing graphic to obtain a drawing effect map; and the drawing effect map is rendered onto an object model of the effect display object.
[0122] According to the pixel position information and fill color in the drawing graphics data, the drawing pixels in the drawing area are filled with color, and then the drawing area is cut into the shape indicated by the shape identifier to obtain the final drawing graphics. Since the number of pixels in the drawing graphics is relatively low, it is also necessary to perform interpolation, filtering and other processing on the drawing graphics to obtain a high-pixel drawing effect map. Compared with the drawing graphics, the graphics in the drawing effect map are smoother; then based on the mapping relationship between the map and the model, the drawing effect map is mapped to the object model to realize the display of the drawing effect.
[0123] In this embodiment, when saving the drawing effect, only the pixel position, pixel fill color and shape identification are maintained. When the drawing effect is displayed in advance, image processing is performed on the drawing graphic data to obtain a smoother drawing effect. This method can greatly reduce the amount of data and save storage space.
[0124] In other manners, in response to an application operation on a drawing effect saved according to a preset shape, an effect display object is determined, and the drawing effect is rendered to the effect display object.
[0125] If the player does not pre-set the effect display object, the drawing effect will be saved in a preset shape; the drawing effect can be applied to various effect display objects. In this case, when saving the drawing effect, the pixel position information of the drawing pixel with the fill color, the fill color of the drawing pixel, and the shape identifier indicating the preset shape are saved; at this time, based on the pixel position information and the fill color of the drawing pixel, a drawing graphic of the preset shape is generated.
[0126] Then, the drawing effect is cropped according to the object shape of the effect display object; the cropped drawing effect is rendered to the effect display object. In actual implementation, a mask corresponding to the object shape of the effect display object can be generated, and the player controls the position of the mask on the drawing graphic to determine the specific cropping area; the cropped drawing graphic matches the object shape of the effect display object; the cropped drawing graphic is interpolated, filtered, and other processes are performed to obtain a high-pixel drawing effect map, and then based on the mapping relationship between the map and the model, the drawing effect map is mapped to the object model to display the drawing effect.
[0127] See also Figure 6 The schematic diagram of an interactive control device for a game shown in FIG. 1 provides a graphical user interface through a terminal device, and the device includes:
[0128] A drawing trigger module 60, for displaying a drawing area and a preview area on a graphical user interface in response to a drawing trigger instruction;
[0129] The graphics generation module 62 is used to respond to the drawing operation on the drawing area, determine the target drawing tool, generate the drawing graphics in the drawing area through the target drawing tool, and display the drawing effect corresponding to the drawing graphics in the preview area; wherein the target drawing tool is used to: control the specified graphic attributes of the drawing graphics; the specified graphic attributes include at least one of the graphic color, graphic shape, and graphic line;
[0130] The judgment module 64 is used to respond to the saving operation of the drawing effect and judge whether the drawing effect has a preset effect display object; wherein the effect display object includes at least one of: a game character face, a game character dress and a game scene component;
[0131] The saving module 66 is used to determine that the drawing effect has a preset effect display object, and save the drawing effect according to the object shape of the effect display object; or, if it is determined that the drawing effect has no preset effect display object, save the drawing effect according to a default shape.
[0132] The interactive control device of the above-mentioned game provides a graphical user interface through a terminal device, and displays a drawing area and a preview area on the graphical user interface in response to a drawing trigger instruction; in response to a drawing operation on the drawing area, determines a target drawing tool, generates a drawing graphic in the drawing area through the target drawing tool, and displays a drawing effect corresponding to the drawing graphic in the preview area; wherein the target drawing tool is used to: control the specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of the graphic color, graphic shape, and graphic line; in response to a save operation on the drawing effect, determines whether the drawing effect has a pre-set effect display object; wherein the effect display object includes: at least one of the game character face, game character clothing, and game scene components; determines that the drawing effect has a pre-set effect display object, and saves the drawing effect according to the object shape of the effect display object; or, determines that the drawing effect has no pre-set effect display object, and saves the drawing effect according to the preset shape.
[0133] In this way, players can draw effects based on specific objects or directly draw effects. Drawing effects can be applied to a variety of objects such as character faces, clothing, scene components, etc., enriching the types of objects for drawing appearance and meeting the players' personalized customization needs.
[0134] The above-mentioned device also includes a rendering module, which is used to: respond to an application operation on a drawing effect saved according to a preset shape, determine an effect display object, and render the drawing effect to the effect display object.
[0135] The rendering module is used to: crop the drawing effect according to the object shape of the effect display object; and render the cropped drawing effect to the effect display object.
[0136] The above-mentioned drawing trigger module is used to: respond to the object selection operation for the effect display object, and provide the object editing control of the selected effect display object in the graphical user interface; respond to the trigger operation for the object editing control, generate a drawing trigger instruction, and display the drawing area and preview area for the effect display object in the graphical user interface.
[0137] The above-mentioned drawing area at least includes a drawing effective area, and the area shape of the drawing effective area matches the object shape of the effect display object; the drawing effective area is used to respond to the drawing operation.
[0138] The above-mentioned preview area includes: a plane preview sub-area; the plane preview sub-area is used to display the texture drawing effect of the drawn graphics; and / or, the preview area includes: an object preview sub-area; the object preview sub-area is used to display the drawing effect of the drawn graphics rendered to the object model of the effect display object.
[0139] The above device also includes a part switching module, which is used to: determine the first clothing part currently selected in the game character's clothing; and provide a drawing effective area in the drawing area that matches the part shape of the first clothing part.
[0140] The above-mentioned device also includes a copy module, which is used to: display alternative clothing parts in response to a part switching operation; determine copy parameters in response to a copy operation of a drawing effect on a first clothing part, and copy the drawing effect of the first clothing part to a second clothing part among the alternative clothing parts according to the copy parameters; wherein the copy parameters include: mirror copy or translation copy.
[0141] The above-mentioned graphical user interface also provides alternative drawing tools; the above-mentioned device also includes: a tool setting module, which is used to respond to a tool type selection operation for the alternative drawing tools and determine a target tool type; wherein the target tool type includes: a brush tool, a specified graphic drawing tool or a color filling tool; in response to a tool parameter setting operation for the target tool type, a target drawing tool corresponding to the target tool type is generated based on the set tool parameters.
[0142] The above-mentioned tool setting module is used to: respond to the tool parameter setting operation for the brush tool, determine the line thickness parameters of the brush tool, and generate the brush tool corresponding to the line thickness parameters; respond to the tool parameter setting operation for the specified graphic drawing tool, determine the graphic tool parameters of the specified graphic drawing tool, and generate the specified graphic drawing tool corresponding to the graphic tool parameters; wherein the graphic tool parameters include: specifying the graphic shape and / or graphic size.
[0143] The graphics generation module is used to: respond to a trigger operation on the drawing area, determine that the target drawing tool is a brush tool, and generate a drawing line based on the operation track of the trigger operation, the line thickness parameter of the brush tool and the currently selected target color.
[0144] The above-mentioned graphics generation module is used to: determine the target drawing pixels passed by the brush tool based on the operation track of the triggering operation and the line thickness parameter of the brush tool; fill the target drawing pixels with the currently selected target color to obtain the drawing line.
[0145] The above-mentioned graphics generation module is used to: determine the drawing pixels of at least a part of the pixel area passed by the brush tool as the target drawing pixels based on the operation trajectory of the trigger operation and the line thickness parameter of the brush tool; or determine the drawing pixels of the pixel area passed by the brush tool that is larger than a first area size as the target drawing pixels based on the operation trajectory of the trigger operation and the line thickness parameter of the brush tool; wherein the first area size is less than or equal to a preset area size.
[0146] The graphics generation module is used to: respond to a trigger operation on the drawing area, determine that the target drawing tool is a specified graphics drawing tool, and generate a specified graphic based on the operation position of the trigger operation, the graphics tool parameters of the specified graphics drawing tool and the currently selected target color.
[0147] The graphic generation module is used to: respond to a trigger operation on the drawing area, determine that the target drawing tool is a color filling tool, and fill the filling area to which the operation position of the trigger operation belongs with the currently selected target color.
[0148] The graphical user interface also provides alternative colors; the device also includes a color selection module, which is used to: respond to a selection operation on an alternative color and determine the selected alternative color as the currently selected target color.
[0149] The above-mentioned device also includes a color editing module, which is used to: respond to a specified trigger operation for an alternative color, determine the triggered target color, and display a color editing area for the target color; respond to an editing operation for the color editing area, determine target editing parameters, and update the target color based on the target editing parameters.
[0150] The above-mentioned device also includes a color picking module, which is used to: respond to a color picking trigger operation for an alternative color, and display a color picking control in the drawing area; wherein the color picking control is used to indicate: the currently selected first position, and the first color in the first position; and update the currently selected target color to the first color.
[0151] The color picking control has a designated control display area and a position selection mark, and the position selection mark indicates a first position; the device also includes an enlargement module, which is used to: determine a designated sub-area in the drawing area based on the first position; and enlarge and display the drawing pixels in the designated sub-area in the control display area.
[0152] The first control edge of the color picking control displays the first color, and the second control edge of the color picking control displays the target color.
[0153] The first control edge is the first edge of the control display area, and the second control edge is the second edge of the control display area.
[0154] The above device also includes a first color picking control module, which is used to: respond to a first trigger operation acting in the control display area, move the selected mark from the first position to the second position according to the movement control position of the first trigger operation; and display the color at the second position through the color picking control.
[0155] The operation position of the first trigger operation is different from the position indicated by the position selection mark.
[0156] The first color picking control module is used to: respond to a long press operation on the control display area, and a sliding operation continuous with the long press operation, and control the position selection mark to move to the second position following the operating contact of the sliding operation.
[0157] The above-mentioned device also includes a second color picking control module, which is used to: respond to a second trigger operation acting outside the control display area, control the position selection mark to move from the first position to a third position determined according to the operation position of the second trigger operation; wherein the third position is different from the operation position of the second trigger operation; and display the color at the third position through the color picking control.
[0158] The second color picking control module is used to: respond to a click operation outside the control display area, and control the position selection mark to switch from the first position to a third position determined according to the operation position of the click operation.
[0159] The above device also includes a cancellation control module, which is used to: respond to a trigger operation on a specified control and cancel the display of the color picking control.
[0160] The above-mentioned device also includes an image importing module, which is used to: determine a target image in response to an image importing operation, and display the target image in the drawing area.
[0161] The above-mentioned device also includes an image editing module, which is used to: control the target image to be displayed in an editable state; respond to the editing operation on the target image, and update the display mode of the target image based on the editing operation; respond to the editing end operation on the target image, and control the target image to be displayed in a non-editable state.
[0162] The saving module is used to save the drawing graphic data, wherein the drawing graphic data includes: pixel position information of the drawing pixel with the filling color, the filling color of the drawing pixel, and a shape identifier indicating the shape of the drawing effect.
[0163] The above-mentioned device also includes an effect display module, which is used to: respond to a drawing effect display instruction for the drawing graphic data, generate a drawing graphic based on the drawing graphic data; perform specified image processing on the drawing graphic to obtain a drawing effect map; and render the drawing effect map onto the object model of the effect display object.
[0164] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the interactive control method of the above game. The electronic device can be a server or a terminal device.
[0165] See also Figure 7As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores computer executable instructions that can be executed by the processor 100, and the processor 100 executes the computer executable instructions to implement the interactive control method of the above-mentioned game.
[0166] Further, Figure 7 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0167] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0168] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0169] The processor in the above electronic device can implement the following operations in the above game interactive control method by executing computer executable instructions:
[0170] A method for interactive control of a game, providing a graphical user interface through a terminal device, and displaying a drawing area and a preview area on the graphical user interface in response to a drawing trigger instruction; in response to a drawing operation on the drawing area, determining a target drawing tool, generating a drawing graphic in the drawing area through the target drawing tool, and displaying a drawing effect corresponding to the drawing graphic in the preview area; wherein the target drawing tool is used to: control a specified graphic attribute of the drawing graphic; the specified graphic attribute includes at least one of the graphic color, graphic shape, and graphic line; in response to a save operation on the drawing effect, determining whether the drawing effect has a pre-set effect display object; wherein the effect display object includes at least one of the game character face, game character clothing, and game scene components; determining that the drawing effect has a pre-set effect display object, and saving the drawing effect according to the object shape of the effect display object; or determining that the drawing effect has no pre-set effect display object, and saving the drawing effect according to the preset shape.
[0171] In response to an application operation for a drawing effect saved according to a preset shape, an effect display object is determined, and the drawing effect is rendered to the effect display object.
[0172] The drawing effect is cropped according to the object shape of the effect display object; and the cropped drawing effect is rendered to the effect display object.
[0173] In response to an object selection operation on an effect display object, an object editing control for the selected effect display object is provided in a graphical user interface; in response to a trigger operation on the object editing control, a drawing trigger instruction is generated, and a drawing area and a preview area for the effect display object are displayed in the graphical user interface.
[0174] The drawing area at least includes a drawing effective area, and the area shape of the drawing effective area matches the object shape of the effect display object; the drawing effective area is used to respond to the drawing operation.
[0175] The preview area includes: a plane preview sub-area; the plane preview sub-area is used to display the texture drawing effect of the drawn graphics; and / or, the preview area includes: an object preview sub-area; the object preview sub-area is used to display the drawing effect of the drawn graphics rendered to the object model of the effect display object.
[0176] Determine the first clothing part currently selected in the game character's clothing; and provide a drawing effective area in the drawing area that matches the shape of the first clothing part.
[0177] In response to a part switching operation, alternative clothing parts are displayed; in response to a copy operation for a drawing effect on a first clothing part, copy parameters are determined, and according to the copy parameters, the drawing effect of the first clothing part is copied to a second clothing part among the alternative clothing parts; wherein the copy parameters include: mirror copy or translation copy.
[0178] The graphical user interface also provides alternative drawing tools; in response to a tool type selection operation for the alternative drawing tools, a target tool type is determined; wherein the target tool types include: a brush tool, a specified graphic drawing tool or a color fill tool; in response to a tool parameter setting operation for the target tool type, a target drawing tool corresponding to the target tool type is generated based on the set tool parameters.
[0179] In response to a tool parameter setting operation for a brush tool, the line thickness parameter of the brush tool is determined, and a brush tool corresponding to the line thickness parameter is generated; in response to a tool parameter setting operation for a specified graphic drawing tool, the graphic tool parameters of the specified graphic drawing tool are determined, and a specified graphic drawing tool corresponding to the graphic tool parameters is generated; wherein the graphic tool parameters include: specifying a graphic shape and / or a graphic size.
[0180] In response to a trigger operation on a drawing area, a target drawing tool is determined to be a brush tool, and a drawing line is generated based on an operation track of the trigger operation, a line thickness parameter of the brush tool, and a currently selected target color.
[0181] The drawing area includes a plurality of drawing pixels arranged in a preset order; based on the operation track of the triggering operation and the line thickness parameter of the brush tool, the target drawing pixels passed by the brush tool are determined; and the target drawing pixels are filled with the currently selected target color to obtain a drawing line.
[0182] Drawing pixels have a pixel area with a preset area size; based on the operation track of the triggering operation and the line thickness parameter of the brush tool, the drawing pixels of at least a part of the pixel area passed by the brush tool are determined as target drawing pixels; or, based on the operation track of the triggering operation and the line thickness parameter of the brush tool, the drawing pixels of the pixel area passed by the brush tool that is larger than the first area size are determined as target drawing pixels; wherein the first area size is less than or equal to the preset area size.
[0183] In response to a trigger operation on a drawing area, a target drawing tool is determined to be a specified graphic drawing tool, and a specified graphic is generated based on an operation position of the trigger operation, graphic tool parameters of the specified graphic drawing tool, and a currently selected target color.
[0184] In response to a trigger operation on a drawing area, a target drawing tool is determined to be a color filling tool, and a filling area to which an operation position of the trigger operation belongs is filled with a currently selected target color.
[0185] The graphical user interface also provides alternative colors in response to a selection operation on the alternative colors, and determines the selected alternative color as the currently selected target color.
[0186] In response to a designated trigger operation for an alternative color, a triggered target color is determined, and a color editing area for the target color is displayed; in response to an editing operation for the color editing area, target editing parameters are determined, and the target color is updated based on the target editing parameters.
[0187] In response to a color picking trigger operation for an alternative color, a color picking control is displayed in the drawing area; wherein the color picking control is used to indicate: a currently selected first position, and a first color in the first position; and the currently selected target color is updated to the first color.
[0188] The color picking control has a specified control display area and a position selection mark, the position selection mark indicates a first position; based on the first position, a specified sub-area is determined in the drawing area; and the drawing pixels in the specified sub-area are magnified and displayed in the control display area.
[0189] The first control edge of the color picking control displays the first color, and the second control edge of the color picking control displays the target color.
[0190] The first control edge is the first edge of the control display area, and the second control edge is the second edge of the control display area.
[0191] In response to a first trigger operation applied to the control display area, the position selection mark is moved from the first position to the second position according to the movement control of the first trigger operation; and the color at the second position is displayed through the color picking control.
[0192] The operation position of the first trigger operation is different from the position indicated by the position selection mark.
[0193] In response to a long press operation on the control display area, and a sliding operation continuous with the long press operation, the control position selection mark moves to a second position following the operating contact of the sliding operation.
[0194] In response to a second trigger operation applied outside the control display area, the control position selection mark moves from the first position to a third position determined according to the operation position of the second trigger operation; wherein the third position is different from the operation position of the second trigger operation; and the color at the third position is displayed through the color picking control.
[0195] In response to a click operation outside the control display area, the control position selection mark is switched from the first position to a third position determined according to the operation position of the click operation.
[0196] In response to the trigger operation on the specified control, cancel the display of the color picker control.
[0197] In response to the image import operation, a target image is determined and the target image is displayed in the drawing area.
[0198] Control the target image to be displayed in an editable state; respond to an editing operation on the target image, and update the display mode of the target image based on the editing operation; respond to an editing end operation on the target image, and control the target image to be displayed in a non-editable state.
[0199] The drawing graphic data is saved; wherein the drawing graphic data includes: pixel position information of the drawing pixel with a filling color, the filling color of the drawing pixel, and a shape identifier indicating a shape of a drawing effect.
[0200] In response to a drawing effect display instruction for drawing graphic data, a drawing graphic is generated based on the drawing graphic data; a specified image processing is performed on the drawing graphic to obtain a drawing effect map;
[0201] Render the paint effect map onto the object model of the effect display object.
[0202] In this way, players can draw effects based on specific objects or directly draw effects. Drawing effects can be applied to a variety of objects such as character faces, clothing, scene components, etc., enriching the types of objects for drawing appearance and meeting the players' personalized customization needs.
[0203] This embodiment also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the interactive control method of the above game.
[0204] The computer executable instructions stored in the computer readable storage medium can implement the following operations in the interactive control method of the game by executing the computer executable instructions:
[0205] A method for interactive control of a game, providing a graphical user interface through a terminal device, and displaying a drawing area and a preview area on the graphical user interface in response to a drawing trigger instruction; in response to a drawing operation on the drawing area, determining a target drawing tool, generating a drawing graphic in the drawing area through the target drawing tool, and displaying a drawing effect corresponding to the drawing graphic in the preview area; wherein the target drawing tool is used to: control a specified graphic attribute of the drawing graphic; the specified graphic attribute includes at least one of the graphic color, graphic shape, and graphic line; in response to a save operation on the drawing effect, determining whether the drawing effect has a pre-set effect display object; wherein the effect display object includes at least one of the game character face, game character clothing, and game scene components; determining that the drawing effect has a pre-set effect display object, and saving the drawing effect according to the object shape of the effect display object; or determining that the drawing effect has no pre-set effect display object, and saving the drawing effect according to the preset shape.
[0206] In response to an application operation for a drawing effect saved according to a preset shape, an effect display object is determined, and the drawing effect is rendered to the effect display object.
[0207] The drawing effect is cropped according to the object shape of the effect display object; and the cropped drawing effect is rendered to the effect display object.
[0208] In response to an object selection operation on an effect display object, an object editing control for the selected effect display object is provided in a graphical user interface; in response to a trigger operation on the object editing control, a drawing trigger instruction is generated, and a drawing area and a preview area for the effect display object are displayed in the graphical user interface.
[0209] The drawing area at least includes a drawing effective area, and the area shape of the drawing effective area matches the object shape of the effect display object; the drawing effective area is used to respond to the drawing operation.
[0210] The preview area includes: a plane preview sub-area; the plane preview sub-area is used to display the texture drawing effect of the drawn graphics; and / or, the preview area includes: an object preview sub-area; the object preview sub-area is used to display the drawing effect of the drawn graphics rendered to the object model of the effect display object.
[0211] Determine the first clothing part currently selected in the game character's clothing; and provide a drawing effective area in the drawing area that matches the shape of the first clothing part.
[0212] In response to a part switching operation, alternative clothing parts are displayed; in response to a copy operation for a drawing effect on a first clothing part, copy parameters are determined, and according to the copy parameters, the drawing effect of the first clothing part is copied to a second clothing part among the alternative clothing parts; wherein the copy parameters include: mirror copy or translation copy.
[0213] The graphical user interface also provides alternative drawing tools; in response to a tool type selection operation for the alternative drawing tools, a target tool type is determined; wherein the target tool types include: a brush tool, a specified graphic drawing tool or a color fill tool; in response to a tool parameter setting operation for the target tool type, a target drawing tool corresponding to the target tool type is generated based on the set tool parameters.
[0214] In response to a tool parameter setting operation for a brush tool, the line thickness parameter of the brush tool is determined, and a brush tool corresponding to the line thickness parameter is generated; in response to a tool parameter setting operation for a specified graphic drawing tool, the graphic tool parameters of the specified graphic drawing tool are determined, and a specified graphic drawing tool corresponding to the graphic tool parameters is generated; wherein the graphic tool parameters include: specifying a graphic shape and / or a graphic size.
[0215] In response to a trigger operation on a drawing area, a target drawing tool is determined to be a brush tool, and a drawing line is generated based on an operation track of the trigger operation, a line thickness parameter of the brush tool, and a currently selected target color.
[0216] The drawing area includes a plurality of drawing pixels arranged in a preset order; based on the operation track of the triggering operation and the line thickness parameter of the brush tool, the target drawing pixels passed by the brush tool are determined; and the target drawing pixels are filled with the currently selected target color to obtain a drawing line.
[0217] Drawing pixels have a pixel area with a preset area size; based on the operation track of the triggering operation and the line thickness parameter of the brush tool, the drawing pixels of at least a part of the pixel area passed by the brush tool are determined as target drawing pixels; or, based on the operation track of the triggering operation and the line thickness parameter of the brush tool, the drawing pixels of the pixel area passed by the brush tool that is larger than the first area size are determined as target drawing pixels; wherein the first area size is less than or equal to the preset area size.
[0218] In response to a trigger operation on a drawing area, a target drawing tool is determined to be a specified graphic drawing tool, and a specified graphic is generated based on an operation position of the trigger operation, graphic tool parameters of the specified graphic drawing tool, and a currently selected target color.
[0219] In response to a trigger operation on a drawing area, a target drawing tool is determined to be a color filling tool, and a filling area to which an operation position of the trigger operation belongs is filled with a currently selected target color.
[0220] The graphical user interface also provides alternative colors in response to a selection operation on the alternative colors, and determines the selected alternative color as the currently selected target color.
[0221] In response to a designated trigger operation for an alternative color, a triggered target color is determined, and a color editing area for the target color is displayed; in response to an editing operation for the color editing area, target editing parameters are determined, and the target color is updated based on the target editing parameters.
[0222] In response to a color picking trigger operation for an alternative color, a color picking control is displayed in the drawing area; wherein the color picking control is used to indicate: a currently selected first position, and a first color in the first position; and the currently selected target color is updated to the first color.
[0223] The color picking control has a specified control display area and a position selection mark, the position selection mark indicates a first position; based on the first position, a specified sub-area is determined in the drawing area; and the drawing pixels in the specified sub-area are magnified and displayed in the control display area.
[0224] The first control edge of the color picking control displays the first color, and the second control edge of the color picking control displays the target color.
[0225] The first control edge is the first edge of the control display area, and the second control edge is the second edge of the control display area.
[0226] In response to a first trigger operation applied to the control display area, the position selection mark is moved from the first position to the second position according to the movement control of the first trigger operation; and the color at the second position is displayed through the color picking control.
[0227] The operation position of the first trigger operation is different from the position indicated by the position selection mark.
[0228] In response to a long press operation on the control display area, and a sliding operation continuous with the long press operation, the control position selection mark moves to a second position following the operating contact of the sliding operation.
[0229] In response to a second trigger operation applied outside the control display area, the control position selection mark moves from the first position to a third position determined according to the operation position of the second trigger operation; wherein the third position is different from the operation position of the second trigger operation; and the color at the third position is displayed through the color picking control.
[0230] In response to a click operation outside the control display area, the control position selection mark is switched from the first position to a third position determined according to the operation position of the click operation.
[0231] In response to the trigger operation on the specified control, cancel the display of the color picker control.
[0232] In response to the image import operation, a target image is determined and the target image is displayed in the drawing area.
[0233] Control the target image to be displayed in an editable state; respond to an editing operation on the target image, and update the display mode of the target image based on the editing operation; respond to an editing end operation on the target image, and control the target image to be displayed in a non-editable state.
[0234] The drawing graphic data is saved; wherein the drawing graphic data includes: pixel position information of the drawing pixel with a filling color, the filling color of the drawing pixel, and a shape identifier indicating a shape of a drawing effect.
[0235] In response to a drawing effect display instruction for drawing graphic data, a drawing graphic is generated based on the drawing graphic data; a specified image processing is performed on the drawing graphic to obtain a drawing effect map;
[0236] Render the paint effect map onto the object model of the effect display object.
[0237] In this way, players can draw effects based on specific objects or directly draw effects. Drawing effects can be applied to a variety of objects such as character faces, clothing, scene components, etc., enriching the types of objects for drawing appearance and meeting the players' personalized customization needs.
[0238] The computer program product of the interactive game control method, device and electronic device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0239] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0240] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0241] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0242] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0243] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for interactive control of a game, characterized in that: Providing a graphical user interface through a terminal device, the method comprising: In response to a drawing trigger instruction, displaying a drawing area and a preview area on the graphical user interface; In response to a drawing operation on the drawing area, a target drawing tool is determined, a drawing graphic is generated in the drawing area by the target drawing tool, and a drawing effect corresponding to the drawing graphic is displayed in the preview area; wherein the target drawing tool is used to: control a specified graphic attribute of the drawing graphic; the specified graphic attribute includes at least one of a graphic color, a graphic shape, and a graphic line; In response to a save operation for the drawing effect, determining whether the drawing effect has a preset effect display object; wherein the effect display object includes: at least one of a game character face, a game character dress, and a game scene component; Determine that the drawing effect pre-sets the effect display object, and save the drawing effect according to the object shape of the effect display object; or determine that the drawing effect does not pre-set the effect display object, and save the drawing effect according to the preset shape.
2. The method according to claim 1, characterized in that The method further comprises: In response to an application operation of the drawing effect saved according to the preset shape, an effect display object is determined, and the drawing effect is rendered to the effect display object.
3. The method according to claim 2, characterized in that The step of rendering the drawing effect to the effect display object comprises: According to the object shape of the effect display object, the drawing effect is cropped; The clipped drawing effect is rendered to the effect display object.
4. The method according to claim 1, characterized in that In response to the drawing trigger instruction, the step of displaying the drawing area and the preview area on the graphical user interface includes: In response to an object selection operation for an effect display object, providing an object editing control for the selected effect display object in the graphical user interface; In response to a trigger operation on the object editing control, the drawing trigger instruction is generated, and a drawing area and a preview area for the effect display object are displayed on the graphical user interface.
5. The method according to claim 4, characterized in that The drawing area at least includes a drawing effective area, and the area shape of the drawing effective area matches the object shape of the effect display object; The drawing effective area is used to respond to the drawing operation.
6. The method according to claim 4, characterized in that The preview area includes: a plane preview sub-area; the plane preview sub-area is used to display the texture drawing effect of the drawing graphic; And / or, the preview area includes: an object preview sub-area; the object preview sub-area is used to display the drawing effect of rendering the drawing graphics onto the object model of the effect display object.
7. The method according to claim 4, characterized in that The effect display object includes game character clothing; after the step of displaying a drawing area for the effect display object on the graphical user interface, the method further includes: Determining a first clothing part currently selected in the clothing of the game character; A drawing effective area matching the shape of the first clothing part is provided in the drawing area.
8. The method according to claim 7, characterized in that The method further comprises: In response to the part switching operation, displaying alternative clothing parts; In response to a copy operation of the drawing effect of the first clothing part, a copy parameter is determined, and according to the copy parameter, the drawing effect of the first clothing part is copied to a second clothing part among the candidate clothing parts; wherein the copy parameter includes: mirror copy or translation copy.
9. The method according to claim 1, characterized in that: The graphical user interface also provides alternative drawing tools; The method further comprises: In response to a tool type selection operation for the candidate drawing tool, a target tool type is determined; wherein the target tool type includes: a brush tool, a designated graphic drawing tool or a color filling tool; In response to a tool parameter setting operation for the target tool type, a target drawing tool corresponding to the target tool type is generated based on the set tool parameters.
10. The method according to claim 9, characterized in that In response to the tool parameter setting operation for the target tool type, the step of generating a target drawing tool corresponding to the target tool type based on the set tool parameters includes at least one of the following: In response to a tool parameter setting operation for a brush tool, determining a line thickness parameter of the brush tool, and generating a brush tool corresponding to the line thickness parameter; In response to a tool parameter setting operation for a specified graphic drawing tool, a graphic tool parameter of the specified graphic drawing tool is determined, and a specified graphic drawing tool corresponding to the graphic tool parameter is generated; wherein the graphic tool parameter includes: a specified graphic shape and / or a graphic size.
11. The method according to claim 1, characterized in that: In response to a drawing operation on the drawing area, determining a target drawing tool, and generating a drawing graphic in the drawing area by using the target drawing tool, comprises: In response to a trigger operation on the drawing area, the target drawing tool is determined to be a brush tool, and a drawing line is generated based on an operation track of the trigger operation, a line thickness parameter of the brush tool, and a currently selected target color.
12. The method according to claim 11, characterized in that The drawing area includes a plurality of drawing pixels arranged in a preset order; the step of generating a drawing line based on the operation track of the trigger operation, the line thickness parameter of the brush tool and the currently selected target color includes: Determining target drawing pixels passed by the brush tool based on the operation track of the trigger operation and the line thickness parameter of the brush tool; The target drawing pixels are filled with the currently selected target color to obtain a drawing line.
13. The method according to claim 12, characterized in that The drawing pixel has a pixel area with a preset area size; The step of determining the target drawing pixels passed by the brush tool based on the operation track of the trigger operation and the line thickness parameter of the brush tool comprises: Based on the operation track of the trigger operation and the line thickness parameter of the brush tool, determining the drawing pixels of at least a part of the pixel area passed by the brush tool as target drawing pixels; Alternatively, based on the operation track of the trigger operation and the line thickness parameter of the brush tool, the drawing pixels in the pixel area passed by the brush tool that are larger than a first area size are determined as target drawing pixels; wherein the first area size is less than or equal to the preset area size.
14. The method according to claim 1, characterized in that The step of generating a drawing graphic in the drawing area by the target drawing tool comprises: In response to a trigger operation on the drawing area, the target drawing tool is determined to be a designated graphic drawing tool, and a designated graphic is generated based on an operation position of the trigger operation, graphic tool parameters of the designated graphic drawing tool, and a currently selected target color.
15. The method according to claim 1, characterized in that The step of generating a drawing graphic in the drawing area by the target drawing tool comprises: In response to a trigger operation on the drawing area, the target drawing tool is determined to be a color filling tool, and a filling area to which the operation position of the trigger operation belongs is filled with a currently selected target color.
16. The method according to claim 1, characterized in that The graphical user interface also provides candidate colors; the method further comprises: in response to a selection operation on the candidate colors, determining the selected candidate color as the currently selected target color.
17. The method according to claim 16, characterized in that The method further comprises: In response to a designated triggering operation for the candidate color, determining a triggered target color, and displaying a color editing area for the target color; In response to an editing operation on the color editing area, a target editing parameter is determined, and the target color is updated based on the target editing parameter.
18. The method according to claim 16, characterized in that The method further comprises: In response to a color picking trigger operation for the candidate color, a color picking control is displayed in the drawing area; wherein the color picking control is used to indicate: a currently selected first position, and a first color in the first position; Update the currently selected target color to the first color.
19. The method according to claim 18, characterized in that The color picking control has a specified control display area and a position selection mark, and the position selection mark indicates the first position; the method further includes: Based on the first position, determining a designated sub-area in the drawing area; The drawing pixels in the designated sub-region are displayed in an enlarged manner in the control display region.
20. The method according to claim 19, characterized in that The first control edge of the color picking control displays the first color, and the second control edge of the color picking control displays the target color.
21. The method according to claim 20, characterized in that The first control edge is a first edge of the control display area, and the second control edge is a second edge of the control display area.
22. The method according to claim 19, characterized in that The method further comprises: In response to a first trigger operation acting in the control display area, controlling the position selection mark to move from the first position to a second position according to the movement of the first trigger operation; The color at the second position is displayed through the color picking control.
23. The method according to claim 22, characterized in that The operation position of the first trigger operation is different from the position indicated by the position selection mark.
24. The method according to claim 22, characterized in that In response to a first trigger operation acting in the control display area, the step of controlling the position selection mark to move from the first position to the second position according to the movement of the first trigger operation includes: In response to a long press operation on the control display area and a sliding operation continuous with the long press operation, the position selection mark is controlled to move to a second position following the operating contact of the sliding operation.
25. The method according to claim 19, characterized in that The method further comprises: In response to a second trigger operation acting outside the control display area, controlling the position selection mark to move from the first position to a third position determined according to the operation position of the second trigger operation; wherein the third position is different from the operation position of the second trigger operation; The color at the third position is displayed through the color picking control.
26. The method according to claim 25, characterized in that In response to a second trigger operation acting outside the control display area, the step of controlling the position selection mark to move from the first position to a third position determined according to the operation position of the second trigger operation includes: In response to a click operation outside the control display area, the position selection mark is controlled to switch from the first position to a third position determined according to the operation position of the click operation.
27. The method according to claim 18, characterized in that After the step of updating the currently selected target color to the first color, the method further includes: In response to a trigger operation on a designated control, the color picking control is canceled from being displayed.
28. The method according to claim 1, characterized in that The method further comprises: In response to the image import operation, a target image is determined, and the target image is displayed in the drawing area.
29. The method according to claim 28, characterized in that After the step of displaying the target image in the drawing area, the method further includes: Controlling the target image to be displayed in an editable state; In response to an editing operation on the target image, updating a display mode of the target image based on the editing operation; In response to an edit end operation on the target image, the target image is controlled to be displayed in a non-editable state.
30. The method according to claim 1, characterized in that The step of saving the drawing effect comprises: saving the drawing graphic data; wherein the drawing graphic data comprises: pixel position information of drawing pixels with fill colors, fill colors of the drawing pixels, and a shape identifier indicating a shape of the drawing effect.
31. The method according to claim 30, characterized in that After the step of saving the drawing graphic data, the method further comprises: In response to a drawing effect display instruction for the drawing graphic data, generating a drawing graphic based on the drawing graphic data; Performing specified image processing on the drawn graphics to obtain a drawing effect map; The drawing effect map is rendered onto an object model of an effect display object.
32. An interactive control device for a game, characterized in that: A graphical user interface is provided through a terminal device, the device comprising: A drawing trigger module, for displaying a drawing area and a preview area on the graphical user interface in response to a drawing trigger instruction; a graphics generation module, for responding to a drawing operation on the drawing area, determining a target drawing tool, generating a drawing graphic in the drawing area by using the target drawing tool, and displaying a drawing effect corresponding to the drawing graphic in the preview area; wherein the target drawing tool is used to: control a specified graphic attribute of the drawing graphic; the specified graphic attribute includes at least one of a graphic color, a graphic shape, and a graphic line; A judgment module, for responding to a save operation on the drawing effect, and judging whether the drawing effect has a preset effect display object; wherein the effect display object includes: at least one of a game character face, a game character dress, and a game scene component; The saving module is used to determine that the drawing effect pre-sets the effect display object, and save the drawing effect according to the object shape of the effect display object; or determine that the drawing effect does not pre-set the effect display object, and save the drawing effect according to a default shape.
33. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the interactive control method of the game described in any one of claims 1-31.
34. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the interactive control method of the game described in any one of claims 1-31.
Citation Information
Patent Citations
Sticker processing method, device, electronic equipment and storage medium
CN112084750A
Processing method and device for scenes in game, and electronic equipment
CN113069759A
Game scene editing method and device and electronic equipment
CN118649411A
Volume cloud drawing method and device, electronic equipment and program product
CN118807200A
3D Videogame system
US20070035831A1