Virtual building construction method and device, terminal and storage medium

The method simplifies the construction of virtual buildings in tower defense games by enabling direct interaction with build points for preview and construction, improving efficiency and convenience.

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

Patent Information

Application Number
CN202410053473.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

In tower defense games, the construction process of virtual buildings is cumbersome, and users need to go through multiple steps such as opening the construction page, reading information, finding and selecting virtual buildings, which makes the construction inconvenient enough.

Method used

By displaying preview models and construction areas associated with construction points in a virtual environment, users can directly preview and build virtual buildings by controlling the movement of virtual objects, simplifying the operation process.

Benefits of technology

It improves the construction convenience and efficiency of virtual buildings, reduces user operation steps, and improves the convenience of construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120305679A_ABST
    Figure CN120305679A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual building construction method and device, a terminal and a storage medium, and relates to the technical field of computers. The method comprises the steps that a virtual environment is displayed, the virtual environment comprises a plurality of construction points, and each construction point is associated with at least one virtual building; in response to movement of the virtual object into a preview area of the first construction point, displaying a preview model of a first virtual building associated with the first construction point, the preview area being an area for triggering display of the preview model of the virtual building associated with the construction point; in response to the virtual object moving from the preview area into a construction area of the first construction point, a first virtual building is constructed in the virtual environment, the construction area being an area for triggering construction of a virtual building associated with the construction point. According to the application, interaction with the construction point through movement of the virtual object is supported, preview and construction of the virtual building corresponding to the construction point are realized, and improvement of the construction convenience and construction efficiency of the virtual building is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of computer technologies, and particularly to a method, apparatus, terminal, and storage medium for constructing virtual buildings. Background Art

[0002] In tower defense games, users need to use limited virtual resources to deploy different types of virtual buildings (such as defense towers, defense walls, defense traps, etc.) in a virtual environment to defend against the continuously incoming attackers and obtain victory.

[0003] In the related art, during the process of tower defense games, users can trigger a specific construction function control to call out the construction page, then select a virtual building from the construction page, and finally control the virtual object to move to the position selected by themselves to construct the virtual building. However, this process is relatively cumbersome and the construction of virtual buildings is not convenient enough. Summary of the Invention

[0004] Embodiments of the present application provide a method, apparatus, terminal, and storage medium for constructing virtual buildings. The technical solutions are as follows:

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

[0006] Display a virtual environment, where the virtual environment includes multiple construction points, and each construction point is associated with at least one virtual building;

[0007] In response to the virtual object moving into the preview area of the first construction point among the multiple construction points, display a preview model of the first virtual building associated with the first construction point, where the preview area refers to an area for triggering the display of the preview model of the virtual building associated with the construction point;

[0008] In response to the virtual object moving from the preview area to the construction area of the first construction point, construct the first virtual building in the virtual environment, where the construction area refers to an area for triggering the construction of the virtual building associated with the construction point.

[0009] According to one aspect of the embodiments of the present application, a device for constructing a virtual building is provided. The device includes:

[0010] A virtual environment display module for displaying a virtual environment, where the virtual environment includes multiple construction points, and each construction point is associated with at least one virtual building;

[0011] A preview model display module, configured to display a preview model of a first virtual building associated with the first construction point in response to the virtual object moving into the preview area of the first construction point among the multiple construction points, where the preview area refers to an area for triggering the display of the preview model of the virtual building associated with the construction point;

[0012] A virtual building construction module, configured to construct the first virtual building in the virtual environment in response to the virtual object moving from the preview area to the construction area of the first construction point, where the construction area refers to an area for triggering the construction of the virtual building associated with the construction point.

[0013] According to an aspect of an embodiment 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 virtual building construction method.

[0014] According to an aspect of an embodiment of the present application, a computer-readable storage medium is provided. A computer program is stored in the readable storage medium, and the computer program is loaded and executed by a processor to implement the above-mentioned virtual building construction method.

[0015] According to an aspect of an embodiment 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 virtual building construction method.

[0016] The technical solution provided by the embodiment of the present application may include the following beneficial effects:

[0017] During the process of a user controlling a virtual object to construct a virtual building in a virtual environment, by displaying construction points associated with the virtual building and supporting the user to interact with the construction points by controlling the movement of the virtual object, the preview and construction of the virtual building corresponding to the construction point can be achieved without performing other operations (such as opening a construction page, reading information of the virtual building, searching for and selecting the virtual building, placing the virtual building), effectively improving the convenience of virtual building construction and thus improving the construction efficiency of the virtual building. Description of the Drawings

[0018] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

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

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

[0021] Figure 3 It is a schematic diagram of a construction point provided by an embodiment of the present application;

[0022] Figure 4 It is a schematic diagram of a virtual environment provided by an embodiment of the present application;

[0023] Figure 5 It is a schematic diagram of the virtual environment after adding construction points provided by an embodiment of the present application;

[0024] Figure 6 It is a schematic diagram of a preview area and a construction area provided by an embodiment of the present application;

[0025] Figure 7 It is a schematic diagram of a preview model provided by an embodiment of the present application;

[0026] Figure 8 It is a schematic diagram of a shielding logic provided by an embodiment of the present application;

[0027] Figure 9 It is a schematic diagram of a construction point provided by another embodiment of the present application;

[0028] Figure 10 It is a schematic diagram of the model of a virtual building provided by an embodiment of the present application;

[0029] Figures 11 - 12 Exemplarily shows a schematic diagram of displaying construction points of the next-level building;

[0030] Figure 13 It is a schematic diagram of the collision between the collision body of a virtual object and the preview collision body provided by an embodiment of the present application;

[0031] Figure 14 It is a schematic diagram of the collision between the collision body of a virtual object and the construction collision body provided by an embodiment of the present application;

[0032] Figure 15It is a schematic diagram of a method for designing a virtual building provided by an embodiment of the present application;

[0033] Figure 16 It is a flowchart of a method for constructing a virtual building provided by another embodiment of the present application;

[0034] Figure 17 It is a block diagram of a device for constructing a virtual building provided by an embodiment of the present application;

[0035] Figure 18 It is a block diagram of a device for constructing a virtual building provided by another embodiment of the present application;

[0036] Figure 19 It is a block diagram of a terminal device provided by an embodiment of the present application. Detailed implementation manners

[0037] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

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

[0039] The terminal device 10 may be an electronic device such as a mobile phone, a tablet computer, a multimedia playback device, a PC (Personal Computer), a smart robot, a vehicle-mounted terminal, a wearable device, an AR (Augmented Reality) device, a VR (Virtual Reality) device, an MR (Mixed Reality) device, etc. A client of a target application program may be installed in the terminal device 10, and the target application program may be a game application program, a social entertainment application program, a simulation learning application program, a simulation application program, etc.

[0040] The target application program may be an online application program. Exemplarily, for the client of the target application program, it may be installed and run in different terminal devices 10 for different users to use. Taking a game application program as an example, the game application program may be installed and run in different terminal devices 10 in the form of a mobile game (Mobile Game), a PC game (PC Game), a web page, a small program, etc. The target application program may also be an offline application program or a plug-and-play application program, and the embodiments of the present application do not limit this.

[0041] Among them, the game application can be any one of, for example, a Massive Multiplayer Online Role-Playing Game (MMORPG), a casual game, a party game, a sandbox game, a tower defense game, an action adventure game, a Multiplayer Online Battle Arena (MOBA) game, a First-Person Shooting Game (FPS), a multiplayer gunfight survival game, a Third-Person Shooting Game (TPS), a simulation game (SLG), etc. The embodiments of the present application do not limit this.

[0042] The server 20 is used to provide a background service for the client of the target application (such as a game application) in the terminal device 10. For example, the server 20 can be the background server of the above application (such as a game application). The server 20 can be a single server, a server cluster composed of multiple servers, or a cloud computing service center.

