Virtual character control method and device, terminal equipment and storage medium

By introducing a mechanism for multiple user accounts to cooperate in building virtual defense facilities in the tower defense competition, the problem of inefficient construction of a single user is solved, and the construction efficiency and user experience of defense facilities are improved.

CN120324902APending Publication Date: 2025-07-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410064759.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, a single user is less efficient in building a defensive tower and cannot effectively block intruders in the tower defense competition.

Method used

Through virtual characters controlled by multiple user accounts, they form cooperative relationships in the tower defense competition, jointly build virtual defense facilities, block invaders' attacks, and use competitive relationships between multiple camps to improve construction efficiency.

Benefits of technology

It improves the construction efficiency of virtual defense facilities in the tower defense competition, enhances user experience and replayability, and improves the utilization rate of server resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120324902A_ABST
    Figure CN120324902A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a virtual character control method and device, terminal equipment and a storage medium, and relates to the technical field of application program development. The method comprises the steps that the construction site of a first camp participating in a tower defense competition is displayed, the tower defense competition is participated by a plurality of camps, different camps are in a competition relationship in the tower defense competition, and virtual roles controlled by a plurality of user accounts of the same camp are in a cooperation relationship in the tower defense competition; in response to a first control operation for a first virtual character in the first camp, the first virtual character is controlled to build a virtual defense facility on a building site of the first camp, and the virtual defense facility is used for preventing an intruder in the tower defense competition from attacking the first camp; in the tower defense competition process, displaying a picture that the intruder attacks the first camp; and after the tower defense competition is finished, displaying competition result information of the tower defense competition. According to the technical scheme provided by the embodiment of the invention, the construction efficiency of the virtual defense facility in the tower defense competition can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the technical field of application development, and particularly to a method, apparatus, terminal device, and storage medium for controlling virtual characters. Background Art

[0002] With the development of computer technology and application development technology, more and more online virtual competitions are carried out through electronic devices.

[0003] In the related art, a defense tower built by a single user is used to resist the invasion of monsters in a tower defense competition. However, the efficiency of a single user building a defense tower is relatively low. Summary of the Invention

[0004] Embodiments of the present application provide a method, apparatus, terminal device, and storage medium for controlling virtual characters, which can improve the construction efficiency of virtual defense facilities in a tower defense competition. The technical solutions are as follows:

[0005] According to one aspect of the embodiments of the present application, a method for controlling a virtual character is provided. The method includes:

[0006] Display a construction site of a first camp participating in a tower defense competition. The tower defense competition involves multiple camps, each camp includes virtual characters controlled by multiple user accounts, different camps are in a competitive relationship in the tower defense competition, and the virtual characters controlled by the multiple user accounts in the same camp are in a cooperative relationship in the tower defense competition;

[0007] In response to a first control operation for a first virtual character in the first camp, control the first virtual character to build a virtual defense facility on the construction site of the first camp. The virtual defense facility is used to block the attack of intruders on the first camp in the tower defense competition. Among them, on the construction site of the first camp, the virtual characters controlled by the multiple user accounts in the first camp are allowed to cooperate to build the virtual defense facility;

[0008] During the tower defense competition, display a picture of the intruders attacking the first camp. Among them, during the tower defense competition, each of the multiple camps is attacked by the intruders;

[0009] After the tower defense competition ends, display competition result information of the tower defense competition. The competition result information is used to indicate the winning party among the multiple camps.

[0010] According to one aspect of the embodiments of the present application, a device for controlling a virtual character is provided. The device includes:

[0011] A venue display module, configured to display the construction venue of the first camp participating in the tower defense competition. The tower defense competition involves multiple camps, each camp including virtual characters controlled by multiple user accounts. Different camps are in a competitive relationship in the tower defense competition, and the virtual characters controlled by the multiple user accounts in the same camp are in a cooperative relationship in the tower defense competition;

[0012] A character control module, configured to control a first virtual character to build a virtual defense facility on the construction venue of the first camp in response to a first control operation on the first virtual character in the first camp. The virtual defense facility is used to block the attack of intruders on the first camp in the tower defense competition. Among them, on the construction venue of the first camp, the virtual characters controlled by the multiple user accounts in the first camp are allowed to cooperate to build the virtual defense facility;

[0013] A screen display module, configured to display the screen of the intruders attacking the first camp during the tower defense competition. Among them, during the tower defense competition, the multiple camps are respectively attacked by the intruders;

[0014] An information display module, configured to display the competition result information of the tower defense competition after the tower defense competition ends. The competition result information is used to indicate the winning party among the multiple camps.

[0015] According to one aspect of the embodiments of the present application, a terminal device is provided. The terminal device includes a processor and a memory. A computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned control method for virtual characters.

[0016] According to one aspect of the embodiments of the present application, a computer-readable storage medium is provided. A computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the above-mentioned control method for virtual characters.

[0017] According to one aspect of the embodiments of the present application, a computer program product is provided. The computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium. The processor of the terminal device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the terminal device executes the above-mentioned control method for virtual characters.

[0018] The technical solutions provided by the embodiments of the present application may include the following beneficial effects:

[0019] By controlling the virtual character to cooperate with other virtual characters in the same camp, jointly build virtual defense facilities in the construction site of the camp to block the attack and invasion of the invaders in the tower defense competition, thereby improving the construction efficiency of the virtual defense facilities in the tower defense competition.

[0020] In addition, in the embodiments of the present application, by setting multiple competing camps in the tower defense competition, and there are multiple virtual characters controlled by each user account in each camp, so that there is both cooperation with teammates and competition with enemy camps in the tower defense competition, making the tower defense competition have both elements of cooperation and confrontation, which helps to improve the replayability of the tower defense competition, and further ensures that the server resources in the background can be more fully utilized and the utilization rate of server resources is improved.

[0021] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. Brief Description of the Drawings

[0022] Figure 1 is a schematic diagram of a method for controlling a virtual character provided by an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of the implementation environment of the solution provided by an embodiment of the present application;

[0024] Figure 3 is a flowchart of a method for controlling a virtual character provided by an embodiment of the present application;

[0025] Figure 4 is a schematic diagram of a construction site provided by an embodiment of the present application;

[0026] Figure 5 is a schematic diagram of a construction site provided by another embodiment of the present application;

[0027] Figure 6 is a schematic diagram of a construction site provided by another embodiment of the present application;

[0028] Figure 7 is a schematic diagram of a construction site provided by another embodiment of the present application;

[0029] Figure 8 is a schematic diagram of a construction site provided by another embodiment of the present application;

[0030] Figure 9 is a schematic diagram of a defense tower provided by an embodiment of the present application;

[0031] Figure 10 is a schematic diagram of a defense tower provided by another embodiment of the present application;

[0032] Figure 11 It is a schematic diagram of a defense tower provided by another embodiment of the present application;

[0033] Figure 12 It is a schematic diagram of a construction site provided by another embodiment of the present application;

[0034] Figure 13 It is a schematic diagram of a tower defense competition provided by an embodiment of the present application;

[0035] Figure 14 It is a schematic diagram of a tower defense competition provided by another embodiment of the present application;

[0036] Figure 15 It is a schematic diagram of a tower defense competition provided by another embodiment of the present application;

[0037] Figure 16 It is a flowchart of a method for controlling a virtual character provided by another embodiment of the present application;

[0038] Figure 17 It is a block diagram of a device for controlling a virtual character provided by an embodiment of the present application;

[0039] Figure 18 It is a block diagram of a terminal device provided by an embodiment of the present application. Detailed Description of the Embodiments

[0040] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of methods consistent with some aspects of the present application as detailed in the appended claims.

[0041] Please refer to Figure 1 , which shows a schematic diagram of a method for controlling a virtual character provided by an embodiment of the present application. As Figure 1As shown, in a tower defense competition participated by the first camp 11 and the second camp 12, the first camp 11 and the second camp 12 respectively need to build virtual defense facilities 13 on their respective construction sites 16 to resist the invasion of monsters (i.e., invaders). In some embodiments, each camp includes 4 virtual characters 14 respectively controlled by 4 user accounts. Each virtual character 14 needs to be responsible for building a part of the virtual defense facilities 13. Therefore, the 4 user accounts in each camp need to cooperate to complete the construction of the virtual defense facilities 13 in their respective camps. At the same time, there is also a competitive relationship between different camps. Whenever a monster successfully invades, a certain amount of health points 15 need to be deducted from the corresponding camp. Whichever camp's health points 15 are deducted first loses, and the other camp wins. In the embodiments of the present application, by making the tower defense game have both cooperation with teammates and competition with the opposing camp, the tower defense competition has both the elements of cooperation and confrontation, thereby improving the user experience and attraction to users; in addition, the virtual characters controlled by users can cooperate with other virtual characters in their respective camps to jointly build virtual defense facilities in the construction sites of their respective camps to block the attack and invasion of the invaders in the tower defense competition, thereby improving the construction efficiency of the virtual defense facilities in the tower defense competition,

[0042] Please refer to Figure 2 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. This implementation environment can be implemented as a control system for virtual characters. As Figure 2 shown, the system 200 may include: a first terminal device 21.

