A method, device, equipment and medium for controlling a virtual character in a game
Through the introduction of gesture interaction organizations in multi -player online role -playing games, players draw a similar pattern of organizational logo in the graphic user interface to request the organization. , Achieve a richer interactive experience and higher gaming experience.
Patent Information
- Application Number
- CN202111256016.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2041-10-27
Smart Images

Figure CN113975810B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device, equipment and medium for controlling a virtual character in a game. Background Art
[0002] Currently, many Massive Multiplayer Online Role-Playing Games (MMORPGs) have organizational (camp, gang, team) gameplay. In order to increase the sense of community, players can join the organization in the game to enjoy more gameplay.
[0003] The traditional method for a player-controlled game character to join a game organization is generally to click on a pop-up window to confirm the application. The human-computer interaction process is only one click. Although this method is simple to operate, the joining method is single, the human-computer interaction content is too little, the player's sense of participation in the joining process is not strong, the flexibility is low, and it cannot bring more ritual to the players. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a method, device, equipment and medium for controlling virtual characters in a game, which join the organization through gesture interaction, enrich the interaction process and enhance the player's gaming experience.
[0005] In a first aspect, an embodiment of the present application provides a method for controlling a virtual character in a game, wherein the game includes a target virtual character and a target game organization; a graphical user interface is provided through a terminal device; the method comprises:
[0006] In response to a join operation for a target game organization, providing a drawing area in the graphical user interface;
[0007] Obtaining a target organization identifier corresponding to the target game organization;
[0008] In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, determining a drawing pattern corresponding to the drawing operation;
[0009] If the similarity between the drawn pattern and the target organization logo meets the organization joining condition, the target virtual character is requested to join the target game organization.
[0010] In a preferred technical solution of the present application, the above-mentioned drawing operation includes at least one drawing sub-operation, and the response to the drawing operation for the target tissue identifier acting on the drawing area determines the drawing pattern corresponding to the drawing operation, including:
[0011] In response to the drawing sub-operation acting on the drawing area and targeting the target tissue identifier, displaying a drawing sub-pattern corresponding to the drawing sub-operation on the graphical user interface;
[0012] The drawing pattern is determined according to the drawing sub-pattern.
[0013] In a preferred technical solution of the present application, the step of determining the drawing pattern according to the drawing sub-pattern includes:
[0014] If the drawing completion condition is met, the drawing pattern is determined according to the drawing sub-pattern; wherein the drawing completion condition includes at least one of the following:
[0015] A touch operation on a confirmation control is detected;
[0016] The drawing time corresponding to the preset drawing operation has expired;
[0017] Furthermore, before the drawing time corresponding to the preset drawing operation is exhausted, it is detected that the drawing operation is finished.
[0018] In a preferred technical solution of the present application, the above method further includes:
[0019] The target tissue identifier is displayed in the drawing area.
[0020] In a preferred technical solution of the present application, it is determined that the similarity between the drawn pattern and the target tissue identifier satisfies the tissue joining condition in the following manner:
[0021] If the coverage rate between the drawn pattern and the target organization identifier is greater than or equal to a preset coverage rate threshold, the similarity between the drawn pattern and the target organization identifier satisfies the organization joining condition.
[0022] In a preferred technical solution of the present application, the above-mentioned displaying the target tissue identifier in the drawing area includes:
[0023] Displaying the feathered target tissue marker in the drawing area;
[0024] In response to a drawing operation on the drawing area and for the target tissue identifier, determining a drawing pattern corresponding to the drawing operation includes:
[0025] In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, a drawing pattern corresponding to the drawing operation is determined, and a high-definition drawing pattern is displayed on the graphical user interface.
[0026] In a preferred technical solution of the present application, when a drawing area is provided in the graphical user interface, the method further includes:
[0027] A drawing reference area is provided in the graphical user interface, and the target tissue identifier is displayed in the drawing reference area.
[0028] In a preferred technical solution of the present application, it is determined that the similarity between the drawn pattern and the target tissue identifier satisfies the tissue joining condition in the following manner:
[0029] scaling the drawn pattern in equal proportion according to the size of the target tissue marker to obtain a scaled pattern;
[0030] Determining the overall similarity between the scaling pattern and the target tissue identifier according to the shape similarity and area similarity between the scaling pattern and the target tissue identifier;
[0031] If the overall similarity is greater than or equal to a preset similarity threshold, it is determined that the similarity between the drawn pattern and the target organization identifier satisfies an organization joining condition.
[0032] In a preferred technical solution of the present application, when the graphical user interface provides a drawing area, the method further includes:
[0033] Providing a prompt box in the drawing area;
[0034] The step of responding to a drawing operation on the drawing area and targeting the target tissue identifier and determining a drawing pattern corresponding to the drawing operation includes:
[0035] In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, a drawing pattern corresponding to the drawing operation and located in the prompt box is determined.
[0036] In a preferred technical solution of the present application, the above-mentioned drawing operation includes a painting operation and an erasing operation, the painting operation is a sliding operation from a first direction to a second direction, and the erasing operation is a sliding operation from the second direction to the first direction.
[0037] In a preferred technical solution of the present application, the above method further includes:
[0038] In response to a cancel drawing operation on the target tissue identifier, the graphical user interface cancels display of the drawing pattern.
[0039] In a preferred technical solution of the present application, after the target virtual character joins the target game organization, the method further includes:
[0040] In response to a use operation on the target organization identifier, displaying the target organization identifier in a preset area of the graphical user interface;
[0041] In response to a quit operation for a target virtual character that has joined the target organization, a quit result of the target virtual character quitting the target game organization is displayed on the graphical user interface.
[0042] In a second aspect, an embodiment of the present application provides a control device for a virtual character in a game, wherein the game includes a target virtual character and a target game organization; a graphical user interface is provided through a terminal device, and a drawing area is provided on the graphical user interface; the device includes:
[0043] A first display module, for responding to a joining operation on a target game organization, providing a drawing area on the graphical user interface;
[0044] An acquisition module, used to acquire a target organization identifier corresponding to the target game organization;
[0045] a determination module, configured to respond to a drawing operation applied to the drawing area and directed to the target tissue identifier, and determine a drawing pattern corresponding to the drawing operation;
[0046] The request module is used to request the target virtual character to join the target game organization if the similarity between the drawn pattern and the target organization logo meets the organization joining condition.
[0047] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for controlling a virtual character in a game when executing the computer program.
[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for controlling a virtual character in the above-mentioned game are executed.
[0049] The technical solution provided by the embodiment of the present application may include the following beneficial effects: a method for controlling a virtual character in a game, by responding to a joining operation for a target game organization, providing a drawing area in the graphical user interface; then, obtaining a target organization identifier corresponding to the target game organization; thereafter, responding to a drawing operation for the target organization identifier acting on the drawing area, determining a drawing pattern corresponding to the drawing operation; if the similarity between the drawing pattern and the target organization identifier meets the organization joining condition, requesting the target virtual character to join the target game organization. The present application joins the organization through gesture interaction, enriching the interaction process and improving the player's gaming experience.
[0050] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A schematic diagram showing a flow chart of a method for controlling a virtual character in a game provided by an embodiment of the present application;
[0053] Figure 2 The application scenario provided by the embodiment of the present application is shown;
[0054] Figure 3 A schematic diagram of the structure of a mobile phone provided in an embodiment of the present application is shown;
[0055] Figure 4 A schematic diagram of a usage scenario of a terminal device provided in an embodiment of the present application is shown;
[0056] Figure 5a A schematic diagram showing a target tissue identification displayed in a drawing area provided in an embodiment of the present application is shown;
[0057] Figure 5b A schematic diagram of drawing a reference area to display a target tissue identifier provided by an embodiment of the present application is shown;
[0058] Figure 5c Another schematic diagram of drawing a reference area to display a target tissue identifier provided by an embodiment of the present application is shown;
[0059] Figure 6a A schematic diagram showing a drawing operation when a target tissue logo is displayed in a drawing area provided in an embodiment of the present application;
[0060] Figure 6b A schematic diagram showing an erasing operation when a target tissue identification is displayed in a drawing area provided in an embodiment of the present application is shown;
[0061] Figure 6c A schematic diagram showing a prompt box being set in a drawing area when a reference area is drawn to display a target tissue identifier provided by an embodiment of the present application;
[0062] Figure 6d A schematic diagram of determining a pattern drawn in a prompt box provided in an embodiment of the present application is shown;
[0063] Figure 7a A schematic diagram showing a drawing operation when a target tissue logo is displayed in a drawing area provided by an embodiment of the present application is shown;
[0064] Figure 7b A schematic diagram of an erasing operation when a target tissue identification is displayed in a drawing area provided by an embodiment of the present application is shown;
[0065] Figure 7c A schematic diagram showing another drawing operation when a target tissue logo is displayed in a drawing area provided by an embodiment of the present application is shown;
[0066] Figure 7d A schematic diagram showing another erasing operation when a target tissue identifier is displayed in a drawing area provided by an embodiment of the present application is shown;
[0067] Figure 8 A schematic diagram of a control device for a virtual character in a game provided by an embodiment of the present application is shown;
[0068] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0070] Many existing role-playing games have organizations (gangs) set up, and players can join the organization and experience the gameplay related to the organization. However, most of the methods of joining an organization in existing games are to join the organization by clicking the join control. For players, the interaction process is very short, there is no sense of ritual, and the recognition of the organization logo is low.
[0071] The embodiments of the present application provide a method, device, equipment and medium for controlling a virtual character in a game, which are described below through embodiments.
[0072] Figure 1A flow chart of a method for controlling a virtual character in a game provided by an embodiment of the present application is shown, wherein the game includes a target virtual character and a target game organization; a graphical user interface is provided through a terminal device, wherein the method includes steps S101-S104; specifically:
[0073] S101, in response to a joining operation for a target game organization, providing a drawing area in a graphical user interface;
[0074] S102, obtaining a target organization identifier corresponding to a target game organization;
[0075] S103, in response to a drawing operation on the drawing area and for the target tissue identifier, determining a drawing pattern corresponding to the drawing operation;
[0076] S104: If the similarity between the drawn pattern and the target organization logo meets the organization joining condition, request the target virtual character to join the target game organization.
[0077] This application joins the organization through gesture interaction, enriching the interaction process and improving the player's gaming experience.
[0078] The control method of the virtual character in the game in the embodiment of the present application can be applied to a terminal device (touch terminal). The touch terminal includes a touch screen and a processor, and the touch screen is used to present a graphical user interface and receive operations on the graphical user interface.
[0079] In some embodiments, when a graphical user interface is edited through a touch terminal, the graphical user interface can be used to edit local content of the touch terminal, and can also be used to edit content of a peer server.
[0080] A possible embodiment is as follows Figure 2 As shown, Figure 2 Schematic diagram of an application scenario provided by an embodiment of the present application. The application scenario may include a touch terminal (a possible embodiment, a mobile phone 102) and a server 101, and the touch terminal may communicate with the server 101 via a wired network or a wireless network. The touch terminal is used to run a virtual desktop, through which the virtual desktop can interact with the server 101 to edit the content in the server 101.
[0081] The touch terminal of this embodiment is described by taking a mobile phone 102 as an example. The mobile phone 102 includes components such as a radio frequency (RF) circuit 110, a memory 120, a touch screen 130, and a processor 140. Those skilled in the art can understand that Figure 3The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. Those skilled in the art will understand that the touch screen 130 belongs to the user interface (UI), and the mobile phone 102 may include more or fewer user interfaces than shown in the figure.
[0082] The RF circuit 110 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0083] The memory 120 can be used to store software programs and modules. The processor 140 executes various functional applications and data processing of the mobile phone 102 by running the software programs and modules stored in the memory 120. The memory 120 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone 102, etc. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0084] The touch screen 130 may be used to display a graphical user interface and receive user operations on the graphical user interface. Specifically, the touch screen 130 may include a display panel and a touch panel. The display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel may collect user contact or non-contact operations on or near it (a possible embodiment, such as Figure 4As shown, the user uses any suitable object or accessory such as a finger 103, a stylus, etc. to operate on or near the touch panel), and generates a pre-set operation instruction. In addition, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation and posture, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into information that the processor can process, and then sends it to the processor 140, and can receive the command sent by the processor 140 and execute it. In addition, the touch panel can be implemented by various types such as resistive, capacitive, infrared and surface acoustic wave, and any technology developed in the future can be used to implement the touch panel. Further, the touch panel can cover the display panel, and the user can operate on or near the touch panel covered on the display panel according to the graphical user interface displayed on the display panel. After the touch panel detects the operation on or near it, it is transmitted to the processor 140 to determine the user input, and then the processor 140 provides corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel can be implemented as two independent components or integrated.
[0085] Processor 140 is the control center of mobile phone 102. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of mobile phone 102 and processes data by running or executing software programs and / or modules stored in memory 120, and calling data stored in memory 120, thereby monitoring the mobile phone as a whole.
[0086] The mobile phone 102 also includes a power source (such as a battery) for supplying power to various components. The power source can be logically connected to the processor 140 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0087] Some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0088] S101. In response to a joining operation on a target game organization, a drawing area is provided in a graphical user interface.
[0089] The game organization in this application is established by the first virtual character in the game, and the first virtual character who establishes the organization is called the creator. When the creator establishes the organization, it is necessary to set the attribute information of the game organization. Among them, the attribute information includes the name of the game organization, the organization logo, the display effects of the organization logo, the joining requirements, the upper limit of the number of people, and other information. When the creator sets the organization logo, the organization logo can be selected from the preset logo library in the game, or it can be created by itself. The terminal device responds to the completion of the player's creation and stores the above-mentioned game organization and the attribute information of the organization in a one-to-one correspondence.
[0090] After being created, a game organization can be joined by a second virtual character (joiner) other than the creator in the game.
[0091] The game organizations in the embodiment of the present application are all organizations that the target virtual character meets the joining requirements. The player selects the organization he wants to join from all the game organizations that the target virtual character can join, which is the target game organization.
[0092] After selecting a target game organization, the player performs an operation of joining the target game organization through the terminal device. In response to the player's joining operation for the target game organization, the terminal device displays a drawing area on the graphical user interface, and the drawing area is used for the player to perform a drawing operation.
[0093] S102: Obtain a target organization identifier corresponding to a target game organization.
[0094] While executing step S101, the terminal device also obtains the target organization identifier of the target game organization.
[0095] The one-to-one correspondence between the name of the game organization and the organization identifier is determined when the game organization is created. After the player determines the target game organization, the terminal device determines the name of the target game organization. The terminal device obtains the target organization identifier corresponding to the target game organization from the memory according to the name of the target game organization and the correspondence between the name of the game organization and the organization identifier.
[0096] In an embodiment of the present application, after the terminal device obtains the target organization identifier corresponding to the target organization, the target organization identifier is displayed on the graphical user interface, so that the player can perform drawing operations in the drawing area according to the target organization identifier displayed on the graphical user interface.
[0097] When the terminal device displays the target organization logo, there are two display modes: the first display mode is: displaying the target organization logo in the drawing area provided by the graphical user interface; the second display mode is: the terminal device also provides a drawing reference area in the graphical user interface, and displays the target organization logo in the drawing reference area.
[0098] Different display modes correspond to different display effects: when the terminal device displays the target organization logo in the first display mode, the player needs to observe the target organization logo from the drawing area and perform drawing operations in the drawing area. In order to facilitate the player to distinguish the drawing pattern corresponding to the drawing operation and the original target organization logo, in an embodiment of the present application, the feathered target organization logo is displayed in the drawing area. When the terminal device displays the target organization logo in the second display mode, the target organization logo is displayed in the drawing reference area, and the player performs a drawing operation on the target organization logo in the drawing area. Because the display position of the target organization logo and the drawing position of the target organization logo are separated in this display mode, the player's observation and drawing will not affect each other in this display mode, so when the terminal device displays the target organization logo in the drawing reference area, a high-definition target organization logo is displayed.
[0099] In a possible embodiment, the target tissue is marked as a “⊥” shape, and the drawing area is a square box; Figure 5a As shown, the high-definition target tissue logo is displayed in the blank area on the left side of the graphical user interface (drawing reference area), and the drawing area is displayed on the right side of the graphical user interface. Figure 5b As shown, the drawing area overlaps with the target tissue identifier, and the feathered target tissue identifier and the drawing area are displayed in the middle of the graphical user interface.
[0100] In a possible embodiment of the present application, in order to improve the efficiency of the player's drawing, the terminal device provides a drawing area generated according to the target organization identifier in the graphical user interface, and displays the target organization identifier in the drawing area. Figure 5c As shown, the position and shape of the drawing area overlap with the target gaming tissue, and the feathered target tissue logo and drawing area are displayed in the middle of the graphical user interface.
[0101] S103 . In response to a drawing operation applied to the drawing area and directed to the target tissue identifier, determine a drawing pattern corresponding to the drawing operation.
[0102] After the graphical user interface displays the target organization logo, the player needs to draw the displayed target organization logo in the drawing area.
[0103] The drawing operation in the embodiment of the present application includes a painting operation and an erasing operation. The painting operation is a sliding operation from a first direction to a second direction, and the erasing operation is a sliding operation from a second direction to a first direction.
[0104] When a player performs a drawing operation in the drawing area, at least one drawing sub-operation is performed. Here, the drawing sub-operation is a sliding operation, and the drawing operation is all sliding operations performed by the player in the drawing area from the beginning to the end for the target organization logo.
[0105] For each drawing sub-operation performed by the player in the drawing area, the terminal device will display the drawing sub-pattern corresponding to the drawing sub-operation in the graphical user interface; when the player performs a drawing sub-operation, if the drawing completion condition is met, the drawing pattern is determined according to the drawing sub-pattern.
[0106] The drawing completion conditions include at least one of the following:
[0107] A touch operation on a confirmation control is detected;
[0108] The drawing time corresponding to the preset drawing operation has expired;
[0109] Furthermore, before the drawing time corresponding to the preset drawing operation is exhausted, it is detected that the drawing operation is finished.
[0110] When the player is performing a drawing sub-operation, if the player performs a touch operation on the confirmation control, it indicates that the player has confirmed the pattern drawn; or, if the player performs a long drawing operation and the drawing time corresponding to the preset drawing operation is exhausted; or, if the player performs the drawing operation very quickly and the drawing operation is completed before the drawing time corresponding to the preset drawing operation is exhausted; these situations all meet the drawing completion condition. In response to the drawing completion condition, the terminal device sorts out the drawing sub-patterns corresponding to all the drawing sub-operations performed by the player and determines them as the drawing patterns corresponding to the player's drawing operation.
[0111] In the embodiment of the present application, the end of the player's drawing operation includes the player clicking a confirmation control, or the player completely drawing the target organization logo.
[0112] In the embodiment of the present application, determining the drawing pattern according to the drawing sub-patterns includes: removing overlapping portions of the drawing sub-patterns according to the position and shape of each drawing sub-pattern to obtain the drawing pattern.
[0113] In specific implementation, when the drawing sub-patterns corresponding to multiple drawing sub-operations overlap, only the differences corresponding to different drawing sub-operations are displayed. That is, when there are repeated areas in multiple painting operations, only the effect of the first painting in the area is displayed; when there are repeated areas in multiple erasing operations, only the effect of the first erasing in the area is displayed.
[0114] In an embodiment of the present application, in order to facilitate players to distinguish between areas that have been drawn and areas that have not been drawn, when the target tissue identifier with feathering processing is displayed in the drawing area, when the player performs a drawing sub-operation in the drawing area, the terminal device will display a high-definition drawing sub-pattern corresponding to the drawing sub-operation in the graphical user interface.
[0115] In a possible embodiment, when the terminal device displays the target tissue identifier in the drawing reference area, such as Figure 6a As shown, when the player draws the target organization logo in the drawing area, the graphical user interface will display the high-definition drawing sub-pattern corresponding to each drawing operation of the player; for example, Figure 6b As shown, if the player performs an erasing operation, the graphical user interface displays the drawing sub-pattern corresponding to the player's erasing operation, that is, restoring the area corresponding to the player's erasing operation to the effect before the drawing operation was performed.
[0116] When the terminal device displays the target organization logo in the drawing reference area, in order to improve the player's drawing efficiency, the terminal device provides a prompt box (dotted box) generated according to the target organization logo in the drawing area; for example, Figure 6c As shown.
[0117] When determining the drawing pattern based on the drawing sub-pattern, for the case where a prompt box is displayed in the drawing area, when determining the drawing pattern, it is necessary to determine the drawing pattern corresponding to the drawing operation and located within the prompt box. For example, Figure 6d As described, the drawing pattern corresponding to the player's drawing operation is in the shape of a "plus" sign, but part of the pattern is outside the prompt box, and the determined drawing pattern corresponding to the player's drawing operation is in the shape of a "丄".
[0118] When the target organization logo is displayed in the drawing area provided by the graphical user interface, for example, Figure 7a As shown, when the player draws the target organization in the drawing area, the graphical user interface will display the high-definition drawing sub-pattern corresponding to each drawing operation of the player; for example, Figure 7b As shown, if the player performs an erasing operation, the graphical user interface displays the blurred drawing sub-pattern corresponding to the player's erasing operation, that is, restoring the area corresponding to the player's erasing operation to the effect before the drawing operation was performed.
[0119] Or, for example, Figure 7c As shown, when the player draws the target organization in the drawing area, the graphical user interface will display the high-definition drawing sub-pattern corresponding to each drawing operation of the player; for example, Figure 7d As shown, if the player performs an erasing operation, the graphical user interface displays the blurred drawing sub-pattern corresponding to the player's erasing operation, that is, restoring the area corresponding to the player's erasing operation to the effect before the drawing operation was performed.
[0120] When the player is performing a drawing operation or after the drawing operation is completed and does not want to join the target game organization, the player can perform a cancel join operation, and the graphical user interface cancels the display of the drawing pattern.
[0121] S104. If the similarity between the drawn pattern and the target organization logo meets the organization joining condition, request the target virtual character to join the target game organization.
[0122] After determining the drawing pattern corresponding to the player's drawing operation, the similarity between the drawing pattern and the target organization logo is calculated. When calculating the similarity between the drawing pattern and the target organization logo, it includes calculating the overall similarity between the drawing pattern and the target organization logo and / or the area ratio of the drawing pattern and the target organization logo.
[0123] If the similarity between the drawn pattern and the target organization logo is greater than or equal to a preset similarity threshold, the target virtual character meets the organization joining conditions, that is, the player's drawing operation meets the joining conditions.
[0124] The target virtual character sends a joining request to the target game organization. After the target game organization (organization creator or the creator's designated virtual character) approves the joining request of the target virtual character, the graphical user interface displays a prompt message that the target virtual character has successfully joined the target game organization. If the target game organization (organization creator or the creator's designated virtual character) fails to approve the joining request of the target virtual character, the graphical user interface displays a mark that the target virtual character has failed to join the target organization, and the player can apply to join again or reselect another game organization to join.
[0125] If the target organization logo is displayed in the drawing area provided in the graphical user interface, the similarity between the drawn pattern and the target organization logo is calculated, that is, the coverage rate of the drawn pattern and the target organization logo is calculated. When the coverage rate of the drawn pattern and the target organization logo is greater than or equal to the preset coverage rate threshold, it is determined that the similarity between the drawn pattern and the target organization logo meets the organization joining conditions.
[0126] If the target organization logo is displayed in the drawing reference area, when calculating the similarity between the drawing pattern and the target organization logo, the size relationship between the drawing pattern and the target organization logo cannot be determined, and the similarity cannot be directly calculated. Therefore, it is necessary to scale the drawing pattern in proportion to the size of the target organization logo to obtain a scaled pattern; determine the overall similarity between the scaled pattern and the target organization logo based on the shape similarity and area similarity between the scaled pattern and the target organization logo; if the overall similarity is greater than or equal to the preset similarity threshold, determine that the similarity between the drawing pattern and the target organization logo meets the organization joining condition.
[0127] After the target virtual character joins the target game organization, the player can display the target organization logo in the preset area of the graphical user interface by using the target organization logo. In a possible embodiment, the target game organization logo is displayed on the side of the target virtual character's avatar, in front of the target virtual character's name, or above the target game organization logo and the display effects corresponding to the target organization logo.
[0128] After the target virtual character joins the target game organization, if the player no longer wants to be in the target game organization for some reason, the player can exit the target organization. At this time, the graphical user interface displays a prompt message that the target virtual character has exited the target game organization. After exiting the target game organization, the target virtual character can no longer use the target organization logo.
[0129] Figure 8 A schematic diagram of the structure of a control device for a virtual character in a game provided by an embodiment of the present application is shown, wherein the game includes a target virtual character and a target game organization; a graphical user interface is provided through a terminal device, and a drawing area is provided on the graphical user interface; the device includes:
[0130] A first display module, for responding to a joining operation on a target game organization, providing a drawing area on the graphical user interface;
[0131] An acquisition module, used to acquire a target organization identifier corresponding to the target game organization;
[0132] a determination module, configured to respond to a drawing operation applied to the drawing area and directed to the target tissue identifier, and determine a drawing pattern corresponding to the drawing operation;
[0133] The request module is used to request the target virtual character to join the target game organization if the similarity between the drawn pattern and the target organization logo meets the organization joining condition.
[0134] In a possible embodiment, the drawing operation includes at least one drawing sub-operation, and the step of responding to the drawing operation on the drawing area and for the target tissue identifier and determining the drawing pattern corresponding to the drawing operation includes:
[0135] In response to the drawing sub-operation acting on the drawing area and targeting the target tissue identifier, displaying a drawing sub-pattern corresponding to the drawing sub-operation on the graphical user interface;
[0136] The drawing pattern is determined according to the drawing sub-pattern.
[0137] In a possible embodiment, determining the drawing pattern according to the drawing sub-pattern includes:
[0138] If the drawing completion condition is met, the drawing pattern is determined according to the drawing sub-pattern; wherein the drawing completion condition includes at least one of the following:
[0139] A touch operation on a confirmation control is detected;
[0140] The drawing time corresponding to the preset drawing operation has expired;
[0141] Furthermore, before the drawing time corresponding to the preset drawing operation is exhausted, it is detected that the drawing operation is finished.
[0142] In a possible embodiment, the equipment further includes:
[0143] A second display module is used to display the target tissue identifier in the drawing area.
[0144] In a possible embodiment, it is determined that the similarity between the drawn pattern and the target tissue identifier satisfies the tissue joining condition in the following manner:
[0145] If the coverage rate between the drawn pattern and the target organization identifier is greater than or equal to a preset coverage rate threshold, the similarity between the drawn pattern and the target organization identifier satisfies the organization joining condition.
[0146] In a possible embodiment, displaying the target tissue identifier in the drawing area includes:
[0147] Displaying the feathered target tissue marker in the drawing area;
[0148] In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, determining a drawing pattern corresponding to the drawing operation includes:
[0149] In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, a drawing pattern corresponding to the drawing operation is determined, and a high-definition drawing pattern is displayed on the graphical user interface.
[0150] In a possible embodiment, when a drawing area is provided in the graphical user interface, the device further includes:
[0151] The third display module is used to provide a drawing reference area in the graphical user interface and display the target tissue identifier in the drawing reference area.
[0152] In a possible embodiment, it is determined that the similarity between the drawn pattern and the target tissue identifier satisfies the tissue joining condition in the following manner:
[0153] scaling the drawn pattern in equal proportion according to the size of the target tissue marker to obtain a scaled pattern;
[0154] Determining the overall similarity between the scaling pattern and the target tissue identifier according to the shape similarity and area similarity between the scaling pattern and the target tissue identifier;
[0155] If the overall similarity is greater than or equal to a preset similarity threshold, it is determined that the similarity between the drawn pattern and the target organization identifier satisfies an organization joining condition.
[0156] In a possible embodiment, the third display module, when used to provide a drawing area in the graphical user interface, includes:
[0157] Providing a prompt box in the drawing area;
[0158] The determination module, when used for determining the drawing pattern corresponding to the drawing operation in response to the drawing operation acting on the drawing area and targeting the target tissue identifier, includes:
[0159] In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, a drawing pattern corresponding to the drawing operation and located in the prompt box is determined.
[0160] In a possible embodiment, the drawing operation includes a painting operation and an erasing operation, the painting operation is at least one sliding operation from a first direction to a second direction, and the erasing operation is at least one sliding operation from the second direction to the first direction.
[0161] In a possible embodiment, the device further includes:
[0162] The fourth display module is used to respond to the use operation of the target organization logo and display the target organization logo in a preset area of the graphical user interface.
[0163] In a possible embodiment, the device further includes:
[0164] The fifth display module is used to respond to the exit operation of the target virtual character who has joined the target organization and display the exit result of the target virtual character exiting the target game organization on the graphical user interface.
[0165] like Fig. 9 As shown, an embodiment of the present application provides an electronic device for executing the method for controlling a virtual character in a game in the present application, the device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for controlling a virtual character in the game when executing the computer program.
[0166] Specifically, the above-mentioned memory and processor may be general-purpose memory and processor, which are not specifically limited here. When the processor runs the computer program stored in the memory, the above-mentioned method for controlling the virtual character in the game can be executed.
[0167] Corresponding to the method for controlling a virtual character in the game in the present application, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for controlling a virtual character in the above-mentioned game are executed.
[0168] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the control method of the virtual character in the above-mentioned game can be executed.
[0169] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely schematic. In one possible embodiment, the division of the units is only a logical function division. There may be other division methods in actual implementation. In another possible embodiment, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the system or unit can be electrical, mechanical or other forms.
[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0171] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0172] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0173] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0174] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for controlling a virtual character in a game, characterized in that: The game includes a target virtual character and a target game organization; Providing a graphical user interface through a terminal device; the method comprises: In response to a join operation for a target game organization, providing a drawing area in the graphical user interface; Acquire a target organization identifier corresponding to the target gaming organization; and display the target organization identifier in the drawing area or drawing reference area of the graphical user interface; In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, determining a drawing pattern corresponding to the drawing operation; If the similarity between the drawn pattern and the target organization logo meets the organization joining condition, the target virtual character is requested to join the target game organization.
2. The control method according to claim 1, characterized in that: The drawing operation includes at least one drawing sub-operation, and the response to the drawing operation for the target tissue identifier acting on the drawing area, determining a drawing pattern corresponding to the drawing operation, includes: In response to the drawing sub-operation acting on the drawing area and targeting the target tissue identifier, displaying a drawing sub-pattern corresponding to the drawing sub-operation on the graphical user interface; The drawing pattern is determined according to the drawing sub-pattern.
3. The control method according to claim 2, characterized in that: The determining the drawing pattern according to the drawing sub-pattern comprises: If the drawing completion condition is met, the drawing pattern is determined according to the drawing sub-pattern; wherein the drawing completion condition includes at least one of the following: A touch operation on a confirmation control is detected; The drawing time corresponding to the preset drawing operation has expired; Furthermore, before the drawing time corresponding to the preset drawing operation is exhausted, it is detected that the drawing operation is finished.
4. The control method according to claim 1, characterized in that: The method further comprises: The target tissue identifier is displayed in the drawing area.
5. The control method according to claim 4, characterized in that: Determine whether the similarity between the drawn pattern and the target organization identifier satisfies the organization joining condition by: If the coverage rate between the drawn pattern and the target organization identifier is greater than or equal to a preset coverage rate threshold, the similarity between the drawn pattern and the target organization identifier satisfies the organization joining condition.
6. The control method according to claim 4, characterized in that: The displaying the target tissue identifier in the drawing area includes: Displaying the feathered target tissue marker in the drawing area; In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, determining a drawing pattern corresponding to the drawing operation includes: In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, a drawing pattern corresponding to the drawing operation is determined, and a high-definition drawing pattern is displayed on the graphical user interface.
7. The control method according to claim 1, characterized in that: When providing a drawing area in the graphical user interface, the method further includes: A drawing reference area is provided in the graphical user interface, and the target tissue identifier is displayed in the drawing reference area.
8. The control method according to claim 7, characterized in that: Determine whether the similarity between the drawn pattern and the target organization identifier satisfies the organization joining condition by: scaling the drawn pattern in equal proportion according to the size of the target tissue marker to obtain a scaled pattern; Determining the overall similarity between the scaling pattern and the target tissue identifier according to the shape similarity and area similarity between the scaling pattern and the target tissue identifier; If the overall similarity is greater than or equal to a preset similarity threshold, it is determined that the similarity between the drawn pattern and the target organization identifier satisfies an organization joining condition.
9. The control method according to claim 7, characterized in that: When the graphical user interface provides a drawing area, the method further includes: Providing a prompt box in the drawing area; The step of responding to a drawing operation on the drawing area and targeting the target tissue identifier and determining a drawing pattern corresponding to the drawing operation includes: In response to a drawing operation acting on the drawing area and targeting the target tissue identifier, a drawing pattern corresponding to the drawing operation and located in the prompt box is determined.
10. The control method according to claim 1, characterized in that: The drawing operation includes a painting operation and an erasing operation. The painting operation is a sliding operation from a first direction to a second direction, and the erasing operation is a sliding operation from a second direction to a first direction.
11. The control method according to claim 1, characterized in that: The method further comprises: In response to a cancel drawing operation on the target tissue identifier, the graphical user interface cancels display of the drawing pattern.
12. The control method according to claim 1, characterized in that: After the target virtual character joins the target game organization, the method further includes: In response to a use operation on the target organization identifier, displaying the target organization identifier in a preset area of the graphical user interface; In response to a quit operation for a target virtual character that has joined the target organization, a quit result of the target virtual character quitting the target game organization is displayed on the graphical user interface.
13. A control device for a virtual character in a game, characterized in that: The game includes a target virtual character and a target game organization; Providing a graphical user interface through a terminal device, and providing a drawing area on the graphical user interface; The device comprises: A first display module, for responding to a joining operation on a target game organization, providing a drawing area on the graphical user interface; An acquisition module, used for acquiring a target organization identifier corresponding to the target gaming organization; and displaying the target organization identifier in the drawing area or drawing reference area of the graphical user interface; a determination module, configured to respond to a drawing operation applied to the drawing area and directed to the target tissue identifier, and determine a drawing pattern corresponding to the drawing operation; The request module is used to request the target virtual character to join the target game organization if the similarity between the drawn pattern and the target organization logo meets the organization joining condition.
14. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for controlling a virtual character in a game as described in any one of claims 1 to 12 are performed.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for controlling a virtual character in a game as claimed in any one of claims 1 to 12 are executed.
Citation Information
Patent Citations
A multiple certification method and system
CN108777672A
Graph drawing method and device, computer readable medium and equipment
CN109919827A