[0043] The terminal device 10 and the server 20 can communicate with each other through the network 30. The network 30 can be a wired network or a wireless network.

[0044] Exemplarily, taking a mobile game as an example, the user can start a game level through the client of the mobile game in the terminal device 10. The client shows the virtual environment provided by the game level to the user. The virtual environment includes multiple construction points associated with at least one virtual building. The user can move the virtual object to the preview area of a certain construction point to preview the virtual building associated with the construction point, or the user can also move the virtual object to the construction area of a certain construction point to build the virtual building associated with the construction point in the virtual environment.

[0045] Next, the technical solution provided by the present application will be introduced and described through method embodiments.

[0046] Please refer to Figure 2 , which shows a flowchart of a method for building a virtual building provided by an embodiment of the present application. The execution subject of each step of this method can be Figure 1 the terminal device 10 in the implementation environment of the shown solution, such as the client in the terminal device 10. This method can include the following steps (201-203).

[0047] Step 201: Display a virtual environment, which includes multiple construction points, and each construction point is associated with at least one virtual building.

[0048] The above virtual environment can be the environment displayed (or provided) when the client of the above target application (such as a game application) runs on a terminal device. The virtual environment refers to an environment created for virtual objects to carry out activities. For example, it can be a virtual house, a virtual island, a virtual map, etc. The virtual environment can be a simulation environment of the real world, a semi-simulated and semi-fictional environment, or a purely fictional environment. The virtual environment can be a 3D virtual environment, a 2.5D virtual environment, or a 2D virtual environment. The embodiments of the present application do not limit this. Exemplarily, taking a game application as an example, the virtual environment can be implemented as the virtual environment provided by a game level, a game map, a game play, a game activity, a game mode, etc.

[0049] Among them, the virtual object can refer to the object controlled by the user in the target application. Taking a game application as an example, the virtual object refers to the game character controlled by the user in the game application. For example, the user can control the game character to perform operations such as moving, jumping, running, and using virtual props in the virtual environment. The virtual object can be in human form, or in the form of an animal, a cartoon, or other forms. The embodiments of the present application do not limit this. The virtual object can be displayed in 3D form or 2D form. The embodiments of the present application do not limit this.

[0050] Optionally, the virtual environment in the embodiments of the present application supports the construction of virtual buildings, that is, the user can control the virtual object located in the virtual environment to build virtual buildings in the virtual environment. For example, taking the virtual environment provided by the tower defense game mode corresponding to a game application as an example, the user can use limited virtual resources to build virtual buildings (such as defense towers) in the virtual environment by controlling the virtual object to defend against the continuously incoming attackers.

[0051] Among them, the virtual building can be the building displayed (or provided) when the client of the above target application (such as a game application) runs on a terminal device. The virtual building can be a simulated building of a real building, a semi-simulated and semi-fictional building, or a purely fictional building. The embodiments of the present application do not limit this.

[0052] For different virtual environments, the virtual building has different uses. Exemplarily, for the virtual environment provided by a sandbox game, the virtual building can be used for decorating or constructing the virtual environment; for the virtual environment provided by a tower defense game, the virtual building can be used for defense; for the virtual environment provided by a strategy game, the virtual building can be used for offense or defense.

[0053] For the same virtual environment, virtual buildings of different types have different functions. Exemplarily, taking a tower defense game as an example, a defense tower can be used to attack attackers who enter the protection range corresponding to the defense tower, a defense wall can be used to block the movement of attackers, and a defense trap can be used to trap or eliminate attackers. The embodiments of the present application do not limit this. The attacker can refer to a non-player character provided by the tower defense game, or the attacker can also refer to a game character controlled by a player. The embodiments of the present application do not limit this.

[0054] In the embodiments of the present application, a construction point is used to trigger the construction of a virtual building associated therewith. The construction point can be set in the virtual environment in the form of a model. The embodiments of the present application do not limit the model corresponding to the construction point, such as an arrow pointing to the virtual ground, a disc attached to the virtual ground, a frustum floating at a specified height from the virtual ground, a three-dimensional model in the form of a control (such as a button model), etc. The above construction refers to the process of consuming virtual resources to add a virtual building in the virtual environment. The virtual resources can be set and adjusted according to actual usage requirements, such as virtual gold coins, virtual materials, virtual bricks, virtual vouchers, etc.

[0055] Optionally, the models of multiple construction points in the virtual environment can be the same. For example, each construction point is distributed in the virtual environment in the form of a three-dimensional button model. The models of multiple construction points in the virtual environment can also be different. For example, the model corresponding to the construction point can be set based on the model of the virtual building associated with the construction point. For example, the simplified model of the virtual building can be set as the model corresponding to the construction point. Another example is that for a virtual building with an attack ability, its corresponding construction point is displayed in a first type of model, and for a virtual building with a defense ability, its corresponding construction point is displayed in a second type of model.

[0056] Exemplarily, referring to Figure 3 , the virtual environment 300 includes a construction point 301, which is displayed attached to the virtual ground in the form of a three-dimensional button model. The construction point 301 is associated with the virtual building "intelligent employee", that is, the construction point 301 can be used to trigger the construction of the virtual building "intelligent employee".

[0057] The embodiments of the present application do not limit the number, distribution, and associated virtual buildings of the construction points, which can be set and adjusted by the designers corresponding to the application program according to actual usage requirements.

[0058] Exemplarily, taking a game level as an example, during the process of a designer designing the blueprint corresponding to the virtual environment, the designer can determine the number of construction points and the positions of each construction point in the virtual environment according to the difficulty of the game level, and then for each construction point, associate virtual buildings, such as associating construction point A with a defense tower and associating construction point B with a defense wall, etc., so as to complete the design of the blueprint. When the client provides the game level, it can render the virtual environment (including construction points) based on the blueprint. In some feasible examples, based on the blueprint designed by the designer, it also supports the user to customize and adjust the construction points. The specific description of the customization and adjustment of the construction points will be given below and will not be elaborated here.

[0059] In one example, multiple construction points in the virtual environment are unlocked and displayed in batches. For example, the number of construction points increases as the progress of the game level providing the virtual environment advances. Among them, the unlocking order of the construction points can also be set and adjusted by the designer according to actual usage requirements.

[0060] For example, taking a tower defense game as an example, the game level provides multiple waves of attackers (such as virtual monsters). As the number of waves increases, the client gradually unlocks and displays construction points in the virtual environment. As Figure 4 shown, in the virtual environment 400, currently 4 construction points are unlocked and displayed, and each construction point is associated with a virtual building. After the user controls the virtual object 401 to successfully defend the attackers of the current wave, as Figure 5 shown, the client newly adds and displays 4 construction points in the virtual environment 400.

[0061] In one example, some virtual buildings in the embodiments of the present application have levels. The higher the level of the virtual building, the better the attributes of the virtual building (such as attack power, defense power, etc.). Optionally, the virtual buildings corresponding to the construction points unlocked later have higher levels. As Figure 4 and Figure 5 shown, the levels of the virtual buildings corresponding to the newly added and displayed 4 construction points are higher than the levels of the virtual buildings corresponding to the 4 construction points displayed first.

[0062] Optionally, in the case where there are multiple camps in the game level, each camp corresponds to its own multiple construction points, and the construction points corresponding to the camp are only visible and interactive to the virtual objects belonging to that camp. The distribution of the construction points corresponding to each camp can be set and adjusted by the designer according to actual usage requirements, and the client distributes and displays them according to the designed blueprint.

[0063] The embodiments of the present application support the designer to design construction points in the blueprint corresponding to the virtual environment, enabling the designer to perform visual settings for the construction points, with high configuration flexibility, effectively improving the configuration flexibility of the construction points.