[0043] The target application is installed and running in the first terminal device 21, such as the first client of the target application. Optionally, the first user account is logged in to the first client. The terminal device is an electronic device with data computing, processing, and storage capabilities. The terminal device may be a smart phone, a tablet computer, a PC (Personal Computer), a wearable device, a VR (Virtual Reality) device, an AR (Augmented Reality) device, an MR (Mixed Reality) device, etc., and the embodiments of the present application do not limit this. The target application may be a game application, such as a party application, a casual application, a gathering application, a shooting game application, a multiplayer gunfight survival game application, a battle royale survival game application, an LBS (Location Based Service) game application, an MOBA (Multiplayer Online Battle Arena) game application, etc., and the embodiments of the present application do not limit this. The target application may also be any application with the control function of virtual characters, such as a social application, a payment application, a video application, a music application, a shopping application, a news application, etc. In the method provided by the embodiments of the present application, the execution subject of each step may be the first terminal device 21, such as the first client running in the first terminal device 21.

[0044] In some embodiments, the system 200 further includes at least one other terminal device 22 in addition to the first terminal device 21. The target application is installed and running in the other terminal device 22, such as the second client of the target application. Optionally, the second user account is logged in to the second client. In some embodiments, the first terminal device 21 and at least one other terminal device 22 may participate in the same tower defense competition through their respective clients.

[0045] In some embodiments, the system 200 further includes a server 23. The server 23 is respectively communicatively connected (such as a network connection) to the first terminal device 21 and at least one other terminal device 22. The server 23 is used to provide background services for the target application. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0046] Next, the technical solution of the present application will be introduced and illustrated through several embodiments.

[0047] Please refer to Figure 3, which shows a flowchart of a method for controlling a virtual character provided in an embodiment of the present application. In this embodiment, it is exemplified by applying this method to the first client introduced above. This method may include the following steps (310-340):

[0048] Step 310, display the construction site of the first camp participating in the tower defense competition. The tower defense competition is participated by multiple camps, each camp includes virtual characters controlled by multiple user accounts respectively, different camps are in a competitive relationship in the tower defense competition, and the virtual characters controlled by multiple user accounts in the same camp are in a cooperative relationship in the tower defense competition.

[0049] In some embodiments, the tower defense competition refers to a competition in which virtual defense facilities are built and / or upgraded to resist the invasion of virtual invaders such as monsters and enemies (simply referred to as invaders in the embodiments of the present application). The tower defense competition can be a strategic competition game. In some embodiments, the tower defense competition can also be referred to as a tower defense game, tower defense confrontation, or simply referred to as tower defense. In some embodiments, there can be multiple camps participating in the tower defense competition, such as 2, 3, 4, 6, 10, etc. The specific number of camps participating in the tower defense competition can be set by relevant technical personnel according to the actual situation, and the embodiments of the present application do not make specific limitations in this regard. In the embodiments of the present application, a camp can also be referred to as a team, group, guild, etc. Different camps are in a competitive relationship. In the embodiments of the present application, the competition is carried out in units of camps, and the ultimate winning party is a certain camp among multiple camps.

[0050] In some embodiments, multiple camps participating in the same tower defense competition can be automatically matched by the background server of the tower defense competition. For example, multiple camps or virtual characters of multiple camps with similar competition levels are matched into the same tower defense competition to ensure the fairness of the tower defense competition. In some embodiments, multiple camps participating in the same tower defense competition can also be obtained by mutual selection and confirmation of multiple user accounts. For example, at least two of the 8 user accounts are in a friend relationship. The virtual characters controlled by the 8 user accounts can be independently selected by each user account to join one of the two camps, or automatically assigned by the background server into two camps, and the tower defense competition is carried out with the lineups of the two assigned camps, so that users can cooperate and compete with friend accounts in the virtual tower defense competition, providing opportunities for communication and interaction with friends, and thus enhancing the attraction of the tower defense competition to users.

[0051] In some embodiments, each camp includes virtual characters controlled by multiple user accounts. For example, each user account controls one virtual character. In some embodiments, the virtual characters controlled by different user accounts in the same camp have a cooperative relationship in the tower defense competition. The virtual characters controlled by different accounts in the same camp cooperate with each other to build the virtual defense facilities of their own camp, and to block and resist the invaders through cooperation, so that users can cooperate in a team by controlling their respective virtual characters, experience teamwork and feel the sense of group cohesion, thereby enhancing the replay attraction of the tower defense competition to users. Optionally, each camp has the same number of virtual characters. In some embodiments, the number of virtual characters in each camp can be 2, 3, 4, 5, 6, etc. The specific number of virtual characters in each camp can be set by relevant technicians according to the actual situation, and the embodiments of the present application do not make specific limitations in this regard. In some embodiments, the multiple virtual characters corresponding to the same camp can be automatically matched to the same camp by the background server of the tower defense competition; the same camp can also be obtained by a group of multiple user accounts with a friend relationship, and the embodiments of the present application do not make specific limitations in this regard.

[0052] In some embodiments, the virtual character refers to the virtual character controlled by the user account in the target application. Taking the target application as a game application as an example, the virtual character refers to the game character controlled by the user account in the game application. The virtual character can be in the form of a human, an animal, a cartoon or other forms, and the embodiments of the present application do not make limitations in this regard. The virtual character can be displayed in a two-dimensional form or a three-dimensional form. Optionally, when the virtual environment where the virtual character is located is a three-dimensional virtual environment, the virtual character can be a three-dimensional solid model created based on the animation skeleton technology. The virtual character has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment. Optionally, the target application can have the function of simulating a real physical environment. In the virtual environment, the movement rules of each virtual element (such as virtual characters) conform to or are close to the physical laws of reality.

[0053] In some embodiments, the construction site can also be referred to as a base, a map, a home, etc. The construction site refers to the virtual site for building virtual defense facilities, and virtual characters and invaders can move on the construction site. In some embodiments, the shape of the construction site can be any shape, such as a rectangle, a square, a circle, a triangle, an airplane shape, etc. In some embodiments, in the same tower defense competition, the construction sites of multiple camps are the same. For example, the sizes and shapes of the construction sites of different camps among multiple camps can be exactly the same. If the camps participating in the tower defense competition are Camp A and Camp B, then Figure 4As shown, the construction sites 24 of Camp A and the construction sites 25 of Camp B are identical in size and shape. For another example, the construction sites of different camps among multiple camps are the same in size but mirror-shaped. If the camps participating in the tower defense competition are Camp A and Camp B, then as Figure 5 shown, the construction site 26 of Camp A and the construction site 27 of Camp B are mirror images in shape. In some embodiments, in a top-down view, the construction sites of multiple camps can be distributed in a stacked manner in the virtual environment, such as Figure 5 , Figure 6 shown, an axisymmetric distribution, or Figure 7 shown, a rotationally symmetric distribution, or Figure 8 shown, a centrally symmetric distribution. In this embodiment, the construction sites of different camps are the same, thus ensuring fair competition among multiple camps participating in the tower defense competition, enhancing the fairness of the tower defense competition, and further enhancing the user experience and the attractiveness of the tower defense competition to users.

[0054] In some embodiments, for different sessions of the tower defense competition, the shapes of the construction sites can be different, so as to enhance the freshness of the tower defense competition for users and further attract users to participate in the tower defense competition repeatedly. For example, a user can select one of the candidate construction sites with various shapes to participate in the tower defense competition, and the construction sites of all camps in the tower defense competition participated by the user are the same, that is, all are the same as the construction site selected by the user, thus enhancing the degree of conformity between the construction site and the user's preference while ensuring fair competition, and further enhancing the user's interest and enthusiasm for participating in the tower defense competition. For another example, the shape of the construction site for each session of the tower defense competition is randomly determined (of course, the construction sites of different camps in each session of the tower defense competition are the same), and the user cannot know in advance which tower defense competition they will participate in, so that the tower defense competition has a certain degree of randomness while ensuring fairness, enhancing the sense of the unknown of the tower defense competition that the user will participate in, and further enhancing the attractiveness of the tower defense competition to users. At the same time, it also attracts users to participate in the tower defense competition more, enhances the repeated participation rate of the tower defense competition, and improves the utilization efficiency of the background server resources of the tower defense competition.

[0055] Step 320, in response to a first control operation for a first virtual character in the first camp, control the first virtual character to build a virtual defense facility on the construction site of the first camp.

[0056] In some embodiments, the virtual defense facilities are used to block the attack of intruders in the tower defense competition against the first camp. Among them, on the construction site of the first camp, virtual characters controlled by multiple user accounts in the first camp are allowed to cooperate in building virtual defense facilities. In some embodiments, intruders refer to virtual objects that will invade the camp if not blocked. Intruders can be virtual objects of types such as virtual monsters, beasts, zombies, elves, bosses, etc. Intruders can also be virtual characters of other camps. In some embodiments, the virtual characters of the first camp can block the intrusion of intruders through the virtual defense facilities built through cooperation. In some embodiments, the first virtual character is one of the multiple virtual characters in the first camp. The user controls the first virtual character to build virtual defense facilities on the construction site of the first camp through the first user account logged in on the first client.

[0057] In some embodiments, step 320 includes at least one of the following:

[0058] Control the first virtual character to set the position of the virtual defense facility on the construction site of the first camp;

[0059] Control the first virtual character to set the type of the virtual defense setting on the construction site of the first camp;

[0060] Control the first virtual character to set the level of the virtual defense facility on the construction site of the first camp.

