Virtual building construction method and device, equipment and storage medium

By introducing virtual object invasion and attack mechanisms in the war strategy game, the problem of inefficiency in the construction process of virtual buildings is solved, the driving force of urban construction and the motivation of players are improved, and a more efficient and challenging urban construction experience is achieved.

CN119499670APending Publication Date: 2025-02-25SHENZHEN TENCENT FEITAI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311077518.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-24
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The construction process of virtual buildings is inefficient and boring in the war strategy game, causing players to lose interest and motivation.

Method used

In the urban construction process, virtual objects invade and attack virtual buildings are introduced. By displaying the attack process of virtual buildings in the display screen of the virtual environment, and entering the urban construction stage again after the invasion phase is over, based on the newly built virtual buildings.

Benefits of technology

By increasing the attack threat of virtual buildings, the driving force and efficiency of urban construction are improved, players' construction motivation is stimulated, and strategies and fun in the urban construction process are enriched.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119499670A_ABST
    Figure CN119499670A_ABST
Patent Text Reader

Abstract

The invention provides a virtual building construction method and device, equipment and a storage medium, and relates to the technical field of computers and the Internet. The method comprises the steps that in the urban construction stage of the virtual environment, virtual buildings built in the virtual environment are displayed in a display picture of the virtual environment, and the virtual buildings comprise a first virtual building and a second virtual building used for protecting the first virtual building; displaying the attack process of the first virtual object on the virtual building in a display picture of the virtual environment in response to the starting condition meeting the intrusion stage; and in response to an end condition meeting the intrusion stage, entering the urban construction stage again, and displaying a newly constructed virtual building in the virtual environment in the display picture of the virtual environment. By adding a mechanism that the virtual object invades and attacks the virtual building in the urban construction process, the problem of low urban construction efficiency caused by the original boring and single urban construction process is effectively solved, and the construction efficiency of the virtual building is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer and Internet technology, and in particular to a method, device, equipment and storage medium for constructing a virtual building. Background Art

[0002] In game applications, the construction of virtual buildings has become one of the core gameplays of many strategic games. Building virtual buildings can not only enhance the immersion of the game, but also directly affect resource acquisition, tactical strategies and game plots.

[0003] In war strategy games, city construction is the most important gameplay and development content in the early stage. By upgrading and unlocking virtual buildings, you can gradually open up the functions in the game. In the process of city construction, players consume various basic resources to build and upgrade virtual buildings, so as to unlock the corresponding functions of virtual buildings or obtain certain numerical bonuses.

[0004] However, since the city construction process is relatively boring and monotonous, this will lead to inefficient construction of virtual buildings. Summary of the invention

[0005] The embodiments of the present application provide a method, device, equipment and storage medium for constructing a virtual building. The technical solution provided by the present application is as follows:

[0006] According to one aspect of an embodiment of the present application, a method for constructing a virtual building is provided, the method comprising:

[0007] In the city construction stage for the virtual environment, a virtual building constructed in the virtual environment is displayed in a display screen of the virtual environment, wherein the virtual building includes: a first virtual building and a second virtual building for protecting the first virtual building;

[0008] In response to satisfying a start condition of the invasion phase, displaying, in a display screen of the virtual environment, a process of the first virtual object attacking the virtual building;

[0009] In response to the end condition of the invasion phase being met, the city construction phase is entered again, and the virtual building newly constructed in the virtual environment is displayed in the display screen of the virtual environment.

[0010] According to one aspect of an embodiment of the present application, a device for constructing a virtual building is provided, the device comprising:

[0011] A display module is used to display a virtual building constructed in the virtual environment in a display screen of the virtual environment during the city construction stage of the virtual environment, wherein the virtual building includes: a first virtual building and a second virtual building for protecting the first virtual building;

[0012] The display module is further configured to display, in response to satisfying a start condition of the invasion stage, a process of the first virtual object attacking the virtual building in a display screen of the virtual environment;

[0013] The display module is further used to enter the city construction stage again in response to meeting the end condition of the invasion stage, and display the virtual building newly constructed in the virtual environment in the display screen of the virtual environment.

[0014] According to one aspect of an embodiment of the present application, a terminal device is provided, the terminal device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-mentioned virtual building construction method.

[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned method for constructing a virtual building.

[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a 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 method for constructing a virtual building.

[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0018] By adding a mechanism for virtual objects to invade and attack virtual buildings during the city construction process, the driving force of city construction is enhanced. Since the user's virtual building is always under the threat of attack from virtual objects, the user will be motivated to build virtual buildings as quickly as possible to better resist the threat. This also strengthens the user's motivation to actively build and improve virtual buildings, effectively solving the problem of low efficiency caused by the original boring and single city construction process and improving the construction efficiency of virtual buildings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0020] Figure 2 is a flow chart of a method for constructing a virtual building provided by an embodiment of the present application;

[0021] Figure 3 is a flow chart of a method for constructing a virtual building provided by another embodiment of the present application;

[0022] Figure 4 It is a schematic diagram of a display screen of a virtual environment in the city construction stage provided by an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of a first virtual object configuration provided by an embodiment of the present application;

[0024] Figure 6 It is a schematic diagram of a new round of attack process in the invasion phase that is about to start, provided by an embodiment of the present application;

[0025] Figure 7 is a schematic diagram of resisting invasion of a first virtual object provided by an embodiment of the present application;

[0026] Figure 8 is a schematic diagram of the end of the invasion phase provided by an embodiment of the present application;

[0027] Fig. 9 is a schematic diagram of a tower defense building selection interface provided by an embodiment of the present application;

[0028] Fig.10 It is a schematic diagram of a tower defense building construction interface provided by an embodiment of the present application;

[0029] Fig.11 It is a schematic diagram of an overview of a solution provided by an embodiment of the present application;

[0030] Fig.12 is a block diagram of a construction device for a virtual building provided by an embodiment of the present application;

[0031] Fig.13 This is a structural block diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0033] Please refer to Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an embodiment of the present application. The solution implementation environment may include: a terminal device 10 and a server 20.

[0034] The terminal device 10 includes, but is not limited to, mobile phones, tablet computers, intelligent voice interaction devices, game consoles, wearable devices, multimedia playback devices, PCs (Personal Computers), vehicle-mounted terminals, smart home appliances, AR (Augmented Reality) devices, VR (Virtual Reality) devices and other electronic devices. The client of the target application (such as a game application) can be run in the terminal device 10. Optionally, the target application can be an application that needs to be downloaded and installed, or it can be in the form of a web page or a small program, which is not limited in the embodiments of the present application.