[0064] Optionally, the virtual environment displayed by the client may refer to a local virtual environment within the second viewing angle range, rather than a complete virtual environment provided by the application, and the local virtual environment may include construction points. The above-mentioned second viewing angle range refers to the viewing angle range used by the virtual object to observe the virtual environment, and the viewing angle range can be determined by the viewing angle mode and the viewing angle. The viewing angle mode may include at least one of the following: first-person perspective, third-person perspective, observer perspective, 45-degree bird's-eye view perspective, and the viewing angle can be set and adjusted according to actual use requirements, such as 200 degrees, 210 degrees, etc., and this embodiment of the application does not limit this.

[0065] In one example, for each construction point within the second viewing angle, first prompt information is displayed at a second configuration position corresponding to the construction point, where the first prompt information is used to indicate information of a virtual building associated with the construction point.

[0066] Among them, the second configuration position can be set and adjusted according to actual usage requirements. For example, the second configuration position can be directly above the construction point, or on the left side of the construction point, or on the model of the construction point.

[0067] The first prompt information may be simplified information, which is only used to introduce basic information of the virtual building. For example, if the number of characters corresponding to the first prompt information is less than or equal to the character threshold, it is possible to avoid obstruction of the virtual environment as much as possible, and to avoid increasing interface elements to affect the user's visual experience.

[0068] Optionally, the first prompt information may include at least one of the following: the name, level, and virtual resources consumed for construction of the virtual building. In this way, by displaying the first prompt information, the user can directly obtain the basic information of the virtual building from the first prompt information without performing other operations (such as opening the information introduction interface of the virtual building), thereby effectively improving the convenience and efficiency of obtaining information.

[0069] For example, refer to Figure 3 , the first prompt information 302 can be displayed directly above the construction point 301 using HUD (Head-Up Display) technology, that is, when the construction point 301 is within the second viewing angle of the virtual object 303, the first prompt information 302 can be displayed directly above the construction point 301, so that the user can more conveniently obtain the information of the virtual building associated with the construction point 301.

[0070] Step 202, in response to the virtual object moving into a preview area of a first construction point among multiple construction points, displaying a preview model of a first virtual building associated with the first construction point, wherein the preview area refers to an area used to trigger display of a preview model of the virtual building associated with the construction point.

[0071] The above-mentioned first construction point may refer to any one of a plurality of construction points. Optionally, the user can control the movement of the virtual object through an external device of the terminal device (such as a keyboard, a mouse, a joystick, etc.). For example, in response to the user's triggering operation on the joystick, the client controls the virtual object to move in the virtual environment. When the terminal device has a touch display screen, the user can also control the movement of the virtual object through the controls displayed by the client. For example, in response to the user's triggering operation on the virtual joystick (such as clicking, pressing, sliding, etc.), the client controls the virtual object to move in the virtual environment. The embodiments of the present application do not limit this.

[0072] The preview area can be constructed based on the construction point, so as to facilitate the user to preview the virtual building associated with the construction point. Exemplarily, the preview area of the first construction point can be constructed based on the center point of the first construction point. For example, the center point of the preview area of the first construction point coincides with the center point of the first construction point, and the preview area of the first construction point includes the model of the first construction point. The embodiments of the present application do not limit the shape of the preview area. For example, the preview area can be a circular area, a square area, a regular hexagon area, etc. with the center point of the construction point as the center point.

[0073] For example, referring to Figure 6 , for the construction point 601, its corresponding preview area 602 is a square area, and this square area is enclosed by 4 faces (excluding the construction area 603). The preview area 602 has the center point of the construction point 601 as the center point.

[0074] The preview model is used to enable the user to preview the virtual building. The preview model can be the same as the model of the virtual building, or can also be a simplified model of the virtual building. For example, the preview model only has the outline of the model of the virtual building. The embodiments of the present application do not limit this. Optionally, the preview model of the virtual building is displayed differently from the model of the virtual building to indicate that the preview model is for preview rather than actually existing.

[0075] Referring to Figure 7 , in response to the virtual object 701 moving into the preview area of the construction point 702, the client displays the preview model 703 of the virtual building associated with the construction point 702. The preview model 703 is the same as the model of the virtual building, but is displayed transparently (or blurred). In this way, by controlling the movement of the virtual object to interact with the construction point, the preview of the virtual building can be realized without performing other operations, thereby improving the convenience and efficiency of previewing the virtual building.

[0076] The above-mentioned first virtual building may refer to any virtual building among at least one virtual building associated with the first construction point. Exemplarily, when the first construction point is only associated with the first virtual building, the client displays a preview model of the first virtual building; or, when the first construction point is associated with multiple virtual buildings, the client displays preview models of each of the multiple virtual buildings, and the multiple virtual buildings include the first virtual building.

[0077] In one example, when a virtual object inadvertently enters the preview area of a certain construction point, the client also displays a preview model of the virtual building associated with the construction point. For this situation, the embodiment of the present application also sets a first viewing range to avoid the virtual object accidentally triggering the display of the preview model as much as possible.

[0078] Exemplarily, the embodiment of the present application may further include the following content: when the first construction point is within the first viewing range, at the first configuration position corresponding to the first construction point, a preview model of the first virtual building associated with the first construction point is displayed. When the first construction point is not within the first viewing range, the client does not display the preview model of the first virtual building.

[0079] Among them, the first viewing range is smaller than the second viewing range used by the virtual object to observe the virtual environment. For example, if the viewing mode corresponding to the first viewing range is the same as the viewing mode corresponding to the second viewing range, the viewing angle corresponding to the first viewing range is the same as the viewing angle corresponding to the second viewing range.

[0080] The first configuration position is different from the second configuration position, and the first configuration position can be set and adjusted according to usage requirements. For example, the first configuration position can be directly above the construction point, or to the left of the construction point, or also to the right of the construction point.

[0081] For example, referring to Figure 8 , in response to the virtual object 801 moving into the preview area of the construction point 802, when the client detects that the construction point 802 is within the first viewing range 803, a preview model 804 of the virtual building associated with the construction point 802 is displayed.

[0082] In one example, when there are many construction points displayed on the same screen (that is, within the second viewing range), the first prompt information will be relatively messy, and the first prompt information corresponding to other construction points will affect the user's viewing of the first prompt information and preview model corresponding to the first construction point. Therefore, the embodiment of the present application also sets a shielding logic: in response to the virtual object moving into the preview area of the first construction point, the display of the first prompt information of other construction points except the first construction point within the second viewing range is cancelled.

[0083] For example, referring to Figure 8, in response to the virtual object 801 moving into the preview area of the construction point 802, the client cancels the display of the first prompt information corresponding to other construction points (such as construction points 805, 806, and 807) within the second viewing angle range, and only retains the display of the first prompt information corresponding to the construction point 802.

[0084] Optionally, to avoid the virtual object accidentally triggering the shielding logic and affecting the viewing of the first prompt information corresponding to other construction points, the embodiments of the present application may further include the following: in response to the virtual object moving into the preview area of the first construction point, when the first construction point is within the first viewing angle range, the client cancels the display of the first prompt information of other construction points within the second viewing angle range except the first construction point.

[0085] For example, referring to Figure 8 , in response to the virtual object 801 moving into the preview area of the construction point 802, when the client detects that the construction point 802 is within the first viewing angle range 803, the client cancels the display of the first prompt information corresponding to other construction points (such as construction points 805, 806, and 807) within the second viewing angle range.

[0086] Step 203, in response to the virtual object moving from the preview area to the construction area of the first construction point, construct the first virtual building in the virtual environment, where the construction area refers to the area for triggering the construction of the virtual building associated with the construction point.

[0087] The above construction area can be constructed based on the construction point to facilitate the user to construct the virtual building associated with the construction point. Exemplarily, the construction area of the first construction point can be constructed based on the center point of the first construction point, such as the center point of the construction area of the first construction point coincides with the center point of the first construction point. The embodiments of the present application do not limit the shape of the construction area, and the construction area can be a circular area, a square area, a regular hexagon area, etc. with the center point of the construction point as the center point.