[0061] In some embodiments, building the virtual defense facility includes at least one of setting the position of the virtual defense facility, setting the type of the virtual defense setting, and setting the level of the virtual defense facility. By setting the position, type, or level of the virtual defense facility, the built virtual defense facility can be made to conform to the user's wishes as much as possible.

[0062] In some embodiments, construction points of virtual defense facilities are displayed on the construction site of the first camp. The first virtual character can stand on or step on the construction point to create a virtual defense facility (i.e., set the position of the virtual defense facility) on the construction plot corresponding to the construction point, or set and switch the type of the virtual defense facility on the construction plot, or upgrade the virtual defense facility on the construction plot. In some embodiments, a construction plot refers to a plot near the construction point and used for building virtual defense facilities, which is part of the construction site. In some embodiments, there is a corresponding relationship between the construction point and the construction plot. As long as the first virtual character is controlled to stand on or step on a construction point, the construction plot corresponding to the construction point or the virtual defense facility on the construction plot can be highlighted.

[0063] In some embodiments, the virtual defense facility can be a defense tower, or a trap, or can also include both a defense tower and a trap.

[0064] A defense tower refers to a virtual defense facility protruding from the ground. The defense tower can be tower-shaped, fort-shaped, or high-platform-shaped, and the embodiments of the present application do not make specific limitations thereto. The defense tower can include multiple types, and a user account can select the type of defense tower to be built by controlling a virtual character (such as a first virtual character). For example, the defense tower can include a machine gun tower, a flamethrower tower, a missile tower, and a slowdown tower. Among them, as Figure 9 shown, the machine gun tower 51 refers to a defense tower that can automatically and continuously shoot bullets 52 and can cause substantial damage to intruders. The shooting range of the machine gun tower 51 is relatively far but the damage range is small; as Figure 10 shown, the flamethrower tower 53 refers to a defense tower that can spray flames 54 and can cause substantial damage to intruders. The coverage area of each flame 54 sprayed by the flamethrower tower 53 is relatively large, but the damage is small; as Figure 11 shown, the missile tower 55 refers to a defense tower that can automatically lock on to intruders (such as locking on to intruder 57) and launch missiles 56 for attack and can cause substantial damage to intruders. The accuracy of the missiles launched by the missile tower 55 is relatively high, but the damage range is small; the slowdown tower refers to a defense tower that can slow down the moving speed of intruders within a certain period of time and cannot cause substantial damage to intruders. In some embodiments, the attack function of the defense tower can be continuous. In some embodiments, the defense and attack functions of the defense tower are not continuous but have a cooling time, and no attack or defense will be carried out on intruders during the cooling time. For example, the defense or attack function is activated at regular intervals.

[0065] A trap refers to a virtual defense facility that is either underground or protrudes above the ground but has a low height. A trap can be visible and uncamouflaged, or invisible or camouflaged. In some embodiments, the attack function of the trap can be always present, i.e., as long as an intruder steps into the trap, they will be attacked. In some embodiments, the function of the trap is not continuous but has a cooldown time, and during the cooldown time, it will not attack or defend an intruder who enters the trap. For example, the attack or defense function of the trap is activated at regular intervals; or for another example, each time the trap is used, its function will cool down for a period of time. In some embodiments, there are various types of traps, and a user account can control a virtual character (such as a first virtual character) to select the type of trap to be built. For example, traps can include spike traps, electromagnetic traps, roadblock traps, and springboard traps. Among them, a spike trap refers to a trap that harms intruders through spikes. If an intruder enters a spike trap, they will be stabbed by the spikes in the spike trap and thus suffer harm; an electromagnetic trap refers to a trap that captures or attracts nearby intruders to enter and causes harm to the intruders through the generated current or electromagnetic field; a roadblock trap refers to a trap that includes roadblocks such as cheval de frise and fences and hinders the intruder from moving forward on the intruder's invasion path. In some embodiments, if an intruder touches sharp objects such as thorns, nails, and blades in the roadblock trap, they will suffer harm. The intruder can destroy or move the roadblocks in the roadblock trap to continue moving forward; a springboard trap refers to a trap that bounces an intruder who enters the trap away, thereby slowing down the intruder's forward speed.

[0066] In some embodiments, the virtual defense facilities have different levels. The higher the level of the virtual defense facility, the stronger its defense ability. Specifically, it can be manifested as the higher the level of the virtual defense facility, the longer the defense time, the shorter the ability cooldown duration, the stronger the attack ability (i.e., the greater the harm caused to the intruder), and the higher the destructive power and harm it can withstand (i.e., the less likely it is to be damaged), and so on.

[0067] In some embodiments, the virtual character can upgrade the virtual defense facilities or increase the level of the virtual defense facilities by consuming the virtual resources it owns or the virtual resources of the camp it belongs to. In some embodiments, the virtual resources can be virtual currencies or virtual items such as virtual gold coins, virtual silver coins, virtual ingots, virtual diamonds, virtual jade, virtual flowers, etc. The virtual resources can also be energy values, points, or virtual resources that can be obtained and collected through a target application program (such as a tower defense competition). In some embodiments, for multiple camps or virtual characters participating in a tower defense competition, the virtual resources they each own at the beginning of the tower defense competition are the same, thus ensuring the fairness of the tower defense competition. In some embodiments, in a tower defense competition, as the competition duration accumulates, each camp and / or virtual character participating in the competition will receive virtual resource rewards for the virtual character to upgrade the virtual defense facilities of the camp it belongs to; the longer the camp blocks the intrusion of the invaders, the more virtual resources the camp and / or virtual character will accumulate. In some embodiments, the virtual character can attack the invaders and obtain virtual resources by causing damage to the invaders or defeating the invaders. In some embodiments, defeating the invaders can mean damaging the invaders so that they will not or cannot invade the camp where the virtual character is located anymore, such as killing the invaders or driving the invaders away. In some embodiments, the more damage the virtual character causes to the invaders, the more virtual resource rewards the virtual character or its camp will receive; in some embodiments, the more invaders the virtual character defeats, the more virtual resource rewards the virtual character or its camp will receive.

[0068] In some embodiments, users' accounts within the same camp can negotiate to determine the types and levels of the virtual defense facilities they each want to build, such as determining the types and levels of the defense towers to be built and the types and levels of the traps to be built, so as to combine different types and levels of virtual defense facilities with the virtual characters in the same camp, so that the virtual defense facilities jointly built with teammates in the same camp can block the intrusion of the invaders as much as possible.

[0069] In some embodiments, there are multiple construction points for virtual defense facilities in the construction site of the first camp. Multiple virtual characters respectively controlled by multiple user accounts in the first camp are each responsible for a part of the construction points, that is, building virtual defense facilities on the construction blocks corresponding to the responsible construction points. In some embodiments, a construction point refers to a point used to determine the position of a construction block. When a virtual character stands on or steps on a construction point, it can build a virtual defense facility on the construction plot corresponding to that construction point. In some embodiments, the construction plot corresponding to a construction point is pre-configured, that is, there is a fixed corresponding relationship between the construction point and the construction plot. Of course, the construction plot is usually located next to or near the corresponding construction point. In some embodiments, one construction point can correspond to one or more construction plots. In some embodiments, for the construction points where virtual defense facilities are to be built, they are evenly divided into multiple parts according to the number of user accounts or the number of characters corresponding to the camp, and each part is responsible for building virtual defense facilities by a virtual character controlled by a user account. In some embodiments, for construction points that are not one's own responsibility, virtual characters cannot build virtual defense facilities on the corresponding construction plots. That is, each virtual character controlled by a user account needs to complete the construction of virtual defense facilities at the corresponding construction points by itself, and virtual characters controlled by other user accounts cannot help, so as to ensure the participation of each user account in the tower defense competition as much as possible and guarantee the cooperation elements in the tower defense competition. In some embodiments, as Figure 12 shown, there are 8 construction points for virtual defense facilities to be built in the first construction area 28 on the construction site 17 of the first camp. The first camp corresponds to 4 virtual characters respectively controlled by 4 user accounts. Then, each virtual character in the first camp needs to be responsible for building virtual defense facilities on the construction plots corresponding to 2 of the 8 construction points. In some embodiments, the construction plots can be divided into construction plots for defense towers and construction plots for traps. The construction plot for a defense tower is a plot used to build a defense tower, and the construction plot for a trap is a plot used to build a trap. In some embodiments, as Figure 12 shown, the user account can control the first virtual character to move to the first construction point. After that, the construction plot corresponding to the first construction point will be highlighted, such as changing the displayed color.

[0070] In some embodiments, for the construction points where virtual defense facilities are to be built, they are evenly divided into multiple parts according to the number of user accounts or the number of virtual characters in the camp, and the virtual characters controlled by each user account are responsible for building the virtual defense facilities at the corresponding parts. In some embodiments, for the construction points that are not their own responsibility, virtual characters cannot build virtual defense facilities on the corresponding construction plots. That is, the virtual characters controlled by each user account need to complete the construction of the virtual defense facilities at the corresponding construction points by themselves, and the virtual characters controlled by other user accounts cannot help, so as to ensure the participation of each user account in the tower defense competition as much as possible and guarantee the cooperation elements in the tower defense competition. In some embodiments, as Figure 12 shown, there are 8 construction points where virtual defense facilities are to be built in the first construction area 28 on the construction site 17 of the first camp. The first camp corresponds to 4 virtual characters controlled by 4 user accounts respectively. Then, each virtual character in the first camp needs to be responsible for building virtual defense facilities on the construction plots corresponding to 2 of the 8 construction points.

