Building material determination method, device and electronic equipment in a game
Patent Information
- Application Number
- CN202310127714.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-01
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-02-01
AI Technical Summary
[0003]相关技术中,为了使玩家能够在建造玩法提供的大量建材中快速找到自己想要的目标建材,可针对建造玩法中提供的大量建材进行分类,将具有相同属性的建材划分到同一类别中,从而玩家可在相应类别中寻找目标建材,但是由于建材数量较多,即使对所有建材进行了分类,但玩家仍然难以快速寻找到目标建材
[0010]本发明提供的一种游戏中的建材确定方法、装置和电子设备,首先响应针对类别选择窗口所包含的多个类别控件中目标类别控件的触发操作,在图形用户界面中显示目标类别控件对应的目标基本建材和变换控件;该变换控件用于变换目标基本建材的属性参数,该属性参数包括下述中的至少一种:尺寸、厚度和旋转角度;不同的类别控件控制显示的基本建材的类别不同;然后响应针对变换控件的触发操作,变换目标基本建材的属性参数,得到变换后的目标基本建材,并将变换后的目标基本建材显示在图形用户界面中。该方式将建材划分为多个类别,每个类别对应一个基本建材且由相应的类别控件控制显示,从而减少了界面中可选择的建材,有助于提高玩家快速确定出想要的建材;玩家触类别控件,可显示该类别控件对应的基本建材,再通过变换控件变换基本建材的属性参数,可调整得到玩家想要的建材,从而使得该方式在保证建造自由度的同时,玩家可快速切换到想要的建材。
Smart Images