[0035] In the embodiment of the present application, the target application may be, but is not limited to, a war strategy game application, a tower defense game application, a real-time strategy game (RTS) application, a turn-based strategy game application, a grand strategy game application, a city construction and management game application, a war strategy game application, a business strategy game application, a strategy game (Simulation Game, SLG) application, a social application, an interactive entertainment application, a simulation program, a virtual reality (VR) application, an augmented reality (AR) application, a three-dimensional map application, a virtual reality game application, an augmented reality game application, etc.

[0036] In some embodiments, the target application is a war strategy game application. War strategy games are a type of game whose basic elements include war confrontation, plunder expansion, strategy selection, etc. The main gameplay of war strategy games is to compete for territory or plunder resources between various forces on a large sandbox map. The gameplay design of the game is mainly based on PVP (Player Versus Player) and strategic confrontation, focusing on social attributes. In war strategy games, city construction gameplay is the most important gameplay and development content in the early stage. By upgrading and unlocking virtual buildings, the functions in the game can be gradually enabled.

[0037] In an embodiment of the present application, a virtual environment is a scene displayed (or provided) when a client of a target application (such as a game application) is running on a terminal device. The virtual environment refers to an environment created for virtual objects to carry out activities (such as game competitions), such as a virtual house, a virtual island, a virtual map, etc. The virtual environment can be a simulation of the real world, a semi-simulated and semi-fictitious three-dimensional world, or a purely fictitious three-dimensional world. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment. In an embodiment of the present application, the virtual environment is also used to construct a virtual building, and there is a location in the virtual environment for the construction of a virtual building.

[0038] The above-mentioned virtual building refers to a virtual element in the form of a mechanical device, a defensive object, a building, etc. built by a player in the target application. In the embodiment of the present application, the display form of the virtual building is not limited. The virtual building can be displayed in a three-dimensional form or in a two-dimensional form, and the embodiment of the present application does not limit this. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual building is a three-dimensional stereo model. Each virtual building has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional environment. In some embodiments, the virtual building can also be implemented as a 2.5-dimensional or 2-dimensional model, and the present application does not limit this.

[0039] A virtual object refers to an interactive element in a target application. Taking the target application as a game application as an example, a virtual object refers to a virtual character controlled by a user or a server in the game application. A virtual object can be in the form of a person, an animal, a cartoon or other forms, which is not limited in the embodiments of the present application. A virtual object can be displayed in a three-dimensional form or in a two-dimensional form, which is not limited in the embodiments of the present application. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional stereo model, such as a three-dimensional stereo model created based on animation skeleton technology. Each virtual object 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. The activities of the virtual object include but are not limited to: adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, throwing, etc. Indicatively, the virtual object is a virtual character, such as a simulated character or an animated character. In some implementations, the virtual object can also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application. The virtual object can be controlled by a server or by a user through a client, which is not limited in the present application.

[0040] The server 20 is used to provide background services for the client of the target application in the terminal device 10. For example, the server 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, but is not limited to these.

[0041] The terminal device 10 and the server 20 can communicate with each other via a network, which can be a wired network or a wireless network.

[0042] Please refer to Figure 2 , which shows a flowchart of a method for constructing a virtual building provided by an embodiment of the present application. The execution subject of each step of the method may be Figure 1 The terminal device 10 in the implementation environment of the scheme shown. For example, the execution subject of each step can be the client of the target application. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as the "client". The method may include at least one of the following steps (210-230):

[0043] Step 210, in the city construction stage for the virtual environment, in the display screen of the virtual environment, the virtual buildings constructed in the virtual environment are displayed, and the virtual buildings include: a first virtual building and a second virtual building for protecting the first virtual building.

[0044] The city construction stage refers to the game stage of building a base in a virtual environment, which is used to establish and strengthen one's own power. In this stage, users need to plan the location and layout of each virtual building in the base, and reasonably build various virtual buildings to form a self-sufficient and well-defended base.

[0045] Users can build virtual buildings during the city construction stage, which can be divided into first virtual buildings and second virtual buildings according to their functions. The first virtual building refers to the user's base in the game. The base generally refers to the main stronghold of a camp or a player in the game. In such a stronghold, there are the main facilities, main characters, etc. of the camp or the player, which undertakes the operation tasks of the camp or the player. Through the base, users can carry out production, supply, trading and other behaviors, and can also gain additional combat advantages in their own base. The second virtual building refers to a building used to protect the first virtual building. Optionally, the second virtual building includes: a tower defense building used to protect the first virtual building, and the tower defense building is used to resist the enemy's attack on the first virtual building. For example, the second virtual building can be a virtual defense tower.

[0046] In the city construction stage, users develop their own bases and improve their strength in the game by building the first virtual building in the virtual environment; and they protect the first virtual building by building the second virtual building in the virtual environment. This method is equivalent to integrating tower defense gameplay into the city construction gameplay. The so-called tower defense gameplay refers to a type of gameplay that builds tower defense buildings in the virtual environment to prevent the enemy from reaching the base in the game. Compared with the boring and single city construction process, this also enriches the diversity of gameplay and operations in the city construction process.

[0047] The display screen of the virtual environment is a screen used to display the virtual environment. For example, the virtual environment can be photographed by a virtual camera to obtain the display screen of the virtual environment. The display screen of the virtual environment displays characters or objects contained in the virtual environment, such as virtual buildings, virtual objects, etc.

[0048] In addition, during the city construction phase, users can collect virtual resources required to build virtual buildings in the virtual environment, and then use the virtual resources to build virtual buildings. The application does not limit the types of virtual resources, such as virtual trees, virtual ores, etc.

[0049] Step 220 , in response to satisfying the start condition of the invasion phase, displaying the attack process of the first virtual object on the virtual building in the display screen of the virtual environment.

[0050] The invasion phase refers to a game phase interspersed between the city construction phases. In the invasion phase, the first virtual object will attack the virtual building. In some embodiments, the first virtual object refers to a virtual object controlled by the target application, such as an AI (Artificial Intelligence) virtual object, which can attack the virtual building according to the control strategy of the target application. In some embodiments, the first virtual object refers to a virtual object controlled by other users, which can attack the virtual building according to the control of other users.

[0051] The conditions for starting the invasion phase refer to the pre-set conditions for starting the invasion phase. For example, when a user completes certain specified tasks in a virtual environment, such as defeating a specific boss, opening a treasure map, building a specific building, etc., or reaches a set threshold condition, such as the accumulation of virtual resources reaches a certain threshold, the proportion of occupied map area reaches a certain threshold, etc., it means that the conditions for starting the invasion phase are met.