[0071] In some embodiments, the construction plots can be divided into construction plots for defense towers and construction plots for traps. The construction plots for defense towers are the plots used to build defense towers, and the construction plots for traps are the plots used to build traps. In some embodiments, as Figure 12 shown, after the user account controls the first virtual character to move to the first construction point 35, the construction plot corresponding to the first construction point 35 will be highlighted, such as by changing the displayed color. In some embodiments, the virtual defense facilities that can be built on the construction plot corresponding to the first construction point 35 will also be previewed, such as previewing at least one candidate virtual defense facility on the construction plot corresponding to the first construction point 35; if the user selects the first virtual defense facility from at least one of the candidate virtual defense facilities through a selection operation, it is determined that the current virtual defense facility on the construction plot is the first virtual defense facility, but at this time, only the first virtual defense facility is previewed on the construction plot, and actually the first virtual defense facility has not been really built yet. There is a construction confirmation control displayed in the first client, and the construction operation can be a trigger operation for the construction confirmation control. That is, in response to the trigger operation for the construction confirmation control, the first virtual defense facility is built on the construction plot. In some embodiments, the construction operation refers to the operation that the first virtual character controlled by the user account first moves away from the first construction point and then moves to or steps on the first construction point.

[0072] In some embodiments, each camp includes multiple construction areas, which are evenly distributed to multiple virtual characters controlled by multiple user accounts of the camp, so that each virtual character is responsible for the construction of all virtual defense facilities in one or more construction areas. The construction area refers to an area including a construction point and a corresponding construction plot. Figure 12 As shown, the construction site 17 of the first camp includes four construction areas, namely the first construction area 28, the construction area 32, the construction area 33 and the construction area 34. If the first camp includes four virtual characters controlled by four user accounts, each virtual character is responsible for the construction task of the virtual house defense facilities in one of the construction areas. For example, the first virtual character needs to be responsible for the virtual defense facilities on the construction plots corresponding to all construction points in the first construction area 28.

[0073] In some embodiments, for multiple construction points of virtual defense facilities to be built on the construction site, the amount that different virtual characters are responsible for may be different, but each virtual character needs to be responsible for the construction of virtual defense facilities at at least one construction point. This ensures a certain degree of participation of each virtual character in the tower defense competition while increasing the freedom of task allocation within the camp. For example, characters controlled by user accounts with strong capabilities can take on more construction tasks, thereby improving the efficiency of the camp as a whole in constructing virtual defense facilities.

[0074] In some embodiments, after the tower defense competition begins, each camp has a certain amount of time to build virtual defense facilities, and no invaders will invade the camp during this time. In some embodiments, the time from the beginning of the tower defense competition to the invasion of the first invader can be 45 seconds, 90 seconds, 100 seconds, 2 minutes, 3 minutes, 5 minutes, 10 minutes, etc. The specific value of the time can be set by relevant technical personnel according to actual conditions, and the embodiments of the present application do not specifically limit this. In some embodiments, during the period from the beginning of the tower defense competition to the invasion of the first invader, an invasion countdown prompt message can be displayed to prompt the user to quickly build virtual defense facilities and discuss with teammates to determine strategies to fight invaders, so as to avoid the situation where the virtual defense facilities have not been completed when the invasion begins, and to ensure the completion of the construction of the virtual defense facilities as much as possible.

[0075] Step 330, during the tower defense competition, a picture of invaders attacking the first camp is displayed. During the tower defense competition, multiple camps are attacked by invaders respectively.

[0076] In some embodiments, during the tower defense competition, at least one invader attacks the first camp, and at the same time, the virtual defense facilities built in the first camp will also confront the invaders and block their attacks. In some embodiments, the invaders of each camp refer to those generated (or refreshed) in that camp. In some embodiments, the construction site of each camp includes multiple invasion paths, and each invader attacks the camp along one of the invasion paths. In some embodiments, the construction site of each camp also includes multiple spawn points for invaders, that is, the points where invaders are generated, and each spawn point corresponds to the starting point of an invasion path. In some embodiments, as Figure 12 shown, the construction site 17 of the first camp includes 3 invasion paths, namely Figure 12 the invasion path 36, the invasion path 37, and the invasion path 38 in

[0077] Step 340, after the tower defense competition ends, display the competition result information of the tower defense competition, and the competition result information is used to indicate the winning party among multiple camps.

[0078] In some embodiments, after the tower defense competition ends, display the win-loss information or ranking information of the multiple camps participating in the tower defense competition, that is, display the competition result information of the tower defense competition. In some embodiments, when there are two camps participating in the tower defense competition, the competition result information displayed on the first client is used to show whether the first camp is the winning party or the losing party; or, the competition result information is used to show which of the two camps participating in the tower defense competition is the winning party and which is the losing party. In some embodiments, when the number of multiple camps participating in the tower defense competition is 3 or more, the competition result information can be used to show the winning party among the multiple camps and the rankings of the multiple camps. The winning party refers to the camp that resists the invaders for the longest time, or, the winning party can also refer to other camps except the camp that resists the invaders for the shortest time.

[0079] In some embodiments, when the competition result information includes information of multiple camps, the competition result information displayed on the first client highlights the information of the first camp, such as highlighting the identifier of the first camp and the ranking of the first camp, so that the user of the first user account can quickly learn the ranking or win-loss result of the first camp where they are located, saving the user's time.

[0080] In summary, in the technical solution provided by the embodiments of the present application, by controlling the virtual character to cooperate with other virtual characters in the same camp, and jointly building virtual defense facilities in the construction site of the camp to block the attack and invasion of the invaders in the tower defense competition, the construction efficiency of the virtual defense facilities in the tower defense competition is improved.

[0081] In addition, in the embodiments of the present application, by setting multiple competing camps in the tower defense competition, and there are multiple virtual characters controlled by each user account in each camp, so there is both cooperation among teammates and competition with the opposing camps in the tower defense competition, making the tower defense competition have both elements of cooperation and confrontation, which helps to improve the replayability of the tower defense competition, and further ensures that the server resources in the background can be more fully utilized and the utilization rate of the server resources is improved.

[0082] In addition, since the embodiments of the present application improve the user experience and the attraction to users in the tower defense competition, the probability of users participating in the tower defense competition repeatedly is increased, and further the utilization efficiency of the background server resources of the tower defense competition is improved.

[0083] In some possible implementation manners, multiple construction points are displayed in the construction site of the first camp, and the method may further include the following steps:

[0084] 1. In response to the first virtual character moving to the first construction point among the multiple construction points, preview and display the virtual defense facility corresponding to the first construction point;

[0085] 2. In response to the first virtual character moving to the first construction point again, build the virtual defense facility corresponding to the first construction point on the construction plot corresponding to the first construction point.

[0086] In some embodiments, there are multiple construction points in the construction site of the first camp, and the construction points are used for control.

[0087] Multiple virtual characters controlled by multiple user accounts in the first camp are respectively responsible for a part of the construction points, that is, build virtual defense facilities on the construction blocks corresponding to the responsible construction points. In some embodiments, the construction point refers to the point used to determine the position of the construction block. By standing or stepping on a construction point, the virtual character can build a virtual defense facility on the construction plot corresponding to the construction point. In some embodiments, the construction plot corresponding to the construction point is pre-configured, that is, there is a fixed corresponding relationship between the construction point and the construction plot. Of course, the construction plot is usually located next to or near the corresponding construction point. In some embodiments, one construction point corresponds to one construction plot.

[0088] In some embodiments, the first virtual character can move to the first construction point by means of position translation, jumping, climbing, etc. If a virtual character stands on or steps on a construction point, the virtual defense facilities that can be built on the construction plot corresponding to the construction point can be previewed and displayed, and then it can be decided whether to build the virtual defense facilities on the construction plot corresponding to the construction point. In some embodiments, if the user is not satisfied with the virtual defense facilities corresponding to the first construction point (such as the type or level of the virtual defense facilities), the user can abandon building the virtual defense facilities on the construction plot corresponding to the first construction point; if the user is satisfied with the virtual defense facilities corresponding to the first construction point, the user can leave the first construction point and then move to the first construction point again (or jump off the first construction point and then jump back onto the first construction point), and then the virtual defense facilities can be built on the construction plot corresponding to the first construction point. In some embodiments, after the first virtual character moves to the first construction point again, the first client sends a request to the background server to build the virtual defense facilities; the background server checks whether the virtual resources owned by the first virtual character or the first camp are sufficient to build the virtual defense facilities. If sufficient, the server approves and executes the request, deducts the corresponding virtual resources of the first virtual character or the first camp, and the built virtual defense facilities will also be displayed on the construction plot corresponding to the first construction point in the first client. This implementation scheme can be simply summarized as: when the first virtual character steps on the first construction point, the virtual defense facilities corresponding to the first construction point are previewed and displayed on the construction plot corresponding to the first construction point. If the user is not satisfied with the virtual defense facilities, the user can directly leave; if the user is satisfied with the virtual defense facilities, the user can step on the first construction point again, and then the virtual defense facilities can be built on the construction plot corresponding to the first construction point. The preview display of the technical solution provided by this embodiment is intuitive and clear, and the operation of stepping on the construction point is simple and convenient, improving the construction efficiency of virtual defense facilities.

