Interactive control method, device and electronic equipment for a game
By providing a graphical user interface and target drawing tools in the game system, the problem of limited types of drawing appearance objects is solved, enabling rich personalized drawing effects and an efficient custom drawing experience.
Patent Information
- Application Number
- CN202411825132.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2044-12-11
AI Technical Summary
The limited variety of appearance objects that can be drawn in the game system makes it difficult to meet players' customization needs, resulting in high similarity in appearance among players and affecting the personalized experience.
The terminal device provides a graphical user interface to respond to drawing trigger commands, display the drawing area and preview area on the interface, generate and display the drawing graphic effects using the target drawing tool, support the control of graphic color, shape and line, and save the drawing effect according to the displayed object.
It enriches the types of appearance objects to be drawn, meets players' personalized customization needs, improves drawing efficiency and quality, and enhances the personalization of the game experience.
Smart Images

Figure CN119633379B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game technology, and in particular to a game interactive control method, device, and electronic device. Background Technology
[0002] The game system offers a customization feature, allowing players to draw appearances on objects such as character clothing and scene components. However, the types of objects that can be drawn are very limited, resulting in a high degree of similarity in the appearances of objects owned by different players, making it difficult to meet players' more personalized customization needs. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a game interactive control method, device and electronic device to enrich the types of objects for drawing appearance and meet the personalized customization needs of players.
[0004] In a first aspect, embodiments of the present invention provide an interactive control method for a game, which provides a graphical user interface through a terminal device. The method includes: in response to a drawing trigger command, displaying a drawing area and a preview area in 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 using 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 specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines; 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 game character face, game character clothing, and game scene components; determining that the drawing effect has a pre-set effect display object, 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, saving the drawing effect according to a preset shape.
[0005] Secondly, embodiments of the present invention provide an interactive control device for a game, providing a graphical user interface through a terminal device. The device includes: a drawing trigger module, used to display a drawing area and a preview area in the graphical user interface in response to a drawing trigger command; a graphics generation module, used to determine a target drawing tool in response to a drawing operation on the drawing area, generate a drawing graphic in the drawing area using the target drawing tool, and display the 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 graphic color, graphic shape, and graphic lines; a judgment module, used to determine whether the drawing effect has a pre-set effect display object in response to a save operation on the drawing effect; wherein, the effect display object includes at least one of game character face, game character clothing, and game scene components; and a save module, 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, determine that the drawing effect has no pre-set effect display object and save the drawing effect according to the default shape.
[0006] Thirdly, embodiments of the present invention provide 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] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to implement the interactive control method of the aforementioned game.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The aforementioned interactive control method, device, and electronic device for the game provide a graphical user interface through a terminal device. In response to a drawing trigger command, the graphical user interface displays a drawing area and a preview area. In response to a drawing operation on the drawing area, a target drawing tool is determined, and a drawing graphic is generated on the drawing area using the target drawing tool. The corresponding drawing effect is then displayed in the preview area. The target drawing tool is used to: control specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines. In response to a save operation on the drawing effect, it is determined whether the drawing effect has a pre-set effect display object; the effect display object includes at least one of: a game character's face, a game character's clothing, and game scene components. If the drawing effect has a pre-set effect display object, the drawing effect is saved according to the object shape of the effect display object; or, if the drawing effect does not have a pre-set effect display object, the drawing effect is saved according to a preset shape.
[0010] This method allows players to draw effects based on specific objects or draw effects directly. The drawn effects can be applied to various objects such as character faces, clothing, and scene components, enriching the types of objects that can be drawn and meeting players' personalized customization needs.
[0011] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0012] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0013] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0014] Figure 1 A flowchart illustrating a game interaction control method provided in an embodiment of the present invention;
[0015] Figure 2 A schematic diagram of the drawing area, the drawing effective area, and the preview area provided in an embodiment of the present invention;
[0016] Figure 3 This is a schematic diagram of the effective area drawn after switching parts according to an embodiment of the present invention;
[0017] Figure 4 This is a schematic diagram illustrating the operation of copying the drawing effect to other parts, provided by an embodiment of the present invention.
[0018] Figure 5 A schematic diagram of the color picker control provided in an embodiment of the present invention;
[0019] Figure 6 A schematic diagram of an interactive control device for a game provided in an embodiment of the present invention;
[0020] Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] In related technologies, 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, resulting in a high degree of similarity in the appearance of objects owned by different players in the game system. This makes it difficult to meet players' more personalized customization needs and affects players' customized game experience.
[0023] Based on this, the interactive control method, device, and electronic device for games provided in this embodiment of the invention can be applied to various types of games, such as games with customizable functions.
[0024] In one embodiment of this disclosure, the game interaction control method can run on a local terminal device or a server. When the game interaction control method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and client devices.
[0025] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of the game's interactive control methods are completed on the cloud gaming server. 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 capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0026] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0027] In one possible implementation, this invention provides an interactive control method for a game, which provides a graphical user interface through a terminal device. The terminal device can be either the aforementioned local terminal device or a client device in the aforementioned cloud interactive system.
[0028] like Figure 1 As shown, the interactive control method of this game includes the following steps:
[0029] Step S102: In response to the drawing trigger command, display the drawing area and preview area in the graphical user interface;
[0030] The drawing trigger command 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 command, you can select the object to display the effect through the selection operation, or you can directly trigger the generation of the drawing trigger command without selecting any object.
[0031] The drawing area is used to draw graphics. Players generate graphics by performing drawing operations, such as clicking or swiping. Initially, the drawing area is blank. The drawing area can be an area with very small pixel size and a large number of pixels. In this case, the drawn graphics are relatively smooth and flowing curves. This area can also be an area with large pixel size and a limited number of pixels. In this case, the drawn graphics are visually composed of individual pixels, and the drawn graphics have "jagged edges".
[0032] The preview area can display the drawing effect in real time, and can also display the drawing effect after the drawing is saved. In addition to the drawing area and the preview area, the graphical user interface can also provide alternative drawing tools, alternative drawing colors, and undo controls.
[0033] Step S104: In response to a drawing operation targeting the drawing area, determine a target drawing tool, generate a drawing graphic in the drawing area using the target drawing tool, and display the drawing effect corresponding to the drawing graphic in the preview area; wherein, the target drawing tool is used to: control specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines;
[0034] The target drawing tool can be the default tool selected by the game system, or it can be selected and set by the player. Among the specified graphic attributes, the graphic color can be either the line color or the fill color, determined by selecting an alternative color. The graphic shape can be determined by the tool type or the selected tool parameters. For example, the shape corresponding to the brush tool is a line, and the specified graphic drawing tool can draw various specified shapes, such as stars, hearts, and bubbles, determined by selecting the graphic type. The graphic lines can be controlled by the brush tool, and can include line thickness, fluorescent effects, and cutout effects, determined by selecting the brush tool parameters.
[0035] The target drawing tool includes the tool type and the corresponding tool parameters. The tool type can be a brush tool, a specified shape drawing tool, a fill tool, etc. For a brush tool, its parameters can include line thickness and line color. For a specified shape drawing tool, its parameters can include shape, size, and color. For a fill tool, its parameters can include fill color. The color-related parameters can be selected from a preset selection of colors.
[0036] The drawing operations mentioned above can be click operations, swipe operations, etc., applied to 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 swipe operation, and the drawing operation corresponding to the specified graphic drawing tool can be a click operation or a swipe operation, etc.
[0037] When performing a drawing operation, the target drawing tool can determine the drawing position based on the operation touchpoint and generate the drawn shape at that position. When the drawing operation is a sliding operation, the target drawing tool can move following the operation touchpoint of the sliding operation. For example, when the target drawing operation is a brush tool, the brush tool moves with the operation touchpoint of the sliding operation, and lines are generated at the positions where the brush tool passes. As another example, when the target drawing operation is a specified shape drawing tool, if the drawing operation is a click operation, the specified shape is generated at the click position; if the drawing operation is a sliding operation, multiple specified shapes are continuously generated along the sliding operation's trajectory. These specified shapes can include pentagrams, hearts, etc.
[0038] After the drawing area generates the drawing shape, the preview area displays the drawing effect of the drawing shape; the drawing effect can be the same as the drawing shape, or the drawing effect can correspond to the drawing shape but be visually different. For example, the drawing shape can be a low-pixel style graphic, while the drawing effect is a high-pixel style, smoother image that has been processed from the drawing shape.
[0039] In addition, the size of the drawing effect may differ from the size of the drawn graphic. For example, if the size of the drawn graphic is large, the size of the drawing effect is small. By displaying the drawn graphic in the preview area, you can observe the visual effect of the small-sized drawing effect corresponding to the drawn graphic.
[0040] The preview area can be in planar form, that is, the drawing effect is displayed in the form of a two-dimensional image; when the preset effect display object is selected, the preview area can also be the object model of the effect display object, and the drawing effect is rendered onto the surface of the object model.
[0041] Step S106: In response to the save operation for 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 following: game character face, game character clothing, and game scene components;
[0042] The save operation can be triggered by a save control or by a preset keyboard shortcut. The effect display object can be pre-selected; for example, an effect display object can be selected before generating the aforementioned drawing trigger command, and then the graphic can be drawn based on the selected effect display object. Furthermore, different effect display objects can provide different windows, displaying the drawing area and preview area corresponding to that effect display object in the respective window. When the save operation is executed, the effect display object corresponding to the window responding to the save operation is compared with the aforementioned pre-set effect display object.
[0043] In the above-mentioned effect demonstration objects, the game character's face includes the face and hairstyle, and may also include facial features; the game character's clothing may include hats, tops, pants, shoes, skirts, etc.; the game scene components may include blocks, rings, truncated cones, conveyor belts, etc.
[0044] Currently, players can also draw graphics directly without selecting any effect display objects.
[0045] Step S108: Determine if 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 if the drawing effect has no pre-set effect display object, and save the drawing effect according to the 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 shape within that triangle area. In addition, when an effect display object is set in advance, the shape of the effect display object can be indicated in the drawing area, thereby guiding the player to draw according to the shape of the object when drawing.
[0047] If no effect display object is set, the drawing effect can be saved according to the 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 or a rhombus.
[0048] Furthermore, as can be seen from the foregoing embodiments, the drawing effect may be the same as or different from the aforementioned drawing graphic. When saving the drawing effect, either the data of the drawing effect itself or the drawing graphic can be saved. When the drawing effect needs to be displayed, it can be generated based on the drawing graphic. 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 smaller, the drawing graphic is saved; if the data volume of the drawing effect is smaller, the drawing effect is saved.
[0049] The interactive control method of the aforementioned game provides a graphical user interface through a terminal device. In response to a drawing trigger command, a drawing area and a preview area are displayed on the graphical user interface. In response to a drawing operation on the drawing area, a target drawing tool is determined, and a drawing graphic is generated on the drawing area using the target drawing tool. The corresponding drawing effect is then displayed in the preview area. The target drawing tool is used to: control specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines. In response to a save operation on the drawing effect, it is determined whether the drawing effect has a pre-set effect display object; the effect display object includes at least one of: game character face, game character clothing, and game scene components. If the drawing effect has a pre-set effect display object, the drawing effect is saved according to the object shape of the effect display object; or, if the drawing effect does not have a pre-set effect display object, the drawing effect is saved according to a preset shape.
[0050] This method allows players to draw effects based on specific objects or draw effects directly. The drawn effects can be applied to various objects such as character faces, clothing, and scene components, enriching the types of objects that can be drawn and meeting players' personalized customization needs.
[0051] In one specific implementation, in response to an object selection operation on the effect display object, an object editing control for the selected effect display object is provided in the graphical user interface; in response to a trigger operation on the object editing control, a drawing trigger instruction is generated, and the drawing area and preview area for the effect display object are displayed in the graphical user interface.
[0052] The graphical user interface can provide multiple alternative effect display objects. When an object selection operation is performed on one of the effect display objects, such as when a click operation is performed on the effect display object, the graphical user interface displays the object editing control for that effect display object.
[0053] If the object to be displayed includes multiple object types, you need to select the object type, or you can leave it as is and use the system's default object type. For example, if the object to be displayed is a hat, the hat can include various types such as a bucket hat and a baseball cap. Different types may correspond to different shapes, and players can choose one of them. After selecting the object type, the object editing control will be displayed.
[0054] Once the object editing control is triggered, the graphical user interface switches to the drawing window, which provides a drawing area and a preview area for the object to be displayed for this effect.
[0055] Specifically, the drawing area includes at least the drawing effective area, the shape of which matches the shape of the object being displayed; the drawing effective area is used to respond to drawing operations.
[0056] exist Figure 2 In the example, the drawing area is a rectangle. Taking the top as an example, the shape of the area where the drawing is effective is similar to the outline of the top. In addition to the effective drawing area, the drawing area also includes an ineffective area. When a drawing operation is applied to the effective drawing area, the drawing graphic corresponding to the drawing operation is displayed. When a drawing operation is applied to an ineffective area, the drawing operation is not responded to, that is, the drawing graphic corresponding to the drawing operation is not displayed in the ineffective area.
[0057] By setting the drawing effective area, players can draw shapes that match the shape of the object being displayed, improving the convenience and efficiency of the drawing operation.
[0058] Furthermore, the aforementioned preview area includes: a planar preview sub-area; the planar 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 onto the object model of the effect display object.
[0059] The preview area can include only a planar preview sub-area, only an object preview sub-area, or both a planar preview sub-area and an object preview sub-area. The planar preview sub-area displays a two-dimensional image of the drawn graphics, i.e., the texture drawing effect, which can be rendered onto the object model of the effect display model.
[0060] The object preview sub-area includes the object model of the object to be displayed. The drawing effect is directly rendered to the specified part of the object model; for example, if the object to be displayed is a top, the drawing effect will be rendered on the front chest area of the object model.
[0061] This method can display the drawing effect of the graphics in real time in multiple 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 displaying the drawing effect in the game character's clothing is relatively large, in order to perform more detailed drawing, the game character's clothing can be divided into multiple parts. For example, when the game character is wearing a top, the clothing parts are divided into the left sleeve, right sleeve, and chest; when the game character is wearing pants, the clothing parts are divided into the left leg and right leg.
[0063] Determine the first selected clothing part of the game character's outfit; provide a drawing area in the drawing region that matches the shape of the first clothing part.
[0064] Clothing parts can be selected using controls, such as... Figure 3 In the example, when the 'left sleeve' control is triggered, a window or list can be generated to display the candidate clothing parts in the character's outfit; the 'left sleeve' control displaying 'left sleeve' can be understood as the currently selected first clothing part being the left sleeve. Correspondingly, the shape of the drawing area matches the shape of the first clothing part; for example... Figure 3 In the middle, the shape of the area to be drawn is similar to that of the left sleeve. When the first clothing part is changed to another clothing part, the shape of the area to be drawn changes accordingly.
[0065] This method allows players to draw various parts of their game character's clothing in greater detail, improving the drawing quality and overall effect, and resulting in a higher degree of personalization for custom drawings.
[0066] Furthermore, in response to the part switching operation, alternative clothing parts are displayed; in response to the copy operation of the drawing effect of the first clothing part, copy parameters are determined, and the drawing effect of the first clothing part is copied to the second clothing part among the alternative clothing parts according to the copy parameters; wherein, the copy parameters include: mirror copy or translation copy.
[0067] This part switching operation can be triggered, such as Figure 3 The 'left sleeve' control can also be triggered via a preset shortcut key. By selecting an alternative clothing part, the first clothing part can be switched, and the shape of the drawing area in the drawing area will change accordingly.
[0068] Since the drawing effect of the first clothing part has already been obtained, when displaying alternative clothing parts, the drawing effect of the first clothing part can be copied to other parts; for example, when the two clothing parts have the same shape or are symmetrical, the drawing effect can be copied.
[0069] like Figure 4 In the image, the first part of the clothing is the left sleeve, and the right sleeve is symmetrical in shape to the left sleeve. Therefore, the drawing effect of the left sleeve can be copied to the right sleeve. The copy parameters are used to indicate the copying method, such as mirror copy, translation copy, zoom copy, zoom copy, etc. Before triggering the copy operation, you can select the copy parameters 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 parameters of the copy operation include the part identifier of the second clothing part, so the drawing effect of the first clothing part can be copied to the second clothing part. Figure 4 In the middle, the area displaying the drawing effect corresponding to the "right sleeve" shows the same or symmetrical drawing effect as the "left sleeve".
[0071] The above method allows you to switch between different clothing parts of a game character, draw each clothing part separately to obtain the drawing effect, or edit the drawing effect of clothing parts by copying, thus improving drawing efficiency.
[0072] Furthermore, the graphical user interface described above also provides alternative drawing tools; in response to a tool type selection operation for alternative drawing tools, it determines the target tool type; 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, it generates the target drawing tool corresponding to the target tool type based on the set tool parameters.
[0073] For reference Figure 3 Each tool type has a corresponding control: the brush tool corresponds to the 'brush' control, the specified graphic drawing tool corresponds to the 'graphic' control, and the color fill tool corresponds to the 'fill' control. Each tool type has corresponding tool parameters; after selecting a target tool type, the target tool type can have its default tool parameters preset. If the aforementioned tool parameter setting operation is not performed, the target drawing tool will be 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 parameter for this brush tool can be thin lines; players can choose medium lines or thick lines by performing the aforementioned tool parameter settings.
[0075] Specifically, in response to the tool parameter setting operation for the brush tool, the line thickness parameters of the brush tool are determined, and a brush tool corresponding to the line thickness parameters is generated. For example, by triggering the 'brush' control, the parameter setting window of the brush tool can be displayed. This parameter setting window can provide multiple alternative line thickness parameters, such as thin line, medium line, and thick line. The line thickness parameters can also be adjusted through data input boxes or data axes, allowing for more precise control over the line thickness.
[0076] In response to a tool parameter setting operation for a specified drawing tool, the tool parameters for the specified drawing tool are determined, and the specified drawing tool corresponding to the tool parameters is generated; wherein, the tool parameters include: specifying the shape and / or size of the drawing tool.
[0077] For example, by triggering the 'Graphics' control, a parameter settings window for the specified graphics drawing tool can be displayed. This window provides multiple alternative graphic shapes, such as stars, hearts, teardrops, and bubbles. For each graphic shape, the size can be adjusted. The graphic size can include multiple alternative sizes, such as small, medium, and large, or the size parameters can be entered through data input boxes or data axes.
[0078] In one specific implementation, in response to a trigger operation targeting the drawing area, the target drawing tool is determined to be a brush tool, and a drawing line is generated based on the operation trajectory of the trigger operation, the line thickness parameters of the brush tool, and the 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 offers a variety of alternative colors, and players can perform trigger actions on these colors, such as clicking, with the clicked color becoming the target color. Players can also choose not to select a color, using the default color as the target color.
[0080] The shape of the drawn line typically matches the trajectory of the operation that triggered it; for example, if the trajectory is a straight line, the line shape is also a straight line; if the trajectory 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 lines can be generated directly on the operation trajectory, that is, the drawing lines are generated in real time along the operation trajectory.
[0082] Furthermore, the aforementioned drawing area includes multiple drawing pixels arranged in a preset order; based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the target drawing pixel that the brush tool passes through is determined; the target drawing pixel is filled with the currently selected target color to obtain the drawing line.
[0083] The drawing area can be a matrix of pixels arranged in rows and columns, in which case the pixels are rectangular, with one side of adjacent pixels overlapping; or the pixels can be hexagonal, with each pixel closely packed and one side of adjacent pixels overlapping. When a trigger operation is performed, the operation point passes through the pixels being drawn. The target pixels that the brush tool passes through typically include those passed by the operation point. When the line thickness parameter indicates a thicker line, the target pixels also include the surrounding pixels of those passed by the operation point; that is, the drawing line composed of target pixels includes the pixels traversed by the operation trajectory, as well as the surrounding pixels of those passed by the operation point. After the target pixels are determined, they are filled with the target color.
[0084] In other methods, the drawing pixels are pixel regions with a preset area size; based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the drawing pixels that the brush tool passes through at least part of the pixel region are determined as target drawing pixels; or, based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the drawing pixels that the brush tool passes through in a pixel region 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.
[0085] For example, when drawing a pixel as a rectangle, the pixel area has a specified length and width; when drawing a pixel as a regular hexagon, the pixel area has a specified side length. Because the brush tool has a certain line thickness, the brush tool may pass through the entire area of the drawn pixel, or it may pass through a partial area of the drawn pixel. For example, the brush may pass through only half of the area of a certain drawn pixel.
[0086] When determining the target drawing pixel, the first method is to determine the drawing pixel as the target drawing pixel as long as the drawing tool passes through it, regardless of the size of the pixel area passed through by the drawing tool; the second method is to pre-set a first area size, and for the drawing pixels passed through by the drawing tool, compare whether the pixel area passed through by the drawing tool is larger than the first area size. Only drawing pixels that are larger than the first area size are determined as target drawing pixels.
[0087] Understandably, the first method identifies more target pixels, and at the bends of the lines, smaller pixels in the area the brush passes through will also be identified as target pixels, resulting in smoother lines. In contrast, the second method identifies fewer target pixels, and at the bends of the lines, smaller pixels in the area the brush passes through will not be identified as target pixels, resulting in sharper bends in the lines.
[0088] Players can choose the drawing method for the target pixels according to their needs, so that the line flow meets the player's custom requirements and drawing style.
[0089] In one approach, in response to a trigger operation targeting the drawing area, the target drawing tool is determined to be a specified graphic drawing tool, and a specified graphic is generated based on the operation position of the trigger operation, the graphic tool parameters of the specified graphic drawing tool, and the currently selected target color.
[0090] For a specified graphic drawing tool, the aforementioned triggering operation can be a click operation, where the touch point of the click operation is used as the center of the specified graphic, thereby generating the specified graphic; the shape and size of the specified graphic are affected by the parameters of the graphic tool, and the color of the specified graphic is the currently selected target color; in addition, the triggering operation can also be a sliding operation, where multiple specified graphics are continuously triggered with the sliding trajectory of the sliding operation as the center line.
[0091] In response to a trigger operation targeting the drawing area, if the target drawing tool is determined to be a color fill tool, the currently selected target color is filled into the fill area corresponding to the location of the trigger operation. For the color fill tool, the trigger operation can be a click operation or a swipe operation, etc.; if the trigger operation is located within a closed shape, the fill area corresponding to the location of the trigger operation is the area within that shape; if the trigger operation is not located within a closed shape, the edge of the fill area can consist of the drawn lines and the edge of the area where the drawing takes effect.
[0092] After the trigger operation is executed, the connected regions where the trigger operation is located are all used as fill regions and filled with the target color.
[0093] The following examples provide a color selection method.
[0094] The graphical user interface also provides alternative colors; in response to a selection action on an alternative color, the selected alternative color is determined as the currently selected target color. (Reference) Figure 3 The graphical user interface provides four alternative colors. By clicking on 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 colors, the system can select an alternative color by default as the target color.
[0095] Specifically, in response to a specified trigger operation for a candidate color, the target color to be triggered is determined, and the color editing area for the target color is displayed; in response to an editing operation for the color editing area, the target editing parameters are determined, and the target color is updated based on the target editing parameters.
[0096] This specified trigger operation differs from the aforementioned selection operation for alternative colors. When the selection operation is a click operation, the specified 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, color saturation adjustment controls, color value setting controls, etc. When performing editing operations, you can select a color by choosing a color from the color palette or setting a color value. By adjusting the color saturation adjustment controls, you can adjust the saturation of the selected color to obtain the final target color.
[0097] Another implementation involves responding to a color-picking trigger operation for the candidate colors and displaying a color picker control in the drawing area. The color picker control indicates the currently selected first position and the first color within that first position. The currently selected target color is then updated to the first color.
[0098] This color picker control is used to select a color from the drawing area, updating the currently selected target color. This target color is also saved as a candidate color. The color picker trigger operation can be implemented by activating the color picker trigger control. When the color picker trigger operation is executed, the first position indicated by the color picker control can be a specified position in the drawing area, such as the center position; and the first color at that center position is displayed through the color picker control. At this time, the first color is saved. If the color picker control is then deactivated, the target color is updated to the first color; the target color in the candidate colors displayed in the graphical user interface is also updated to the first color.
[0099] Of course, players can also adjust the first color by adjusting the first position indicated by the color picker control. Specifically, the color picker control has a specified control display area and a position selection indicator, with the position selection indicator indicating the first position; based on the first position, a specified sub-region is determined within the drawing area; and the drawn pixels within the specified sub-region are enlarged and displayed in the control display area.
[0100] The display area of this control usually has a preset shape, such as a circle, an ellipse, or a rectangle; the position selection indicator can be a dot or a ring; the current position indicator can be displayed in the center of the control display area or in other positions; the position where the position selection indicator is located is the first position.
[0101] refer to Figure 5The pixels drawn within the control's display area are magnified, making their colors clearer and facilitating player operation. Typically, a specified number of pixels surrounding the pixel where the position selection marker is located form the designated sub-region; the pixels within this sub-region are then magnified and displayed within the control's display area.
[0102] Furthermore, the first edge of the color picker control displays the first color, and the second edge displays the target color. The first edge is the first edge of the control's display area, and the second edge is the second edge of the control's display area. The control edges of the color picker control can be divided into multiple parts, for example... Figure 5 In the color picker control, the upper half of the color picker control is the edge of the first control, and the first color is displayed on the edge of the first control; the lower half of the color picker control is the edge of the second control, and the target color is displayed on the edge of the second control.
[0103] When the location indicated by the location selection icon changes, the first color may change accordingly; the target color remains unchanged.
[0104] There are multiple ways to operate the color picker control. In one way, in response to a first trigger operation applied to the control's display area, the selection marker moves from a first position to a second position according to the movement control position of the first trigger operation, and the color at the second position is displayed through the color picker control.
[0105] The first trigger operation can be applied to any location within the control's display area, such as the location indicated by the location selection icon or other locations. After the first trigger operation is executed, the position of the location selection icon changes, and the position of the color picker control also changes accordingly.
[0106] Specifically, the operation position of the first trigger operation is different from the position indicated by the position selection icon; at this time, the operation position of the first trigger operation is a position other than the position indicated by the position selection icon; since the operation position is usually the position of the player's finger, in order to avoid the position indicated by the position selection icon being obscured by the finger, the operation position is a position other than the position indicated by the position selection icon during the execution of the first trigger operation; at the beginning of the execution of the first trigger operation, if the operation position is not the position indicated by the position selection icon, the relative position between the operation position and the position display icon remains unchanged; if the operation position is the position indicated by the position selection icon, the position selection icon and the operation position can be controlled to have a certain positional offset, so that the operation position and the position selection icon are misaligned, avoiding the finger on the operation position from obscuring the position selection icon.
[0107] Meanwhile, during the execution of the first trigger operation, the relative position of the position selection indicator and the touch point position remains unchanged. The position of the trigger point and the position selection indicator remain constant throughout the movement of the trigger point in the first trigger operation. For example, the distance between the trigger point and the position indicator when the first trigger operation is initially performed within the control's display area is the same as the distance between the trigger point's position when it leaves the screen at the end of the first trigger operation and the final position of the position selection indicator.
[0108] In actual implementation, in response to a long press operation applied to the control display area, and a sliding operation that follows the long press operation, the position selection indicator moves to a second position following the operation touch point of the sliding operation; wherein, during the movement of the position selection indicator, the indicated position of the position selection indicator is different from the touch point position.
[0109] After a long press is performed on the control's display area, the position selection indicator enters a state that follows the operation touch point. When a swipe operation is performed, the position selection indicator follows the operation touch point; at the same time, the color picker control as a whole follows the operation touch point.
[0110] When the touch point moves to the second position and the sliding operation ends, the position selection indicator stays in the second position, and the color of the second position is saved. During the sliding operation, the position indicated by the position selection indicator is different from the touch point position, and the relative position between the position indicated by the position selection indicator and the touch point position remains unchanged, so that the player can control the movement of the position selection indicator by sliding operation.
[0111] During the sliding operation, the position indicated by the selection marker changes continuously, and therefore, the first color displayed on the color picker also changes continuously. When the selection marker 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 that acts outside the control display area, the control position selection marker moves from a 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 a color picker control.
[0113] The second trigger operation here is different from the first trigger operation mentioned above. The second trigger operation can be applied to any position outside the control display area. Considering that the drawn pixels outside the control display area are not enlarged and the pixel size is small, after executing the second trigger operation, the position selection mark moves to a third position 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 indicator moves to the third position, the color picker control moves accordingly, and the first color displayed on the color picker control is the color at the third position.
[0115] In practice, in response to clicks outside the control's display area, the position selection indicator switches from the first position to a third position determined by the click's location. When a player clicks any location outside the control's display area, the position selection indicator directly switches from the first position to the third position.
[0116] When the color at the selected position in the color picker is the desired color, the player can trigger a specified control to de-display the color picker. This specified control can be a brush control, a color picker trigger control, etc. In response to the trigger operation on the specified control, the color picker is de-displayed. After the color picker is de-displayed, the color at the selected position is updated to the target color, and the target color in the candidate colors is also updated to the color at the selected position.
[0117] Using the above method, players can easily select colors from the drawing area using the color picker control, without having to reset the colors.
[0118] In one implementation, in response to an image import operation, a target image is determined and displayed in the drawing area. Besides drawing graphics using drawing tools, a target image can also be imported and used as part of the drawn graphic.
[0119] Specifically, the system controls the target image to be displayed in an editable state; responds to editing operations on the target image and updates the display mode of the target image based on the editing operations; these editing operations can include zooming in, zooming out, rotating, mirroring, etc.; when an editing operation is performed, the target image changes accordingly; for example, when a zooming operation is performed, the size of the area occupied by the target image in the drawing area increases. Responding to an editing completion operation on the target image, the system controls the target image to be displayed in a non-editable state. This editing completion operation can trigger an area outside the target image in the drawing area, or it can trigger any control in the image's user interface. After the editing completion 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. This drawing graphic data includes: pixel position information of the drawn pixels with fill color, the fill color of the drawn pixels, and a shape identifier indicating the shape of the drawing effect. The pixel position information can specifically be the pixel coordinates of the drawn pixels. When an effect display object is preset, the shape identifier in the drawing graphic data can specifically be the object identifier of that effect display object, or the identifier of the object's shape. When no effect display object is 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 rectangle.
[0121] In response to a drawing effect display command for drawing graphics data, generate a drawing graphic based on the drawing graphics data; perform specified image processing on the drawing graphic to obtain a drawing effect texture; and render the drawing effect texture onto the object model of the effect display object.
[0122] Based on the pixel position information and fill color in the drawing data, the pixels in the drawing area are filled with color. Then, the drawing area is cropped to the shape indicated by the shape identifier to obtain the final drawn graphic. Since the number of pixels in the drawn graphic is relatively low, interpolation and filtering are also required to obtain a high-pixel-count drawing effect texture. Compared to the drawn graphic, the graphics in the drawing effect texture are smoother. Then, based on the mapping relationship between the texture and the model, the drawing effect texture is mapped onto 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 identifier are preserved. When the drawing effect is displayed in advance, the drawing graphic data is processed to obtain a smoother drawing effect. This method can significantly reduce the amount of data and save storage space.
[0124] In other methods, in response to an application operation that saves a drawing effect according to a preset shape, the effect display object is determined, and the drawing effect is rendered onto the effect display object.
[0125] If the player does not pre-set the effect display object, the drawing effect will be saved according to the preset shape; this 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 pixels with fill color, the fill color of the drawing pixels, 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 pixels, the drawing graphic of the preset shape is generated.
[0126] Then, the drawing effect is cropped according to the shape of the effect display object; the cropped drawing effect is then rendered onto the effect display object. In actual implementation, a mask corresponding to the shape of the effect display object can be generated. The player controls the position of this mask on the drawing graphic to determine the specific cropping area; the cropped drawing graphic matches the shape of the effect display object; interpolation, filtering, and other processing are performed on the cropped drawing graphic to obtain a high-resolution drawing effect texture. Then, based on the mapping relationship between the texture and the model, the drawing effect texture is mapped onto the object model to realize the display of the drawing effect.
[0127] See Figure 6 The diagram illustrates an interactive control device for a game, which provides a graphical user interface via a terminal device. The device includes:
[0128] The drawing trigger module 60 is used to display the drawing area and preview area in the graphical user interface in response to the drawing trigger command;
[0129] The graphics generation module 62 is used to respond to drawing operations on the drawing area, determine the target drawing tool, generate a drawing graphic in the drawing area using the target drawing tool, and display the drawing effect corresponding to the drawing graphic in the preview area; wherein, the target drawing tool is used to: control specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines;
[0130] The judgment module 64 is used to respond to the save operation for the drawing effect and determine whether the drawing effect has a pre-set effect display object; wherein, the effect display object includes at least one of the following: game character face, game character clothing and game scene components;
[0131] The save module 66 is used to determine whether 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 the drawing effect has no pre-set effect display object, save the drawing effect according to the default shape.
[0132] The interactive control device of the aforementioned game provides a graphical user interface through a terminal device. In response to a drawing trigger command, it displays a drawing area and a preview area on the graphical user interface. In response to a drawing operation on the drawing area, it determines a target drawing tool, generates a drawing graphic on the drawing area using the target drawing tool, and displays the corresponding drawing effect in the preview area. The target drawing tool is used to: control specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines. In response to a save operation on the drawing effect, it determines whether the drawing effect has a pre-set effect display object; the effect display object includes at least one of: game character face, game character clothing, and game scene components. If the drawing effect has a pre-set effect display object, it saves the drawing effect according to the object shape of the effect display object; or, if the drawing effect does not have a pre-set effect display object, it saves the drawing effect according to a preset shape.
[0133] This method allows players to draw effects based on specific objects or draw effects directly. The drawn effects can be applied to various objects such as character faces, clothing, and scene components, enriching the types of objects that can be drawn and meeting players' personalized customization needs.
[0134] The aforementioned device also includes a rendering module, used to: respond to an application operation on a drawing effect saved according to a preset shape, determine the effect display object, and render the drawing effect onto the effect display object.
[0135] The rendering module described above is used to: crop the drawing effect according to the shape of the object to be displayed; and render the cropped drawing effect onto the object to be displayed.
[0136] The drawing trigger module described above is used to: respond to object selection operations for the effect display object, and provide an object editing control for the selected effect display object in the graphical user interface; respond to trigger operations for the object editing control, generate drawing trigger instructions, and display the drawing area and preview area for the effect display object in the graphical user interface.
[0137] The drawing area mentioned above includes at least the drawing effective area, the shape of which matches the object shape of the effect display object; the drawing effective area is used to respond to drawing operations.
[0138] The aforementioned preview area includes: a planar preview sub-area; the planar 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 onto the object model of the effect display object.
[0139] The aforementioned device also includes a part switching module, used to: determine the currently selected first clothing part in the game character's attire; and provide a drawing area in the drawing area that matches the shape of the first clothing part.
[0140] The aforementioned device further includes a copying module, configured to: display alternative clothing parts in response to a part switching operation; determine copying parameters in response to a copying operation of the drawing effect of the first clothing part, and copy the drawing effect of the first clothing part to the second clothing part among the alternative clothing parts according to the copying parameters; wherein the copying parameters include: mirror copying or translation copying.
[0141] The graphical user interface described above also provides alternative drawing tools; the device further includes: a tool setting module, used to determine the target tool type in response to a tool type selection operation for alternative drawing tools; wherein the target tool type includes: a brush tool, a specified graphic drawing tool, or a color fill tool; and in response to a tool parameter setting operation for the target tool type, to generate a target drawing tool corresponding to the target tool type based on the set tool parameters.
[0142] The aforementioned tool setting module is used to: respond to tool parameter setting operations for a brush tool, determine the line thickness parameters of the brush tool, and generate a brush tool corresponding to the line thickness parameters; respond to tool parameter setting operations for a specified graphic drawing tool, determine the graphic tool parameters of the specified graphic drawing tool, and generate a 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 aforementioned graphic generation module is used to: respond to a trigger operation on the drawing area, determine the target drawing tool as a brush tool, and generate drawing lines based on the operation trajectory of the trigger operation, the line thickness parameters of the brush tool, and the currently selected target color.
[0144] The aforementioned graphic generation module is used to: determine the target drawing pixels that the brush tool passes through based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool; and fill the target drawing pixels with the currently selected target color to obtain the drawn lines.
[0145] The aforementioned graphics generation module is used to: determine the pixels drawn by the brush tool through at least a portion of the pixel area as target pixels based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool; or, determine the pixels drawn by the brush tool through a pixel area larger than the size of a first region as target pixels based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool; wherein the size of the first region is less than or equal to the size of a preset region.
[0146] The aforementioned graphic generation module is used to: respond to a trigger operation targeting the drawing area, determine the target drawing tool as the specified graphic drawing tool, and generate the specified graphic based on the operation position of the trigger operation, the graphic tool parameters of the specified graphic drawing tool, and the currently selected target color.
[0147] The aforementioned graphic generation module is used to: respond to a trigger operation targeting a drawing area, determine that the target drawing tool is a color fill tool, and fill the currently selected target color in the fill area belonging to the operation position of the trigger operation.
[0148] The graphical user interface described above also provides alternative colors; the device also includes a color selection module for: in response to a selection operation for alternative colors, determining the selected alternative color as the currently selected target color.
[0149] The aforementioned device also includes a color editing module, used to: respond to a specified trigger operation for a candidate 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 aforementioned device also includes a color picking module, used to: respond to a color picking trigger operation for a candidate color, 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 aforementioned color picker control has a specified control display area and a position selection indicator, the position selection indicator indicating a first position; the aforementioned device also includes a magnification module, used to: determine a specified sub-region in the drawing area based on the first position; and magnify and display the drawn pixels based on the specified sub-region in the control display area.
[0152] The first edge of the color picker control displays the first color, and the second edge of the color picker 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 aforementioned device further includes a first color-picking control module, used to: respond to a first trigger operation applied to the control display area, move the selection marker 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 location of the first trigger operation is different from the location indicated by the location selection marker.
[0156] The aforementioned first color selection control module is used to: respond to a long press operation applied to the control display area, and a sliding operation that is continuous with the long press operation, and control the position selection mark to move to the second position following the sliding operation.
[0157] The aforementioned device further includes a second color-picking control module, used to: respond to a second trigger operation acting outside the control display area, control the position selection marker to move from a 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 aforementioned second color selection control module is used to: respond to a click operation performed outside the control display area, and control the position selection indicator to switch from the first position to a third position determined according to the operation position of the click operation.
[0159] The aforementioned device also includes a cancellation control module, used to: cancel the display of the color picker control in response to a trigger operation targeting a specified control.
[0160] The aforementioned device also includes an image import module, used to: determine a target image in response to an image import operation, and display the target image in the drawing area.
[0161] The aforementioned device further includes an image editing module, configured to: control the display of a target image in an editable state; update the display mode of the target image based on the editing operation in response to an editing operation on the target image; and control the display of the target image in a non-editable state in response to an editing end operation on the target image.
[0162] The aforementioned saving module is used to: save the drawn graphic data; wherein, the drawn graphic data includes: pixel position information of the drawn pixels with fill color, fill color of the drawn pixels, and shape identifier of the shape indicating the drawing effect.
[0163] The aforementioned device also includes an effect display module, 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 texture; and render the drawing effect texture onto the object model of the effect display object.
[0164] This embodiment also provides an electronic device, including a processor and a memory. The memory stores computer-executable instructions that can be executed by the processor. The processor executes the computer-executable instructions to implement the interactive control method of the game described above. This electronic device can be a server or a terminal device.
[0165] See Figure 7As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores computer-executable instructions that can be executed by the processor 100. The processor 100 executes the computer-executable instructions to implement the interactive control method of the game described above.
[0166] Furthermore, Figure 7 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0167] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0168] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may 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 gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0169] The processor in the aforementioned electronic device, by executing computer-executable instructions, can implement the following operations in the interactive control method of the aforementioned game:
[0170] A game interaction control method provides a graphical user interface (GUI) via a terminal device. In response to a drawing trigger command, the GUI displays a drawing area and a preview area. In response to a drawing operation on the drawing area, a target drawing tool is determined, and a drawing graphic is generated on the drawing area using the target drawing tool. The corresponding drawing effect is then displayed in the preview area. The target drawing tool is used to: control specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines. In response to a save operation on the drawing effect, it is determined whether the drawing effect has a pre-set effect display object; the effect display object includes at least one of: a game character's face, a game character's clothing, and game scene components. If the drawing effect has a pre-set effect display object, the drawing effect is saved according to the object shape of the effect display object; or, if the drawing effect does not have a pre-set effect display object, the drawing effect is saved according to a preset shape.
[0171] In response to an application operation that saves a drawing effect according to a preset shape, determine the object to be displayed and render the drawing effect onto the object to be displayed.
[0172] The drawing effect is cropped according to the shape of the object being displayed; the cropped drawing effect is then rendered onto the object being displayed.
[0173] In response to object selection operations on the effect display object, provide an object editing control for the selected effect display object in the graphical user interface; in response to trigger operations on the object editing control, generate drawing trigger instructions and display the drawing area and preview area for the effect display object in the graphical user interface.
[0174] The drawing area includes at least the drawing effective area, the shape of which matches the shape of the object being displayed; the drawing effective area is used to respond to drawing operations.
[0175] The preview area includes: a planar preview sub-area; the planar 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 onto the object model of the effect display object.
[0176] Determine the first selected clothing part of the game character's outfit; provide a drawing area in the drawing region 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 of the drawing effect of the first clothing part, the copy parameters are determined, and the drawing effect of the first clothing part is copied to the second clothing part among the alternative clothing parts according to the copy parameters; wherein, the copy parameters include: mirror copy or translation copy.
[0178] The graphical user interface also provides alternative drawing tools; in response to the tool type selection operation for the alternative drawing tools, it determines the target tool type; wherein, the target tool type includes: brush tool, specified graphic drawing tool or color fill tool; in response to the tool parameter setting operation for the target tool type, it generates the target drawing tool corresponding to the target tool type based on the set tool parameters.
[0179] In response to a tool parameter setting operation for a brush tool, the tool determines the line thickness parameters of the brush tool and generates a brush tool corresponding to the line thickness parameters; in response to a tool parameter setting operation for a specified graphic drawing tool, the tool parameters of the specified graphic drawing tool are determined and a specified graphic drawing tool corresponding to the tool parameters are generated; wherein, the graphic tool parameters include: specifying the graphic shape and / or graphic size.
[0180] In response to a trigger operation targeting the drawing area, the target drawing tool is determined to be a brush tool. Based on the operation trajectory of the trigger operation, the line thickness parameters of the brush tool, and the currently selected target color, a drawing line is generated.
[0181] The drawing area includes multiple drawing pixels arranged in a preset order; based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the target drawing pixels that the brush tool passes through are determined; the target drawing pixels are filled with the currently selected target color to obtain the drawn lines.
[0182] The drawing pixel has a pixel area with a preset area size; based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the drawing pixels that the brush tool passes through at least part of the pixel area are determined as target drawing pixels; or, based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the drawing pixels that the brush tool passes through in a pixel area 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 targeting the drawing area, the target drawing tool is determined to be the specified drawing tool. Based on the location of the trigger operation, the drawing tool parameters of the specified drawing tool, and the currently selected target color, the specified graphic is generated.
[0184] In response to a trigger operation targeting the drawing area, if the target drawing tool is determined to be a color fill tool, the currently selected target color is filled into the fill area corresponding to the location of the trigger operation.
[0185] The graphical user interface also provides alternative color responses to the selection of alternative colors, determining the selected alternative color as the currently selected target color.
[0186] In response to a specified trigger operation for a candidate color, determine the target color to be triggered and display the color editing area for the target color; in response to an editing operation for the color editing area, determine the target editing parameters and update the target color based on the target editing parameters.
[0187] In response to a color picker trigger operation for the candidate colors, a color picker control is displayed in the drawing area; the color picker control is used to indicate: the currently selected first position, and the first color in the first position; the currently selected target color is updated to the first color.
[0188] The color picker control has a specified control display area and a position selection indicator, with the position selection indicator indicating a first position; based on the first position, a specified sub-region is determined in the drawing area; and the drawn pixels based on the specified sub-region are enlarged and displayed in the control display area.
[0189] The first edge of the color picker control displays the first color, and the second edge of the color picker 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 selected marker is moved from the first position to the second position according to the movement control position of the first trigger operation; the color at the second position is displayed through a color picker control.
[0192] The location of the first trigger operation is different from the location indicated by the location selection icon.
[0193] In response to a long press operation applied to the control display area, and a sliding operation that follows the long press operation, the control position selection indicator moves to a second position following the operation touch point of the sliding operation.
[0194] In response to a second trigger operation that acts outside the control display area, the control position selection marker moves from a 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 a color picker control.
[0195] In response to a click operation outside the control's display area, the control position selection indicator switches from the first position to the third position determined by the click operation's location.
[0196] In response to a trigger action on the specified control, disable the display of the color picker control.
[0197] In response to an image import operation, the target image is determined and displayed in the drawing area.
[0198] Control the target image to be displayed in an editable state; respond to editing operations on the target image and update the display mode of the target image based on the editing operations; respond to editing end operations on the target image and control the target image to be displayed in a non-editable state.
[0199] Save the drawing data; wherein, the drawing data includes: pixel position information of the drawing pixels with fill color, fill color of the drawing pixels, and shape identifier of the shape indicating the drawing effect.
[0200] Responding to drawing effect display commands for drawing graphics data, generating a drawing graphic based on the drawing graphics data; performing specified image processing on the drawing graphic to obtain a drawing effect texture;
[0201] The effect texture is rendered onto the object model of the effect display object.
[0202] This method allows players to draw effects based on specific objects or draw effects directly. The drawn effects can be applied to various objects such as character faces, clothing, and scene components, enriching the types of objects that can be drawn and meeting players' personalized customization needs.
[0203] This embodiment also provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the interactive control method of the above-mentioned game.
[0204] The computer-executable instructions stored in the aforementioned computer-readable storage medium can, by executing the aforementioned computer-executable instructions, perform the following operations in the interactive control method of the game:
[0205] A game interaction control method provides a graphical user interface (GUI) via a terminal device. In response to a drawing trigger command, the GUI displays a drawing area and a preview area. In response to a drawing operation on the drawing area, a target drawing tool is determined, and a drawing graphic is generated on the drawing area using the target drawing tool. The corresponding drawing effect is then displayed in the preview area. The target drawing tool is used to: control specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines. In response to a save operation on the drawing effect, it is determined whether the drawing effect has a pre-set effect display object; the effect display object includes at least one of: a game character's face, a game character's clothing, and game scene components. If the drawing effect has a pre-set effect display object, the drawing effect is saved according to the object shape of the effect display object; or, if the drawing effect does not have a pre-set effect display object, the drawing effect is saved according to a preset shape.
[0206] In response to an application operation that saves a drawing effect according to a preset shape, determine the object to be displayed and render the drawing effect onto the object to be displayed.
[0207] The drawing effect is cropped according to the shape of the object being displayed; the cropped drawing effect is then rendered onto the object being displayed.
[0208] In response to object selection operations on the effect display object, provide an object editing control for the selected effect display object in the graphical user interface; in response to trigger operations on the object editing control, generate drawing trigger instructions and display the drawing area and preview area for the effect display object in the graphical user interface.
[0209] The drawing area includes at least the drawing effective area, the shape of which matches the shape of the object being displayed; the drawing effective area is used to respond to drawing operations.
[0210] The preview area includes: a planar preview sub-area; the planar 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 onto the object model of the effect display object.
[0211] Determine the first selected clothing part of the game character's outfit; provide a drawing area in the drawing region 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 of the drawing effect of the first clothing part, the copy parameters are determined, and the drawing effect of the first clothing part is copied to the second clothing part among the alternative clothing parts according to the copy parameters; wherein, the copy parameters include: mirror copy or translation copy.
[0213] The graphical user interface also provides alternative drawing tools; in response to the tool type selection operation for the alternative drawing tools, it determines the target tool type; wherein, the target tool type includes: brush tool, specified graphic drawing tool or color fill tool; in response to the tool parameter setting operation for the target tool type, it generates the target drawing tool corresponding to the target tool type based on the set tool parameters.
[0214] In response to a tool parameter setting operation for a brush tool, the tool determines the line thickness parameters of the brush tool and generates a brush tool corresponding to the line thickness parameters; in response to a tool parameter setting operation for a specified graphic drawing tool, the tool parameters of the specified graphic drawing tool are determined and a specified graphic drawing tool corresponding to the tool parameters are generated; wherein, the graphic tool parameters include: specifying the graphic shape and / or graphic size.
[0215] In response to a trigger operation targeting the drawing area, the target drawing tool is determined to be a brush tool. Based on the operation trajectory of the trigger operation, the line thickness parameters of the brush tool, and the currently selected target color, a drawing line is generated.
[0216] The drawing area includes multiple drawing pixels arranged in a preset order; based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the target drawing pixels that the brush tool passes through are determined; the target drawing pixels are filled with the currently selected target color to obtain the drawn lines.
[0217] The drawing pixel has a pixel area with a preset area size; based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the drawing pixels that the brush tool passes through at least part of the pixel area are determined as target drawing pixels; or, based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the drawing pixels that the brush tool passes through in a pixel area 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 targeting the drawing area, the target drawing tool is determined to be the specified drawing tool. Based on the location of the trigger operation, the drawing tool parameters of the specified drawing tool, and the currently selected target color, the specified graphic is generated.
[0219] In response to a trigger operation targeting the drawing area, if the target drawing tool is determined to be a color fill tool, the currently selected target color is filled into the fill area corresponding to the location of the trigger operation.
[0220] The graphical user interface also provides alternative color responses to the selection of alternative colors, determining the selected alternative color as the currently selected target color.
[0221] In response to a specified trigger operation for a candidate color, determine the target color to be triggered and display the color editing area for the target color; in response to an editing operation for the color editing area, determine the target editing parameters and update the target color based on the target editing parameters.
[0222] In response to a color picker trigger operation for the candidate colors, a color picker control is displayed in the drawing area; the color picker control is used to indicate: the currently selected first position, and the first color in the first position; the currently selected target color is updated to the first color.
[0223] The color picker control has a specified control display area and a position selection indicator, with the position selection indicator indicating a first position; based on the first position, a specified sub-region is determined in the drawing area; and the drawn pixels based on the specified sub-region are enlarged and displayed in the control display area.
[0224] The first edge of the color picker control displays the first color, and the second edge of the color picker 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 selected marker is moved from the first position to the second position according to the movement control position of the first trigger operation; the color at the second position is displayed through a color picker control.
[0227] The location of the first trigger operation is different from the location indicated by the location selection icon.
[0228] In response to a long press operation applied to the control display area, and a sliding operation that follows the long press operation, the control position selection indicator moves to a second position following the operation touch point of the sliding operation.
[0229] In response to a second trigger operation that acts outside the control display area, the control position selection marker moves from a 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 a color picker control.
[0230] In response to a click operation outside the control's display area, the control position selection indicator switches from the first position to the third position determined by the click operation's location.
[0231] In response to a trigger action on the specified control, disable the display of the color picker control.
[0232] In response to an image import operation, the target image is determined and displayed in the drawing area.
[0233] Control the target image to be displayed in an editable state; respond to editing operations on the target image and update the display mode of the target image based on the editing operations; respond to editing end operations on the target image and control the target image to be displayed in a non-editable state.
[0234] Save the drawing data; wherein, the drawing data includes: pixel position information of the drawing pixels with fill color, fill color of the drawing pixels, and shape identifier of the shape indicating the drawing effect.
[0235] Responding to drawing effect display commands for drawing graphics data, generating a drawing graphic based on the drawing graphics data; performing specified image processing on the drawing graphic to obtain a drawing effect texture;
[0236] The effect texture is rendered onto the object model of the effect display object.
[0237] This method allows players to draw effects based on specific objects or draw effects directly. The drawn effects can be applied to various objects such as character faces, clothing, and scene components, enriching the types of objects that can be drawn and meeting players' personalized customization needs.
[0238] The computer program products of the game interaction control method, device and electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0239] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0240] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0241] If the aforementioned functions are implemented as 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 a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0242] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0243] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for interactive control of a game, characterized in that, The method of providing a graphical user interface via a terminal device includes: In response to a drawing trigger command, the drawing area and preview area are displayed in the graphical user interface; In response to a drawing operation targeting the drawing area, a target drawing tool is determined, a drawing graphic is generated in the drawing area using the target drawing tool, and the drawing effect corresponding to the drawing graphic is displayed in the preview area; wherein, the target drawing tool is used to: control specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines; In response to a save operation for the drawing effect, it is determined whether the drawing effect has a pre-set effect display object; wherein, the effect display object includes at least one of: game character face, game character clothing, and game scene components; The drawing effect is determined to have a pre-set display object, and the drawing effect is saved according to the object shape of the display object; or, the drawing effect is determined not to have a pre-set display object, and the drawing effect is saved according to a preset shape. The step of displaying a drawing area and a preview area in the graphical user interface in response to a drawing trigger command 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 for the object editing control, generating the drawing trigger command, and displaying a drawing area and a preview area for the effect display object in the graphical user interface; The drawing area includes at least a drawing effective area, the shape of which matches the object shape of the effect display object; the drawing effective area is used to respond to the drawing operation.
2. The method according to claim 1, characterized in that, The method further includes: In response to an application operation that saves the drawing effect according to a preset shape, the effect display object is determined, and the drawing effect is rendered onto the effect display object.
3. The method according to claim 2, characterized in that, The step of rendering the drawing effect onto the effect display object includes: Based on the object shape of the object displayed according to the effect, the drawing effect is cropped; The cropped drawing effect is rendered onto the effect display object.
4. The method according to claim 1, characterized in that, The preview area includes a planar preview sub-area; the planar preview sub-area is used to display the texture drawing effect of the drawn 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 the drawn graphic rendered onto the object model of the effect display object.
5. The method according to claim 1, characterized in that, The effect display object includes game character clothing; after the step of displaying the drawing area for the effect display object in the graphical user interface, the method further includes: Determine the first selected clothing part in the game character's outfit; The drawing area provides a drawing area that matches the shape of the first clothing part.
6. The method according to claim 5, characterized in that, The method further includes: In response to the part switching operation, the alternative clothing parts are displayed; In response to a copy operation on the drawing effect of the first clothing part, copy parameters are determined, and the drawing effect of the first clothing part is copied to the second clothing part among the candidate clothing parts according to the copy parameters; wherein, the copy parameters include: mirror copy or translation copy.
7. The method according to claim 1, characterized in that, The graphical user interface also provides alternative drawing tools; The method further includes: In response to a tool type selection operation for the candidate 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 the 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.
8. The method according to claim 7, characterized in that, The step of generating a target drawing tool corresponding to the target tool type based on the set tool parameters in response to a tool parameter setting operation for the target tool type includes at least one of the following: 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: a specified graphic shape and / or graphic size.
9. The method according to claim 1, characterized in that, The steps of responding to a drawing operation on the drawing area, determining a target drawing tool, and generating a drawing graphic on the drawing area using the target drawing tool include: In response to a trigger operation targeting the drawing area, the target drawing tool is determined to be a brush tool. Based on the operation trajectory of the trigger operation, the line thickness parameters of the brush tool, and the currently selected target color, a drawing line is generated.
10. The method according to claim 9, characterized in that, The drawing area includes multiple drawing pixels arranged in a preset order; the step of generating a drawing line based on the operation trajectory of the trigger operation, the line thickness parameters of the brush tool, and the currently selected target color includes: Based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the target drawing pixels that the brush tool passes through are determined; The target drawing pixels are filled with the currently selected target color to obtain the drawn lines.
11. The method according to claim 10, characterized in that, The drawn pixels have a pixel region of a preset area size; The step of determining the target drawing pixels traversed by the brush tool based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool includes: Based on the operation trajectory of the trigger operation and the line thickness parameters of the brush tool, the pixels drawn by the brush tool through at least a portion of the pixel area are determined as the target drawing pixels; Alternatively, based on the operation trajectory of the triggering operation and the line thickness parameters of the brush tool, the pixel area traversed by the brush tool that is larger than the size of the first area is determined as the target drawing pixel; wherein, the size of the first area is less than or equal to the preset area size.
12. The method according to claim 1, characterized in that, The step of generating a drawing graphic in the drawing area using the target drawing tool includes: In response to a trigger operation targeting the drawing area, the target drawing tool is determined to be a specified graphic drawing tool. Based on the operation position of the trigger operation, the graphic tool parameters of the specified graphic drawing tool, and the currently selected target color, a specified graphic is generated.
13. The method according to claim 1, characterized in that, The step of generating a drawing graphic in the drawing area using the target drawing tool includes: In response to a trigger operation targeting the drawing area, the target drawing tool is determined to be a color fill tool, and the currently selected target color is filled into the fill area corresponding to the operation position of the trigger operation.
14. The method according to claim 1, characterized in that, The graphical user interface also provides alternative colors; the method further includes: in response to a selection operation for the alternative colors, determining the selected alternative color as the currently selected target color.
15. The method according to claim 14, characterized in that, The method further includes: In response to a specified trigger operation for the candidate colors, determine the target color to be triggered and display the 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.
16. The method according to claim 14, characterized in that, The method further includes: In response to a color-picking trigger operation for the candidate colors, 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; Update the currently selected target color to the first color.
17. The method according to claim 16, characterized in that, The color picker control has a specified control display area and a position selection indicator, the position selection indicator indicating the first position; the method further includes: Based on the first position, a designated sub-region is determined in the drawing area; The control display area is enlarged to show the drawn pixels based on the specified sub-region.
18. The method according to claim 17, characterized in that, The first control edge of the color picker displays the first color, and the second control edge of the color picker displays the target color.
19. The method according to claim 18, characterized in that, 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.
20. The method according to claim 17, characterized in that, The method further includes: In response to a first trigger operation applied to the control display area, the position selection marker is moved from the first position to the second position according to the movement control of the first trigger operation; The color at the second position is displayed using the color picker control.
21. The method according to claim 20, characterized in that, The location of the first trigger operation is different from the location indicated by the location selection marker.
22. The method according to claim 20, characterized in that, The step of responding to a first trigger operation applied to the control display area and controlling the position selection marker 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 applied to the control display area, and a sliding operation that follows the long press operation, the position selection indicator is controlled to move to a second position following the sliding operation.
23. The method according to claim 17, characterized in that, The method further includes: In response to a second trigger operation acting outside the control display area, the position selection marker is controlled 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 using the color picker control.
24. The method according to claim 23, characterized in that, The step of responding to a second trigger operation acting outside the control display area and controlling the position selection marker 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 performed outside the display area of the control, the position selection indicator is switched from the first position to a third position determined according to the operation position of the click operation.
25. The method according to claim 16, characterized in that, After updating the currently selected target color to the first color, the method further includes: In response to a trigger operation targeting a specified control, the color picker control is de-displayed.
26. The method according to claim 1, characterized in that, The method further includes: In response to the image import operation, a target image is determined and displayed in the drawing area.
27. The method according to claim 26, characterized in that, After the step of displaying the target image in the drawing area, the method further includes: Control the target image to be displayed in an editable state; In response to an editing operation on the target image, update the display mode of the target image based on the editing operation; In response to an end-of-edit operation on the target image, the target image is controlled to be displayed in an uneditable state.
28. The method according to claim 1, characterized in that, The step of saving the drawing effect includes: saving the drawing graphic data; wherein the drawing graphic data includes: pixel position information of the drawing pixels with fill color, the fill color of the drawing pixels, and a shape identifier indicating the shape of the drawing effect.
29. The method according to claim 28, characterized in that, After the step of saving the drawn graphic data, the method further includes: In response to a drawing effect display instruction for the drawing graphics data, a drawing graphic is generated based on the drawing graphics data; Perform specified image processing on the drawn graphic to obtain a drawing effect texture; The rendering effect texture is applied to the object model of the effect display object.
30. An interactive control device for a game, characterized in that, The device provides a graphical user interface via a terminal device, the apparatus comprising: A drawing trigger module is used to display the drawing area and the preview area in the graphical user interface in response to a drawing trigger command; A graphics generation module is used to respond to a drawing operation on the drawing area, determine a target drawing tool, generate a drawing graphic on the drawing area using the target drawing tool, and display the drawing effect corresponding to the drawing graphic in the preview area; wherein, the target drawing tool is used to: control specified graphic attributes of the drawing graphic; the specified graphic attributes include at least one of graphic color, graphic shape, and graphic lines; The judgment module is used to respond to the save operation for the drawing effect and determine whether the drawing effect has a pre-set effect display object; wherein, the effect display object includes at least one of the following: game character face, game character clothing and game scene components; The saving module is used to determine whether 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 the drawing effect has no pre-set effect display object, save the drawing effect according to the default shape. The drawing trigger module is further configured to: respond to an object selection operation for an effect display object, and provide an object editing control for the selected effect display object in the graphical user interface; respond to a trigger operation for the object editing control, generate the drawing trigger instruction, and display a drawing area and a preview area for the effect display object in the graphical user interface; The drawing area includes at least a drawing effective area, the shape of which matches the object shape of the effect display object; the drawing effective area is used to respond to the drawing operation.
31. An electronic device, characterized in that, It includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the interactive control method of the game according to any one of claims 1-29.
32. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the interactive control method of the game according to any one of claims 1-29.
Citation Information
Patent Citations
Processing method and device for scenes in game, and electronic equipment
CN113069759A