[0052] After the conditions for starting the invasion phase are met, the invasion phase can be started. In the invasion phase, the first virtual object will attack the constructed virtual building, and the client will display the attack process of the first virtual object on the virtual building in the display screen of the virtual environment.

[0053] In some embodiments, when the conditions for starting the invasion phase are met, the invasion phase is automatically started. That is, whether the invasion phase is started is not determined by the user, but when the target application determines that the conditions for starting the invasion phase are currently met, the invasion phase is automatically started.

[0054] In some embodiments, when the conditions for starting the invasion phase are met, a first control is displayed, and the first control is used to trigger the start of the invasion phase. After the user performs an operation on the first control, the invasion phase is started, that is, whether the invasion phase is started is determined by the user.

[0055] In some embodiments, during the invasion phase, the user is not allowed to build virtual buildings in the virtual environment, including not allowing the user to build the first virtual building and the second virtual building in the virtual environment. That is, during the invasion phase, the user cannot continue to build virtual buildings and can only use the built virtual buildings to defend against the first virtual object. This requires the user to build virtual buildings with reasonable formations in advance during the city construction phase to resist the attack of the first virtual object.

[0056] In some embodiments, during the invasion phase, the user is allowed to build a virtual building in the virtual environment, including allowing the user to build a first virtual building and a second virtual building in the virtual environment. That is, during the invasion phase, the user can continue to build virtual buildings, and the user can build virtual buildings in a targeted manner according to the attack path of the first virtual object to resist the attack of the first virtual object.

[0057] In some embodiments, during the invasion phase, the user is not allowed to build a first virtual building in the virtual environment, but is allowed to build a second virtual building in the virtual environment. That is, during the invasion phase, the user cannot continue to build a base, but can still build a tower defense building in a targeted manner according to the attack path of the first virtual object to resist the attack of the first virtual object.

[0058] Step 230, in response to the end condition of the invasion phase being met, the city construction phase is entered again, and the newly constructed virtual building in the virtual environment is displayed in the display screen of the virtual environment.

[0059] The end condition of the invasion phase refers to a pre-set condition for ending the invasion phase. For example, the end condition of the invasion phase includes defeating all invaders (such as the first virtual object), continuously defending until the time requirement, completing a specific task, defending key buildings, and the like.

[0060] In the embodiment of the present application, the invasion stage is interspersed with the city construction stage. Moreover, in the embodiment of the present application, the number of times the invasion stage is opened is not limited. For example, the invasion stage can be opened multiple times, and the city construction stage and the invasion stage are alternated one by one. Exemplarily, during the first city construction stage, if the opening conditions of the invasion stage are met, the first invasion stage is entered; when the first invasion stage meets the end conditions, the second city construction stage is entered; during the second city construction stage, if the opening conditions of the invasion stage are met, the second invasion stage is entered; when the second invasion stage meets the end conditions, the third city construction stage is entered; and so on. The maximum number of times the invasion stage is opened may be pre-specified or not, and this application does not limit this. In addition, when there are multiple invasion stages, the form, quantity, ability, etc. of the first virtual object in different invasion stages may be the same or different, and this application does not limit this.

[0061] After entering the city construction stage again, the user can continue to build virtual buildings in the virtual environment, such as updating the virtual buildings that have been built, or building new virtual buildings. The client displays the newly built virtual buildings in the virtual environment in the display screen of the virtual environment.

[0062] The technical solution provided in the embodiment of the present application improves the driving force of city construction by adding a mechanism for virtual objects to invade and attack virtual buildings during the city construction process. Since the user's virtual building is always threatened by the attack of virtual objects, the user will be motivated to build virtual buildings as soon as possible to better resist the threat, that is, to strengthen the user's motivation to actively build and improve virtual buildings, effectively solving the problem of low efficiency of city construction caused by the original boring and single city construction process, and improving the construction efficiency of virtual buildings.

[0063] In addition, the embodiment of the present application incorporates tower defense gameplay into the city construction gameplay, which enriches the diversity of gameplay and operations in the city construction process compared to the boring and single city construction process. This fully enhances the strategy and fun of city construction. Users need to think about how to reasonably arrange virtual buildings to better resist the attack of virtual objects, such as using terrain passes.

[0064] Please refer to Figure 3 , which shows a flow chart of a method for constructing a virtual building provided by another embodiment of the present application. The execution subject of each step of the method may be Figure 1 The terminal device 10 in the implementation environment of the scheme shown, for example, the execution subject of each step can be the client of the target application. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as the "client". The method can include at least one of the following steps (310-350):

[0065] Step 310, in the city construction stage for the virtual environment, in the display screen of the virtual environment, the virtual building constructed in the virtual environment is displayed, and the virtual building includes: a first virtual building and a second virtual building for protecting the first virtual building.

[0066] Step 320: During the city construction phase, first progress information is displayed, where the first progress information is used to indicate the progress of reaching the start condition of the invasion phase.

[0067] In some embodiments, the first progress information uses dynamic visual interface elements to intuitively display the progress of reaching the opening conditions of the invasion stage. The first progress information can be dynamically updated to achieve the effect of displaying the latest progress in real time. Exemplarily, the first progress information can be in the form of a horizontally loaded progress bar, a circular charging gauge, a real-time changing digital percentage, etc., which is not limited in this application.

[0068] In some embodiments, the target application will periodically collect and update the above progress. Exemplarily, a virtual reconnaissance aircraft is set in the target application, and the virtual reconnaissance aircraft periodically obtains the virtual buildings that the user has built in the city construction stage, and then determines the progress of the opening conditions of the invasion stage based on the built virtual buildings. For example, the virtual reconnaissance aircraft will detect the virtual buildings that the user has built every 20 minutes, and determine the progress of the opening conditions of the invasion stage based on the detected virtual buildings that have been built. In other words, the progress of the opening conditions of the invasion stage is updated every 20 minutes. In this case, since the virtual buildings that the user has built in the city construction stage are not obtained in real time, but are obtained periodically, the above progress is periodically collected and updated. The user can use this to make construction plans in advance, and quickly build virtual buildings according to the construction plan that has been thought of in advance in the gap between the two consecutive progress acquisitions of the virtual reconnaissance aircraft, so that a stronger and more defensive virtual building can be built in a short time, so as to provide a better defense foundation for the invasion stage when the progress meets the opening conditions, and improve the possibility of successfully resisting invasion in the invasion stage. In the case where the target application automatically starts the invasion phase when the conditions for starting the invasion phase are met, if the target application periodically collects and updates the above progress, it can provide users with more strategic gameplay in the city construction phase and improve user experience. In some embodiments, when the above progress reaches a set value, the conditions for starting the invasion phase are met. The set value can be a value set in advance, such as 100%. The progress of the conditions for starting the invasion phase can be a value in the interval [0,100%].