[0088] Optionally, both the construction area and the preview area need to include the model corresponding to the construction point, the range corresponding to the construction area is smaller than the range corresponding to the preview area, and the shape corresponding to the construction area can be the same as the shape corresponding to the preview area.

[0089] For example, referring to Figure 6 , for the construction point 601, its corresponding construction area 603 is a square area, which is enclosed by 4 faces. The construction area 603 takes the center point of the construction point 601 as the center point, the construction area 603 includes the model of the construction point 601, and is smaller than the preview area 602, so as to achieve the effect that the virtual object can construct the virtual building by stepping on the construction point.

[0090] In one example, when only the first virtual building is associated with the first construction point, in response to the virtual object moving from the preview area to within the construction area, the client constructs the first virtual building at the first construction point.

[0091] In one example, when the first construction point is associated with multiple virtual buildings, in response to the virtual object moving into the preview area of the first construction point, the client displays a construction area including multiple sub-construction areas, each sub-construction area corresponding to a virtual building associated with the first construction point; in response to the virtual object moving from the preview area to within the sub-construction area corresponding to the first virtual building, the client constructs the first virtual building at the first construction point. Optionally, the client can also construct the first virtual building at the position where the preview model is displayed.

[0092] Among them, the sub-construction areas can be obtained by dividing the construction area based on the number of virtual buildings associated with the first construction point. The arrangement order of each sub-construction area is the same as the arrangement order of the preview models of each virtual building.

[0093] For example, taking the construction point as a circular area and the first construction point being associated with 3 virtual buildings as an example, the circular area can be evenly divided into three fan-shaped areas (i.e., sub-construction areas), and each fan-shaped area corresponds to a virtual building. In response to the virtual object moving into the fan-shaped area corresponding to the first virtual building, the client constructs the first virtual building at the first construction point.

[0094] Optionally, the construction area on the side facing the virtual object can also be divided into multiple sub-areas, so that the user can select different virtual buildings with less movement, thereby improving the construction flexibility of the virtual building while ensuring the construction efficiency of the virtual building.

[0095] In one example, when the first construction point is associated with multiple virtual buildings, in response to the virtual object moving into the preview area of the first construction point, the client displays a building selection control, which includes multiple options, each option corresponding to a virtual building; in response to the user's trigger operation on the option corresponding to the first virtual building, the client constructs the first virtual building at the first construction point.

[0096] Among them, the arrangement order of each option is the same as the arrangement order of the preview models of each virtual building.

[0097] In one example, for each construction point within the second viewing angle range, when the resources owned by the virtual object are greater than or equal to the virtual resources consumed for constructing the virtual building associated with the construction point, the client displays the construction point in a first style, that is, the first style is used to indicate that the virtual resources owned by the virtual object are greater than or equal to the virtual resources consumed for constructing the virtual building. In this way, the user can quickly understand which construction points can be triggered.

[0098] When the resources owned by the virtual object are less than the virtual resources consumed for constructing the virtual building associated with the construction point, the client displays the construction point in a second style, that is, the second style is used to indicate that the virtual resources owned by the virtual object are less than the virtual resources consumed for constructing the virtual building. In this way, the user can quickly understand which construction points cannot be triggered.

[0099] Among them, the first style is different from the second style. Exemplarily, the first style and the second style are distinguished by color. For example, when the resources owned by the virtual object are greater than or equal to the virtual resources consumed for constructing the virtual building associated with the construction point, the client displays the construction point with a green mark; when the resources owned by the virtual object are less than the virtual resources consumed for constructing the virtual building associated with the construction point, the client displays the construction point with a red mark. The first style and the second style can also be distinguished by brightness. For example, when the resources owned by the virtual object are greater than or equal to the virtual resources consumed for constructing the virtual building associated with the construction point, the client highlights the construction point; when the resources owned by the virtual object are less than the virtual resources consumed for constructing the virtual building associated with the construction point, the client displays the construction point in grayscale. The first style and the second style can also be distinguished by material. The embodiments of the present application do not limit the first style and the second style.

[0100] For example, referring to Figure 3 and Figure 9 , the resources owned by the virtual object 303 are greater than the virtual resources consumed for constructing the virtual building associated with the construction point 301. The client then displays the construction point 301 in the first style (such as black filling). The resources owned by the virtual object 303 are less than the virtual resources consumed for constructing the virtual building associated with the construction point 304. The client then displays the construction point 304 in the second style (such as white filling).

[0101] Optionally, the embodiments of the present application may further include the following: In response to the virtual object moving from the preview area to the construction area of the first construction point, if the first construction point is displayed in the first style, the client constructs the first virtual building on the first construction point; if the first construction point is displayed in the second style, the client does not construct the first virtual building.

[0102] For example, referring to Figure 7 and Figure 10 , in response to the virtual object 801 moving from the preview area of the construction point 702 to the construction area of the construction point 702, the client automatically constructs the first virtual building on the construction point 702, that is, increases the display of the model 704 of the first virtual building. In this way, by controlling the movement of the virtual object to interact with the construction point, the construction of the virtual building can be realized without other operations, thus improving the convenience and efficiency of the construction of the virtual building.

[0103] In one example, in order to prevent the first virtual building from being misconstructed, after the virtual object moves into the construction area, the client detects that the virtual object stays in the construction area for a certain period of time before constructing the first virtual building in the virtual environment.

[0104] In one example, some of the virtual buildings in the embodiments of the present application can be combined for construction. After the first virtual building is constructed, the embodiments of the present application may further include the following:

[0105] In the case where the first virtual building corresponds to a lower-level building, in response to the virtual object moving from the preview area to the construction area, the display of the first construction point is cancelled, and the display of the construction point corresponding to the lower-level building is increased within the preset range corresponding to the first virtual building.

[0106] Among them, the lower-level building corresponding to the first virtual building is constructed based on the first virtual building. Optionally, the lower-level building corresponding to the first virtual building can be used in combination with the first virtual building, or can be an upgraded building of the first virtual building, or can be a basic building of the first virtual building. The embodiments of the present application do not make any limitations in this regard.

[0107] The above preset range can be set and adjusted according to actual usage requirements, and the embodiments of the present application do not make any limitations in this regard. For example, the construction point corresponding to the lower-level building can be displayed at the position of the first construction point, or can be displayed above the first virtual building, or can be displayed on the left side of the first virtual building.

[0108] Optionally, in the case where the first virtual building has no lower-level building, the client directly cancels the display of the first construction point.

[0109] For example, referring to Figure 11 and 12, in response to the virtual object 1101 moving into the construction range of the first construction point 1102, the client constructs the first virtual building 1103 (such as a virtual turret) on the right side of the first construction point 1102, and cancels the display of the first construction point 1102. The first virtual building 1103 corresponds to a next-level building (such as a virtual cannon, and the virtual cannon and the virtual turret need to be used in combination). The client then adds and displays a second construction point 1104 associated with the next-level building on the left side of the first virtual building 1103.

[0110] In a feasible example, in the construction points corresponding to multiple camps provided by the virtual environment, when all virtual objects in the virtual environment are visible, the embodiments of the present application also support the seizure of construction points.

[0111] Exemplarily, taking the builder of the first virtual building as the first virtual object as an example, it may specifically include the following content: in response to the second virtual object staying within the seizure range of the first virtual building for a first set duration, demolish the first virtual building and redisplay the first construction point; in response to the second virtual object staying on the construction range of the first construction point for a second set duration, the client constructs the first virtual building belonging to the second virtual object.

[0112] Among them, the second virtual object and the first virtual object belong to different camps respectively. Optionally, the display styles between the models of the construction points corresponding to different camps are different, such as different shapes, different icons, etc. The construction points corresponding to each camp can be pre-designed by designers. In this way, by supporting the seizure of construction points, it is beneficial to improve the user experience and thus increase user stickiness.