[0089] In some embodiments, there are multiple candidate virtual defense facilities corresponding to the first construction point. During the process of previewing and displaying one of the candidate virtual defense facilities corresponding to the first construction point, if the user is not satisfied with the virtual defense facility seen, the user can switch to display other candidate virtual defense facilities by clicking on the previewed virtual defense facility or by other means, until the previewed candidate virtual defense facility meets the user's requirements. The user can then control the first virtual character to move back to the first construction point and build the selected virtual defense facility on the construction plot corresponding to the first construction point. If none of the previewed virtual defense facilities meet the user's requirements, the user can also control the virtual character to leave the first construction point and abandon building a virtual defense facility on the construction plot corresponding to the first construction point. In this embodiment, multiple candidate virtual defense facilities can be switched for preview display, increasing the likelihood that the user will select a virtual defense facility that meets their requirements, helping to reduce the movement of the virtual character between different construction points, and thus improving the overall construction efficiency of the virtual defense facilities.

[0090] In the above implementation, the location of the virtual defense facility to be built (i.e., the construction plot) can be conveniently and quickly understood through the construction point, thereby improving the construction efficiency of the virtual defense facility. Additionally, the virtual character will only prominently display the corresponding construction plot when at the construction point, thus avoiding interference from other construction plots and further enhancing the construction efficiency of the virtual defense facility.

[0091] In some possible implementation manners, during the tower defense competition, the scores of each of the multiple camps are displayed. Among them, the score of the first camp is related to the blocking result of the first camp against the invaders, and the winning side is determined based on the scores of each of the multiple camps.

[0092] In some embodiments, during the tower defense competition, each camp has its own score, and the score of each camp can change continuously as the competition progresses. In some embodiments, the score corresponding to a camp can be related to the blocking result of that camp against the invaders, which can more intuitively and clearly reflect the blocking ability of the virtual defense facilities of each camp against the invaders, and thus reflect the competition level of each camp in this tower defense competition.

[0093] In some embodiments, there can be multiple types of intruders, such as intruders who are good at using fire (i.e., fire-attribute intruders), intruders who are good at using water (i.e., water-attribute intruders), intruders who are good at using lightning (i.e., thunder-attribute or electricity-attribute intruders), etc. The embodiments of the present application do not make specific limitations in this regard. In some embodiments, different types of virtual defense facilities also have different degrees of damage to different types of intruders. In some embodiments, for intruders with similar attributes and virtual defense facility types, the damage of this type of virtual defense facility to intruders of this attribute is less than the damage to intruders of other attributes. For example, for intruders who are good at using fire, they are not afraid of the attack of flames. Therefore, if the encountered virtual defense facility is a flame-throwing tower, the intruders who are good at using fire will not be harmed by the flames ejected by the flame-throwing tower; or, the flames ejected by the flame-throwing tower can only cause relatively small damage to the intruders who are good at using fire. In some embodiments, for intruders with attributes and virtual defense facility types that are mutually restraining, the damage of this type of virtual defense facility to intruders of this attribute is greater than the damage to intruders of other attributes. For example, for thunder-attribute or electricity-attribute intruders, if the encountered virtual defense facility is an electromagnetic trap, the thunder-attribute or electricity-attribute intruders will not be affected by the electromagnetic trap (such as not being attracted by the electromagnetic trap) and can cross the electromagnetic trap without any obstacles. Therefore, in the process of initially building virtual defense facilities, multiple virtual characters in the same camp can cooperate to set up various types of virtual defense facilities to better cope with the attacks of various types or various-attribute intruders. In some embodiments, during the process of intruders attacking the first camp, the virtual characters in the first camp can still upgrade the virtual defense facilities, switch the types of virtual defense facilities, and can also repair or rebuild the damaged virtual defense facilities to optimize the layout strategy of the virtual defense facilities.

[0094] In some embodiments, the score of a camp is positively correlated with the blocking result against the intruder. That is, the better the blocking result against the intruder, the higher the score of the corresponding camp; correspondingly, the worse the blocking result against the intruder, the lower the score of the corresponding camp. In some embodiments, if the better the blocking result against the intruder, the higher the score of the corresponding camp, then after the tower defense competition ends, the camp with the highest score among multiple camps is the winning party; or, the camps with relatively high scores among multiple camps are the winning parties. In some embodiments, the score corresponding to a camp may be related to the blocking result of the camp against the intruder. In some embodiments, the score of a camp is negatively correlated with the blocking result against the intruder. That is, the better the blocking result against the intruder, the lower the score of the corresponding camp; correspondingly, the worse the blocking result against the intruder, the higher the score of the corresponding camp. In some embodiments, if the better the blocking result against the intruder, the lower the score of the corresponding camp, then after the tower defense competition ends, the camp with the lowest score among multiple camps is the winning party; or, the camp with the lowest score among multiple camps is the losing party, and the other camps are the winning parties.

[0095] In some embodiments, multiple camps in the tower defense competition have the same initial score to ensure the fairness of the tower defense competition. In some embodiments, taking the example that the better the blocking result against the intruder, the higher the score of the corresponding camp, during the tower defense competition, every time an intruder successfully invades the first camp, the first camp has to deduct a certain score. If the first camp is the camp among multiple camps whose score first drops to the first score (the first score is lower than the initial score), then the first camp is the losing party among multiple camps; or the first camp is the first camp to be eliminated. If it is necessary to rank multiple camps, the first camp will be ranked last. If among multiple camps, there is another camp other than the first camp whose score first drops to the first score, then the first camp may belong to the winning party. In some embodiments, if only the first camp and the second camp participate in the tower defense competition, if the score of the first camp first drops to the first score, then the first camp belongs to the losing party and the second camp belongs to the winning party; if the score of the second camp first drops to the first score, then the first camp belongs to the winning party and the second camp belongs to the losing party. In some embodiments, the first score may be 0 or other values. The specific value of the first score can be set by relevant technical personnel according to the actual situation, and the embodiments of the present application do not make specific limitations on this.

[0096] In some embodiments, an intruder successfully invading the first camp means that the intruder successfully reaches the first position of the first camp. Among them, the first position may be the position where the switch 44 is located as shown in Figure 13 or may be as shown in Figure 14The location of the base 45 shown. In some embodiments, if an intruder successfully invades the first camp, it can also be said that the intruder successfully escapes.

[0097] In some embodiments, after an intruder successfully invades the first camp, the score of the first camp is correspondingly deducted, which has a positive correlation with the number and level of the intruders. That is, when the levels of the intruders are the same, the more the number of intruders that successfully invade the first camp, the more the score deducted from the first camp; when the number of intruders is the same, the higher the level of the intruders that successfully invade the first camp, the more the score deducted from the first camp. In this embodiment, it prompts the user account to control the virtual character to block the intruders as much as possible to minimize the number of intruders that successfully invade the camp; and through this embodiment, it can also prompt the virtual character controlled by the user account to organize the invasion of higher-level intruders as much as possible, that is, to prompt the virtual defense facilities and virtual characters to resist and block higher-level intruders as much as possible, so as to keep the tower defense competition at a certain level of difficulty, playability and interest, and then enhance the attraction of the tower defense competition to users.

[0098] In some embodiments, the method may further include the following steps:

[0099] 1. When the score of the first camp is the lowest among multiple camps, and the difference between the scores of other camps except the first camp and the score of the first camp is greater than or equal to the third threshold, display a picture of strengthening the attack of the intruders on the first camp, and the attack ability of the strengthened intruders is stronger than that of the intruders;

[0100] 2. When the virtual defense facilities of the first camp or the virtual characters of the first camp defeat the strengthened intruders, display that the score of the first camp increases.

[0101] In some embodiments, when the score of the first camp is the lowest among multiple camps, and the difference between the scores of other camps except the first camp and the score of the first camp is greater than or equal to the third threshold, it means that the score difference between the first camp and the other camps is too large. If this trend is maintained, the first camp will have almost no chance to turn over. In this embodiment, when the score difference between the first camp and the other camps is too large, a reinforced invader can be generated or refreshed in the first camp (the other camps will not refresh the reinforced invader). Although the offensive ability of the reinforced invader is stronger than that of other ordinary invaders, defeating or killing other ordinary invaders can only obtain virtual resource rewards, and the deducted score cannot be restored. If the first camp can defeat or kill the reinforced invader, the deducted score of the first camp can be restored to a part, that is, the remaining score can be increased, thereby shortening the score gap with other camps, and even surpassing the score of other camps. In some embodiments, if the initial score is 100, the third threshold can be 40, 50, 60, etc. The specific value of the third threshold can be set by relevant technical personnel according to actual conditions, and the embodiment of the present application does not specifically limit this. In some embodiments, the value of the score corresponding to the recovery of defeating or killing the enhanced invader is positively correlated with the offensive ability of the enhanced invader. The stronger the offensive ability of the enhanced invader, the higher the value of the score corresponding to the recovery of defeating or killing the enhanced invader; the weaker the offensive ability of the enhanced invader, the lower the value of the score corresponding to the recovery of defeating or killing the enhanced invader. In this embodiment, when the score gap is too large, the weaker party in multiple camps refreshes the enhanced invader, thereby giving the weaker party the opportunity to narrow the score gap and surpass the score, thereby increasing the intensity of the competition; if the weaker party fails to kill or defeat the enhanced invader, but allows the enhanced invader to successfully invade, then the score of the weaker party will also be deducted faster (if the enhanced invader successfully invades, the deducted score is also much more than other ordinary invaders), thereby accelerating the end of the game, saving time for each virtual character participating in the tower defense competition, and improving competition efficiency.

