A game scene construction method and device, storage medium, and computing device
Patent Information
- Application Number
- CN202011483588.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2040-12-16
AI Technical Summary
In the existing game scene construction methods, the placement and shape of the building are limited by the preset content, and players cannot perform personalized construction and large-scale operations, and the operation efficiency is low.
By detecting the construction instructions in the game scene, obtaining the properties of the construction object and the target area, determining whether it matches, and responding to the construction instructions when it matches, rendering and building objects.
It improves the freedom and efficiency of game scene construction, and players can easily build complex scenes, lower the entry threshold for construction gameplay, and supports continuous and large-scale construction operations.
Smart Images

Figure CN112494937B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a method and device for building a game scene, a storage medium, and a computing device. Background Art
[0002] Currently, in game applications, users can customize the game scenes and realize personalized placement of buildings in the game scenes.
[0003] In traditional schemes, Figure 1 As shown, by presetting several different types of building positions in the construction scene, however, due to the size limit of the building position, the corresponding buildings will also be made according to the preset model of the building position. Players can only put buildings into the designated building position, and generally cannot combine them at will. The building appearance also has only preset styles. Due to the heavy reliance on preset content (preset position, preset appearance), the main problem is that the degree of freedom is very low. Buildings can only be placed according to the preset position. Players cannot personalize the building position. The building shape depends on the game preset and cannot be designed by themselves.
[0004] And, if Figure 2 As shown, in a completely 3D free perspective construction centered on the game character, its operation depends on the game character, and the position and direction of the building are all relative directions based on the game character. The position of the building is indirectly adjusted by adjusting the game character. However, it is not friendly to game players. Since the position of the protagonist needs to be constantly adjusted, the speed of operation is limited, and it is difficult to perform large-scale building operations. Summary of the invention
[0005] In view of the above problems, the present invention is proposed to provide a game scene construction method and apparatus, storage medium, and computing device that overcome the above problems or at least partially solve the above problems.
[0006] According to one aspect of the present invention, a game scene construction method is provided, comprising: when a construction instruction is detected in a game scene, obtaining a first construction object and a target construction area corresponding to the construction instruction; respectively obtaining object attributes of the first construction object and area attributes of the target construction area, and determining whether the object attributes of the first construction object match the area attributes of the target construction area; if they match, rendering and displaying the first construction object in the target construction area in response to the construction instruction, so as to build the first construction object in the target construction area.
[0007] Optionally, when a building instruction is detected in the game scene, after obtaining the first building object and the target building area corresponding to the building instruction, it also includes: obtaining the building object held by the game player who triggered the building instruction, and the object attributes of each of the building objects; displaying at least one building object that matches the area attributes of the target building area in the game scene; the building objects include but are not limited to house building objects, decorative objects, and objects with specific shapes.
[0008] Optionally, when a building instruction is detected in the game scene, before obtaining the first building object and the target building area corresponding to the building instruction, it also includes: creating a basic building scene including at least one grid layer in the game scene; each grid layer includes multiple construction grids; obtaining the first building object and the target building area corresponding to the building instruction includes: obtaining the first building object corresponding to the building instruction, and the target grid layer of the first building object in the basic building scene and the target construction grid in the target grid layer.
[0009] Optionally, when a building instruction is detected in the game scene, after obtaining the first building object and the target building area corresponding to the building instruction, it also includes: judging whether the target building grid meets the building conditions of the first building object; wherein, judging whether the target building grid meets the building conditions of the first building object includes: obtaining first attribute data of the target building grid; the first attribute data includes first position information of the target building grid and / or building data of any stored building object; and / or, obtaining second attribute data of at least one adjacent building grid adjacent to the target building grid; the second attribute data includes second position information of the adjacent building grid and / or building data of any stored building object; judging whether the target building grid meets the building conditions of the first building object according to the object attribute of the first building object, the first attribute data and / or the second attribute data.
[0010] Optionally, determining whether the target construction grid meets the construction conditions of the first construction object includes: obtaining an item type of the first construction object and an area attribute of the target construction grid; and determining whether the target construction grid meets the construction conditions of the first construction object based on the area attribute and the item type.
[0011] Optionally, after building the first construction object in the target construction area, the method further includes: when a first area selection operation is detected in the game scene, determining a first construction area corresponding to the first area selection operation; generating a building drawing based on at least one first target construction object item built in the first construction area; storing the building drawing in a first display area in the game scene for storing the building drawings; and / or rendering and displaying each of the first target construction objects in a second display area in the game scene for displaying construction objects.
[0012] Optionally, the method further includes: when a preview operation on any architectural drawing in the first display area is detected, rendering and displaying a preview model of the architectural drawing in the first display area; when a closing operation on the preview model of the architectural drawing is detected, restoring and displaying each architectural drawing in the first display area.
[0013] Optionally, the method also includes: selecting a target building drawing in the first display area, obtaining at least one second target construction object included in the target building drawing; rendering and displaying each second target construction object in the second display area; and automatically building each second target construction object in the game scene according to the target building drawing.
[0014] Optionally, the method further includes: obtaining at least one recommended architectural drawing associated with the game scene, and displaying the drawing in the game scene; wherein, obtaining at least one recommended architectural drawing associated with the target building area includes: obtaining location information of the game player who triggers the building instruction, screening out target game players who are within the same set range as the game player based on the location information, and using the architectural drawings generated by the target game players based on the game scene as recommended drawings; and / or, obtaining a target game player who has a game relationship with the game player, and using the architectural drawings generated by the target game player based on the game scene as recommended drawings.
[0015] Optionally, after building the first building object in the target building area, the method further includes: when a dismantling instruction for a second building object is detected, obtaining building data of the second building object in the game scene; determining whether the building data meets the dismantling conditions of the second building object; if so, dismantling the second building object in response to the dismantling instruction.
[0016] Optionally, when a demolition instruction for a second building object is detected, the building data of the second building object in the game scene is obtained, including: when a demolition operation for any second building object is detected in the game scene, the building data of the second building object in the game scene is obtained; or, when a second area selection operation is detected in the game scene, determining the second building area corresponding to the second area selection operation; identifying each building object in the second building area as a second building object; and obtaining the building data of the second building object in the game scene.
[0017] Optionally, before obtaining the construction data of the second construction objects in the game, the method further includes: obtaining the item type and / or the number of construction objects of each second construction object; and rendering and displaying the item type and / or the number of construction objects of each second construction object in the construction object list.
[0018] According to another aspect of the present invention, a game scene construction device is also provided, including: an object acquisition module, adapted to, when a construction instruction is detected in a game scene, acquire a first construction object and a target construction area corresponding to the construction instruction; an attribute acquisition module, adapted to respectively acquire the object attribute of the first construction object and the area attribute of the target construction area; a judgment module, adapted to judge whether the object attribute of the first construction object matches the area attribute of the target construction area; and a construction module, adapted to, when it is judged that the object attribute of the first construction object matches the area attribute of the target construction area, render and display the first construction object in the target construction area in response to the construction instruction, so as to build the first construction object in the target construction area.
[0019] Optionally, the device also includes: a building object recommendation module, adapted to obtain the building objects held by the game player who triggers the building instruction, and the object attributes of each of the building objects; display at least one building object matching the area attributes of the target building area in the game scene; the building objects include but are not limited to house building objects, decorative objects, and objects with specific shapes.
[0020] Optionally, the device also includes: a basic scene creation module, suitable for creating a basic building scene including at least one grid layer in the game scene; each grid layer includes multiple construction grids; the object acquisition module is also suitable for acquiring the first building object corresponding to the building instruction, as well as the target grid layer of the first building object in the basic building scene and the target construction grid in the target grid layer.
[0021] Optionally, the judgment module is also suitable for: judging whether the target construction grid meets the construction conditions of the first construction object; wherein, judging whether the target construction grid meets the construction conditions of the first construction object includes: obtaining first attribute data of the target construction grid; the first attribute data includes first position information of the target construction grid and / or construction data of any stored construction object; and / or, obtaining second attribute data of at least one adjacent construction grid adjacent to the target construction grid; the second attribute data includes second position information of the adjacent construction grid and / or construction data of any stored construction object; judging whether the target construction grid meets the construction conditions of the first construction object according to the object attributes of the first construction object, the first attribute data and / or the second attribute data.
[0022] Optionally, the judgment module is further adapted to: obtain an item type of the first construction object and an area attribute of the target construction grid; and judge whether the target construction grid meets the construction conditions of the first construction object according to the area attribute and the item type.
[0023] Optionally, the device also includes: a drawing generation module, adapted to determine a first building area corresponding to a first area selection operation when a first area selection operation is detected in the game scene; generate an architectural drawing based on at least one first target building object item built in the first building area; store the architectural drawing in a first display area in the game scene for storing architectural drawings; and / or render and display each of the first target building objects in a second display area in the game scene for displaying building objects.
[0024] Optionally, the device further includes: a preview module, adapted to, upon detecting a preview operation on any architectural drawing in the first display area, render and display a preview model of the architectural drawing in the first display area; and upon detecting a closing operation on the preview model of the architectural drawing, restore and display each architectural drawing in the first display area.
[0025] Optionally, the construction module is further adapted to: select a target building drawing in the first display area, obtain at least one second target construction object included in the target building drawing; render and display each second target construction object in the second display area; and automatically build each second target construction object in the game scene according to the target building drawing.
[0026] Optionally, the device also includes: a drawing recommendation module, suitable for obtaining at least one recommended architectural drawing associated with the game scene and displaying it in the game scene; wherein, obtaining at least one recommended architectural drawing associated with the target building area includes: obtaining location information of the game player who triggers the building instruction, screening out target game players who are in the same set range as the game player based on the location information, and using the architectural drawings generated by the target game player based on the game scene as recommended drawings; and / or, obtaining a target game player who has a game relationship with the game player, and using the architectural drawings generated by the target game player based on the game scene as recommended drawings.
[0027] Optionally, the device also includes: a dismantling module, which is suitable for obtaining the construction data of the second construction object in the game scene when a dismantling instruction for the second construction object is detected; judging whether the construction data meets the dismantling conditions of the second construction object; if so, dismantling the second construction object in response to the dismantling instruction.
[0028] Optionally, the dismantling module is further adapted to: when a dismantling operation on any second building object is detected in the game scene, obtaining the building data of the second building object in the game scene; or, when a second area selection operation is detected in the game scene, determining the second building area corresponding to the second area selection operation; identifying each building object in the second building area as a second building object; and obtaining the building data of the second building object in the game scene.
[0029] Optionally, the dismantling module is further adapted to: obtain the item type and / or the number of construction objects of each second construction object; and render and display the item type and / or the number of construction objects of each second construction object in the construction object list.
[0030] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute any of the above-mentioned game scene building methods.
[0031] According to another aspect of the present invention, a computing device is also provided, which includes a processor and a memory: the memory is used to store program code and transmit the program code to the processor; the processor is used to execute any of the above-mentioned game scene building methods according to the instructions in the program code.
[0032] The present invention provides a game scene construction method and device, storage medium, and computing equipment. In the method provided by the present invention, a basic construction scene including at least one grid layer is constructed in the game scene, and construction objects that meet the construction conditions are constructed according to construction instructions in the construction scene. Based on the method provided by the present invention, players can see the overall situation more easily, lower the entry threshold of the construction gameplay, and can independently constitute a module of the gameplay, which is comprehensive in function and has good adaptability. In addition, the solution provided by the present invention supports continuous large-scale construction operations, especially convenient operation on mobile devices.
[0033] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below.
[0034] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0036] Figure 1 A schematic diagram of a game construction scene in a traditional solution is shown;
[0037] Figure 2 A schematic diagram of a game construction scene in a traditional solution is shown;
[0038] Figure 3 A schematic diagram of the process of building a game scene according to an embodiment of the present invention is shown;
[0039] Figure 4 A schematic diagram of a basic construction scene provided according to an embodiment of the present invention is shown;
[0040] Figure 5 A schematic diagram of a basic construction scene provided according to another embodiment of the present invention is shown;
[0041] Figure 6 A schematic diagram of a game construction scene provided according to an embodiment of the present invention is shown;
[0042] Figure 7 A schematic diagram of a construction judgment process provided according to an embodiment of the present invention is shown;
[0043] Figure 8 A schematic diagram of a construction judgment process provided in another embodiment of the present invention is shown;
[0044] Fig. 9 A schematic diagram of a construction judgment process provided in another embodiment of the present invention is shown;
[0045] Fig.10 A schematic diagram of a game construction scene according to another embodiment of the present invention is shown;
[0046] Fig.11 A schematic diagram of a game construction scene according to another embodiment of the present invention is shown;
[0047] Fig.12 A schematic diagram of a process of dismantling a construction object according to an embodiment of the present invention is shown;
[0048] Fig.13 A schematic diagram of the structure of a game scene building device according to an embodiment of the present invention is shown;
[0049] Fig.14 A schematic diagram of the structure of a game scene building device according to another embodiment of the present invention is shown;
[0050] Fig.15 A schematic diagram of the structure of a computing device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0051] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0052] Figure 3 A schematic diagram of a method for building a game scene according to an embodiment of the present invention is shown. Figure 3 It can be seen that the game scene construction method provided by the embodiment of the present invention may at least include the following steps S302~S308.
[0053] Step S302: when a building instruction is detected in the game scene, a first building object and a target building area corresponding to the building instruction are obtained.
[0054] In the embodiment of the present invention, building objects refer to objects that can be placed in the building grid and provide appearance and game functions, which can be divided into the following three types:
[0055] 1. Building objects: Buildings that are displayed in the game scene in a non-NPC form, cannot be interacted with by players, and cannot be attacked. For example, walls, floors, ceilings, roofs, corridors, railings, etc. are classified into this category.
[0056] 2. Decorative objects: Buildings displayed in the scene in the form of NPCs, which can interact with players, have all the functions of NPCs, and can be attacked. For example, storage boxes, workbenches, sofas, beds, lamps, campfires, farmlands, pastures, etc. are generally classified into this category.
[0057] 3. Items with specific forms; for example, followers: functional buildings in human form that can automatically act after being placed and can interact with players to provide functions. For example, butlers, servants, merchants, guards, etc. fall into this category.
[0058] When detecting the building instructions in the game scene, the detection can be performed through specific trigger operations, etc. After the building instructions are detected, the first building object to be built and the target building area corresponding to the first building object can be obtained. The target building area is the placement area corresponding to the first building object in the game scene. In an embodiment of the present invention, before the scene is built, a basic building scene including at least one grid layer can also be created in the game scene; wherein each grid layer includes multiple construction grids. When obtaining the first building object and the target building area corresponding to the building instruction, the first building object corresponding to the building instruction, the target grid layer of the first building object in the basic building scene, and the target construction grid in the target grid layer can be obtained.
[0059] In the embodiment of the present invention, the basic construction scene is a scene composed of at least one grid layer for constructing various construction objects. Figure 4 , Figure 5 The schematic diagrams of the basic construction scenes provided by the embodiments of the present invention are respectively shown, and the Figure 4 , Figure 5 It can be seen that the grid layer in the basic construction scene can be Figure 4 The layer shown can also be Figure 5 Multiple layers shown.
[0060] Optionally, multiple construction grids may be included in each grid layer. The building cell is the basic logical unit for realizing the construction function. Taking NxN (N=2 is initially used) construction grids as units, the game scene is divided into a number of continuous or discontinuous construction grids on the XZ plane (i.e., the horizontal direction) to form a basic construction scene. In addition, according to different needs, M layers can be divided by height in the Y direction (i.e., the vertical direction) of the game scene, and each layer has the same construction grid unit and the same height (wherein the distance between each grid layer can be 4 meters), and the numerical range of M (i.e., the number of grid layers) can be set according to different needs, and the present invention does not limit this.
[0061] In the embodiment of the present invention, each construction grid is a basic unit for storing data related to construction data. Each construction grid can store construction data of different construction objects, including but not limited to floors and their directions, walls in up to 4 directions, contained house decorations and their directions, placed construction objects and their directions, etc.
[0062] In addition, the construction grid can also have regional attributes, which is suitable for different situations where the restricted placement areas of different buildings are different. For example, the game scene can be divided into housing areas, defense areas, fortification areas, etc. For different areas, the corresponding construction grids have different regional attributes, and the construction data of the construction objects stored in them are also different. In addition, the construction grid can be attached to any scene area as a logical attribute, thereby providing a broad "construction" range. For example, allowing players to build bridges in the scene to pass through water bodies, as long as the water body area is attached to the construction grid. Figure 6 A schematic diagram of a game construction scene provided according to an embodiment of the present invention is shown. Figure 6 In the game scene shown, there are 5 grid layers in total. In the embodiment of the present invention, by dividing each grid layer into multiple construction grids, the design space of the player is further increased, and the combination is more free and varied.
[0063] Optionally, when you need to build a game scene, you can enter Figure 6 The game scene building mode shown in Figure 6 It can be seen that the game scene can include:
[0064] 601 Selection cursor: used to select the building object pointed by the cursor when no building object is placed, and used to select the construction grid when placing building objects;
[0065] 602 Operation button: issues operation instructions to the construction object pointed by the cursor, including "rotate", "confirm", "cancel" and "move";
[0066] 603 Construction Object List: A list of all items in the player's backpack that can be constructed, such as buildings, which can be selected for construction;
[0067] 604 Additional function buttons: expand / collapse item list, enter / exit area recycling mode;
[0068] 605 Floor switch button: switch the currently edited floor;
[0069] 606 numerical display area: displays construction costs, prosperity and other numerical values;
[0070] 607 Follower List: Followers already placed in the current environment;
[0071] 608 Construction plan mode switch: enter / exit construction plan operation mode;
[0072] 609 Building Filter List: Filter the building item list by category;
[0073] 610 Left joystick: horizontally move the selection cursor and camera lens;
[0074] 611Right joystick: rotate the camera lens.
[0075] Of course, in addition to the above introduction, other display areas or operation buttons can be set in the game scene as needed, which will not be elaborated here.
[0076] For each building object, the number of grid layers and construction grids it occupies is not limited. It can be a large or medium-sized building object that occupies multiple grids; it also supports irregular building objects such as hollow and discontinuous areas. The building objects provided in this embodiment can support the modification of scene attributes such as scene height, blocking, and through-map, so as to create special buildings such as stairs, doors, windows, and passages that can affect the player's movement range.
[0077] Of course, in addition to the above, terrain objects such as rocks, trees, and water bodies can also be set as building objects, thereby providing users with more building space.
[0078] In the embodiment of the present invention, the building object can have three forms of existence, which can be transformed into each other. In addition, for different game types, the building form can be increased or decreased to meet the needs.
[0079] 1. Building items: There is no appearance display, and they only exist in the player's backpack in the form of item data.
[0080] 2. Building NPC: When functional buildings are placed in the scene, corresponding building NPCs will be generated.
[0081] 3. Scene objects: Houses and buildings are placed in the scene as decorations.
[0082] In the embodiment of the present invention, a list of building objects (i.e. Figure 6 603 area of the game scene shown in the figure), the user can select any building object in the building object list to build. In the embodiment of the present invention, any building object in the building object list can be used as the first building object. In addition to the above, the objects that have been built in the game scene can also be rebuilt, that is, the building objects such as buildings or objects in the game scene that have been built can also be used as the first building object.
[0083] Optionally, as described above, the basic construction scene includes a grid layer, and the network layer includes multiple construction grids. Therefore, when obtaining the target construction area corresponding to the first construction object, the target grid layer of the first construction object in the basic construction scene and the target construction grid in the target grid layer can be obtained according to the construction instruction. Among them, the target construction grid can be one or more, which can be selected according to the size of the construction object and the size of the construction grid.
[0084] Step S304, respectively obtaining the object attributes of the first construction object and the area attributes of the target construction area;
[0085] In the embodiment of the present invention, after determining the first construction object and the target construction area, the object attribute of the first construction object and the area attribute of the target construction area can be obtained respectively, wherein the object attribute of the first construction object can include the category of items to which the first construction object belongs. As for the area attribute of the target construction area, it can include the area attribute and logical attribute of the building grid mentioned in the above embodiment, so the area attribute of the target construction area can also include the category of items to be built, etc.
[0086] Step S306: determine whether the object attribute of the first construction object matches the area attribute of the target construction area.
[0087] After obtaining the object attributes of the first construction object and the regional attributes of the target construction area, it can be determined whether the two match. Optionally, the regional attributes of the target construction area can be the regional attributes corresponding to each selected target construction grid. For example, assuming that the regional attribute of the target construction area can be a river, and the object attribute of the first construction object is a bridge, then it can be considered that the object attribute of the first construction object matches the regional attribute of the target construction area. In other words, assuming that the regional attribute of the target construction area is a river, and the object attribute of the first construction object is a tree, then it can be considered that the object attribute of the first construction object does not match the regional attribute of the target construction area. In actual applications, when judging whether the object attribute of the first construction object matches the regional attribute of the target construction area, different matching conditions can also be preset to make judgments based on the matching conditions, etc., and the present invention is not limited to this.
[0088] Step S308: If the object attribute of the first construction object matches the area attribute of the target construction area, then in response to the construction instruction, the first construction object is rendered and displayed in the target construction area to construct the first construction object in the target construction area.
[0089] After determining that the object attribute of the first construction object matches the area attribute of the target construction area, the first construction object can be constructed in the target construction area in response to the construction instruction. As mentioned above, when constructing an object, it can be constructed based on the basic construction scene. Optionally, the first construction object is rendered and displayed in the target construction grid in the basic scene, and the basic data of the first construction object is stored in the target construction grid, thereby completing the construction of the first object.
[0090] In an optional embodiment of the present invention, after obtaining the first building object and the target building area corresponding to the building instruction, the building object held by the game player who triggered the building instruction and the object attributes of each building object can also be obtained; at least one building object matching the area attributes of the target building area is displayed in the game scene; the building objects include but are not limited to house building objects, decorative objects, objects with specific shapes, and the various objects that can be placed in the game scene mentioned in the above embodiments.
[0091] That is to say, in the embodiment of the present invention, it is also possible to directly select building objects that match the area attributes of the target building area from the item objects held by the user, and the user can directly select objects from them for construction, thereby saving the player's time in selecting items and improving the efficiency of scene construction.
[0092] In an optional embodiment of the present invention, after obtaining the first construction object and the target construction area corresponding to the construction instruction in step S302, it is also possible to determine whether the target construction grid meets the construction conditions of the first construction object. In an optional embodiment of the present invention, this step may include:
[0093] S1-1, obtaining first attribute data of the target construction grid; the first attribute data includes first position information of the target construction grid and / or the construction data of any stored construction object, for example, the coordinate position of the target construction grid in the basic construction scene, whether the floor has been built, whether the wall has been built, etc.
[0094] S1-2, obtaining second attribute data of at least one adjacent construction grid adjacent to the target construction grid; the second attribute data includes second position information of the adjacent construction grid and / or construction data of any stored construction object.
[0095] S1-3, judging whether the target building grid meets the building conditions of the first building object according to the object attribute, the first attribute data and / or the second attribute data of the first building object. After respectively obtaining the first attribute data of the target building grid and the second attribute data of the adjacent building grid, it can be judged whether it meets the building conditions of the first building object. In practical applications, the building conditions are different for different types of building objects. The judgment process of different types of building objects is illustrated below.
[0096] Figure 7 The following is a schematic diagram of a construction judgment process according to an embodiment of the present invention. In this embodiment, the first construction object is a floor in a building as an example, and the judgment process may include:
[0097] S701, determine whether the target building grid is on the first layer; if so, determine that the target building grid meets the construction conditions of the first construction object and can be used to build the first construction object; if not, proceed to step S702;
[0098] S702, determining whether there is a wall in the building grid one level lower than the target building grid or in the adjacent side; if so, determining that the target building grid meets the construction conditions of the first construction object and the first construction object can be constructed; if not, proceeding to step S703;
[0099] S703, determining whether the adjacent construction grid of the target construction grid has a floor; if so, determining that the target construction grid meets the construction conditions of the first construction object, and the first construction object can be built; if not, determining that the target construction grid does not meet the construction conditions of the first construction object, and the first construction object cannot be built.
[0100] Figure 8 A schematic diagram of a construction judgment process according to another embodiment of the present invention is shown. In this embodiment, the first construction object is a wall in a building as an example, and the judgment process may include:
[0101] S801, determine whether the target building grid has a floor; if so, determine that the target building grid meets the building conditions of the first building object and the first building object can be built; if not, continue to determine step S802;
[0102] S802, determine whether the adjacent building grid has a floor; if so, determine that the target building grid meets the building conditions of the first building object and the first building object can be built; if not, proceed to step S803;
[0103] S803, determining whether there is a wall on the corresponding side of the building grid corresponding to the lower layer of the target building grid; if so, determining that the target building grid meets the construction conditions of the first construction object and the first construction object can be constructed; if not, proceeding to step S804;
[0104] S804, determining whether there is a wall adjacent to the building grid corresponding to the lower level of the target building grid; if so, determining that the target building grid meets the building conditions of the first building object, and the first building object can be built; if not, determining that the target building grid does not meet the building conditions of the first building object, and the first building object cannot be built.
[0105] Fig. 9 The figure shows a schematic diagram of a construction judgment process according to another embodiment of the present invention. In this embodiment, the first construction object is a decoration, a functional building, an attendant, etc. in a house or building as an example, and the judgment process may include:
[0106] S901, determine whether the area of the target building grid meets the requirements; if so, execute the determination of step S902; if not, determine that the target building grid does not meet the construction conditions of the first construction object, and the first construction object cannot be constructed;
[0107] S902, determine whether the target building grid is at the same height as the building object; if so, execute the determination in step S903; if not, determine that the target building grid does not meet the building conditions of the first building object, and the first building object cannot be built;
[0108] S903, determine if there is no obstruction inside the target building grid; if so, execute the determination in step S904; if not, determine that the target building grid does not meet the construction conditions of the first construction object, and the first construction object cannot be constructed;
[0109] S904, determine whether the target building grid has a ground or a floor; if so, execute the determination of step S905; if not, determine that the target building grid does not meet the construction conditions of the first construction object, and the first construction object cannot be constructed;
[0110] S905, determine whether the construction cost is reorganized; construction cost reorganization is to determine whether the construction cost generated by building the first construction object in the construction scene is recalculated. If so, execute the judgment of step S906; if not, determine that the target construction grid does not meet the construction conditions of the first construction object, and the first construction object cannot be built;
[0111] S906, determining whether the target construction grid is not occupied; if so, determining that the target construction grid meets the construction conditions of the first construction object, and the first construction object can be built; if not, determining that the target construction grid does not meet the construction conditions of the first construction object, and the first construction object cannot be built.
[0112] In the embodiment of the present invention, after any first construction object is successfully constructed, if it is a construction object that supports continuous placement, the item selection step will be omitted, and the next construction position selection will be automatically entered and the system will automatically predict the initial position. For example, assuming that the first construction object is a floor, after the first floor is successfully constructed, the construction position of the next floor can be automatically determined, thereby simplifying the construction steps.
[0113] In another optional embodiment of the present invention, when determining whether the target building grid meets the construction condition of the first construction object, the following steps may also be included:
[0114] S2-1, obtaining the item type of the first construction object and the area attribute of the target construction grid;
[0115] S2-2, judging whether the target construction grid meets the construction conditions of the first construction object according to the area attributes and the item type.
[0116] As mentioned above, the game scene can be divided into different attribute areas, such as housing area, defense area, and fortification area. Different areas have different types of items that can be built. Therefore, by obtaining the item type of the first building object and matching it with the area attribute of the target building grid, it is possible to quickly determine whether the target building grid meets the building conditions of the first building object. In practical applications, different judgment methods can be selected according to different needs, and the present invention does not limit this.
[0117] Furthermore, if the target construction grid meets the construction conditions of the first construction object, the first construction object can be built in the basic construction scene in response to the construction instruction. Based on the method provided by the embodiment of the present invention, players can easily see the overall situation, lower the entry threshold of the construction gameplay, and can independently constitute a module of the gameplay, which is comprehensive in function and has good adaptability. In addition, the solution provided by the present invention supports continuous large-scale construction operations, especially convenient operation on mobile devices.
[0118] In an optional embodiment of the present invention, after the first building object is built in the target building area, when the first area selection operation is detected in the game scene, the first building area corresponding to the first area selection operation is determined; based on at least one building object item that has been built in the first building area, a building drawing is generated, and the building drawing is stored in a first display area in the game scene for storing the building drawings.
[0119] That is to say, in an embodiment of the present invention, part or all of the completed construction objects in the basic construction scene can be generated into architectural drawings according to the area selection operation. In the architectural drawings, the construction objects included in the corresponding area in the game scene and their layout methods can be recorded. Furthermore, each first target construction object can be rendered and displayed in the second display area used to display the construction objects in the game scene, so that the user can view the various construction objects involved in the architectural drawings in a timely manner. The generated architectural drawings can also be shared with other users for use. Similarly, architectural drawings shared by other users or architectural drawings provided by the system can also be received and stored in the first display area for display.
[0120] For each architectural drawing in the first display area, when a preview operation on any architectural drawing in the first display area is detected, a preview model of the architectural drawing is rendered and displayed in the first display area; when a closing operation on the preview model of the architectural drawing is detected, each architectural drawing is restored and displayed in the first display area.
[0121] In an optional embodiment of the present invention, at least one recommended architectural drawing associated with the game scene may be obtained and displayed in the game scene. The recommended architectural drawings in the embodiment of the present invention may be drawings created by other players when playing the game. Optionally, when obtaining at least one recommended architectural drawing associated with the target building area, the location information of the game player who triggered the building instruction may be obtained, and the target game player who is in the same set range as the game player may be screened out based on the location information, and the architectural drawings generated by the target game player based on the game scene may be used as recommended drawings. For example, drawings related to the game scene created by other players near the game player, such as players in the same community, may be used as recommended architectural drawings.
[0122] In addition, it is also possible to obtain a target game player who has a game relationship with the game player, and use the architectural drawings generated by the target game player based on the game scene as recommended drawings. For example, architectural drawings created by players who have a friend relationship, a team relationship, or other association relationship with the game player can be obtained as recommended architectural drawings for recommendation to users, thereby enriching the game experience and providing a reference basis for scene building. In actual applications, the number of recommended architectural drawings obtained may be large, and the playback frequency can be determined according to the number of recommended architectural drawings, and each recommended architectural drawing can be displayed in the game scene in a loop playback manner, or displayed in other ways. In addition, when displaying recommended architectural drawings, the number of uses or ratings of each recommended architectural drawing can also be attached for user reference.
[0123] See also Fig.10It can be seen that a first display area 1001 can be set in the game scene, which is used as a drawing selection area when saving architectural drawings; when a preview operation is triggered for any architectural drawing, the corresponding preview model can be rendered and displayed in the first display area, and when the preview model is closed, the original architectural drawing can be restored and displayed in the first display area. Optionally, Fig.10 The game scene shown may also be provided with: 1002, operation buttons: including operation buttons such as "zoom in area", "zoom out area", "confirm restoration", "cancel preview", and "rotate", which are used to perform different operations on the preview model corresponding to the architectural drawing.
[0124] As mentioned above, in addition to the architectural drawings generated by itself, the first display area can also store architectural drawings shared by other users or drawings automatically provided by the system. Optionally, in an optional embodiment of the present invention, a target architectural drawing can be selected in the first display area to obtain at least one second target construction object included in the target architectural drawing; and each second target construction object can be automatically constructed in the game scene according to the target architectural drawing.
[0125] In this embodiment, the building in the target building drawing can be built with one click according to the target building drawing selected in the first display area, reducing the construction operation of the game scene, thereby efficiently improving the game experience. Of course, when building the corresponding game scene with one click according to the target building drawing, it can also be determined whether the second target building objects in the target building drawing are all available. Only when all the second target building objects are available can the game scene be automatically built.
[0126] The above embodiment mentioned that a second display area for displaying construction objects can be set in the game scene. Therefore, after selecting the target building drawing and determining at least one second target construction object included in the target building drawing, each second target construction object can also be rendered and displayed in the second display area, so that the user can timely understand the construction objects required for the target drawing.
[0127] See also Fig.10 It can be seen that the game scene can also include: 1003 drawing item list: when saving a drawing, the item type and quantity of the building object to be saved as a plan are displayed; when viewing and restoring a drawing, the item type and quantity required to build the drawing are displayed. In addition, the game scene can also include: 1004 function buttons: including "share drawing", "preview drawing", "delete drawing", "save drawing"; 1005 left joystick: horizontally move the selection cursor and camera lens; 1006 right joystick: rotate the camera lens, move the drawing area, move the preview model, etc.
[0128] In the embodiment of the present invention, in addition to building objects such as building items in the game scene, the building objects such as building items that have been built in the game scene can also be dismantled. In an optional embodiment of the present invention, the method provided by the embodiment of the present invention may also include:
[0129] S3-1, when a dismantling instruction for a second building object is detected, the building data of the second building object in the game scene is obtained. The second building object may be one or more. When there is one second building object, when a dismantling operation for any second building object is detected in the game scene, the building data of the second building object in the game scene is obtained. When there are multiple second building objects, when a second area selection operation is detected in the game scene, the second building area corresponding to the second area selection operation is determined; each building object in the second building area is identified as the second building object; and the building data of the second building object in the game scene is obtained. In other words, an area can be selected in the game scene as the second building area, and the building objects in the second building area can be selected at one time for dismantling and recycling.
[0130] Furthermore, after selecting the second building objects, each second building object can be rendered and displayed in a designated display area of the game scene (for example, in a building object list, or in an area generated for displaying second building objects), so as to facilitate the user to view the objects that need to be demolished. Specifically, the item type and / or the number of the second building objects can be obtained; and the item type and / or the number of the second building objects can be rendered and displayed in the building object list.
[0131] S3-2, determining whether the construction data meets the dismantling conditions of the second construction object.
[0132] S3-3: If it is determined that the construction data meets the dismantling condition of the second construction object, the second construction object is dismantled in response to the dismantling instruction.
[0133] In the embodiment of the present invention, the constructed objects that have been placed can be dismantled / recycled, which can be initiated by selecting them with a selection cursor and clicking a corresponding operation button. Fig.11 FIG. 4 shows a schematic diagram of a game construction scene according to another embodiment of the present invention. Fig.11 As shown, the game scene may include:
[0134] 1101 Select area: All or part of the built objects in the selected area will be taken as the target for demolition and recycling;
[0135] 1102 operation buttons: including "expand selected area" and "reduce selected area";
[0136] 1103 Recycling Building Preview List: Displays the detailed types and quantities of all buildings in the selected area;
[0137] 1104 Function buttons: including "Confirm recycling" and "Leave area recycling mode";
[0138] 1105 Left joystick: horizontally move the selection cursor and camera lens;
[0139] 1106Right joystick: rotate the camera lens and move the recycling area.
[0140] Taking building objects as an example, when dismantling a building object, you can include Fig.12 The method flow shown:
[0141] S1201, determining whether the second construction object is allowed to be dismantled; if so, continuing to perform the determination in step S1202; if not, determining that the second construction object is not allowed to be dismantled;
[0142] S1202, determining whether the second construction object is dependent; if so, continuing to execute the determination of step S1203; if not, determining that the second construction object cannot be dismantled;
[0143] S1203, determine whether there is a storage space in the recycling area; if yes, remove the second construction object; if no, determine that the second construction object cannot be removed. The recycling area can be understood as an item storage list for storing construction objects, and determining whether there is a storage space therein can be determining whether there is an empty storage space in the item storage list to store the second construction object.
[0144] For different types of construction objects, the corresponding dismantling conditions may also be different. For example, for building objects, the corresponding dismantling conditions may be different, and can be specifically set according to the object types corresponding to different construction objects.
[0145] The embodiment of the present invention provides a method for building a game scene. In the method provided by the present invention, by building a basic building scene including at least one grid layer in the game scene, and dividing multiple building grids in each grid layer, the design space of the player is further increased, and the combination is more free and changeable. After judging that the object attribute of the building object matches the regional attribute of the target building area, the first building object will be built in the target building area, which improves the rationality of the scene construction while ensuring the efficiency of scene construction. In addition, based on the method provided by the present invention, players can easily see the overall situation, reduce part of the 3D space operation to 2D plane operation, reduce the entry threshold of the construction gameplay, and can independently constitute the module of the gameplay, which is comprehensive in function and has good adaptability. In addition, the solution provided by the present invention supports continuous large-scale construction operations, especially convenient operation on mobile devices. The solution provided by the implementation of the present invention is comprehensive in function and has good adaptability. Not only sandbox games can be used, but also MMO (Massive Multiplayer Online), RPG (Role-playing game), ACT (Action Game), leisure and other types of games can be connected and used.
[0146] Based on the same inventive concept, the embodiment of the present invention also provides a game scene construction device, see Fig.13 It can be seen that the game scene building device provided in this embodiment may include:
[0147] The object acquisition module 1310 is adapted to acquire a first construction object and a target construction area corresponding to the construction instruction when a construction instruction is detected in the game scene;
[0148] The attribute acquisition module 1320 is adapted to respectively acquire the object attribute of the first construction object and the area attribute of the target construction area;
[0149] A determination module 1330, adapted to determine whether the object attribute of the first construction object matches the area attribute of the target construction area;
[0150] The construction module 1340 is adapted to render and display the first construction object in the target construction area in response to the construction instruction when it is determined that the object attribute of the first construction object matches the area attribute of the target construction area, so as to construct the first construction object in the target construction area.
[0151] In an optional embodiment of the present invention, Fig.14As shown, the above-mentioned device may also include: a building object recommendation module 1350, which is suitable for obtaining the building objects held by the game player who triggered the building instruction, and the object attributes of each building object; displaying at least one building object that matches the area attributes of the target building area in the game scene; the building objects include but are not limited to house building objects, decorative objects, and objects with specific shapes.
[0152] In an optional embodiment of the present invention, Fig.14 As shown, the above-mentioned device may also include: a basic scene creation module 1360, suitable for creating a basic construction scene including at least one grid layer in the game scene; each grid layer includes multiple construction grids; an object acquisition module 1310, further suitable for acquiring a first construction object corresponding to a construction instruction, as well as a target grid layer of the first construction object in the basic construction scene and a target construction grid in the target grid layer.
[0153] In an optional embodiment of the present invention, the judgment module 1330 is further suitable for: judging whether the target construction grid meets the construction conditions of the first construction object; wherein, judging whether the target construction grid meets the construction conditions of the first construction object includes: obtaining first attribute data of the target construction grid; the first attribute data includes first position information of the target construction grid and / or construction data of any stored construction object; and / or, obtaining second attribute data of at least one adjacent construction grid adjacent to the target construction grid; the second attribute data includes second position information of the adjacent construction grid and / or construction data of any stored construction object; judging whether the target construction grid meets the construction conditions of the first construction object based on the object attributes of the first construction object, the first attribute data and / or the second attribute data.
[0154] In an optional embodiment of the present invention, the judgment module 1330 is further adapted to: obtain the item type of the first construction object and the area attribute of the target construction grid; and judge whether the target construction grid meets the construction conditions of the first construction object according to the area attribute and the item type.
[0155] In an optional embodiment of the present invention, Fig.14 As shown, the device also includes: a drawing generation module 1370, which is suitable for determining a first building area corresponding to the first area selection operation when a first area selection operation is detected in the game scene; generating a building drawing based on at least one first target building object item built in the first building area; storing the building drawing in a first display area in the game scene for storing the building drawing; and / or rendering and displaying each first target building object in a second display area in the game scene for displaying the building object.
[0156] In an optional embodiment of the present invention, Fig.14As shown, the device also includes: a preview module 1380, which is suitable for rendering and displaying a preview model of the architectural drawing in the first display area when a preview operation is detected for any architectural drawing in the first display area; and restoring and displaying each architectural drawing in the first display area when a closing operation for the preview model of the architectural drawing is detected.
[0157] In an optional embodiment of the present invention, the construction module 1340 is also suitable for: selecting a target building drawing in the first display area, obtaining at least one second target construction object included in the target building drawing; rendering and displaying each second target construction object in the second display area; and automatically building each second target construction object in the game scene according to the target building drawing.
[0158] In an optional embodiment of the present invention, Fig.14 As shown, the above-mentioned device may also include: a drawing recommendation module 1390, suitable for obtaining at least one recommended architectural drawing associated with the game scene and displaying it in the game scene; wherein, obtaining at least one recommended architectural drawing associated with the target building area includes: obtaining the location information of the game player who triggers the building instruction, filtering out the target game players who are in the same set range as the game player based on the location information, and using the architectural drawings generated by the target game players based on the game scene as the recommended drawings; and / or, obtaining the target game players who have a game relationship with the game player, and using the architectural drawings generated by the target game players based on the game scene as the recommended drawings.
[0159] In an optional embodiment of the present invention, Fig.14 As shown, the device also includes: a dismantling module 1400, which is suitable for obtaining the construction data of the second construction object in the game scene when a dismantling instruction for the second construction object is detected; judging whether the construction data meets the dismantling conditions of the second construction object; if so, dismantling the second construction object in response to the dismantling instruction.
[0160] In an optional embodiment of the present invention, the dismantling module 1400 is also suitable for: when a dismantling operation on any second building object is detected in the game scene, obtaining the building data of the second building object in the game scene; or, when a second area selection operation is detected in the game scene, determining the second building area corresponding to the second area selection operation; identifying each building object in the second building area as a second building object; and obtaining the building data of the second building object in the game scene.
[0161] In an optional embodiment of the present invention, the dismantling module 1400 is further adapted to: obtain the item type and / or the number of construction objects of each second construction object; and render and display the item type and / or the number of construction objects of each second construction object in the construction object list.
[0162] An embodiment of the present invention further provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the game scene building method of any of the above embodiments.
[0163] An embodiment of the present invention further provides a computing device, which includes a processor and a memory: the memory is used to store program code and transmit the program code to the processor; the processor is used to execute the game scene building method of any of the above embodiments according to the instructions in the program code.
[0164] Fig.15 A schematic diagram showing the structure of a computing device according to an embodiment of the present invention is shown in FIG. Fig.15 It can be seen that the computing device may include a communication bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device, wherein each functional unit may communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the steps of the game scene construction method in the above embodiment.
[0165] Those skilled in the art can clearly understand that the specific working processes of the systems, devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.
[0166] In addition, the functional units in various embodiments of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
[0167] A person skilled in the art can understand that if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, which includes several instructions to enable a computing device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention when running the instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0168] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computing device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method described in the various embodiments of the present invention.
[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate from the protection scope of the present invention.
Claims
1. A method for building a game scene, characterized in that: include: When a building instruction is detected in a game scene, a first building object and a target building area corresponding to the building instruction are obtained, wherein the game scene displays at least one building object held by a game player whose object attributes match the area attributes of the target building area; Respectively acquiring the object attribute of the first construction object and the area attribute of the target construction area; Determining whether the object attribute of the first construction object matches the area attribute of the target construction area; If they match, in response to the building instruction, the first building object is rendered and displayed in the target building area, so as to build the first building object in the target building area.
2. The method according to claim 1, characterized in that When a building instruction is detected in the game scene, after obtaining the first building object and the target building area corresponding to the building instruction, the method further includes: Acquire the building objects held by the game player who triggered the building instruction, and the object attributes of each of the building objects; Displaying at least one construction object matching the area attribute of the target construction area in the game scene; The construction objects include but are not limited to house building objects, decorative objects, and objects with specific shapes.
3. The method according to claim 1, characterized in that When a building instruction is detected in the game scene, before obtaining the first building object and the target building area corresponding to the building instruction, the method further includes: Creating a basic building scene including at least one grid layer in the game scene; each grid layer includes a plurality of building grids; The obtaining of the first construction object and the target construction area corresponding to the construction instruction includes: A first construction object corresponding to the construction instruction, a target grid layer of the first construction object in the basic construction scene, and a target building grid in the target grid layer are obtained.
4. The method according to claim 3, characterized in that When a building instruction is detected in the game scene, after obtaining the first building object and the target building area corresponding to the building instruction, the method further includes: Determining whether the target building grid meets the building conditions of the first building object; The step of determining whether the target building grid meets the construction condition of the first construction object includes: Acquire first attribute data of the target construction grid; the first attribute data includes first position information of the target construction grid and / or construction data of any stored construction object; and / or, Acquire second attribute data of at least one adjacent construction grid adjacent to the target construction grid; the second attribute data includes second position information of the adjacent construction grid and / or construction data of any stored construction object; Whether the target building grid meets the construction condition of the first construction object is determined according to the object attribute of the first construction object, the first attribute data and / or the second attribute data.
5. The method according to claim 3, characterized in that: The determining whether the target building grid meets the building condition of the first building object includes: Obtaining the item type of the first construction object and the area attribute of the target construction grid; It is determined whether the target construction grid meets the construction condition of the first construction object according to the area attribute and the item type.
6. The method according to claim 3, characterized in that After the first construction object is constructed in the target construction area, the method further includes: When a first area selection operation is detected in the game scene, determining a first building area corresponding to the first area selection operation; generating a building drawing based on at least one first target construction object object constructed in the first construction area; The architectural drawings are stored in a first display area in the game scene for storing architectural drawings; and / or, the first target building objects are rendered and displayed in a second display area in the game scene for displaying building objects.
7. The method according to claim 6, characterized in that The method further comprises: When a preview operation on any architectural drawing in the first display area is detected, rendering and displaying a preview model of the architectural drawing in the first display area; When a closing operation of the preview model of the architectural drawing is detected, each architectural drawing is restored and displayed in the first display area.
8. The method according to claim 6, characterized in that The method further comprises: Selecting a target building drawing in the first display area, and acquiring at least one second target construction object included in the target building drawing; Rendering and displaying each of the second target construction objects in the second display area; Each of the second target building objects is automatically built in the game scene according to the target building drawing.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: Acquire at least one recommended architectural drawing associated with the game scene, and display it in the game scene; wherein acquiring at least one recommended architectural drawing associated with the target construction area comprises: Acquire the location information of the game player who triggered the building instruction, filter out the target game player who is in the same set range as the game player based on the location information, and use the building drawing generated by the target game player based on the game scene as the recommended drawing; and / or, A target game player having a game relationship with the game player is obtained, and the architectural drawing generated by the target game player based on the game scene is used as a recommended drawing.
10. The method according to any one of claims 3 to 8, characterized in that: After the first construction object is constructed in the target construction area, the method further includes: When a dismantling instruction for the second building object is detected, obtaining building data of the second building object in the game scene; Determining whether the construction data meets the dismantling conditions of the second construction object; If so, in response to the dismantling instruction, the second construction object is dismantled.
11. The method according to claim 10, characterized in that When the demolition instruction for the second building object is detected, obtaining the building data of the second building object in the game scene includes: When a dismantling operation on any second construction object is detected in the game scene, obtaining construction data of the second construction object in the game scene; or, When a second area selection operation is detected in the game scene, a second building area corresponding to the second area selection operation is determined; each building object in the second building area is identified as a second building object; and building data of the second building object in the game scene is obtained.
12. The method according to claim 11, characterized in that Before obtaining the construction data of the second construction object in the game, the method further includes: Obtaining the item type and / or the number of building objects of each of the second building objects; The item type and / or the number of the second building objects are rendered and displayed in the building object list.
13. A game scene construction device, characterized in that: include: an object acquisition module, adapted to acquire, when a building instruction is detected in a game scene, a first building object and a target building area corresponding to the building instruction, wherein the game scene displays at least one building object whose object attributes match the area attributes of the target building area; an attribute acquisition module, adapted to respectively acquire the object attribute of the first construction object and the area attribute of the target construction area; A judgment module, adapted to judge whether the object attribute of the first construction object matches the area attribute of the target construction area; The construction module is adapted to render and display the first construction object in the target construction area in response to the construction instruction when it is determined that the object attribute of the first construction object matches the area attribute of the target construction area, so as to construct the first construction object in the target construction area.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the game scene building method described in any one of claims 1-12.
15. A computing device, characterized in that: The computing device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the game scene building method described in any one of claims 1-12 according to the instructions in the program code.
Citation Information
Patent Citations
Method and device to generate virtual resources in 3D game scene
CN108211354A