[0113] In summary, the technical solution provided by the embodiments of the present application, during the process of the user controlling the virtual object to construct virtual buildings in the virtual environment, by displaying the construction points associated with the virtual buildings and supporting the user to interact with the construction points by controlling the movement of the virtual object, the preview and construction of the virtual buildings corresponding to the construction points can be achieved without performing other operations (such as opening the construction page, reading the information of the virtual building, searching for and selecting the virtual building, placing the virtual building), effectively improving the construction convenience of the virtual building and thus improving the construction efficiency of the virtual building.

[0114] In some embodiments, the above-mentioned construction points are provided with a preview collision body and a construction collision body. Among them, the preview collision body is used for preview collision detection, and the construction collision body is used for construction collision detection. Preview collision detection refers to the process of detecting whether a collision event occurs between the collision body corresponding to the virtual object and the preview collision body, and this collision event can be called a preview collision event. Construction collision detection refers to the process of detecting whether a collision event occurs between the collision body corresponding to the virtual object and the construction collision body, and this collision event can be called a construction collision event.

[0115] Optionally, the area occupied by the projection of the preview collision body on the virtual ground coincides with the preview area, and the area occupied by the projection of the construction collision body on the virtual ground coincides with the construction area.

[0116] For example, referring to Figure 13 , the preview collision body 1302 and the construction collision body 1303 of the construction point 1301 can both be implemented as collision detection frames, which is beneficial to reducing the workload of collision detection. Optionally, the collision body 1305 of the virtual object 1304 can be implemented as a spherical surface that encompasses the model of the virtual object 1304.

[0117] The above step 202 may further include the following content:

[0118] 1. In response to the virtual object moving to the boundary of the preview area of the first construction point, perform collision detection between the collision body of the virtual object and the preview collision body.

[0119] The boundary of the preview area refers to the edges that enclose the preview area. It is possible to determine whether the virtual object has moved to the boundary of the preview area of the first construction point by calculating the distance between the virtual object and the first construction point. For example, calculate the distance between the center point of the virtual object and the center point of the first construction point. If this distance is equal to the first distance threshold, it can be determined that the virtual object has moved to the boundary of the preview area of the first construction point.

[0120] Among them, the first distance threshold can be set and adjusted according to actual usage requirements. For example, the first distance threshold can be greater than or equal to the distance when the collision body of the virtual object and the preview collision body collide.

[0121] 2. When the collision body of the virtual object and the preview collision body collide, display the preview model of the first virtual building.

[0122] Optionally, it is possible to determine whether a preview collision event occurs by detecting whether there is an overlap between the collision body of the virtual object and the preview collision body. For example, if there is an overlapping area between the collision body of the virtual object and the preview collision body on the x-axis or y-axis or z-axis, it can be determined that a preview collision event has occurred. The embodiments of the present application do not limit the specific collision detection method.

[0123] For example, referring to Figure 13 , when the virtual object 1304 moves to the boundary of the preview area of the first construction point, perform collision detection between the collision body 1305 and the preview collision body 1302. When the collision body 1305 and the preview collision body 1302 collide, display the preview model 1306 of the virtual building associated with the construction point 1301.

[0124] The above step 203 may further include the following content:

[0125] 1. In response to the virtual object moving from the preview area to the boundary of the construction area of the first construction point, perform a collision detection between the collision body of the virtual object and the construction collision body.

[0126] The boundary of the construction area refers to the edges that enclose the construction area. It is possible to determine whether the virtual object has moved to the boundary of the construction area of the first construction point by calculating the distance between the virtual object and the first construction point. For example, calculate the distance between the center point of the virtual object and the center point of the first construction point. If this distance is equal to the second distance threshold, it can be determined that the virtual object has moved to the boundary of the construction area of the first construction point.

[0127] Among them, the second distance threshold can be set and adjusted according to actual usage requirements. For example, this second distance threshold can be greater than or equal to the distance when the collision body of the virtual object collides with the construction collision body.

[0128] 2. If the collision body of the virtual object collides with the construction collision body, build the first virtual building in the virtual environment.

[0129] Optionally, it is possible to determine whether a construction collision event has occurred by detecting whether there is an overlap between the collision body of the virtual object and the construction collision body. For example, if there is an overlapping area between the collision body of the virtual object and the construction collision body on the x-axis or y-axis or z-axis, it can be determined that a construction collision event has occurred.

[0130] For example, referring to Figure 14 , in the case where the virtual object 1304 moves to the boundary of the construction area of the first construction point, perform a collision detection on the collision body 1305 and the construction collision body 1301. In the case where the collision body 1305 and the construction collision body 1301 collide, display the model 1307 of the virtual building associated with the construction point 1301.

[0131] If a collision occurs between the collision body of the virtual object and the construction collision body or the preview collision body, it indicates that an interaction has occurred between the virtual object and the construction point. The client can automatically build the first virtual building by detecting the collision event.

[0132] In summary, the technical solution provided by the embodiments of the present application, by performing collision detection only when the virtual object enters or exits the collision body corresponding to the construction point, compared with the per-frame detection of traditional collisions, will not increase the performance consumption of the client even when the construction points in the virtual environment are continuously unlocked and increased, and the performance pressure on the client is small.

[0133] In some embodiments, the construction points in the above embodiments also support customization. The embodiments of the present application may further include the following content:

[0134] 1. Display a custom interface for adjusting the construction points in the blueprint corresponding to the virtual environment.

[0135] The custom interface is provided by the application. Before the game level is started, through this custom interface, the user can adjust the construction points in the virtual environment.

[0136] The blueprint is a design drawing of the virtual environment, which includes detailed information about the virtual environment and can be used to indicate the layout of the virtual environment. In the embodiments of the present application, the blueprint can also be used to indicate the distribution of the construction points in the virtual environment. The client can render the virtual environment provided by the game level based on the blueprint.

[0137] For example, referring to Figure 15 , the blueprint design architecture 1500 can be used to design virtual buildings associated with construction points. The blueprint design architecture 1500 includes multiple terminal devices, and each terminal device can be used to edit the virtual buildings associated with the construction points. For example, different designers can design different types of virtual buildings through the blueprint design architecture 1500. For the same virtual building, designers can also design its styles at different levels and the conversion relationships between virtual buildings at different levels through the blueprint design architecture 1500. Through this process, the setting of the construction points in the blueprint can be achieved.

[0138] 2. In response to an operation for adjusting the position of the construction point, update the construction point to the adjusted position.

[0139] Optionally, for each construction point, the client provides multiple candidate positions, and the user can select one from the multiple candidate positions as the adjusted position.

[0140] Optionally, for each construction point, the client provides a position setting range, and the user can select a position within the position setting range as the adjusted position. The position setting range can be set and adjusted according to actual usage requirements.

[0141] Optionally, for each construction point, the user can set the position according to their own needs to determine the adjusted position.

[0142] 3. In response to an operation for adjusting the virtual building corresponding to the construction point, change the construction point to be associated with the adjusted virtual building.

[0143] Optionally, for each construction point, the client provides multiple candidate virtual buildings, and the user can select one from the multiple candidate virtual buildings as the adjusted virtual building.

[0144] Optionally, for each construction point, the user can set one or more virtual buildings according to their own needs. The same construction point can support the preview of multiple associated virtual buildings, but only support the construction of one virtual building among multiple virtual buildings.

[0145] 4. Generate an adjusted blueprint corresponding to the virtual environment.

[0146] Optionally, if the construction points in the adjusted blueprint change, the client can generate user-defined construction points in the virtual environment based on the adjusted blueprint.

[0147] In summary, the technical solution provided by the embodiments of this application improves the flexibility of setting construction points by supporting the customization of construction points (such as customizing positions and associated virtual buildings).