[0069] In some embodiments, the progress indicated by the first progress information is updated and displayed based on the operation behaviors performed in the city construction stage. By performing some pre-defined operation behaviors in the city construction stage, the user can increase the progress of the opening conditions of the invasion stage. Exemplarily, the operation behaviors may include but are not limited to building specific buildings, upgrading specific technologies, exploring specific locations, killing specific monsters, etc., which are not limited in this application. The amount of progress increase for different operation behaviors can be set in advance, which is not limited in this application. By updating the progress indicated by the first progress information in real time during the city construction stage, it can help users understand the latest progress, encourage users to speed up the city construction progress, and improve the efficiency of city construction.

[0070] In some embodiments, in addition to displaying the first progress information, first prompt information is also displayed, and the first prompt information is used to indicate the tasks that need to be performed to achieve the start condition of the invasion stage. By prompting the user with the above tasks, the user can complete the above tasks in a targeted manner to speed up the achievement of the start condition of the invasion stage.

[0071] For example, Figure 4 As shown, a schematic diagram of a display screen of a virtual environment in the city construction stage is shown. In the city construction stage, first progress information 41 is displayed, and the first progress information 41 is in the form of a progress bar, which is used to indicate the progress of reaching the opening condition of the invasion stage.

[0072] Step 330: When the start condition of the invasion stage is met, a first control is displayed, and the first control is used to trigger the start of the invasion stage.

[0073] In some embodiments, when the progress of the start condition of the invasion stage reaches a set value, it is confirmed that the start condition of the invasion stage is met, and at this time, a first control is displayed in the interface, and the user operates the first control to trigger the start of the invasion stage. Exemplarily, the first control is a button, and the user clicks the first control to trigger the start of the invasion stage.

[0074] In some embodiments, when the enabling condition of the invasion stage is not met, the first control is not displayed in the interface; when the enabling condition of the invasion stage is met, the first control is displayed in the interface.

[0075] In some embodiments, when the conditions for starting the invasion stage are not met, the first control in an untriggerable state is displayed in the interface, and when the conditions for starting the invasion stage are met, the first control in a triggerable state is displayed in the interface. The untriggerable state refers to a state in which the first control does not respond to user operations, and the triggerable state refers to a state in which the first control can respond to user operations. Optionally, the first control in an untriggerable state and the first control in a triggerable state can be distinguished by different display styles, so that the user can intuitively understand whether the invasion stage can be triggered at present.

[0076] In some embodiments, when the first control is displayed, or when the first control switches from an untriggerable state to a triggerable state, richer sound effects and special effects can be used to enhance feedback, thereby guiding the user to perform operations on the first control to start the invasion stage. For example, when the first control is displayed, or when the first control switches from an untriggerable state to a triggerable state, there is a flashing special effect and a rising sound effect.

[0077] For example, Figure 4 As shown, when the progress indicated by the first progress information 41 reaches 100%, a first control 42 is displayed, and the first control 42 is used to trigger the start of the invasion phase.

[0078] Step 340, in response to the operation on the first control, the invasion phase is started, and the attack process of the first virtual object on the virtual building is displayed in the display screen of the virtual environment.

[0079] The operation on the first control refers to the operation performed by the user on the first control. For example, the operation can be any one of click, press, slide, etc. For example, when the first control is a button, the user clicks the first control to trigger the intrusion phase.

[0080] Through the above method, when the conditions for starting the invasion stage are met, the first control is displayed, and the user performs an operation on the first control, and then the invasion stage is started; that is, even if the conditions for starting the invasion stage are met and the first control is displayed, if the user does not perform an operation on the first control, the invasion stage will not be automatically started. This method allows the start of the invasion stage to be controlled by the user, and the user can decide whether to start the invasion stage according to the actual situation to better meet the user's personalized needs. For example, when the user feels that the currently constructed virtual building can resist the attack of the first virtual object, the user can click the first control to start the invasion stage; when the user feels that the currently constructed virtual building cannot resist the attack of the first virtual object, the user can temporarily not click the first control, but continue to strengthen the construction of the virtual building to improve the resistance.

[0081] In some embodiments, after the invasion phase is started, the display screen of the virtual environment displays the process of the second virtual building attacking the first virtual object. As introduced above, the second virtual building can be a tower defense building used to protect the first virtual building. During the attack of the first virtual object, the second virtual building will attack the first virtual object to defeat the first virtual object and protect the first virtual building from being destroyed. Optionally, the behavior of the second virtual building attacking the first virtual object can be automatically controlled by AI or manually controlled by the user, and this application does not limit this. In an exemplary embodiment, the behavior of the second virtual building attacking the first virtual object is automatically controlled by AI, and the user mainly considers how to build the second virtual building to achieve a better defense effect.

[0082] In some embodiments, after the invasion phase is started, in response to the control operation on the second virtual object, the process of the second virtual object fighting against the first virtual object is displayed in the display screen of the virtual environment. In the invasion phase, in addition to being able to attack the first virtual object through the second virtual building, the user can also control the second virtual object to fight against the first virtual object. The number of second virtual objects can be one or more, and this application does not limit this. In the above manner, users have something to do during the invasion phase, avoiding the problem of boring and tediousness caused by letting users purely watch the tower defense process automatically controlled by AI during the invasion phase, and further enhancing the fun.

[0083] In some embodiments, each invasion stage may include multiple rounds of attack processes. During the invasion stage, the display screen of the virtual environment displays multiple rounds of attack processes of the first virtual object against the virtual building; wherein each round of attack process is determined based on at least one of the following configuration information: the type, quantity, and formation of the first virtual object. For different rounds of attack processes, the above configuration information may be the same or different, and the configuration information corresponding to each round of attack process may be configured in advance by a technician, and this application does not limit this.

[0084] For example, the first virtual objects are divided into different types according to their size, such as large, medium and small first virtual objects. For each round of attack, the types of first virtual objects to be arranged, the number of first virtual objects of each type, and the formations between the first virtual objects all need to be configured in advance.

[0085] Optionally, the configuration information may further include at least one of the following: the priority of each first virtual object in attacking, and the order in which each first virtual object walks. The priority of each first virtual object in attacking determines the order in which each first virtual object attacks the virtual building. For example, the first virtual object with a high priority attacks the virtual building first, so that each first virtual object attacks in an orderly manner to avoid confusion. The order in which each first virtual object walks determines the arrangement position of each first virtual object when walking, so that each first virtual object walks in an orderly manner to avoid confusion.