[0102] In some embodiments, the score is the remaining health value, and the deducted value of the health value is related to the blocking result of the first camp against the invader.

[0103] In some embodiments, the score may be the remaining health value, that is, each camp has a corresponding health value. In some embodiments, multiple camps have the same health value at the beginning of the tower defense competition, and each time an invader successfully invades the first camp, the health value of the first camp will be deducted by a certain value. Figure 15As shown, the first camp and the second camp participate in the tower defense competition. The initial health values of the first camp, 42, and the second camp, 43, can both be 100, or both be 1000, or both be 100%. Of course, the initial health values of the camps can be set by relevant technical personnel according to the actual situation, and the embodiments of this application do not make specific limitations on symmetry. In some embodiments, the health value can also be referred to as the blood volume. For example, the score of the first camp is the remaining blood volume of the first camp, and the deduction value of the blood volume is related to the blocking result of the first camp against the invaders. Through this embodiment, the remaining health value is directly linked to the blocking of the invaders, and the blocking ability of the camp against the invaders and the competition level can be clearly shown through the remaining health value.

[0104] In the above implementation, through the scores of each camp, the blocking ability of the virtual defense facilities of each camp against the invaders can be more intuitively and clearly reflected, thus reflecting the competition level of each camp in this tower defense competition.

[0105] In some possible implementations, during the tower defense competition, there are multiple rounds of invaders attacking multiple camps. Among them, for multiple camps, the types of invaders in the same round are the same, and the types of invaders in each round are randomly determined from multiple candidate invader types.

[0106] In some embodiments, as described above, the invaders include multiple types, and multiple camps need to be attacked by invaders in multiple rounds. For multiple camps, the types of invaders in the same round are the same to ensure the fairness of the tower defense competition for multiple camps. In some embodiments, for multiple camps, the types and levels of the invaders generated or refreshed in the same round are the same. Even if relatively powerful invaders are sometimes randomly selected consecutively, it can ensure that multiple camps will be under the same defensive pressure at the same time, further ensuring the fairness among multiple camps and avoiding being overly interfered by the randomness of invader refreshing. However, for multiple camps, the types and levels of the invaders in each round are randomly determined, thus maintaining the randomness and unpredictability of the tower defense competition and maximizing the attraction of the tower defense competition to users. In some embodiments, each camp needs to be attacked simultaneously by multiple invaders in one round, that is, for each camp, the multiple invaders generated at the same time will attack together, thus increasing the competition difficulty and the attack efficiency of the invaders.

[0107] In some embodiments, during the tower defense competition, there are multiple rounds of invaders attacking multiple camps. For the multiple camps, the spawning points and invasion paths of the invaders in the same round are the same. Moreover, the spawning points of the invaders in each round are randomly determined from multiple candidate spawning points, or rather, the invasion paths of the invaders in each round are randomly determined from multiple candidate invasion paths. In some embodiments, the multiple candidate spawning points can be the spawning points 39, 40, and 41 as shown in Figure 12 ; the multiple candidate invasion paths can be the invasion paths 36, 37, and 38 as shown in Figure 12 . In some embodiments, by keeping the invasion paths of each round of multiple camps the same and randomly determining the invasion path of each round, while ensuring fairness for each camp, the randomness of the tower defense competition is also incorporated.

[0108] In some embodiments, one or more invaders will be spawned simultaneously for each camp in the same round. After n rounds (n is a positive integer), if the scores of the multiple camps have not all been deducted to zero, the multiple camps will enter the rest period simultaneously. During this rest period, no new invaders will be spawned, and the virtual character controlled by the user account can rebuild, repair, or upgrade the virtual defense facilities during this rest period to resist the attack of the invaders in the next round.

[0109] In the above implementation, while ensuring fairness among multiple camps, the randomness and unpredictability of the tower defense competition are maintained as much as possible, reducing the probability that users can master the rules of the tower defense competition. While maintaining the fairness of the tower defense competition, the freshness and attractiveness of the tower defense competition to users are maintained, thereby increasing the replay rate of the tower defense competition and improving the utilization efficiency of the background server resources.

[0110] In some possible implementation manners, during the tower defense competition, in response to a second control operation for a first virtual character, the first virtual character is controlled to use an attack item to shoot at the invaders. The first virtual character is equipped with multiple attack items with different functions, and the use of the multiple attack items with different functions is switchable.

[0111] In some embodiments, the attack props can be shooting props such as virtual firearms, virtual bows and arrows, virtual slingshots, etc., or throwing props such as virtual grenades and virtual javelins, or handheld attack props such as virtual daggers, virtual swords, virtual pans, virtual spears, etc., which are not specifically limited in the embodiments of the present application. In some embodiments, each virtual character can have one or more virtual attack props to attack invaders in the attacking camp. For example, during the skill cooling time of the virtual defense facility, the first virtual character can attack the invader through the virtual attack props to slow down the invasion speed of the invader, or cause damage to the invader, or defeat / kill the invader. Alternatively, during the skill activation time period of the virtual defense facility, the first virtual character can use the virtual defense facility as a cover while attacking the invader through the virtual attack props to enhance and reduce the damage suffered by itself. In some embodiments, the invader also has health values (such as blood volume). Each time the invader is attacked, the invader's health value will be reduced by a certain value. When the invader's health value is deducted (i.e. reduced to 0), the invader is defeated or killed, and the invader can no longer successfully invade the first camp. Since the virtual defense facilities are automatically defended and attacked, in the process of fighting against the invader, the virtual character can also actively attack the invader through virtual attack props, thereby avoiding the virtual character waiting for too long and doing nothing, and improving the participation and flexibility of the virtual character in the tower defense competition.

[0112] In some embodiments, if the first virtual character defeats or kills the invader, the first virtual character or the first camp where the first virtual character is located can receive a reward of virtual resources, and the virtual resources can be used to build and upgrade virtual defense facilities. In some embodiments, the reward for receiving virtual resources is positively correlated with the level and number of invaders defeated or killed. That is, the higher the level of the invader defeated or killed by the first virtual character, the more virtual resource rewards the first virtual character or the first camp receives; the lower the level of the invader defeated or killed by the first virtual character, the less virtual resource rewards the first virtual character or the first camp receives; the more invaders defeated or killed by the first virtual character, the more virtual resource rewards the first virtual character or the first camp receives; the fewer invaders defeated or killed by the first virtual character, the less virtual resource rewards the first virtual character or the first camp receives.

[0113] In some embodiments, the multiple attack props with different functions equipped by the first virtual character are selected from multiple candidate attack props, wherein for each virtual character in multiple camps, the multiple candidate attack props are the same, and the multiple candidate attack props are randomly determined from the attack prop library.

[0114] In some embodiments, the virtual attack props owned by the first virtual character can be selected from a plurality of candidate virtual attack props. For example, in each tower defense competition, 6 candidate virtual attack props with different attributes (such as electric shock submachine guns, burning shotguns, etc.) will be randomly provided to each virtual character. For each virtual character in multiple camps, the multiple candidate attack props are the same, and the virtual character can select 3 virtual attack props from the 6 virtual attack props with different attributes to attack invaders in the tower defense competition. Since the multiple candidate attack props provided to each virtual character are the same, each virtual character can independently select the virtual attack props he wants from the multiple candidate attack props, thereby ensuring fairness between each virtual character and each camp, while trying to make the virtual props owned by the virtual character meet the user's wishes and try to ensure the convenience of the virtual character using the virtual attack props.

[0115] In some embodiments, different camps can be separated by air walls. Virtual characters in the first camp cannot enter the construction sites of other camps and cannot cause substantial interference to other camps. Virtual characters in other camps cannot enter the construction sites of the first camp and cannot cause substantial interference to the first camp, so that virtual characters can focus on their own camps, improve the importance of tower defense elements and the construction efficiency of virtual defense facilities. In some embodiments, some virtual characters in the first camp (such as the first virtual character) can enter the construction sites of other camps and use virtual attack props to interfere with the construction of virtual defense facilities by virtual characters in other camps, thereby improving the interactivity between virtual characters in different camps and enhancing the fun of tower defense competitions.

[0116] In the above implementation, during the confrontation with the invaders, the virtual character can also actively attack the invaders through virtual attack props, thereby avoiding the virtual character from waiting and doing nothing for too long, and improving the participation and flexibility of the virtual character in the tower defense competition.

[0117] In some possible implementations, the method further includes the following steps:

[0118] 1. After determining the attributes of the virtual defense facility set by the first virtual character on the construction site of the first camp, sending a construction request to the server, the construction request is used to request to build a virtual defense facility with attributes on the construction site of the first camp, and the attributes include at least one of the following: location, type, and level;

[0119] 2. Receive the consent-to-construct response sent by the server. The consent-to-construct response is sent by the server when the voting results of each virtual character in the first camp for the construction request meet the first condition. The first condition includes: the number of consent votes of each virtual character in the first camp for the construction request is greater than or equal to the first threshold, or the number of opposition votes of each virtual character in the first camp for the construction request is less than or equal to the second threshold.