[0148] In some embodiments, the same virtual building can have different display styles, different levels, different attributes, etc. The embodiments of this application also support switching the display styles, levels, attributes, etc. of virtual buildings by interacting with the preview area.

[0149] Exemplarily, taking the first construction point as an example, after displaying the preview model of the first virtual building associated with the first construction point, the embodiments of this application can also include the following content:

[0150] 1. In response to the virtual object re-entering the preview area of the first construction point or staying in the preview area of the first construction point for a specified duration, switch the preview model from the first display style to the second display style, and display the preview model in the second display style.

[0151] Among them, the virtual object re-entering the preview area can refer to the process of the virtual object leaving the preview area and then entering the preview area again. The virtual object staying in the preview area of the first construction point for a specified duration means that the virtual object does not leave the preview area within the specified duration after entering the preview area. This specified duration can be set and adjusted according to actual usage requirements.

[0152] The first display style and the second display style are different. The first display style can refer to the display style when entering the preview area for the last time (such as the first time), and the second display style can refer to the display style when entering the preview area this time (such as the second time). Optionally, each time the virtual object re-enters the preview area of the first construction point, the client switches the display style of the preview model once. The embodiments of this application do not limit the display styles that the preview model has and the number of display styles.

[0153] Exemplarily, the various display styles of the preview model can be different in aspects such as shape, color, area, height, size, number of layers, etc. The number of display styles can be set and adjusted according to actual usage requirements.

[0154] For example, the more times the virtual object re-enters the preview area, the more layers the preview model has (such as turrets and defensive walls). For instance, each time the virtual object re-enters the preview area once, the number of layers of the preview model increases by one. Another example is that the more the number of specified time durations corresponding to the duration the virtual object stays in the preview area, the more layers the preview model has. For example, for each increase in the number of specified time durations corresponding to the duration the virtual object stays in the preview area, the number of layers of the preview model increases by one.

[0155] 2. In response to the virtual object moving from the preview area to the construction area, construct the first virtual building in the virtual environment with a second display style.

[0156] Optionally, when the preview model is displayed in the second display style, if the virtual object moves into the construction area, the client constructs the first virtual building at the first construction point with the second display style.

[0157] In one example, in response to the virtual object re-entering the preview area of the first construction point or the virtual object staying in the preview area of the first construction point for a specified duration, the client adjusts the attributes or level of the first virtual building.

[0158] Optionally, each time the virtual object re-enters the preview area of the first construction point, the level of the first virtual building is increased or the attributes of the first virtual building are enhanced (such as defensive, attack, etc. attributes); or, for each specified duration satisfied by the duration the virtual object stays in the preview area, the level of the first virtual building is increased or the attributes of the first virtual building are enhanced. Among them, both the level and the attributes have upper limit values, and as the level or attributes are adjusted, the virtual resources consumed for constructing the first virtual building are also adjusted accordingly.

[0159] The first prompt message corresponding to the first construction point can also be dynamically adjusted following the adjustment of the attributes or level.

[0160] In one example, the adjustment of the display style, level, attributes, etc. of the virtual building can also be achieved through interaction with the construction area. Exemplarily, the display style, level, attributes, etc. of the virtual building can be adjusted according to the duration the virtual object stays in the construction area. For example, for each specified duration satisfied by this stay duration, the client adjusts the display style or level or attributes of the virtual building once. When it is detected that the virtual object leaves the construction area, the client constructs the first virtual building in the virtual environment.

[0161] In some embodiments, when a first construction point is associated with multiple virtual buildings, embodiments of the present application also support switching between different virtual buildings by interacting with a preview area.

[0162] Exemplarily, it may include the following: after displaying a preview model of a first virtual building associated with the first construction point, in response to a virtual object re-entering the preview area of the first construction point, the client displays a preview model of a second virtual building associated with the first construction point; in response to the virtual object moving from the preview area to the construction area of the first construction point, the second virtual building is constructed in the virtual environment.

[0163] Among them, the second virtual building is different from the first virtual building. The first virtual building may refer to the virtual building when entering the preview area last time, and the second virtual building may refer to the virtual building when entering the preview area this time. Optionally, each time the virtual object re-enters the preview area, the client updates and displays a preview model of a virtual building associated with the first construction point.

[0164] In one example, after displaying a preview model of a first virtual building associated with the first construction point, in response to the virtual object staying in the preview area of the first construction point for a specified duration, the client updates and displays a preview model of a second virtual building associated with the first construction point; in response to the virtual object moving from the preview area to the construction area of the first construction point, the second virtual building is constructed in the virtual environment.

[0165] Optionally, each time the virtual object stays in the preview area of the first construction point for a specified duration, the client switches and displays a preview model of a virtual building associated with the first construction point.

[0166] In some embodiments, after constructing the first virtual building in the virtual environment, the first construction point is not cancelled from display. In response to the virtual object re-entering the preview area of the first construction point, the client displays a preview model of the virtual building to be replaced; in response to the virtual object moving from the preview area to the construction area, the first virtual building is replaced with the virtual building to be replaced for construction, which is beneficial for quickly replacing the constructed virtual building.

[0167] In summary, the technical solution provided by the embodiments of the present application can achieve rapid adjustment of the same virtual building or rapid switching between different virtual buildings through interaction with the preview area, thereby further improving the construction flexibility and construction efficiency of virtual buildings.

[0168] In some embodiments, referring to Figure 16 , taking a tower defense game as an example, the technical solution provided by the embodiments of the present application will be described. The embodiments of the present application may also include the following:

[0169] 1. The client generates construction points based on the blueprint.

[0170] In response to the user starting a game level of a tower defense game, the client displays the virtual environment provided by the game level based on the blueprint corresponding to the game level, and generates multiple construction points in the virtual environment based on the blueprint corresponding to the game level. The user can control the first virtual object to move in the virtual environment.

[0171] Optionally, a part of the virtual environment within the second viewing angle range and the construction points located within the second viewing angle range are displayed in the user interface of the client. A first prompt message is displayed above the construction points, and the first prompt message may include the name, level, and virtual gold required for construction of the virtual building associated with the construction point.

[0172] 2. When the first construction point is not triggered, if the virtual gold owned by the first virtual object is sufficient to construct the first virtual building associated with the first construction point, the client replaces the material of the first construction point with a green material.

[0173] The first construction point not being triggered means that the first virtual building associated with the first construction point has not been constructed. Virtual gold is a virtual resource provided by the tower defense game and is used to be consumed for constructing virtual buildings. After the client replaces the material of the first construction point with a green material, the first construction point is displayed in green to indicate that the first construction point can be triggered to construct the first virtual building.

[0174] 3. When the first construction point is not triggered, if the virtual gold owned by the first virtual object is not sufficient to construct the first virtual building, the client replaces the material of the first construction point with a red material.

[0175] After the client replaces the material of the first construction point with a red material, the first construction point is displayed in red to indicate that the first construction point cannot be triggered to construct the first virtual building.

[0176] Optionally, if the virtual gold owned by the first virtual object changes to be greater than or equal to the virtual gold required for constructing the first virtual building, the client replaces the material of the first construction point from the red material to the green material.

[0177] 4. When a preview collision event occurs, the client displays a preview model of the first virtual building.

[0178] Optionally, when the client detects a collision between the collision body of the first virtual object and the preview collision body of the first construction point, it displays a preview model of the first virtual building on the left side of the first construction point.

[0179] Optionally, in the case where no preview collision event occurs, the client continues to detect preview collision events.

[0180] 5. When the center point of the first construction point is within the first viewing angle range, the client shields the first prompt information of other construction points.

[0181] Optionally, if the center point of the first construction point is within the first viewing angle range, it can be determined that the first construction point is within the first viewing angle range, and the client shields the first prompt information of other construction points within the second viewing angle range.

[0182] When the center point of the first construction point is not within the first viewing angle range, the client keeps displaying the first prompt information of other construction points.