[0086] For example, Figure 5 As shown, it shows the first virtual objects configured corresponding to a certain round of attack process, including 4 small first virtual objects, 3 medium-sized first virtual objects, and 1 large first virtual object, and the above-mentioned first virtual objects are arranged in order from small to large in size.

[0087] For example, Figure 6 As shown, before each round of attack process is initiated, the interface will display corresponding prompt information 61, which is used to prompt that the next round of attack process is about to be initiated. Optionally, the prompt information 61 is also used to prompt the countdown and the number of the next round of attack process.

[0088] For example, Figure 7 As shown, when the first virtual object 71 attacks the virtual building, the virtual defense tower 72 built by the user can attack the first virtual object 71, and the user can also control the second virtual object ( Figure 7 The virtual defense tower 72 can automatically attack the first virtual object 71, such as automatically attacking the first virtual object 71 within the range.

[0089] Step 350, in response to the end condition of the invasion phase being met, the city construction phase is entered again, and the newly constructed virtual building in the virtual environment is displayed in the display screen of the virtual environment.

[0090] In some embodiments, the termination condition includes at least one of the following: all first virtual objects in the invasion phase are defeated; the duration of the invasion phase reaches a first threshold; the durability of the first virtual building is less than or equal to a second threshold.

[0091] Exemplarily, the invasion phase has a preset maximum duration, which is the first threshold. If the first virtual object in the invasion phase has been completely defeated when the duration of the invasion phase does not reach the first threshold, the invasion phase can be ended in advance to avoid meaningless time waste. If the first virtual object in the invasion phase has not been completely defeated when the duration of the invasion phase reaches the first threshold, the invasion phase can also be ended to avoid the invasion phase being too long and affecting the user experience. In addition, when the durability of the first virtual building is less than or equal to the second threshold, it indicates that the first virtual building can no longer withstand the attack of the first virtual object, and the invasion phase can also be ended; wherein the durability of the first virtual building is used to characterize the life of the first virtual building, and the second threshold can be a value set in advance, which is less than the maximum durability of the first virtual building. For example, the maximum durability of the first virtual building is 100, the minimum durability is 0, and the second threshold is 20. When the durability of the first virtual building is less than or equal to 20, the invasion phase is ended. For another example, the maximum durability of the first virtual building is 100, the minimum durability is 0, and the second threshold is 0. When the durability of the first virtual building is equal to 0, it means that the first virtual building has been destroyed and the invasion phase ends.

[0092] In some embodiments, the conditions for successfully resisting the invasion stage and the conditions for failing to resist the invasion stage can be set in advance. If the user successfully resists the invasion stage, a certain reward can be obtained. For example, the reward can be used to play a positive role in motivating the construction of virtual buildings in the city construction stage, thereby enhancing the user's enthusiasm for starting the invasion stage, and can strongly associate the city construction stage with the invasion stage. The invasion stage can reduce the tediousness of city construction and help the progress of the city construction stage. In the embodiments of the present application, the form of the above-mentioned reward is not limited. For example, it can be a virtual resource required to build a virtual building, or it can be a prop used to speed up the progress of city construction, etc. This application does not limit this. If the user fails to successfully resist the invasion stage, no reward will be obtained, or the reward obtained will be less than that obtained by successfully resisting the invasion stage.

[0093] In some embodiments, when the end conditions of the invasion stage include the above three conditions, if all the first virtual objects in the invasion stage are defeated, rewards are obtained and the difficulty of the next invasion stage is increased; or, if the duration of the invasion stage reaches the first threshold or the durability of the first virtual building is less than or equal to the second threshold, the difficulty of the next invasion stage will not be increased. When the user successfully resists the invasion stage, on the one hand, a certain reward can be obtained, and on the other hand, the difficulty of the next invasion stage is increased, forcing the user to strengthen the construction of virtual buildings in order to obtain the rewards of the next invasion stage, which plays a positive role in motivating the city construction process. When the user fails to successfully resist the invasion stage, the difficulty of the next invasion stage will not be increased, so that the user can strengthen the construction of virtual buildings during the city construction stage and strive to successfully resist the next invasion stage.

[0094] For example, Figure 8 As shown, when the end condition of the invasion phase is met, a prompt message 81 is displayed, and the prompt message 81 is used to indicate that the invasion phase is over and the city construction phase is about to begin again.

[0095] The technical solution provided by the embodiment of the present application is to display the first progress information indicating the progress of reaching the opening condition of the invasion stage in the city construction stage, and display the first control when the opening condition of the invasion stage is reached, and then the invasion stage is opened after the user triggers the first control. On the one hand, it is conducive to enhancing the coherence and immersion of the game process, and can mobilize the enthusiasm of the user and guide it to advance the game process according to the set rhythm. Specifically, the first progress information can allow the user to clearly understand the current game stage and completion degree. When the accumulation reaches the level that can trigger the invasion stage, the appearance of the first control allows the user to independently decide the time point to start the invasion stage. This not only avoids the possibility of interrupting the game rhythm by directly forcing the invasion stage, but also deepens the user's control over the entire game process, which is ultimately conducive to improving the user's game experience and sense of participation. On the other hand, it is also conducive to guiding and motivating users to actively build and improve virtual buildings, which can improve the construction efficiency of virtual buildings. Specifically, the first progress information allows users to always pay attention to the current construction progress and invasion preparation, thereby actively speeding up the construction of virtual buildings. The appearance of the first control is like a warning, prompting users to realize the need to build more powerful buildings to resist the upcoming invasion. This can stimulate users' sense of urgency, mobilize users' enthusiasm for construction, and actively optimize various parameters of the building, ultimately forming a closed-loop enhancement, which effectively improves the construction efficiency of virtual buildings and users' active participation.

[0096] Next, when the second virtual building includes a tower defense building for protecting the first virtual building, the construction process of the tower defense building is introduced and explained.

[0097] In some embodiments, during the city construction stage, a tower defense building selection interface is displayed, in which at least one candidate tower defense building is displayed; in response to an operation for triggering the construction of a first tower defense building among at least one candidate tower defense building, the first tower defense building in a state to be constructed is displayed in a display screen of the virtual environment; in response to an operation for confirming the construction of the first tower defense building, in a display screen of the virtual environment, the first tower defense building is displayed at the construction position based on the construction position of the first tower defense building selected in the virtual environment.

[0098] The tower defense building selection interface is an interface for users to select the tower defense building they want to build. Optionally, during the city construction stage, a tower defense building construction control may be displayed, and the tower defense building construction control is an operation control for triggering the display of the tower defense building selection interface. The user triggers the display of the tower defense building selection interface by performing operations such as clicking, pressing, or sliding on the tower defense building construction control. In the tower defense building selection interface, selection items corresponding to at least one candidate tower defense building may be displayed, and clicking on the selection item corresponding to any of the tower defense buildings indicates the selection of the tower defense building.

[0099] After the first tower defense building is selected for construction, the first tower defense building in a waiting state is displayed in the display screen of the virtual environment. The waiting state refers to a state where the tower defense building is determined to be constructed but the construction location has not yet been determined in the virtual environment. In the waiting state, the user can select the construction location of the tower defense building in the virtual environment.

[0100] For example, Fig. 9 As shown, it shows a schematic diagram of the tower defense building selection interface, and the tower defense building selection interface displays selection items 91 corresponding to at least one candidate tower defense building. The user can click on the selection item 91 corresponding to any tower defense building to trigger the selection of the tower defense building. In addition, the tower defense building selection interface also displays a preview image 92 of the currently selected tower defense building, description information 93 of the currently selected tower defense building, and a construction control 94, wherein the description information 93 includes the name, description, floor space, and construction consumption of the tower defense building. After clicking on the construction control 94, the selected tower defense building enters the waiting state and switches to the Fig.10 The tower defense building construction interface shown.

[0101] like Fig.10 As shown, a virtual environment is displayed in the tower defense building construction interface, and a first tower defense building 101 to be constructed is displayed in the virtual environment. Fig.10 As shown, the tower defense building construction interface also displays other controls for controlling the first tower defense building 101. For example, Fig.10As shown, it includes a cancel construction control 102, a rotation control 103, and a confirmation construction control 104. The user clicks the cancel construction control 102 to trigger the operation of canceling the construction of the first tower defense building 101, and the first tower defense building 101 exits the waiting state. The user clicks the rotation control 103 to control the rotation of the increase position of the first tower defense building 101, and the details can be seen below. The user clicks the confirmation construction control 104 to trigger the operation of confirming the construction of the first tower defense building 101.

[0102] In some embodiments, after displaying the first tower defense building in a state to be built, it also includes: in response to the operation of moving the first tower defense building, moving the first tower defense building to a first position in the virtual environment; displaying the amplified position of the first tower defense building determined based on the first position in the virtual environment, and the second tower defense building located at the amplified position is affected by the amplified effect of the first tower defense building.

[0103] The first tower defense building is a tower defense building used to provide an amplification effect for the second tower defense building, and the first tower defense building and the second tower defense building are two different tower defense buildings. Optionally, the first tower defense building has no attack capability, and by providing an amplification effect for the second tower defense building, the cooperation between the tower defense buildings is achieved to form a stronger defense effect and increase the advantage in the game. Optionally, the amplification effect includes at least one of a defense amplification effect and an attack amplification effect. The first tower defense building can only provide a defense amplification effect, or only provide an attack amplification effect, or provide both a defense amplification effect and an attack amplification effect.

[0104] The second tower defense building is another tower defense building different from the first tower defense building. When the second tower defense building is located at the amplification position of the first tower defense building, the second tower defense building can obtain the amplification effect of the first tower defense building.

[0105] In some embodiments, the second tower defense building belongs to an attack type tower defense building, that is, a type of tower defense building with the ability to attack virtual objects. The second tower defense building can usually attack virtual objects in different ways, causing different damage. Exemplarily, the second tower defense building attacks the first virtual object at a distance through long-range shooting attack props, such as bows and arrows, magic, catapults and other attack props, and the attack range of the second tower defense building is relatively large. Exemplarily, the second tower defense building attacks the first virtual object at a close distance through close-range attack props, such as hammers, swords, spears and other attack props, and the attack range of the second tower defense building is relatively small. Optionally, the second tower defense building produces range damage to the virtual object through magic attacks, and different types of magic attacks may produce special effects. The attack method of the second tower defense building belonging to the attack type can be one of the above methods, or it can be other methods, which are not limited in this application.

[0106] In some embodiments, the second tower defense building is an auxiliary type of tower defense building, that is, a type of tower defense building that can provide an amplification effect for other tower defense buildings, but the amplification effect generated by the second tower defense building cannot be the same type as the amplification effect generated by the first tower defense building. Exemplarily, the amplification effect generated by the first tower defense building is a defense amplification effect, and the amplification effect generated by the second tower defense building is also a defense amplification effect. In this case, the first tower defense building cannot add a defense amplification effect to the second tower defense building. Exemplarily, the amplification effect generated by the first tower defense building is a defense amplification effect, and the amplification effect generated by the second tower defense building is an attack amplification effect. In this case, the first defense tower can add a defense amplification effect to the second tower defense building.

[0107] In some embodiments, the first tower defense building is an auxiliary type of tower defense building, and the second tower defense building is an attack type of tower defense building.

[0108] In some embodiments, the first tower defense building is an auxiliary tower defense building, and the second tower defense building is also an auxiliary tower defense building. Optionally, the amplification effect generated by the second tower defense building cannot be of the same type as the amplification effect generated by the first tower defense building.

[0109] In some embodiments, the first tower defense building is an auxiliary tower defense building, and the second tower defense building is a special tower defense building. The special tower defense building refers to a type of tower defense building that does not directly attack the first virtual object but can produce a negative effect on the first virtual object. The negative effect includes but is not limited to at least one of a stun effect, a poisoning effect, and the like.

[0110] In some embodiments, the amplification effect provided by the auxiliary type tower defense building includes at least one of a defense amplification effect and an attack amplification effect. The tower defense building that provides a defense amplification effect can be called a shield generator or other names, which is not limited in this application. The tower defense building that provides an attack amplification effect can be called an aura tower or other names, which is not limited in this application. The tower defense building that provides a defense amplification effect and the tower defense building that provides an attack amplification effect can simultaneously assist the tower defense building of the same attack type. The tower defense building of the attack type can be called an attack tower or other names, which is not limited in this application.

[0111] In some embodiments, the ground of the virtual environment is divided into multiple grids, and the first position is the first grid among the multiple grids; the amplification position of the first tower defense building determined based on the first position is displayed in the virtual environment, including: displaying at least one amplification position of the first tower defense building determined based on the first grid in the virtual environment, each amplification position occupies at least one grid.

[0112] The ground of a virtual environment refers to the area in the virtual environment where virtual buildings can be built. Virtual buildings all have a certain volume, so they will occupy a certain space in the virtual environment. The ground of the virtual environment is divided into sub-areas of equal size, one of which is a grid, and one grid corresponds to a certain space in the virtual environment. Construction space is allocated to virtual buildings in units of grids. The first grid refers to the grid allocated to the first tower defense building, and can also correspond to the size of the space allocated to the first tower defense building in the virtual environment. When dividing the ground of the virtual environment, it can be divided into squares, rectangles, or other shapes, which are not limited in this application. A virtual building can occupy one grid or multiple grids, which can be set according to the properties of the virtual building, which are not limited in this application. The grids occupied by the building can be connected or disconnected, which are not limited in this application.

[0113] The amplification position of the first tower defense building refers to the position where the first tower defense building can produce an amplification effect. The amplification position determines the range in which the first tower defense building can produce an amplification effect, and the range is expressed in grids. Different amplification positions of the first tower defense building can occupy the same number of grids or different numbers of grids. The amplification positions of the first tower defense building can be distributed in a continuous area with the first tower defense building as the center, or can be distributed discretely with the first tower defense building as the center according to a certain rule, or can be distributed not with the first tower defense building as the center.

[0114] In some embodiments, displaying at least one augmented position of a first tower defense building determined based on a first grid in a virtual environment includes: marking and displaying grids corresponding to at least one augmented position of a first tower defense building determined based on the first grid in the virtual environment.

[0115] The above-mentioned marking and displaying of the grid corresponding to the amplification position refers to marking the grid corresponding to the amplification position on the ground of the virtual environment, so that the user can more intuitively know the location of the amplification position of the first tower defense building. There are many ways to mark and display the grid corresponding to the amplification position, which may include but are not limited to at least one of the following display methods: highlight mark, transparent area, icon, symbol, text prompt, color mark, etc. Exemplarily, the grid occupied by the amplification position of the first tower defense building is drawn with a highlighted border to display the position and range in which the first tower defense building can produce an amplification effect.

[0116] The technical solution provided in the embodiment of the present application sets an amplification position for the tower defense building. The second tower defense building located at the amplification position of the first tower defense building can be affected by the amplification effect of the first tower defense building, thereby achieving a stronger defense effect through cooperation between the tower defense buildings without having to blindly build more tower defense buildings. This helps to reduce the requirements for the processing resources of the equipment.

[0117] In addition, in the process of building tower defense buildings, by displaying the amplification position of the tower defense buildings under construction in the virtual environment, users can intuitively and clearly see which tower defense buildings are located in the amplification position. The interface is intuitive and easy to understand, which makes it easy for users to match more effective defense tower formations.

[0118] In addition, in conventional tower defense gameplay, the functions of tower defense buildings are independent of each other. Players only need to consume a certain amount of resources to build tower defense buildings, and do not need to consider the layout between tower defense buildings. The gameplay strategy is relatively limited and lacks depth. When facing high-intensity enemies, all players can do is increase the number and level of tower defense buildings, rather than thinking about how to further utilize the terrain and make good use of the characteristics of tower defense buildings to cooperate. This solution adds an auxiliary mechanism for the amplification effect of tower defense buildings. Tower defense buildings need to cooperate to form a stronger defensive effect. Players use their own thinking to match tower defense buildings to meet different battlefield needs.

[0119] Next, combine Fig.11 , the technical solution of this application is exemplified.

[0120] First, in the city construction stage, the player performs various operations in the city construction stage, such as building specific buildings, upgrading specific technologies, exploring specific locations, killing specific monsters, etc. Some of the above operations performed by the player may increase the progress of the conditions for opening the invasion stage, while others may not. Therefore, it is possible to judge whether the progress of the conditions for opening the invasion stage can be increased. If the judgment result is that the progress of the conditions for opening the invasion stage can be increased, the displayed progress is updated; if the judgment result is that the progress of the conditions for opening the invasion stage cannot be increased, the player's newly performed operations are continued to be obtained for judgment.

[0121] When the progress of the opening condition of the invasion phase reaches 100%, the first control for triggering the opening of the invasion phase is displayed, and the player clicks the first control to trigger the opening of the invasion phase. In the invasion phase, according to the configured at least one round of attack process, the first virtual object is refreshed. The first virtual object will automatically attack the virtual building built by the player. The player can resist the attack of the first virtual object by building a tower defense building and controlling the second virtual object.

[0122] When the conditions for ending the invasion phase are met, the city construction phase begins again.

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

[0124] Please refer to Fig.12 , which shows a block diagram of a virtual building construction device provided by an embodiment of the present application. The device has the function of implementing the above method example, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the terminal device introduced above, or it can be set in the terminal device. Fig.12 As shown, the device 1200 may include: a display module 1210 .

[0125] The display module 1210 is used to display the virtual buildings constructed in the virtual environment in the display screen of the virtual environment during the city construction stage of the virtual environment, wherein the virtual buildings include: a first virtual building and a second virtual building for protecting the first virtual building.

[0126] The display module 1210 is further configured to display, in response to satisfying a start condition of the invasion phase, a process of the first virtual object attacking the virtual building in the display screen of the virtual environment.

[0127] The display module 1210 is further configured to re-enter the city construction phase in response to satisfying the end condition of the invasion phase, and display the newly constructed virtual building in the virtual environment in the display screen of the virtual environment.

[0128] In some embodiments, the display module 1210 is also used to display first progress information during the city construction stage, wherein the first progress information is used to indicate the progress of reaching the start condition of the invasion stage; when the start condition of the invasion stage is reached, a first control is displayed, and the first control is used to trigger the start of the invasion stage.

[0129] In some embodiments, the display module 1210 is further used to update and display the progress indicated by the first progress information based on the operation behavior performed in the urban construction stage.

[0130] In some embodiments, the display module 1210 is further used to display the process of the second virtual object fighting against the first virtual object in the display screen of the virtual environment in response to a control operation on the second virtual object after the invasion stage is started.

[0131] In some embodiments, the display module 1210 is further used to display, in the display screen of the virtual environment, a process in which the second virtual building attacks the first virtual object after the invasion phase is started.

[0132] In some embodiments, the display module 1210 is also used to display multiple rounds of attack processes of the first virtual object against the virtual building in the display screen of the virtual environment; wherein the attack process of each round is determined based on at least one of the following configuration information: the type, quantity, and formation of the first virtual object.

[0133] In some embodiments, the second virtual building includes: a tower defense building for protecting the first virtual building. The display module 1210 is further used to display a tower defense building selection interface in the city construction stage, in which at least one candidate tower defense building is displayed; in response to an operation for triggering the construction of a first tower defense building among the at least one candidate tower defense building, the first tower defense building in a state to be constructed is displayed in the display screen of the virtual environment; in response to an operation for confirming the construction of the first tower defense building, the first tower defense building is displayed at the construction position based on the construction position of the first tower defense building selected in the virtual environment in the display screen of the virtual environment.

[0134] In some embodiments, the display module 1210 is also used to move the first tower defense building to a first position in the virtual environment in response to an operation of moving the first tower defense building; and to display an amplified position of the first tower defense building determined based on the first position in the virtual environment, and a second tower defense building located at the amplified position is affected by the amplification effect of the first tower defense building.

[0135] In some embodiments, the termination condition includes at least one of the following: the first virtual objects in the invasion phase are all defeated; the duration of the invasion phase reaches a first threshold; the durability of the first virtual building is less than or equal to a second threshold.

[0136] In some embodiments, if all the first virtual objects in the invasion phase are defeated, a reward is obtained and the difficulty of the next invasion phase is increased; alternatively, if the duration of the invasion phase reaches a first threshold or the durability of the first virtual building is less than or equal to a second threshold, the difficulty of the next invasion phase does not increase.

[0137] The technical solution provided in the embodiment of the present application improves the driving force of city construction by adding a mechanism for virtual objects to invade and attack virtual buildings during the city construction process. Since the user's virtual building is always threatened by the attack of virtual objects, the user will be motivated to build virtual buildings as soon as possible to better resist the threat, that is, to strengthen the user's motivation to actively build and improve virtual buildings, effectively solving the problem of low efficiency of city construction caused by the original boring and single city construction process, and improving the construction efficiency of virtual buildings.

[0138] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0139] Please refer to Fig.13 , which shows a block diagram of a terminal device 1300 provided in one embodiment of the present application. The terminal device 1300 may be Figure 1 The terminal device 10 in the implementation environment shown is used to implement the construction method of the virtual building provided in the above embodiment. Specifically:

[0140] Typically, the terminal device 1300 includes: a processor 1310 and a memory 1320 .

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

[0142] The memory 1320 may include one or more computer-readable storage media, which may be non-transitory. The memory 1320 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1320 is used to store a computer program, which is configured to be executed by one or more processors to implement the above-mentioned virtual building construction method.

[0143] In some embodiments, the terminal device 1300 may further optionally include: a peripheral device interface 1330 and at least one peripheral device. The processor 1310, the memory 1320 and the peripheral device interface 1330 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1330 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1340, a display screen 1350, an audio circuit 1360 and a power supply 1370.

[0144] Those skilled in the art will understand that Fig.13 The structure shown in the figure does not constitute a limitation on the terminal device 1300, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0145] In an exemplary embodiment, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is executed by a processor, the method for constructing the virtual building described above is implemented. Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random Access Memory), SSD (Solid State Drives) or an optical disk, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0146] In an exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a 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 method for constructing a virtual building.

[0147] It should be noted that the relevant data collection and processing in this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in examples, and the informed consent or separate consent of the personal information subject should be obtained, and subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.

[0148] It should be understood that the "multiple" mentioned in this article 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 can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0149] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for constructing a virtual building, characterized in that: The method comprises: In the city construction stage for the virtual environment, a virtual building constructed in the virtual environment is displayed in a display screen of the virtual environment, wherein the virtual building includes: a first virtual building and a second virtual building for protecting the first virtual building; In response to satisfying a start condition of the invasion phase, displaying, in a display screen of the virtual environment, a process of the first virtual object attacking the virtual building; In response to the end condition of the invasion phase being met, the city construction phase is entered again, and the virtual building newly constructed in the virtual environment is displayed in the display screen of the virtual environment.