[0120] 3. After receiving the consent-to-construct response, construct a virtual defense facility with attributes on the construction site of the first camp.

[0121] In some embodiments, the first virtual character controlled by the user account can select the attributes of the virtual defense facility to be set and generate a corresponding request. The request contains the attributes of the virtual defense facility requested to be constructed by the first virtual character, and the server sends the attributes to other user accounts in the same camp. If a certain number of user accounts in the same camp vote to consent to the request, it means the request passes, and the first virtual character can construct the virtual defense facility according to the attributes. That is, in this embodiment, the virtual character responsible for construction initiates a construction proposal (i.e., request) for the virtual defense facility it is responsible for. After obtaining the consent of the entire first camp, the virtual character responsible for construction can construct the virtual defense facility according to the construction proposal. For example, for the first camp composed of 4 virtual characters controlled by 4 user accounts respectively, the first threshold can be 2 or 3 or 4, and the second threshold can be 0 or 1 or 2. Of course, the first threshold and the second threshold can also be other values, and the specific values of the first threshold and the second threshold can be set by relevant technical personnel according to the actual situation, and the embodiments of this application do not make specific limitations in this regard. In this embodiment, it is ensured that the construction of the virtual defense facility can meet the overall requirements of the camp, rather than just meeting the ideas of individual user accounts, thereby enhancing the cooperation among virtual characters in the same camp and the decision-making equality among virtual characters in the same camp.

[0122] In some embodiments, when the attributes meet the second condition, the server initiates a vote to each virtual character in the first camp after receiving the construction request. The second condition includes at least one of the following: the location belongs to a pre-set key location, the type belongs to a pre-set key type, and the level belongs to a pre-set key level.

[0123] In some embodiments, the construction of virtual defense facilities at critical locations, of critical types, or of critical levels requires relatively more virtual resources, or is relatively rare and difficult to obtain; the construction of other virtual defense facilities at non-critical locations, of non-critical types, or of non-critical levels requires relatively fewer virtual resources, or is common and easy to obtain. Therefore, a vote is only conducted for the construction requests of virtual defense facilities at critical locations, of critical types, or of critical levels, so as to be cautious about the consumption of a large amount of virtual resources; other virtual defense facilities at non-critical locations, of non-critical types, or of non-critical levels can be constructed without the need for an overall vote of the camp, which not only reduces the waste of virtual resources but also takes into account the construction efficiency of virtual defense facilities.

[0124] In the above implementation, the attributes of the virtual defense facilities to be constructed are determined through an overall vote of the camp, which improves the cooperation among virtual characters in the same camp and reduces the waste of virtual resources.

[0125] In some embodiments, as Figure 16 shown, taking the example that the tower defense competition only includes two camps, and each camp includes 4 virtual characters controlled by 4 user accounts respectively and is applied to the background server, the method may further include the following steps (1610 to 1660):

[0126] Step 1610, match 8 user accounts to the same tower defense competition, and divide the 8 virtual characters controlled by the 8 user accounts into two camps;

[0127] Step 1620, during the rest period, the 8 virtual characters controlled by the 8 user accounts can respectively build and upgrade virtual defense facilities for their respective camps;

[0128] Step 1630, after entering the combat period, randomly refreshed invaders in each camp attack the corresponding camp;

[0129] Step 1640, if an invader successfully invades, deduct the blood volume of the corresponding camp;

[0130] Step 1650, detect whether the remaining blood volume of the camp whose blood volume is deducted is less than or equal to 0. If so, execute step 1660; if not, continue to execute step 1620;

[0131] Step 1660, determine the camp whose blood volume is deducted in step 1650 as the losing side, and the other camp as the winning side.

[0132] The following is an embodiment of the device of the present application, which can be used to execute the method embodiment of the present application. For the details not disclosed in the embodiment of the device of the present application, please refer to the method embodiment of the present application.

[0133] Please refer to Figure 17, which shows a block diagram of a control device for a virtual character provided by an embodiment of the present application. This device has the functions of the method example for controlling the above virtual character, and these functions can be implemented by hardware or by hardware executing corresponding software. This device can be the first terminal device introduced above or can be set on the first terminal device. The device 1700 may include: a venue display module 1710, a character control module 1720, a screen display module 1730, and an information display module 1740.

[0134] The venue display module 1710 is configured to display the construction venue of the first camp participating in the tower defense competition. The tower defense competition involves multiple camps, and each camp includes virtual characters controlled by multiple user accounts. Different camps are in a competitive relationship in the tower defense competition, and the virtual characters controlled by the multiple user accounts in the same camp are in a cooperative relationship in the tower defense competition.

[0135] The character control module 1720 is configured to, in response to a first control operation for a first virtual character in the first camp, control the first virtual character to build virtual defense facilities on the construction venue of the first camp. The virtual defense facilities are used to block the invaders in the tower defense competition from attacking the first camp. Among them, on the construction venue of the first camp, the virtual characters controlled by the multiple user accounts in the first camp are allowed to cooperate to build the virtual defense facilities.

[0136] The screen display module 1730 is configured to display, during the process of the tower defense competition, the screen of the invaders attacking the first camp. Among them, during the process of the tower defense competition, the multiple camps are respectively attacked by the invaders.

[0137] The information display module 1740 is configured to display, after the tower defense competition ends, the competition result information of the tower defense competition. The competition result information is used to indicate the winning party among the multiple camps.

[0138] In some embodiments, the device further includes: a score display module.

[0139] The score display module is configured to display, during the process of the tower defense competition, the scores of the multiple camps respectively. Among them, the score of the first camp is related to the blocking result of the first camp against the invaders, and the winning party is determined based on the scores of the multiple camps respectively.

[0140] In some embodiments, the score is the remaining health value, and the deduction value of the health value is related to the blocking result of the first camp against the invaders.

[0141] In some embodiments, the screen display module 1730 is further configured to display a screen in which the enhanced intruder attacks the first camp when the score of the first camp is the lowest among the scores of the multiple camps, and the difference between the scores of the other camps except the first camp among the multiple camps and the score of the first camp is greater than or equal to a third threshold, and the attacking ability of the enhanced intruder is stronger than that of the intruder.

[0142] The score display module is further configured to display an increase in the score of the first camp when the virtual defense facility of the first camp or the virtual character of the first camp defeats the enhanced intruder.

[0143] In some embodiments, during the process of the tower defense competition, there are multiple rounds of intruders attacking the multiple camps. Among them, for the multiple camps, the types of intruders in the same round are the same, and the types of intruders in each round are randomly determined from multiple candidate intruder types.

[0144] In some embodiments, the character control module 1720 is further configured to, during the process of the tower defense competition, in response to a second control operation for the first virtual character, control the first virtual character to use an attack item to attack the intruder, where the first virtual character is equipped with multiple attack items with different functions, and the use of the multiple attack items with different functions is switchable.

[0145] In some embodiments, the multiple attack items with different functions equipped by the first virtual character are selected from multiple candidate attack items. Among them, for each virtual character in the multiple camps, the multiple candidate attack items are the same, and the multiple candidate attack items are randomly determined from an attack item library.

[0146] In some embodiments, the character control module 1720 is configured to perform at least one of the following:

[0147] Control the first virtual character to set the position of the virtual defense facility on the construction site of the first camp;

[0148] Control the first virtual character to set the type of the virtual defense facility on the construction site of the first camp;

[0149] Control the first virtual character to set the level of the virtual defense facility on the construction site of the first camp.

[0150] In some embodiments, the device further includes: a request sending module, a response receiving module, and a facility construction module.

[0151] The request sending module is configured to send a construction request to the server after determining the attributes of the virtual defense facility set by the first virtual character on the construction site of the first camp. The construction request is used to request to construct the virtual defense facility with the attributes on the construction site of the first camp. The attributes include at least one of the following: location, type, and level.

[0152] The response receiving module is configured to receive the consent construction response sent by the server. The consent construction response is sent by the server when the voting results of each virtual character in the first camp for the construction request meet the first condition. The first condition includes: the number of consent votes of each virtual character in the first camp for the construction request is greater than or equal to the first threshold, or the number of opposition votes of each virtual character in the first camp for the construction request is less than or equal to the second threshold.

[0153] The facility construction module is configured to construct the virtual defense facility with the attributes on the construction site of the first camp after receiving the consent construction response.

[0154] In some embodiments, when the attributes meet the second condition, the server initiates a vote to each virtual character in the first camp after receiving the construction request. The second condition includes at least one of the following: the location belongs to a pre-set key location, the type belongs to a pre-set key type, and the level belongs to a pre-set key level.

[0155] In some embodiments, multiple construction points are displayed in the construction site of the first camp; the character control module is configured to:

[0156] In response to a position movement operation for the first virtual character, control the first virtual character to move to the first construction point among the multiple construction points;

[0157] Preview and display at least one candidate virtual defense facility corresponding to the construction plot corresponding to the first construction point;

[0158] In response to a construction operation for the first virtual defense facility among the at least one candidate virtual defense facilities, display the constructed first virtual defense facility on the construction plot corresponding to the first construction point.

[0159] In summary, in the technical solution provided by the embodiments of the present application, by controlling the virtual character to cooperate with other virtual characters in the camp where it is located, and jointly constructing a virtual defense facility in the construction site of the camp where it is located to block the attack and invasion of the invaders in the tower defense competition, the construction efficiency of the virtual defense facility in the tower defense competition is improved.