[0183] 6. In the case where a construction collision event occurs, the client cancels the display of the first construction point, consumes the virtual gold coins owned by the first virtual object, and constructs the first virtual building.

[0184] Optionally, when the client detects a collision between the collision body of the first virtual object and the construction collision body of the first construction point, the first virtual building is constructed on the left side of the first construction point.

[0185] Optionally, in the case where no construction collision event occurs, the client continues to detect construction collision events.

[0186] In summary, the technical solution provided by the embodiments of the present application, during the process of the user controlling a virtual object to construct a virtual building in a virtual environment, by displaying construction points associated with the virtual building and supporting the user to interact with the construction points by controlling the movement of the virtual object, the preview and construction of the virtual building corresponding to the construction point can be achieved without performing other operations (such as opening the construction page, reading the information of the virtual building, searching for and selecting the virtual building, placing the virtual building), effectively improving the convenience of constructing the virtual building, and thus improving the construction efficiency of the virtual building.

[0187] 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.

[0188] Reference Figure 17 , which shows a block diagram of a virtual building construction device provided by an embodiment of the present application. The device has the functions of implementing the above method example, and the functions can be implemented by hardware or by hardware executing corresponding software. The device can be the terminal device introduced above or can be set in the terminal device. As Figure 17As shown, the device 1700 includes: a virtual environment display module 1701, a preview model display module 1702, and a virtual building construction module 1703.

[0189] The virtual environment display module 1701 is used to display a virtual environment, where the virtual environment includes a plurality of construction points, and each construction point is associated with at least one virtual building.

[0190] The preview model display module 1702 is used to display a preview model of a first virtual building associated with the first construction point in response to a virtual object moving into a preview area of the first construction point among the plurality of construction points, where the preview area is an area used to trigger the display of the preview model of the virtual building associated with the construction point.

[0191] The virtual building construction module 1703 is used to construct the first virtual building in the virtual environment in response to the virtual object moving from the preview area to a construction area of the first construction point, where the construction area is an area used to trigger the construction of the virtual building associated with the construction point.

[0192] In some embodiments, the preview model display module 1702 is further used to display the preview model of the first virtual building associated with the first construction point at a first configuration position corresponding to the first construction point when the first construction point is within a first viewing range; where the first viewing range is smaller than a second viewing range used by the virtual object to observe the virtual environment.

[0193] In some embodiments, as Figure 18 shown, the device 1700 further includes: a prompt information display module 1704.

[0194] The prompt information display module 1704 is used to display first prompt information at a second configuration position corresponding to each construction point located within the second viewing range, where the first prompt information is used to indicate information about the virtual building associated with the construction point.

[0195] In some embodiments, the prompt information display module 1704 is further used to cancel the display of the first prompt information of other construction points within the second viewing range except the first construction point when the virtual object moves into the preview area of the first construction point and the first construction point is within the first viewing range.

[0196] In some embodiments, the virtual building construction module 1703 is further configured to, if the first construction point is displayed in a first style, construct the first virtual building at the first construction point, where the first style is used to indicate that the virtual resources owned by the virtual object are greater than or equal to the virtual resources consumed for constructing the virtual building.

[0197] In some embodiments, as Figure 18 shown, the device 1700 further includes: a construction point display module 1705. The construction point display module 1705 is configured to:

[0198] In a case where there is a next-level building corresponding to the first virtual building, in response to the virtual object moving from the preview area to the construction area, cancel the display of the first construction point, and add and display construction points corresponding to the next-level building within a preset range corresponding to the first virtual building;

[0199] Or, in a case where there is no next-level building for the first virtual building, cancel the display of the first construction point; where the next-level building corresponding to the first virtual building is constructed based on the first virtual building.

[0200] In some embodiments, the number of construction points increases as the progress of the game level providing the virtual environment advances.

[0201] In some embodiments, the preview model display module 1702 is further configured to:

[0202] In a case where the first construction point is only associated with the first virtual building, display a preview model of the first virtual building;

[0203] Or, in a case where the first construction point is associated with multiple virtual buildings, display preview models of the multiple virtual buildings, where the multiple virtual buildings include the first virtual building.

[0204] In some embodiments, as Figure 18 shown, the device 1700 further includes: a construction area display module 1706.

[0205] The construction area display module 1706 is configured to, in a case where the first construction point is associated with multiple virtual buildings, in response to the virtual object moving into the preview area of the first construction point, display the construction area including multiple sub-construction areas, and each sub-construction area corresponds to a virtual building associated with the first construction point.

[0206] The virtual building construction module 1703 is further configured to construct the first virtual building at the first construction point in response to the virtual object moving from the preview area to the sub-construction area corresponding to the first virtual building.

[0207] In some embodiments, the preview model display module 1702 is further configured to switch the preview model from a first display style to a second display style and display the preview model in the second display style in response to the virtual object re-entering the preview area of the first construction point or the virtual object staying in the preview area of the first construction point for a specified duration.

[0208] The virtual building construction module 1703 is further configured to construct the first virtual building in the virtual environment in the second display style in response to the virtual object moving from the preview area to the construction area.

[0209] In some embodiments, as Figure 18 shown, the device further includes: an interface display module 1707, a position adjustment module 1708, a building adjustment module 1709, and a blueprint generation module 1710.

[0210] The interface display module 1707 is configured to display a custom interface for adjusting construction points in the blueprint corresponding to the virtual environment, where the blueprint is used to indicate the distribution of construction points in the virtual environment.

[0211] The position adjustment module 1708 is configured to update the construction point to the adjusted position in response to an operation for adjusting the position of the construction point.

[0212] The building adjustment module 1709 is configured to change the construction point to be associated with the adjusted virtual building in response to an operation for adjusting the virtual building corresponding to the construction point.

[0213] The blueprint generation module 1710 is configured to generate an adjusted blueprint corresponding to the virtual environment.

[0214] In some embodiments, a preview collision body and a construction collision body are provided at the construction point;

[0215] The preview model display module 1702 is further configured to perform a collision detection between the collision body of the virtual object and the preview collision body in response to the virtual object moving to the boundary of the preview area of the first construction point; and display the preview model of the first virtual building when a collision occurs between the collision body of the virtual object and the preview collision body.

[0216] The virtual building construction module 1703 is further configured to perform a collision detection on the collision body of the virtual object and the construction collision body in response to the virtual object moving from the preview area to the boundary of the construction area of the first construction point; if a collision occurs between the collision body of the virtual object and the construction collision body, the first virtual building is constructed in the virtual environment.

[0217] In summary, in the process of a user controlling a virtual object to construct a virtual building in a virtual environment, the technical solution provided by the embodiment of the present application can implement the preview and construction of the virtual building corresponding to the construction point by displaying the construction points associated with the virtual building and supporting the user to interact with the construction points by controlling the movement of the virtual object, without performing other operations (such as opening a construction page, reading information of a virtual building, searching for and selecting a virtual building, placing a virtual building), effectively improving the convenience of constructing a virtual building, and further improving the construction efficiency of the virtual building.

[0218] It should be noted that, when the device provided in the above embodiment implements its functions, only the above-mentioned division of each functional module is used for illustration. In actual application, the above functions can be allocated to different functional modules according to needs, 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 provided in the above embodiment and the method embodiment belong to the same concept, and the specific implementation process can be seen in the method embodiment, which will not be elaborated here.

[0219] Please refer to Figure 19 , which shows a structural block diagram of a terminal device provided by an embodiment of the present application. The terminal device 1900 is used to implement the method for constructing a virtual building provided in the above embodiment. The terminal device 1900 may be Figure 1 the terminal device 10 in the implementation environment shown. Specifically:

[0220] Generally, the terminal device 1900 includes a processor 1901 and a memory 1902.

[0221] Optionally, the processor 1901 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. The processor 1901 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 1901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1901 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 1901 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.