2. The method according to claim 1, characterized in that The method further comprises: In the city construction stage, first progress information is displayed, where the first progress information is used to indicate the progress of reaching the opening condition of the invasion stage; When the start condition of the invasion stage is met, a first control is displayed, and the first control is used to trigger the start of the invasion stage.

3. The method according to claim 2, characterized in that The method further comprises: Based on the operation behavior performed in the city construction stage, the progress indicated by the first progress information is updated and displayed.

4. The method according to claim 1, characterized in that: The method further comprises: After the invasion phase is started, in response to a control operation on the second virtual object, a process of the second virtual object fighting against the first virtual object is displayed in a display screen of the virtual environment.

5. The method according to claim 1, characterized in that The method further comprises: After the invasion phase is started, the process of the second virtual building attacking the first virtual object is displayed in the display screen of the virtual environment.

6. The method according to claim 1, characterized in that The step of displaying the attack process of the first virtual object on the virtual building in the display screen of the virtual environment includes: In the display screen of the virtual environment, multiple rounds of attack processes of the first virtual object against the virtual building are displayed; wherein each round of attack process is determined based on at least one of the following configuration information: the type, quantity, and formation of the first virtual object.

7. The method according to claim 1, characterized in that The second virtual building includes: a tower defense building for protecting the first virtual building; the method further includes: In the city construction stage, a tower defense building selection interface is displayed, wherein at least one candidate tower defense building is displayed in the tower defense building selection interface; In response to an operation for triggering construction of a first tower defense building among the at least one candidate tower defense building, displaying the first tower defense building in a state to be constructed in a display screen of the virtual environment; In response to confirming the operation of constructing the first tower defense building, in the display screen of the virtual environment, the first tower defense building is displayed at the construction position based on the construction position of the first tower defense building selected in the virtual environment.