[0160] In addition, in the embodiments of the present application, by setting multiple competing camps in the tower defense competition and having multiple virtual characters controlled by respective user accounts in each camp, there is both cooperation among teammates and competition with enemy camps in the tower defense competition, making the tower defense competition incorporate both cooperation and confrontation elements, which helps to enhance the replayability of the tower defense competition and thus ensures that the server resources in the background can be utilized more fully and improves the utilization rate of server resources.

[0161] In addition, since the embodiments of the present application enhance the user experience and attraction to users in the tower defense competition, the probability of users participating in the tower defense competition repeatedly is increased, and thus the utilization efficiency of the background server resources of the tower defense competition is improved.

[0162] It should be noted that when the device provided in the above embodiments realizes its functions, only the division of the above function modules is used for illustration. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the device provided in the above embodiments and the method embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments and will not be repeated here.

[0163] Please refer to Figure 18 , which shows a structural block diagram of a terminal device 1800 provided in an embodiment of the present application. The terminal device 1800 can be an electronic device such as a smart phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, a PC, etc. The terminal device is used to implement the control method of the virtual character provided in the above embodiments. The terminal device 1800 can be Figure 2 the first terminal device in the shown implementation environment. Specifically:

[0164] Generally, the terminal device 1800 includes a processor 1801 and a memory 1802.

[0165] The processor 1801 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. The processor 1801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1801 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 1801 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1801 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.

[0166] The memory 1802 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1802 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1802 is used to store a computer program and is configured to be executed by one or more processors to implement the above control method for virtual characters.

[0167] In some embodiments, the terminal device 1800 may further optionally include: a peripheral device interface 1803 and at least one peripheral device. The processor 1801, the memory 1802, and the peripheral device interface 1803 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1803 through a bus, signal lines, or a circuit board. Specifically, the peripheral devices include at least one of a radio frequency circuit 1804, a display screen 1805, an audio circuit 1806, and a power supply 1807.

[0168] Those skilled in the art can understand that Figure 18 the structure shown in does not constitute a limitation on the terminal device 1800, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component layout.

[0169] In an exemplary embodiment, a computer-readable storage medium is further provided. A computer program is stored in the storage medium, and when the computer program is executed by a processor, the control method of the above virtual character is implemented.

[0170] Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives), or optical discs, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0171] In an exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the control method of the above virtual character.

[0172] It should be noted that before and during the process of collecting relevant data of users, this application can display a prompt interface, a pop-up window or output voice prompt information. The prompt interface, pop-up window or voice prompt information is used to prompt the user that their relevant data is being collected currently, so that this application only starts to execute the relevant steps of obtaining the user's relevant data after obtaining the confirmation operation issued by the user for the prompt interface or the pop-up window. Otherwise (that is, when the confirmation operation issued by the user for the prompt interface or the pop-up window is not obtained), the relevant steps of obtaining the user's relevant data are ended, that is, the relevant data of the user is not obtained. In other words, all user data collected by this application is collected with the consent and authorization of the user, and the collection, use and processing of the relevant user data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0173] It should be understood that "a plurality of" mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the front and rear associated objects.

[0174] The foregoing are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A control method for a virtual character, characterized in that, The method includes: Displaying the construction site of the first camp participating in the tower defense competition, where the tower defense competition involves multiple camps, each camp includes virtual characters controlled by multiple user accounts, different camps are in a competitive relationship in the tower defense competition, and the virtual characters controlled by the multiple user accounts in the same camp are in a cooperative relationship in the tower defense competition; In response to a first control operation for a first virtual character in the first camp, controlling the first virtual character to build a virtual defense facility on the construction site of the first camp, where the virtual defense facility is used to block the attack of intruders on the first camp in the tower defense competition. Among them, on the construction site of the first camp, the virtual characters controlled by the multiple user accounts in the first camp are allowed to cooperate in building the virtual defense facility; During the process of the tower defense competition, displaying the scene of the intruders attacking the first camp, where during the process of the tower defense competition, the multiple camps are respectively attacked by the intruders; After the tower defense competition ends, displaying the competition result information of the tower defense competition, where the competition result information is used to indicate the winning side among the multiple camps.

2. The method according to claim 1, wherein The method further includes: During the process of the tower defense competition, displaying the scores of the multiple camps respectively, where the score of the first camp is related to the blocking result of the first camp against the intruders, and the winning side is determined based on the scores of the multiple camps respectively.

3. The method according to claim 2, wherein The score is the remaining health value, and the deduction value of the health value is related to the blocking result of the first camp against the intruders.

4. The method according to claim 2, wherein The method further includes: When the score of the first camp is the lowest among the multiple camps, and the difference between the scores of the other camps except the first camp among the multiple camps and the score of the first camp is greater than or equal to a third threshold, displaying a scene of strengthening the attack of the intruders on the first camp, where the attack ability of the strengthened intruders is stronger than that of the intruders; When the virtual defense facility of the first camp or the virtual character of the first camp defeats the strengthened intruders, displaying an increase in the score of the first camp.

5. The method according to claim 1, wherein During the process of the tower defense competition, there are multiple rounds of intruders attacking the multiple camps. Among them, for the multiple camps, the types of intruders in the same round are the same, and the type of intruders in each round is randomly determined from multiple candidate intruder types.

6. The method according to claim 1, characterized in that The method further includes: During the process of the tower defense competition, in response to a second control operation for the first virtual character, controlling the first virtual character to use an attack item to attack the intruders, where the first virtual character is equipped with multiple attack items with different functions, and the use of the multiple attack items with different functions is switchable.

7. The method according to claim 6, wherein The multiple attack props with different functions equipped by the first virtual character are selected from multiple candidate attack props. For each virtual character in the multiple camps, the multiple candidate attack props are the same, and the multiple candidate attack props are randomly determined from an attack prop library.

8. The method according to claim 1, characterized in that Controlling the first virtual character to build a virtual defense facility on the construction site of the first camp includes at least one of the following: Controlling the first virtual character to set the position of the virtual defense facility on the construction site of the first camp; Controlling the first virtual character to set the type of the virtual defense setting on the construction site of the first camp; Controlling the first virtual character to set the level of the virtual defense facility on the construction site of the first camp.

9. The method according to claim 1, characterized in that The method further includes: After determining the attributes of the virtual defense facility set by the first virtual character on the construction site of the first camp, sending a construction request to the server, where the construction request is used to request building the virtual defense facility with the attributes on the construction site of the first camp, and the attributes include at least one of the following: position, type, level; Receiving an approval construction response sent by the server, where the approval construction response is sent when the voting results of each virtual character in the first camp for the construction request meet a first condition, and the first condition includes: the number of approval votes of each virtual character in the first camp for the construction request is greater than or equal to a first threshold, or the number of opposition votes of each virtual character in the first camp for the construction request is less than or equal to a second threshold; After receiving the approval construction response, building the virtual defense facility with the attributes on the construction site of the first camp.

10. The method according to claim 9, wherein When the attributes meet a second condition, the server initiates a vote to each virtual character in the first camp after receiving the construction request, and the second condition includes at least one of the following: the position belongs to a pre-set key position, the type belongs to a pre-set key type, the level belongs to a pre-set key level.

11. The method according to claim 1, wherein There are multiple construction points displayed on the construction site of the first camp; Responding to a first control operation for the first virtual character in the first camp, controlling the first virtual character to build a virtual defense facility on the construction site of the first camp includes: Responding to the first virtual character moving to the first construction point among the multiple construction points, preview-displaying the virtual defense facility corresponding to the first construction point; Responding to the first virtual character moving to the first construction point again, building the virtual defense facility corresponding to the first construction point on the construction plot corresponding to the first construction point.

12. A control method and device for a virtual character, characterized in that, The device includes: A site display module for displaying the construction site of the first camp participating in the tower defense competition. The tower defense competition is participated by multiple camps, each camp includes virtual characters controlled by multiple user accounts, different camps are in a competitive relationship in the tower defense competition, and the virtual characters controlled by the multiple user accounts in the same camp are in a cooperative relationship in the tower defense competition; A character control module for controlling a first virtual character to build a virtual defense facility on the construction site of the first camp in response to a first control operation for the first virtual character in the first camp. The virtual defense facility is used to block the attack of the invaders in the tower defense competition on the first camp. Among them, the virtual characters controlled by the multiple user accounts in the first camp are allowed to cooperate to build the virtual defense facility on the construction site of the first camp; A screen display module for displaying the screen of the invaders attacking the first camp during the tower defense competition. Among them, during the tower defense competition, the multiple camps are respectively attacked by the invaders; An information display module for displaying the competition result information of the tower defense competition after the tower defense competition ends. The competition result information is used to indicate the winning party among the multiple camps.

13. A terminal device, characterized in that, The terminal device includes a processor and a memory. A computer program is stored in the memory and is loaded and executed by the processor to implement the control method of the virtual character as described in any one of claims 1 to 11 above.

14. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium and is loaded and executed by a processor to implement the control method of the virtual character as described in any one of claims 1 to 11 above.

15. A computer program product, characterized in that, The computer program product includes a computer program. The computer program is stored in a computer-readable storage medium, and the processor reads and executes the computer program from the computer-readable storage medium to implement the control method of the virtual character as described in any one of claims 1 to 11.