Figure CN116236766B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game interaction design technology, and in particular to a method, apparatus and electronic device for determining building materials in a game. Background Technology
[0002] In the game's building mechanics, building materials are generally used as basic units, and various different buildings are constructed by combining these materials. The building gameplay can be understood as stacking blocks, with building materials corresponding to blocks of different shapes. To enhance gameplay freedom and support players in constructing a wide variety of buildings, the building mechanics require a variety of building materials of different shapes.
[0003] In related technologies, in order to enable players to quickly find the target building material they want from the large number of building materials provided in the building gameplay, the large number of building materials provided in the building gameplay can be classified, and building materials with the same attributes can be grouped into the same category. Thus, players can find the target building material in the corresponding category. However, due to the large number of building materials, even if all building materials are classified, it is still difficult for players to find the target building material quickly. Summary of the Invention
[0004] The purpose of this invention is to provide a method, device, and electronic device for determining building materials in games, which ensures that players can quickly find the target building materials they want while maintaining the freedom of building gameplay.
[0005] In a first aspect, the present invention provides a method for determining building materials in a game, which provides a graphical user interface (GUI) through a terminal device. The GUI displays a category selection window, which includes multiple category controls. The category controls are used to control the display of basic building materials of corresponding categories, and different category controls control the display of different categories of basic building materials. The method includes: responding to a first trigger operation on a target category control in the category selection window, displaying a target basic building material corresponding to the target category control and a transformation control corresponding to the target basic building material in the GUI; the transformation control is used to transform the attribute parameters of the target basic building material, which include at least one of the following: size, thickness, and rotation angle; responding to a second trigger operation on the transformation control, transforming the attribute parameters of the target basic building material to obtain the transformed target basic building material, and displaying the transformed target basic building material in the GUI.
[0006] Secondly, the present invention provides a building material determination device in a game, which provides a graphical user interface through a terminal device. The graphical user interface displays a category selection window, which includes multiple category controls. The category controls are used to control the display of basic building materials of the corresponding category, and different category controls control the display of different categories of basic building materials. The device includes: a building material selection module, which is used to respond to a first trigger operation on a target category control in the category selection window, and display the target basic building material corresponding to the target category control and a transformation control corresponding to the target basic building material in the graphical user interface; the transformation control is used to transform the attribute parameters of the target basic building material, and the attribute parameters include at least one of the following: size, thickness, and rotation angle; and a building material transformation module, which is used to respond to a second trigger operation on the transformation control, transform the attribute parameters of the target basic building material to obtain the transformed target basic building material, and display the transformed target basic building material in the graphical user interface.
[0007] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the building material determination method in the above-mentioned game.
[0008] Fourthly, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the building material determination method in the aforementioned game.
[0009] The embodiments of the present invention bring the following beneficial effects:
[0010] This invention provides a method, apparatus, and electronic device for determining building materials in a game. First, in response to a trigger operation on a target category control among multiple category controls contained in a category selection window, the method displays the target basic building material and a transformation control corresponding to the target category control in a graphical user interface. The transformation control is used to change the attribute parameters of the target basic building material, including at least one of the following: size, thickness, and rotation angle. Different category controls control the displayed basic building material category. Then, in response to a trigger operation on the transformation control, the method changes the attribute parameters of the target basic building material to obtain the transformed target basic building material, which is then displayed in the graphical user interface. This method divides building materials into multiple categories, each corresponding to a basic building material and controlled by a corresponding category control, thereby reducing the number of selectable building materials on the interface and helping players quickly determine the desired building material. Players can touch a category control to display the basic building material corresponding to that category control, and then adjust the attribute parameters of the basic building material using the transformation control to obtain the desired building material. This method ensures building freedom while allowing players to quickly switch to the desired building material.
[0011] Other features and advantages of the invention will be set forth in the following description, or some features and advantages may be inferred from the description or determined without doubt, or may be learned by practicing the techniques described above.
[0012] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0013] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0014] Figure 1 A flowchart illustrating a method for determining building materials in a game, provided as an embodiment of the present invention;
[0015] Figure 2 This is a schematic diagram of building material classification provided in an embodiment of the present invention;
[0016] Figure 3 A flowchart of another method for determining building materials in a game provided by an embodiment of the present invention;
[0017] Figure 4 This is a schematic diagram illustrating the basic building material size switching method provided in an embodiment of the present invention;
[0018] Figure 5 A flowchart of another method for determining building materials in a game provided by an embodiment of the present invention;
[0019] Figure 6 A schematic diagram of flat building materials and bulk building materials provided in embodiments of the present invention;
[0020] Figure 7 A flowchart of another method for determining building materials in a game provided by an embodiment of the present invention;
[0021] Figure 8 This is a schematic diagram illustrating the rotational changes of a basic building material according to an embodiment of the present invention.
[0022] Figure 9 A flowchart of another method for determining building materials in a game provided by an embodiment of the present invention;
[0023] Figure 10 A schematic diagram of a graphical user interface for determining building materials provided in an embodiment of the present invention;
[0024] Figure 11 This is a schematic diagram of the structure of a building material determining device in a game, provided by an embodiment of the present invention;
[0025] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0027] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0028] In the game's building mechanics, building materials are generally used as basic units, and various different structures are built by combining these materials. The building gameplay can be understood as stacking blocks, with building materials corresponding to blocks of different shapes. To enhance gameplay freedom and support players in constructing a wide variety of buildings, the building mechanics need to provide a large number of building materials of various shapes. Faced with a vast array of building materials, providing an interactive solution that is easy for players to understand and operate is a problem that needs to be solved.
[0029] The relevant technology provides three solutions for finding desired building materials within the building gameplay:
[0030] Option 1 involves leaving all the building materials provided in the construction gameplay untouched, placing them directly in the construction interface for players to find and use. While this approach ensures freedom in construction, finding materials is difficult and unfriendly to beginners. Furthermore, the large number of materials makes configuration cumbersome, and there are many duplicate materials with the same shape (such as 3x3 floors and 3x3 walls, both of which are 3x3 precast panels, just with different shapes), which can easily lead to player fatigue.
[0031] Option 2 reduces the variety of building materials offered in the building interface, retaining only the most frequently used materials to reduce the difficulty of finding them. While this method offers a better user experience, it sacrifices building freedom and creates obstacles for future new content releases (releasing new materials will worsen the user experience).
[0032] Option 3 involves categorizing the numerous building materials available in the construction gameplay. Building materials with the same attributes are grouped into the same category, allowing players to find their target building materials within the corresponding category. This approach balances player experience and construction freedom. However, due to the large number of building materials, even after categorizing all materials, players still find it difficult to quickly find their target building materials. Furthermore, this approach does not address the issue of duplicate building materials found in Option 1.
[0033] To address the aforementioned issues, this invention provides a method, apparatus, and electronic device for determining building materials in games. This method can be applied to building gameplay in games, especially in scenarios where players select the building materials they want.
[0034] In one embodiment of this disclosure, the method for determining building materials in a game can run on a local terminal device or a server. When the method for determining building materials in a game runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and client devices.
[0035] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separate. The storage and execution of the building material determination method in the game are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally decodes and outputs the game screen through the client device.
[0036] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0037] In one possible implementation, this invention provides a method for determining building materials in a game, providing a graphical user interface (GUI) via a terminal device. The terminal device can be either a local terminal device or a client device in a cloud interaction system. The GUI displays a category selection window, which includes multiple category controls. These category controls are used to control the display of basic building materials of corresponding categories; different category controls control the display of different categories of basic building materials. Figure 1 As shown, the method includes the following specific steps:
[0038] Step S102: In response to the first trigger operation of the target category control in the category selection window, the target basic building material corresponding to the target category control and the transformation control corresponding to the target basic building material are displayed in the graphical user interface; the transformation control is used to transform the attribute parameters of the target basic building material, and the attribute parameters include at least one of the following: size, thickness and rotation angle.
[0039] The category selection window described above is typically displayed in a fixed location within the graphical user interface. This window contains multiple category controls, each controlling the display of a basic building material from a specific category. Different category controls display different categories of basic building materials. In practice, the category of basic building material displayed by each category control is pre-set. Before setting this, all building materials provided by the gameplay need to be categorized according to the player's intuitive understanding and usage habits. Each category has one basic building material that displays the characteristics of its corresponding category. Then, a category control is assigned to each basic building material. This categorization method reduces the number of selectable building materials displayed in the graphical user interface, thus helping players quickly determine the building materials they want.
[0040] In practical applications, building materials provided in the construction gameplay can be categorized according to their shape. For example, building materials can be divided into the following categories: square building materials, U-shaped building materials, O-shaped building materials, frame building materials, triangular building materials, staircase building materials, and roof building materials, etc. Figure 2 The image shown is a schematic diagram of a building materials classification. Figure 2 The building materials are divided into 7 categories. Figure 2 The image shows the basic building materials corresponding to each category. Figure 2 The first basic building material is square building material, the second basic building material is U-shaped building material, the third basic building material is O-shaped building material, the fourth basic building material is frame building material, the fifth basic building material is triangular building material, the sixth basic building material is staircase building material, and the seventh basic building material is roof building material.
[0041] The target category control mentioned above can be any category control in the category selection window. The first trigger operation mentioned above can be a click operation on the target category control, or a long press operation on the target category control, etc., without specific limitations. When the player triggers the target category control, the basic building material corresponding to the target category control will be displayed in the graphical user interface, and a transformation control will be displayed at a specified position of the basic building material. The transformation control is used to change the attribute parameters of the basic building material, and the attribute parameters include at least one of the following: size, thickness, and rotation angle.
[0042] In practice, different styles of building materials can be obtained by changing the property parameters of the basic building materials, thus ensuring the freedom of construction. For example, if the basic building material is a square flat plate, adjusting the thickness of the basic building material can produce a cube or a cuboid, etc.
[0043] Step S104: In response to the second trigger operation for the transformation control, the attribute parameters of the target basic building material are transformed to obtain the transformed target basic building material, and the transformed target basic building material is displayed in the graphical user interface.
[0044] The second triggering operation mentioned above can be a click, long press, or swipe operation on the transformation control, etc., and is not specifically limited here; it can be set according to development needs. When the player triggers the transformation control, the attribute parameters of the target basic building material will change, thereby changing the style of the target basic building material displayed in the graphical user interface. For example, the size, thickness, or rotation posture of the target basic building material can be changed, thus obtaining the building material desired by the player by changing the attribute parameters of the basic building material. Specifically, the transformed target basic building material finally displayed in the graphical user interface is the building material desired by the player.
[0045] This invention provides a method for determining building materials in a game. First, in response to a trigger operation on a target category control among multiple category controls in a category selection window, a target basic building material and a transformation control corresponding to the target category control are displayed in the graphical user interface. The transformation control is used to change the attribute parameters of the target basic building material, including at least one of the following: size, thickness, and rotation angle. Different category controls control the displayed basic building material category. Then, in response to a trigger operation on the transformation control, the attribute parameters of the target basic building material are changed to obtain the transformed target basic building material, which is then displayed in the graphical user interface. This method divides building materials into multiple categories, each corresponding to a basic building material and controlled by a corresponding category control, thereby reducing the number of selectable building materials on the interface and helping players quickly determine the desired building material. Players can touch a category control to display the basic building material corresponding to that category control, and then adjust the attribute parameters of the basic building material using the transformation control to obtain the desired building material. This method ensures building freedom while allowing players to quickly switch to the desired building material.
[0046] This invention also provides another method for determining building materials in a game. This method is implemented based on the above embodiments. The method focuses on describing the specific process of changing the attribute parameters of the target basic building material in response to a second trigger operation on the transformation control when the transformation control includes a size switching control, thereby obtaining the transformed target basic building material (implemented through step S304 below); such as Figure 3 As shown, the method includes the following steps:
[0047] Step S302: In response to the first trigger operation of the target category control in the category selection window, display the target basic building material corresponding to the target category control and the size switching control corresponding to the target basic building material in the graphical user interface.
[0048] The aforementioned size switching control is used to change the size of the target basic building material. The size that the size switching control can switch to can be preset. In specific implementation, the size switching control can switch between different preset sizes, and the preset size that the basic building material is currently switched to is related to the player's trigger operation on the size switching control.
[0049] In practice, the size switching control can be displayed at the same time as the target basic building material is displayed in the graphical user interface, or it can be displayed before the target basic building material is displayed in the graphical user interface. In other words, the size switching control can always be displayed in a fixed position in the graphical user interface.
[0050] Step S304: Respond to the third trigger operation for the size switching control, adjust the size of the target basic building material according to the third trigger operation, and obtain the target basic building material after size transformation.
[0051] The third trigger operation mentioned above can be a click, long press, or swipe operation on the size switching control, etc., and is not specifically limited here. It can be set according to the development needs. Players can adjust the size of the target basic building material by triggering the size switching control, thereby obtaining basic building materials of different sizes.
[0052] In a specific implementation, step S304 above may include: responding to a click operation on the size switching control, determining the target size corresponding to the target basic building material based on the number of clicks, adjusting the size of the target basic building material to the target size, and obtaining the target basic building material after size transformation.
[0053] Specifically, preset sizes can be pre-set for different number of clicks. For example, clicking the size switch control once changes the size of the target basic building material to the first preset size; clicking it twice changes it to the second preset size; clicking it three times changes it to the third preset size, and so on. Multiple preset sizes can also be pre-set, and then, for different number of clicks, the selection from these preset sizes can be cycled through. For example… Figure 4 A diagram illustrating the basic building material size switching is provided. Figure 4It includes four preset sizes: the first graphic represents the initial basic building material, with the size being the first size; the second graphic represents the basic building material at the second size; the third graphic represents the basic building material at the third size; and the fourth graphic represents the basic building material at the fourth size. Clicking the size switch control once changes the basic building material's size to the second size; clicking the first size switch control again changes it to the third size; clicking it a third time changes it to the fourth size; clicking it a fourth time changes it back to the first size, returning it to the initial basic building material; clicking it a fifth time changes it back to the second size, and so on. The final size of the basic building material can be determined based on the number of times the size switch control is clicked.
[0054] Step S306: Display the target basic building material after size transformation in the graphical user interface.
[0055] When a player adjusts the size of the target basic building material, the transformed target basic building material will be displayed in the graphical user interface after each adjustment, so that the player can observe whether the displayed building material is the one they want. After obtaining the desired building material, the player can stop adjusting the target basic building material.
[0056] The method for determining building materials in the aforementioned game divides building materials into multiple categories, each corresponding to a basic building material, and the display is controlled by a corresponding category control. This reduces the number of building materials available on the interface, helping players quickly identify the building materials they want. Players can touch the category control to display the basic building material corresponding to that category, and then change the size of the basic building material by using the size switching control, thereby adjusting to obtain the building material the player wants. This method ensures a high degree of freedom in building while allowing players to quickly switch to the building material they want.
[0057] This invention also provides another method for determining building materials in a game. This method is implemented based on the above embodiments. The method focuses on describing the specific process of changing the attribute parameters of the target basic building material in response to a second trigger operation on the change control when the transformation control includes a thickness switching control, thereby obtaining the transformed target basic building material (implemented through step S504 below); such as Figure 5 As shown, the method includes the following steps:
[0058] Step S502: In response to the first trigger operation of the target category control in the category selection window, the target basic building material corresponding to the target category control and the thickness switching control corresponding to the target basic building material are displayed in the graphical user interface; the thickness switching control is used to change the thickness of the target basic building material.
[0059] The aforementioned thickness switching control is used to change the thickness of the target basic building material. The thickness that the control can switch to can be preset. In practice, the thickness switching control can switch between different preset thicknesses, and the preset thickness that the basic building material is currently switched to depends on the player's triggering action on the thickness switching control.
[0060] In practice, the thickness switching control can be displayed at the same time as the target basic building material is displayed in the graphical user interface, or it can be displayed before the target basic building material is displayed in the graphical user interface. In other words, the thickness switching control can always be displayed in a fixed position in the graphical user interface.
[0061] Step S504: Respond to the fourth trigger operation for the thickness switching control, adjust the thickness of the target basic building material according to the fourth trigger operation, and obtain the target basic building material after thickness switching.
[0062] The fourth trigger operation mentioned above can be a click, long press, or swipe operation on the thickness switching control, etc., and is not specifically limited here. It can be set according to the development needs. Players can adjust the thickness of the target basic building material by triggering the thickness switching control, thereby obtaining basic building materials of different thicknesses.
[0063] In a specific implementation, step S504 above may include: responding to a click operation on the thickness switching control, determining the target thickness corresponding to the target basic building material based on the number of clicks, adjusting the thickness of the target basic building material to the target thickness, and obtaining the target basic building material after thickness switching.
[0064] Specifically, different preset thicknesses corresponding to different number of clicks can be pre-set. For example, clicking the thickness switching control once switches the target basic building material to the first preset thickness; clicking it twice switches it to the second preset thickness; clicking it three times switches it to the third preset thickness, and so on. Multiple preset thicknesses can also be pre-set, and then selected from these preset thicknesses in a loop for different number of clicks. For example, assuming four preset thicknesses are provided, including the first thickness (i.e., the initial thickness of the basic building material), the second thickness, the third thickness, and the fourth thickness; clicking the thickness switching control once switches the basic building material to the second thickness; clicking the first thickness switch again switches it to the third thickness; clicking it a third time switches it to the fourth thickness; clicking it a fourth time switches it back to the first thickness (i.e., returns to the initial basic building material); clicking it a fifth time switches it back to the second thickness, and so on. The final thickness of the basic building material can be determined based on the number of clicks on the thickness switching control.
[0065] In some embodiments, the basic building material is typically a flat material, meaning the flat material has zero thickness. The player clicks the thickness switching control once to switch the flat material to a block material with a preset thickness. Clicking the thickness switching control again switches the block material back to a flat material, thus allowing switching between block and flat materials. Specifically, in building games, block materials are typically used as foundations, which can only be placed on the ground. Flat materials can only be placed on flat surfaces and foundations. Figure 6 The diagram shown is a schematic diagram of flat building materials and block building materials provided in an embodiment of the present invention. Figure 6 The first graphic in the image represents flat building materials. Figure 6 The second graphic in the diagram represents the building material in bulk.
[0066] Step S506: Display the target basic building material after thickness switching in the graphical user interface.
[0067] When players adjust the thickness of the target basic building material, the transformed target basic building material obtained from each size adjustment will be displayed in the graphical user interface so that players can observe whether the displayed building material is the building material they want. After obtaining the building material they want, they can stop adjusting the target basic building material.
[0068] The method for determining building materials in the aforementioned game divides building materials into multiple categories, each corresponding to a basic building material, and the display is controlled by a corresponding category control. This reduces the number of building materials available on the interface, helping players quickly identify the desired materials. Players can touch the category control to display the basic building material corresponding to that category, and then use the thickness switching control to change the thickness of the basic building material, thereby adjusting it to obtain the desired building material. This method ensures building freedom while allowing players to quickly switch to the desired building material.
[0069] This invention also provides another method for determining building materials in a game. This method is implemented based on the above embodiments. The method focuses on describing the specific process of displaying the target basic building material corresponding to the target category control and the transformation control corresponding to the target basic building material in the graphical user interface in response to a first trigger operation on the target category control in the category selection window (implemented through step S702 below), and the specific process of changing the attribute parameters of the target basic building material to obtain the transformed target basic building material in response to a second trigger operation on the transformation control (implemented through step S704 below). Figure 7 As shown, the method includes the following steps:
[0070] Step S702: In response to the first trigger operation of the target category control in the category selection window, the target basic building material corresponding to the target category control in the preset coordinate system is displayed in the graphical user interface, and the rotation direction and rotation control are displayed at the specified position of each coordinate axis corresponding to the preset coordinate system.
[0071] The aforementioned preset coordinate system can be the world coordinate system or a coordinate system centered on the target basic building material displayed in the graphical user interface (referred to as the model coordinate system). In specific implementation, when the player triggers the target category control, not only is the target basic building material displayed in the graphical user interface, but the preset coordinate system is also displayed on the target basic building material, along with the rotation direction and rotation control corresponding to each coordinate axis under the preset coordinate system. Typically, the rotation direction and rotation control will display a specified position for each coordinate axis. This specified position can be set according to development needs; for example, the specified position can be above, to the left, or to the right of the coordinate axis.
[0072] The aforementioned rotation control is used to control the rotation angle of the target basic building material along the corresponding coordinate axis; the aforementioned rotation direction is indicated by the user to indicate the direction of rotation of the target basic building material along the corresponding coordinate axis.
[0073] Step S704: Respond to the fifth trigger operation of the rotation control corresponding to the target coordinate axis, determine the target rotation angle of the target basic building material along the target coordinate axis according to the fifth trigger operation, and rotate the target basic building material along the target coordinate axis based on the target rotation angle to obtain the rotated target basic building material.
[0074] The target coordinate axis mentioned above can be any coordinate axis in a preset coordinate system. The fifth trigger operation mentioned above can be a click, long press, or swipe operation on the rotation control corresponding to the target coordinate axis, etc., without specific limitations. Players can adjust the rotation angle of the target basic building material along the target coordinate axis according to the trigger operation on the rotation control, thereby obtaining basic building materials with different postures. For example... Figure 8 The diagram shown is a schematic representation of the rotational changes of basic building materials provided in an embodiment of the present invention. Figure 8 The image above shows a basic building material. This basic building material displays a model coordinate system containing three axes, and the basic building material can rotate freely along these three axes. Based on this, one building material can replace multiple previous building materials, meaning multiple building materials with different postures can be obtained. Figure 8 The image below shows the transformed basic building materials obtained by rotating along a single coordinate axis in the model coordinate system.
[0075] In a specific implementation, step S704 above may include: responding to a click operation on the rotation control corresponding to the target coordinate axis, and determining the target rotation angle of the target basic building material along the target coordinate axis based on the number of clicks; wherein the rotation angle corresponding to a single click is a preset angle.
[0076] Specifically, the basic building material can rotate 90° along each axis. For example, clicking the rotation control rotates the target basic building material 90° on the corresponding coordinate axis. The rotation angle is arbitrary; clicking the rotation control can also rotate it by 1°. In some embodiments, preset rotation angles corresponding to different numbers of clicks can be pre-set. For example, clicking the rotation control once rotates the target basic building material by 30°; clicking it twice rotates it by 60°; clicking it a third time rotates it by 90°; clicking it a fourth time rotates it by 0°; clicking it a fifth time rotates it by 30°, and so on. Based on the number of clicks, the final rotation angle and final orientation of the basic building material can be determined.
[0077] Step S706: Display the rotated target basic building material in the graphical user interface.
[0078] The method for determining building materials in the aforementioned game introduces rotation operations, significantly reducing resource consumption and eliminating duplicate building materials. Assuming that each coordinate axis can be rotated 90°, there are 4 possible configurations for each axis, resulting in 64 possible orientations. Therefore, in extreme cases, one building material in the current house name can replace 64 building materials from other configurations, thus ensuring a high degree of freedom in construction.
[0079] This invention also provides another method for determining building materials in a game. This method is implemented based on the above embodiments. The method focuses on describing the specific process of determining building materials when the transformation controls include size transformation controls, thickness switching controls, and rotation controls corresponding to each coordinate axis in a preset coordinate system. Figure 9 As shown, this method includes the following specific steps:
[0080] Step S902: In response to the first trigger operation of the target category control in the category selection window, the target basic building material corresponding to the target category control in the preset coordinate system is displayed in the graphical user interface, and the size switching control, thickness switching control, rotation direction and rotation control are displayed at the specified position of each coordinate axis corresponding to the preset coordinate system.
[0081] like Figure 10 The diagram shown is a schematic representation of a graphical user interface for determining building materials according to an embodiment of the present invention. Figure 10 The main category selection interface is equivalent to a category selection window. This window contains multiple category controls, which players can scroll through. When a player finds the category control corresponding to their desired category, clicking it will display the corresponding target basic building material in the center of the graphical user interface, with size switching controls (equivalent to...) displayed on the side of the target basic building material. Figure 10 (Shortcut keys for size switching) and thickness switching controls (equivalent to...) Figure 10 (Shortcut key for switching between flat blocks); In addition, to make the selection and transformation more intuitive, a preset coordinate system of the building material will be displayed when previewing the target basic building material (this preset coordinate system will rotate along with the previewed target basic building material), and the rotation direction and rotation control corresponding to each coordinate axis will be displayed next to each coordinate axis (equivalent to... Figure 10 The system provides three rotation directions and shortcut key hints to guide player actions.
[0082] Step S904: Respond to the third trigger operation for the size switching control, adjust the size of the target basic building material according to the third trigger operation, and obtain the target basic building material after size transformation.
[0083] Step S906: Respond to the fourth trigger operation for the thickness switching control, adjust the thickness of the target basic building material according to the fourth trigger operation, and obtain the target basic building material after thickness switching.
[0084] Step S908: Respond to the fifth trigger operation of the rotation control corresponding to the target coordinate axis, determine the target rotation angle of the target basic building material along the target coordinate axis according to the fifth trigger operation, and rotate the target basic building material along the target coordinate axis based on the target rotation angle to obtain the rotated target basic building material.
[0085] The specific implementation of steps S904-S908 can be found in the above method embodiments, and will not be repeated here.
[0086] Step S910: Display the final adjusted target basic building materials in the graphical user interface.
[0087] In specific implementation, the triggering of the switching control in this solution can be controlled by mouse input on the computer, that is, by touch screen finger or stylus, or by joystick in the host to simulate mouse input. No specific limitation is made here. That is, the embodiments of this invention can be applied to computer, mobile phone and host, etc.
[0088] The method for determining building materials in the aforementioned game, through the interactive approach proposed in this invention, allows players to find the desired building materials simply by following the sequence of selecting basic building materials, adjusting their size, adjusting their thickness, and rotating them. This significantly saves time and makes the construction process smoother. Furthermore, from the player's perspective, only the distinction between basic building material categories is needed; size switching, thickness switching, and rotation are all transformations of the selected basic building materials, making it more intuitive, easier to understand, and lowering the learning curve. Simultaneously, for developers, the introduction of rotation significantly reduces resource usage and eliminates the problem of building materials with repetitive shapes, thus reducing the difficulty of configuring building materials.
[0089] Corresponding to the above method embodiments, this invention also provides a building material determination device in a game, which provides a graphical user interface through a terminal device. This graphical user interface displays a category selection window, which includes multiple category controls. These category controls are used to control the display of basic building materials of corresponding categories; different category controls control the display of different categories of basic building materials. Figure 11 As shown, the device includes:
[0090] The building material selection module 110 is used to respond to a first trigger operation on the target category control in the category selection window, and to display the target basic building material corresponding to the target category control and the transformation control corresponding to the target basic building material in the graphical user interface; the transformation control is used to transform the attribute parameters of the target basic building material, and the attribute parameters include at least one of the following: size, thickness and rotation angle.
[0091] The building material transformation module 111 is used to respond to the second trigger operation of the transformation control, transform the attribute parameters of the target basic building material, obtain the transformed target basic building material, and display the transformed target basic building material in the graphical user interface.
[0092] The building material determination device in the aforementioned game first responds to a trigger operation on the target category control among multiple category controls contained in the category selection window, displaying the target basic building material and transformation control corresponding to the target category control in the graphical user interface. The transformation control is used to change the attribute parameters of the target basic building material, which include at least one of the following: size, thickness, and rotation angle; different category controls control the displayed basic building material category. Then, responding to a trigger operation on the transformation control, the attribute parameters of the target basic building material are changed to obtain the transformed target basic building material, which is then displayed in the graphical user interface. This method divides building materials into multiple categories, each corresponding to a basic building material and controlled by a corresponding category control, thereby reducing the number of selectable building materials on the interface and helping players quickly determine the desired building material. Players can touch the category control to display the basic building material corresponding to that category control, and then adjust the attribute parameters of the basic building material using the transformation control to obtain the desired building material. This method ensures building freedom while allowing players to quickly switch to the desired building material.
[0093] Specifically, the aforementioned transformation control includes a size switching control; the size switching control is used to change the size of the target basic building material; the aforementioned building material transformation module 111 is used to: respond to a third trigger operation on the size switching control, adjust the size of the target basic building material according to the third trigger operation, and obtain the target basic building material after size transformation.
[0094] Furthermore, the aforementioned building material transformation module 111 is also used to: respond to a click operation on the size switching control, determine the target size corresponding to the target basic building material based on the number of clicks, adjust the size of the target basic building material to the target size, and obtain the target basic building material after size transformation.
[0095] Specifically, the aforementioned transformation control also includes a thickness switching control; the thickness switching control allows the user to change the thickness of the target basic building material; the aforementioned building material transformation module 111 is used to: respond to a fourth trigger operation for the thickness switching control, adjust the thickness of the target basic building material according to the fourth trigger operation, and obtain the target basic building material after thickness switching.
[0096] Furthermore, the aforementioned building material transformation module 111 is also used to: respond to a click operation on the thickness switching control, determine the target thickness corresponding to the target basic building material based on the number of clicks, adjust the thickness of the target basic building material to the target thickness, and obtain the target basic building material after thickness switching.
[0097] Specifically, the above-mentioned transformation control also includes: a rotation control corresponding to each coordinate axis in the preset coordinate system; the rotation control is used to control the rotation angle of the target basic building material along the corresponding coordinate axis; the above-mentioned building material transformation module 111 is used to: respond to the fifth trigger operation of the rotation control corresponding to the target coordinate axis, determine the target rotation angle of the target basic building material along the target coordinate axis according to the fifth trigger operation, and rotate the target basic building material along the target coordinate axis based on the target rotation angle to obtain the rotated target basic building material.
[0098] Furthermore, the aforementioned building material transformation module 111 is also used to: respond to a click operation on the rotation control corresponding to the target coordinate axis, and determine the target rotation angle of the target basic building material along the target coordinate axis based on the number of clicks; wherein the rotation angle corresponding to a single click is a preset angle.
[0099] In a specific implementation, the building material selection module 110 is used to: respond to the first trigger operation of the target category control in the category selection window, display the target basic building material corresponding to the target category control in the graphical user interface under the preset coordinate system, and display the rotation direction and rotation control at the specified position of each coordinate axis corresponding to the preset coordinate system.
[0100] The building material determination device in the game provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0101] This invention also provides an electronic device, such as... Figure 12 As shown, the electronic device includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, which executes the machine-executable instructions to implement the building material determination method in the above game.
[0102] Specifically, a graphical user interface (GUI) is provided through a terminal device. This GUI displays a category selection window containing multiple category controls. These category controls are used to control the display of basic building materials of corresponding categories, with different category controls controlling the display of different categories of basic building materials. The building material determination method in the game includes: responding to a first trigger operation on a target category control in the category selection window, displaying the target basic building material corresponding to the target category control and a transformation control corresponding to the target basic building material in the GUI; the transformation control is used to transform the attribute parameters of the target basic building material, including at least one of the following: size, thickness, and rotation angle; responding to a second trigger operation on the transformation control, transforming the attribute parameters of the target basic building material to obtain the transformed target basic building material, and displaying the transformed target basic building material in the GUI.
[0103] The method for determining building materials in the aforementioned game divides building materials into multiple categories, with each category corresponding to a basic building material and its display controlled by a corresponding category control. This reduces the number of building materials available on the interface, helping players quickly identify the desired materials. Players can touch the category control to display the basic building material corresponding to that category, and then adjust the attribute parameters of the basic building material by changing the control to obtain the desired building material. This method ensures building freedom while allowing players to quickly switch to the desired building material.
[0104] In an optional embodiment, the above-mentioned transformation control includes a size switching control; the size switching control is used to change the size of the target basic building material; the step of changing the attribute parameters of the target basic building material in response to a second trigger operation of the transformation control to obtain the transformed target basic building material includes: in response to a third trigger operation of the size switching control, adjusting the size of the target basic building material according to the third trigger operation to obtain the target basic building material after size transformation.
[0105] In an optional embodiment, the above-mentioned response to the third trigger operation of the size switching control, and the step of adjusting the size of the target basic building material according to the third trigger operation to obtain the target basic building material after size transformation, includes: responding to the click operation of the size switching control, determining the target size corresponding to the target basic building material according to the number of clicks of the click operation, adjusting the size of the target basic building material to the target size, and obtaining the target basic building material after size transformation.
[0106] In an optional embodiment, the above-mentioned transformation control includes a thickness switching control; the thickness switching control allows the user to change the thickness of the target basic building material; the above-mentioned step of responding to a second trigger operation of the transformation control to change the attribute parameters of the target basic building material and obtain the transformed target basic building material includes: responding to a fourth trigger operation of the thickness switching control, adjusting the thickness of the target basic building material according to the fourth trigger operation, and obtaining the target basic building material after thickness switching.
[0107] In an optional embodiment, the above-mentioned response to the fourth trigger operation of the thickness switching control, and the step of adjusting the thickness of the target basic building material according to the fourth trigger operation to obtain the target basic building material after thickness switching, includes: responding to the click operation of the thickness switching control, determining the target thickness corresponding to the target basic building material according to the number of clicks of the click operation, adjusting the thickness of the target basic building material to the target thickness, and obtaining the target basic building material after thickness switching.
[0108] In an optional embodiment, the transformation control includes: a rotation control corresponding to each coordinate axis in a preset coordinate system; the rotation control is used to control the rotation angle of the target basic building material along the corresponding coordinate axis; the step of responding to the second trigger operation of the transformation control to transform the attribute parameters of the target basic building material and obtain the transformed target basic building material includes: responding to the fifth trigger operation of the rotation control corresponding to the target coordinate axis, determining the target rotation angle of the target basic building material along the target coordinate axis according to the fifth trigger operation, and rotating the target basic building material along the target coordinate axis based on the target rotation angle to obtain the rotated target basic building material.
[0109] In an optional embodiment, the step of responding to the fifth trigger operation of the rotation control corresponding to the target coordinate axis and determining the target rotation angle of the target basic building material along the target coordinate axis based on the fifth trigger operation includes: responding to the click operation of the rotation control corresponding to the target coordinate axis and determining the target rotation angle of the target basic building material along the target coordinate axis based on the number of clicks; wherein, the rotation angle corresponding to a single click is a preset angle.
[0110] In an optional embodiment, the step of responding to the first trigger operation of the target category control in the category selection window and displaying the target basic building material corresponding to the target category control and the transformation control corresponding to the target basic building material in the graphical user interface includes: responding to the first trigger operation of the target category control in the category selection window, displaying the target basic building material corresponding to the target category control in the graphical user interface under a preset coordinate system, and displaying the rotation direction and rotation control at a specified position of each coordinate axis corresponding to the preset coordinate system.
[0111] Furthermore, Figure 12 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 101, the communication interface 103 and the memory 100 connected via the bus 102.
[0112] The memory 100 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 12 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0113] Processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 101 or by instructions in software form. Processor 101 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 100, and processor 101 reads information from memory 100 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0114] This invention also provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are called and executed by a processor, they cause the processor to implement the building material determination method in the above-mentioned game. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0115] Specifically, a graphical user interface (GUI) is provided through a terminal device. This GUI displays a category selection window containing multiple category controls. These category controls are used to control the display of basic building materials of corresponding categories, with different category controls controlling the display of different categories of basic building materials. The building material determination method in the game includes: responding to a first trigger operation on a target category control in the category selection window, displaying the target basic building material corresponding to the target category control and a transformation control corresponding to the target basic building material in the GUI; the transformation control is used to transform the attribute parameters of the target basic building material, including at least one of the following: size, thickness, and rotation angle; responding to a second trigger operation on the transformation control, transforming the attribute parameters of the target basic building material to obtain the transformed target basic building material, and displaying the transformed target basic building material in the GUI.
[0116] The method for determining building materials in the aforementioned game divides building materials into multiple categories, with each category corresponding to a basic building material and its display controlled by a corresponding category control. This reduces the number of building materials available on the interface, helping players quickly identify the desired materials. Players can touch the category control to display the basic building material corresponding to that category, and then adjust the attribute parameters of the basic building material by changing the control to obtain the desired building material. This method ensures building freedom while allowing players to quickly switch to the desired building material.
[0117] In an optional embodiment, the above-mentioned transformation control includes a size switching control; the size switching control is used to change the size of the target basic building material; the step of changing the attribute parameters of the target basic building material in response to a second trigger operation of the transformation control to obtain the transformed target basic building material includes: in response to a third trigger operation of the size switching control, adjusting the size of the target basic building material according to the third trigger operation to obtain the target basic building material after size transformation.
[0118] In an optional embodiment, the above-mentioned response to the third trigger operation of the size switching control, and the step of adjusting the size of the target basic building material according to the third trigger operation to obtain the target basic building material after size transformation, includes: responding to the click operation of the size switching control, determining the target size corresponding to the target basic building material according to the number of clicks of the click operation, adjusting the size of the target basic building material to the target size, and obtaining the target basic building material after size transformation.
[0119] In an optional embodiment, the above-mentioned transformation control includes a thickness switching control; the thickness switching control allows the user to change the thickness of the target basic building material; the above-mentioned step of responding to a second trigger operation of the transformation control to change the attribute parameters of the target basic building material and obtain the transformed target basic building material includes: responding to a fourth trigger operation of the thickness switching control, adjusting the thickness of the target basic building material according to the fourth trigger operation, and obtaining the target basic building material after thickness switching.
[0120] In an optional embodiment, the above-mentioned response to the fourth trigger operation of the thickness switching control, and the step of adjusting the thickness of the target basic building material according to the fourth trigger operation to obtain the target basic building material after thickness switching, includes: responding to the click operation of the thickness switching control, determining the target thickness corresponding to the target basic building material according to the number of clicks of the click operation, adjusting the thickness of the target basic building material to the target thickness, and obtaining the target basic building material after thickness switching.
[0121] In an optional embodiment, the transformation control includes: a rotation control corresponding to each coordinate axis in a preset coordinate system; the rotation control is used to control the rotation angle of the target basic building material along the corresponding coordinate axis; the step of responding to the second trigger operation of the transformation control to transform the attribute parameters of the target basic building material and obtain the transformed target basic building material includes: responding to the fifth trigger operation of the rotation control corresponding to the target coordinate axis, determining the target rotation angle of the target basic building material along the target coordinate axis according to the fifth trigger operation, and rotating the target basic building material along the target coordinate axis based on the target rotation angle to obtain the rotated target basic building material.
[0122] In an optional embodiment, the step of responding to the fifth trigger operation of the rotation control corresponding to the target coordinate axis and determining the target rotation angle of the target basic building material along the target coordinate axis based on the fifth trigger operation includes: responding to the click operation of the rotation control corresponding to the target coordinate axis and determining the target rotation angle of the target basic building material along the target coordinate axis based on the number of clicks; wherein, the rotation angle corresponding to a single click is a preset angle.
[0123] In an optional embodiment, the step of responding to the first trigger operation of the target category control in the category selection window and displaying the target basic building material corresponding to the target category control and the transformation control corresponding to the target basic building material in the graphical user interface includes: responding to the first trigger operation of the target category control in the category selection window, displaying the target basic building material corresponding to the target category control in the graphical user interface under a preset coordinate system, and displaying the rotation direction and rotation control at a specified position of each coordinate axis corresponding to the preset coordinate system.
[0124] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal device, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0125] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0126] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for determining building materials in a game, characterized in that, A graphical user interface (GUI) is provided through a terminal device. The GUI displays a category selection window, which includes multiple category controls. These category controls are used to control the display of basic building materials of corresponding categories. The basic building materials can display the shape characteristics of their respective categories, and different category controls control the display of different categories of basic building materials. The method includes: In response to a first trigger operation on the target category control in the category selection window, the target basic building material corresponding to the target category control and the transformation control corresponding to the target basic building material are displayed in the graphical user interface; the transformation control is used to transform the attribute parameters of the target basic building material, the attribute parameters including: size, thickness and rotation angle; In response to a second trigger operation on the transformation control, the attribute parameters of the target basic building material are transformed to obtain the transformed target basic building material, and the transformed target basic building material is displayed in the graphical user interface.
2. The method according to claim 1, characterized in that, The transformation control includes a size switching control; the size switching control is used to change the size of the target basic building material. The step of responding to the second trigger operation of the transformation control and transforming the attribute parameters of the target basic building material to obtain the transformed target basic building material includes: In response to a third trigger operation on the size switching control, the size of the target basic building material is adjusted according to the third trigger operation to obtain the target basic building material after size transformation.
3. The method according to claim 2, characterized in that, The response to the third trigger operation of the size switching control, and the step of adjusting the size of the target basic building material according to the third trigger operation to obtain the target basic building material after size transformation, includes: In response to a click operation on the size switching control, the target size corresponding to the target basic building material is determined based on the number of clicks, and the size of the target basic building material is adjusted to the target size to obtain the target basic building material after size transformation.
4. The method according to claim 1 or 2, characterized in that, The transformation control includes a thickness switching control; the thickness switching control is used to change the thickness of the target basic building material; The step of responding to the second trigger operation of the transformation control and transforming the attribute parameters of the target basic building material to obtain the transformed target basic building material includes: In response to a fourth trigger operation on the thickness switching control, the thickness of the target basic building material is adjusted according to the fourth trigger operation to obtain the target basic building material after thickness switching.
5. The method according to claim 4, characterized in that, The response to the fourth trigger operation of the thickness switching control, and the step of adjusting the thickness of the target basic building material according to the fourth trigger operation to obtain the target basic building material after thickness switching, includes: In response to a click operation on the thickness switching control, the target thickness corresponding to the target basic building material is determined based on the number of clicks, and the thickness of the target basic building material is adjusted to the target thickness to obtain the target basic building material after the thickness switch.
6. The method according to claim 1, characterized in that, The transformation control includes: a rotation control corresponding to each coordinate axis in a preset three-dimensional coordinate system; the rotation control is used to control the rotation angle of the target basic building material along the corresponding coordinate axis; The step of responding to the second trigger operation of the transformation control and transforming the attribute parameters of the target basic building material to obtain the transformed target basic building material includes: In response to the fifth trigger operation of the rotation control corresponding to the target coordinate axis, the target basic building material is determined along the target coordinate axis according to the fifth trigger operation, and the target basic building material is rotated along the target coordinate axis based on the target rotation angle to obtain the rotated target basic building material.
7. The method according to claim 6, characterized in that, The step of responding to the fifth trigger operation of the rotation control corresponding to the target coordinate axis, and determining the target rotation angle of the target basic building material along the target coordinate axis based on the fifth trigger operation, includes: In response to a click operation on the rotation control corresponding to the target coordinate axis, the target rotation angle of the target basic building material along the target coordinate axis is determined based on the number of clicks; wherein, the rotation angle corresponding to a single click is a preset angle.
8. The method according to claim 6, characterized in that, The steps of responding to a first trigger operation of a target category control in the category selection window, and displaying the target basic building material corresponding to the target category control and the transformation control corresponding to the target basic building material in the graphical user interface, include: In response to a first trigger operation on the target category control in the category selection window, the target basic building material corresponding to the target category control is displayed in the graphical user interface under the preset three-dimensional coordinate system, and the rotation direction and rotation control are displayed at a specified position on each coordinate axis corresponding to the preset three-dimensional coordinate system.
9. A building material determining device in a game, characterized in that, A graphical user interface (GUI) is provided via a terminal device. The GUI displays a category selection window, which includes multiple category controls. These category controls are used to control the display of basic building materials of corresponding categories. The basic building materials can display the shape characteristics of their respective categories, and different category controls control the display of different categories of basic building materials. The device includes: The building material selection module is used to respond to a first trigger operation on the target category control in the category selection window, and to display the target basic building material corresponding to the target category control and the transformation control corresponding to the target basic building material in the graphical user interface; the transformation control is used to transform the attribute parameters of the target basic building material, and the attribute parameters include: size, thickness and rotation angle; The building material transformation module is used to respond to a second trigger operation on the transformation control, transform the attribute parameters of the target basic building material, obtain the transformed target basic building material, and display the transformed target basic building material in the graphical user interface.
10. An electronic device, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the method for determining building materials in a game as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method for determining building materials in a game as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Three-dimensional model establishing method and system
CN111243079A
Game program
JP2016067550A