8. The method according to claim 7, characterized in that After displaying the first tower defense building in a state to be built, the method further includes: In response to an operation of moving the first tower defense building, moving the first tower defense building to a first position of the virtual environment; The amplified position of the first tower defense building determined based on the first position is displayed in the virtual environment, and the second tower defense building located at the amplified position is affected by the amplified effect of the first tower defense building.

9. The method according to claim 1, characterized in that: The end condition includes at least one of the following: The first virtual objects in the invasion phase are all defeated; The duration of the invasion phase reaches a first threshold; The durability of the first virtual building is less than or equal to a second threshold.

10. The method according to claim 9, characterized in that If all the first virtual objects in the invasion phase are defeated, a reward is obtained and the difficulty of the next invasion phase increases; or, If the duration of the invasion phase reaches a first threshold or the durability of the first virtual building is less than or equal to a second threshold, the difficulty of the next invasion phase will not be increased.

11. A virtual building construction device, characterized in that: The device comprises: A display module is used to display a virtual building constructed in the virtual environment in a display screen of the virtual environment during the city construction stage of the virtual environment, wherein the virtual building includes: a first virtual building and a second virtual building for protecting the first virtual building; The display module is further configured to display, in response to satisfying a start condition of the invasion stage, a process of the first virtual object attacking the virtual building in a display screen of the virtual environment; The display module is further used to enter the city construction stage again in response to meeting the end condition of the invasion stage, and display the virtual building newly constructed in the virtual environment in the display screen of the virtual environment.

12. A terminal device, characterized in that: The terminal device comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 10.

14. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the method according to any one of claims 1 to 10.