[0222] Optionally, the memory 1902 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1902 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 medium in the memory 1902 is used to store a computer program, and the computer program is configured to be executed by one or more processors to implement the above-mentioned method for constructing a virtual building.

[0223] In some embodiments, the terminal device 1900 may further optionally include: a peripheral device interface 1903 and at least one peripheral device. The processor 1901, the memory 1902, and the peripheral device interface 1903 may be connected by a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1903 through a bus, signal lines, or a circuit board. Specifically, the peripheral devices include at least one of a radio frequency circuit 1904, a display screen 1905, an audio circuit 1906, and a power supply 1907.

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

[0225] In some embodiments, 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 construction method of the virtual building described above is implemented.

[0226] 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).

[0227] In some embodiments, 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. 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 construction method of the virtual building described above.

[0228] It should be noted that before and during the process of collecting the relevant data of the user in the embodiments of the present application, a prompt interface, a pop-up window or voice prompt information can be displayed. The prompt interface, pop-up window or voice prompt information is used to prompt the user that their relevant data is being collected at present, so that the present application only starts to execute the relevant steps of obtaining the relevant data of the user 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 relevant data of the user are ended, that is, the relevant data of the user is not obtained. In other words, all user data collected by the present application is processed strictly in accordance with the requirements of relevant national laws and regulations. Obtaining the informed consent or separate consent of the personal information subject is carried out under the condition of the user's consent and authorization, and subsequent data use and processing behaviors are carried out within the scope of laws, regulations and the authorization of the personal information subject, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the virtual environment, virtual building, etc. involved in the present application are obtained under full authorization.

[0229] It should be understood that the "plurality" mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. In addition, the step numbers described herein only exemplarily show a possible execution sequence between steps. In some other embodiments, the above steps may not be executed in the order of the numbers. For example, two steps with different numbers can be executed simultaneously, or two steps with different numbers can be executed in the reverse order of the illustration. The embodiments of the present application do not limit this.

[0230] The above 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 in the protection scope of the present application.

Claims

1. A method for constructing a virtual building, characterized in that, The method includes: Displaying a virtual environment, which includes a plurality of construction points, and each construction point is associated with at least one virtual building; In response to the virtual object moving into the preview area of the first construction point among the plurality of construction points, displaying a preview model of the first virtual building associated with the first construction point, where the preview area refers to the area for triggering the display of the preview model of the virtual building associated with the construction point; In response to the virtual object moving from the preview area to the construction area of the first construction point, constructing the first virtual building in the virtual environment, where the construction area refers to the area for triggering the construction of the virtual building associated with the construction point.

2. The method according to claim 1, wherein The displaying of the preview model of the first virtual building associated with the first construction point includes: When the first construction point is within the first viewing range, displaying the preview model of the first virtual building associated with the first construction point at the first configuration position corresponding to the first construction point; Among them, the first viewing range is smaller than the second viewing range used by the virtual object to observe the virtual environment.

3. The method according to claim 2, wherein The method further includes: For each construction point within the second viewing range, displaying a first prompt message at the second configuration position corresponding to the construction point, and the first prompt message is used to indicate the information of the virtual building associated with the construction point.

4. The method according to claim 3, wherein The method further includes: In response to the virtual object moving into the preview area of the first construction point, when the first construction point is within the first viewing range, canceling the display of the first prompt messages of other construction points within the second viewing range except the first construction point.

5. The method according to claim 1, characterized in that, The constructing of the first virtual building in the virtual environment includes: If the first construction point is displayed in a first style, constructing the first virtual building on the first construction point, where the first style is used to indicate that the virtual resources owned by the virtual object are greater than or equal to the virtual resources consumed for constructing the virtual building.

6. The method according to claim 1, wherein, The method further includes: When the first virtual building has a next-level building, in response to the virtual object moving from the preview area to the construction area, canceling the display of the first construction point, and increasing the display of the construction points corresponding to the next-level building within the preset range corresponding to the first virtual building; Or, When the first virtual building has no next-level building, canceling the display of the first construction point; Among them, the next-level building corresponding to the first virtual building is constructed based on the first virtual building.

7. The method according to claim 1, wherein The number of the construction points increases as the progress of the game level providing the virtual environment advances.

8. The method according to claim 1, wherein The displaying of the preview model of the first virtual building associated with the first construction point includes: When the first construction point is only associated with the first virtual building, displaying the preview model of the first virtual building; Or, When the first construction point is associated with a plurality of virtual buildings, displaying the preview models of the respective plurality of virtual buildings, and the plurality of virtual buildings include the first virtual building.

9. The method according to claim 8, wherein The method further includes: When the first construction point is associated with multiple virtual buildings, in response to the virtual object moving into the preview area of the first construction point, displaying the construction area including a plurality of sub-construction areas, each of the sub-construction areas corresponding to a virtual building associated with the first construction point; The step of constructing the first virtual building in the virtual environment in response to the virtual object moving from the preview area to the construction area of the first construction point includes: In response to the virtual object moving from the preview area to the sub-construction area corresponding to the first virtual building, constructing the first virtual building at the first construction point.

10. The method according to claim 1, wherein After displaying the preview model of the first virtual building associated with the first construction point, it further includes: In response to the virtual object re-entering the preview area of the first construction point or staying in the preview area of the first construction point for a specified duration, switching the preview model from a first display style to a second display style, and displaying the preview model in the second display style; In response to the virtual object moving from the preview area to the construction area, constructing the first virtual building in the virtual environment in the second display style.

11. The method according to claim 1, characterized in that, Before the method displays the virtual environment, it further includes: Displaying a custom interface for adjusting the construction points in the blueprint corresponding to the virtual environment, where the blueprint is used to indicate the distribution of the construction points in the virtual environment; In response to an operation for adjusting the position of the construction point, updating the construction point to the adjusted position; In response to an operation for adjusting the virtual building corresponding to the construction point, changing the construction point to be associated with the adjusted virtual building; Generating an adjusted blueprint corresponding to the virtual environment.

12. The method according to claim 1, wherein The construction point is provided with a preview collision body and a construction collision body; The step of, in response to the virtual object moving into the preview area of the first construction point among the multiple construction points, displaying the preview model of the first virtual building associated with the first construction point includes: In response to the virtual object moving to the boundary of the preview area of the first construction point, performing a collision detection between the collision body of the virtual object and the preview collision body; When a collision occurs between the collision body of the virtual object and the preview collision body, displaying the preview model of the first virtual building; The step of constructing the first virtual building in the virtual environment in response to the virtual object moving from the preview area to the construction area of the first construction point includes: In response to the virtual object moving to the boundary of the construction area of the first construction point, performing a collision detection between the collision body of the virtual object and the construction collision body; If a collision occurs between the collision body of the virtual object and the construction collision body, constructing the first virtual building in the virtual environment.

13. A construction device for a virtual building, characterized in that, The device includes: A virtual environment display module for displaying a virtual environment, where the virtual environment includes a plurality of construction points, and each construction point is associated with at least one virtual building; A preview model display module, configured to display a preview model of a first virtual building associated with the first construction point in response to the virtual object moving into the preview area of the first construction point among the multiple construction points, where the preview area refers to an area for triggering the display of the preview model of the virtual building associated with the construction point; A virtual building construction module, configured to construct the first virtual building in the virtual environment in response to the virtual object moving from the preview area to the construction area of the first construction point, where the construction area refers to an area for triggering the construction of the virtual building associated with the construction point.

14. A terminal device, characterized in that, The terminal device includes a processor and a memory, and a computer program is stored in the memory. The computer program is loaded and executed by the processor to implement the method for constructing a virtual building according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium. The computer program is loaded and executed by a processor to implement the method for constructing a virtual building according to any one of claims 1 to 12.

16. 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 method for constructing a virtual building according to any one of claims 1 to 12.