Gravity direction changing method, equipment, medium and product
By obtaining player interaction information in the game and using the rotation device to change the gravity direction of the polyhedral surface, the problem that the game level design does not support the polyhedral surface is solved, and a more three-dimensional and multi-dimensional game space is achieved, which improves the playability and fun of the game. sex.
Patent Information
- Application Number
- CN202411086670.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-12-03
AI Technical Summary
In the prior art, game level design does not support polyhedral-based surfaces, limiting the three-dimensionality and playability of the game space.
By obtaining the interactive information sent by the player character, the rotation device is used to transform the surface of the polyhedral and change the gravity direction of the game world, so that the gravity direction is parallel to the normal direction of the surface where the player character is located, thus supporting a level design based on polyhedral.
Create a more three-dimensional and multi-dimensional game space, improve the playability and fun of the game, and provide rich exploration paths and experiences.
Smart Images

Figure CN119056065A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, medium and product for changing the direction of gravity. Background Art
[0002] Level design directly affects the player's gaming experience and the overall quality of the game, and is a core part of game development. It focuses on creating a physical space for the game for players to explore and interact with. In the process, it is also necessary to consider how to influence the player's feelings and behaviors through the physical space. Level design is often most closely associated with first-person or third-person action games, but its principles and techniques are also applicable to other types of games, such as platform games, strategy games, etc.
[0003] Among them, level design can be divided into two levels: functional level design, which focuses on guiding player behavior and ensuring that players can understand the game goals and how to achieve these goals; and, broad level design including environmental art, which involves all elements in the level, such as vision, sound, interaction, etc. Although functional level design is emphasized in teaching and learning, what players actually experience is broad level design including environmental art. In addition, level design can also be divided into room design and world design. Room design focuses on the layout of a single space, such as rooms, corridors, etc.; while world design focuses on the broader game world, considering the fluidity and navigation of the entire area, ensuring that players can explore freely in the game world. Among them, the sandbox game is a type of game characterized by carefully designed small, enclosed spaces. Its core is to create rich content through careful design and arrangement in a limited space, providing players with a certain degree of freedom and exploration. Sandbox games usually consist of multiple independent "sandboxes". Designers need to create connections and conversions between different sandboxes to provide players with differentiated experiences and highlight the fun of the game. Among them, "box garden" and "room" in the level can be considered the same concept. In level design, "room" does not necessarily refer to a closed space in the real world, but a basic unit that constitutes a complete level. It can be an open area.
[0004] In the related art, the level design of 3D video games requires developers to consider not only the layout and element arrangement on the horizontal plane when creating the game environment, but also to carefully plan the use of vertical space, so as to enhance the three-dimensional sense and exploration value of the game world, increase the depth and complexity of the level, and provide players with richer exploration paths and more diverse game experiences, thereby increasing the fun and replay value of the game. Traditional methods of using vertical space include: designing elements such as stairs, elevators, ramps, and flying platforms in the room (box game), so that players can move freely between different height levels in the room, and on each vertical level, various level elements in the game, such as objects, NPCs, etc., can be arranged.
[0005] The inventors have discovered that there are at least the following technical problems in the related art: in the related art, various basic mechanisms including player character operations, pathfinding grids, objects, and NPCs do not support levels based on polyhedron surfaces, and therefore cannot create a more three-dimensional and multi-dimensional game space, which limits the playability of the game to a certain extent. Summary of the invention
[0006] One purpose of the present application is to provide a method, device, medium and product for changing the direction of gravity, at least to solve the technical problem that some basic mechanisms in the relevant technology do not support levels based on polyhedral surfaces, which limits the playability of the game.
[0007] To achieve the above objectives, some embodiments of the present application provide the following aspects:
[0008] In the first aspect, some embodiments of the present application also provide a method for changing the direction of gravity, the method comprising: obtaining first interaction information sent by a player character; the first interaction information is used to interact with a rotation device, and the rotation device is used to transform the surface of the polyhedron where the player character is currently located; according to the first interaction information and the rotation device, the surface of the polyhedron where the player character is currently located is transformed and the gravity direction of the game world is changed; wherein the gravity direction is parallel to the normal direction of the surface of the polyhedron where the player character is located after the transformation.
[0009] In a second aspect, some embodiments of the present application further provide an electronic device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the steps of the method described above.
[0010] In a third aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.
[0011] In a fourth aspect, some embodiments of the present application further provide a computer program product, comprising a computer program / instruction, which implements the steps of the method described above when executed by a processor.
[0012] Compared with the related art, in the solution provided by the embodiment of the present application, by obtaining the first interactive information sent by the player character, and according to the first interactive information and the rotating device, the surface of the polyhedron where the player character is currently located is transformed and the gravity direction of the game world is changed; wherein, the first interactive information is used to interact with the rotating device, and the rotating device is used to transform the surface of the polyhedron where the player character is currently located; the gravity direction is parallel to the normal direction of the surface of the polyhedron where the player character is located after the transformation. It can be seen that in the embodiment of the present application, another method of using vertical space in the game is provided-a level based on the surface of a polyhedron. In the level based on the surface of a polyhedron provided in the embodiment of the present application, the level in the game or the player characters in the local area thereof are allowed to be distributed on the surfaces of different polyhedrons. Since the gravity direction of each surface is independent of each other, when the surface of the polyhedron where the player character is currently located is transformed according to the first interactive information and the rotating device and the gravity direction of the game world is changed, the gravity direction is parallel to the normal direction of the surface of the polyhedron where the player character is located after the transformation, so that the player character can be affected by the gravity in the corresponding direction, thereby creating a more three-dimensional and multi-dimensional game space. Since various basic mechanisms including player character operations, navigation grids, objects and NPCs can be applied to the method provided in the embodiments of the present application, it supports levels based on polyhedron surfaces, which is conducive to creating a more three-dimensional and multi-dimensional game space, thereby achieving the purpose of improving the playability of the game. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0014] Figure 1 An exemplary flow chart of a method for changing the direction of gravity provided according to some embodiments of the present application;
[0015] Figure 2 and Figure 3 In a method for changing the direction of gravity provided in some embodiments of the present application, two different manifestations of the progressive rotating device;
[0016] Figure 4 and Figure 5This is an exemplary schematic diagram of the rotation process of the progressive rotation device in a method for changing the direction of gravity provided in some embodiments of the present application;
[0017] Figure 6 This is an exemplary schematic diagram of the shape of the surface after rendering in a method for transforming the gravity direction provided in some embodiments of the present application;
[0018] Figure 7 and Figure 8 This is an exemplary schematic diagram of a method for changing the direction of gravity provided in some embodiments of the present application, wherein two different manifestations of the progressive rotating device correspond to different calculation methods of target circle centers O and angle data B;
[0019] Fig. 9 An exemplary flow chart of a player character entering and leaving the progressive rotating device in a method for changing the direction of gravity provided in some embodiments of the present application;
[0020] Fig.10 This is an exemplary schematic diagram of the transmission process of the instantaneous rotating device in a method for changing the direction of gravity provided in some embodiments of the present application;
[0021] Fig.11 This is an exemplary flow chart of step S302 in a method for changing the direction of gravity provided according to some embodiments of the present application;
[0022] Fig.12 An exemplary schematic diagram of dividing a rotatable area into multiple surfaces in a method for changing the direction of gravity provided according to some embodiments of the present application;
[0023] Fig.13 An exemplary schematic diagram of a method for transforming the direction of gravity provided according to some embodiments of the present application, in which each surface corresponds to a specified level entity group and a pathfinding grid;
[0024] Fig.14 An exemplary plan view showing a complete game level divided into a plurality of areas in a method for changing the direction of gravity provided in some embodiments of the present application;
[0025] Fig.15 An exemplary schematic diagram of the contents contained in each area (including a rotatable area and a non-rotatable area) in a game level in a method for changing the direction of gravity provided in some embodiments of the present application;
[0026] Fig.16 This is an exemplary schematic diagram of the progressive switching device in a method for changing the direction of gravity provided in some embodiments of the present application;
[0027] Fig.17 An exemplary flow chart of the gradual switching device switching regions in a method for changing the direction of gravity provided in some embodiments of the present application;
[0028] Fig.18 This is an exemplary schematic diagram of the instantaneous switching device in a method for changing the direction of gravity provided in some embodiments of the present application;
[0029] Fig.19 An exemplary flow chart of the instantaneous switching device switching the area in a method for changing the gravity direction provided in some embodiments of the present application;
[0030] Fig. 20 This is a schematic diagram of an exemplary structure of an electronic device provided according to some embodiments of the present application. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] The following terms are used in this article.
[0033] Game level is a core concept in video games, mainly referring to the levels that players need to pass in the game world. Game levels are usually a collection of areas, challenges or tasks. The main purpose of designing game levels is to enhance the player's gaming experience, including providing challenges, promoting storyline development, encouraging space exploration, and providing opportunities to learn game mechanics.
[0034] Game entities are a broad concept in video games, usually composed of different game elements and components, and refer to all distinguishable elements with independent existence in the game world. These entities can be: game characters controlled by players, such as the protagonist, operable teammates, etc.; non-player characters (NPCs), such as enemies, merchants, quest givers or other auxiliary characters, etc.; items, such as weapons, equipment, consumables, collectibles, etc.; environmental objects, such as trees, rocks, buildings, etc.
[0035] NPC, non-player character, refers to a character in interactive media such as video games and tabletop role-playing games that is controlled by the game's artificial intelligence (AI) rather than the player's direct control. NPCs can play a variety of different roles in the game world, aiming to enhance the game's interactivity, storytelling, and worldview. NPCs can be designed as hostile characters, friendly characters, and can also be used to provide background stories and environmental information.
[0036] Level objects are the basic components of game levels. They define the environment in which players are located and the space that can be explored. Level objects can be static objects or dynamic objects. Static objects refer to objects that remain stationary during the game, such as walls, rocks, trees, etc. They provide structure and boundaries for the game world, and may also serve as obstacles to restrict the movement of players. In contrast to static objects, dynamic objects refer to objects that move or change during the game, such as moving platforms, revolving doors, active enemies, etc. Some level objects can interact with players, such as players can pick up items, trigger mechanisms, etc.; some level objects do not directly participate in the game interaction, but are only used to enhance the atmosphere and depth of the scene, such as mountains in the distance, clouds in the sky, etc.
[0037] A level editor is a software tool whose core function is to allow game designers and developers to place, edit and organize various elements in the game in a visual way, such as terrain, buildings, enemies, props, target points, etc., to design and create game levels, maps or environments.
[0038] Transition performance refers to the technical implementation of a smooth transition from one scene, level or game state to another scene, level or game state in a video game. Transition performance can be a simple screen fade-out (FadeOut) and fade-in (FadeIn), or it can be a complex animation, plot clip or loading screen.
[0039] For ease of understanding, the design of the game levels is explained below:
[0040] In some game development, level designers are responsible for shaping the player's behavior patterns. Their work includes: writing level design documents, drawing preliminary layouts of levels, building basic models of levels, observing and evaluating the effects of level design through player testing, and adjusting the difficulty and events of levels based on test feedback to ensure the balance and playability of the game. At the same time, environmental artists focus more on the visual aspects of the game. Their work includes: designing models of objects and structures in the level, adding textures and details to the models, designing the scenery and decoration of the level, and enhancing the visual effects and atmosphere of the level through lighting to ensure the player's gaming experience.
[0041] Level design is a complex and creative process in game development, which usually includes the following main stages:
[0042] Pre-production: In this phase, the goal is to plan the basic shape and scope of the level. Designers need to determine the theme of the level, clarify the specific goals of the level design, and identify possible constraints. Pre-production is particularly important for team projects because it helps team members understand the direction and goals of the project and ensure unified expectations. At this stage, designers usually create design documents, use Kanban boards and spreadsheets to organize tasks, track progress, and manage resources.
[0043] Combat Design: This is an optional phase. If the game contains combat elements, the designer needs to conceive and plan the combat scenes and combat composition in the game, and consider how players prepare for combat and how to provide a variety of experiences to keep players interested.
[0044] Layout: The layout defines the basic structure of the level, including the outline, boundaries, and main areas of the level. The layout is usually presented in the form of a 2D plan, showing the core areas and elements of the level, such as the player's starting point, goal point, important landmarks, etc. For team projects or large projects, a detailed layout is an important communication tool.
[0045] Prototyping (Blockout): Prototyping creates a preliminary playable version of the level. In this stage, designers use basic 3D shapes such as boxes, cylinders, and planes to represent the structure and environmental elements in the level. The focus of the prototype is on function and layout rather than details. Prototyping in the game engine can help designers determine the spatial scale, complexity, and balance of the level. Prototyping is very important for combat games or games that require changes in player behavior.
[0046] Scripting: Scripting involves integrating the behaviors, events, and game logic of various elements in the game world into the level. Scripting is essential for level activation, providing a richer player experience through dynamic elements and interactions.
[0047] Environment Art: After the basic shape and flow of the level are determined, environment art begins to play a role, adding rich visual details to the level. This stage is usually completed by the level designer and the scene art designer.
[0048] Release phase (Re l ease): After all stages of game development are completed, the release phase begins. Before release, it is necessary to ensure that the game can run smoothly on various target platforms. For commercial game projects, after release, developers need to continue marketing activities, publicize the project through various channels, collect user feedback, and release bug fixes and patches to build post-release updates.
[0049] Level design is a complex, multi-step process that can generally be done in the order described above, but each level is unique and may adjust the order of these steps. Overall, level design is a dynamic process that requires careful planning, creative thinking, and constant testing and feedback.
[0050] In game levels, the world-level-entity architecture model is usually used. For sandbox games, the game world is connected by multiple independent sandboxes, each of which can be an independent level or area. Specifically, each sandbox is usually composed of static scenes, pathfinding grids, and entity groups. Among them, static scenes refer to static assets edited and produced by level art designers, such as buildings, terrain, decorations, etc.; the basic unit of static scenes is scene blocks (B l ock), and each static scene is composed of multiple scene blocks. The pathfinding grid is a grid system composed of polygons, which is used to define the walkable area in the game world and enables NPCs to move in the game world according to the preset path. Entity Group: It consists of multiple entities (Ent i ty) and level scripts. Among them, entities are the smallest units that constitute game levels and are the most basic elements for forming the dynamic experience of the game, mainly including objects and NPCs. Each entity itself has a certain behavioral logic, such as the interactivity of objects and the artificial intelligence behavior of NPCs. Multiple entities in the entity group are interconnected through level scripts to form a coherent level experience.
[0051] First embodiment
[0052] The first embodiment of the present application relates to a method for changing the direction of gravity. Figure 1 As shown, the method may include the following steps:
[0053] Step S101, obtaining first interaction information sent by a player character; the first interaction information is used to interact with a rotating device, and the rotating device is used to transform the surface of the polyhedron where the player character is currently located;
[0054] Step S102, according to the first interaction information and the rotating device, transform the surface of the polyhedron where the player character is currently located and change the gravity direction of the game world; wherein the gravity direction is parallel to the normal direction of the surface of the polyhedron where the player character is located after the transformation.
[0055] The following is a detailed description of each of the above steps.
[0056] Regarding step S101, specifically, in some examples, the level designer can deploy the rotating device in the game through the level editing tool provided in the embodiment of the present application. The rotating device is a special entity in the level, and the entity is used to act as a trigger point in the game, and can sense the interactive behavior of the player character. Specifically, the player can interact with the rotating device by manipulating the player character to send the first interactive information. The entity can be, but is not limited to, an inclined object, a curved object, or a portal, etc., and the embodiment of the present application does not specifically limit this. For example, the entity can be a gravity plate.
[0057] The polyhedron provided in the embodiments of the present application can be not only a "closed" solid surrounded by four or more faces, such as a cube, a cuboid, etc., but also a "non-closed" solid formed by the intersection of two or three faces, such as Figure 2-Figure 5 As shown in the three-dimensional Figure 6 As shown, the face can be rendered into different forms according to actual needs, and the embodiments of the present application do not specifically limit this. Assuming that the polyhedron is specifically a cube, the cube includes six surfaces, the normal direction of each surface is perpendicular to the corresponding surface, and the normal directions (gravity directions) of different surfaces are independent of each other. It should be noted that in the embodiments of the present application, the surface is referred to as a "wall", and "wall" is used to represent the surface for exemplary description in some of the following embodiments.
[0058] Among them, see Figure 6 As shown, the surface of the polyhedron may refer to an inner surface, which is the inner surface of a module of a box garden modeling; of course, at some other angles, the surface may also be an outer surface, and the embodiment of the present application does not specifically limit this.
[0059] Regarding step S102, specifically, in some examples, according to the first interactive information, the rotation device can automatically drive the dynamic rotation of the area where the player character is currently located, thereby changing the surface where the player character is currently located, and correspondingly changing the gravity direction of the game world to achieve the rotation of the level area. For example, the original "up" may become "front" or "left", thereby creating a new way of spatial perception and exploration, allowing the player to experience a game environment with a different gravity direction than before.
[0060] It is worth mentioning that during the dynamic rotation, the player's perspective and control scheme will be adjusted accordingly to adapt to the new gravity direction in order to maintain the consistency and intuitiveness of the player's operation. After the operation of transforming the surface of the polyhedron where the player character is currently located and changing the gravity direction of the game world is completed, such as scene blocks, level entity groups, etc. are ready, and all level mechanisms corresponding to the transformed new surface, including physical interactions, AI behaviors, triggers, etc., can operate normally to maintain the smoothness of the game, allowing players to continue the game experience seamlessly.
[0061] In some examples, through a streaming mechanism, without affecting the player experience, according to the real-time position of the player character, scene blocks, entity groups, and pathfinding meshes that are far away from the player character can be unloaded, thereby reducing performance overhead.
[0062] It can be understood that in the field of game development, level development is the core link in building the player experience. The program mechanism in the level is the cornerstone of the game's ability to provide interactivity, challenge and immersion. They not only establish the basic gameplay of the game, but also affect how the player interacts with the game world and how the game world responds to the player's behavior. Compared with the related art, in the solution provided in the embodiment of the present application, by obtaining the first interaction information sent by the player character, and according to the first interaction information and the rotating device, the surface of the polyhedron where the player character is currently located is transformed and the gravity direction of the game world is changed; wherein, the first interaction information is used to interact with the rotating device, and the rotating device is used to transform the surface of the polyhedron where the player character is currently located; the gravity direction is parallel to the normal direction of the surface of the polyhedron where the player character is located after the transformation. It can be seen that in the embodiment of the present application, another method of utilizing vertical space in the game is provided-a level based on the surface of a polyhedron. In the level based on the surface of a polyhedron provided in the embodiment of the present application, the player characters in the level in the game or in its local area are allowed to be distributed on the surfaces of different polyhedrons. Since the gravity direction of each surface is independent, when the surface of the polyhedron where the player character is currently located is transformed according to the first interactive information and the rotating device and the gravity direction of the game world is changed, the gravity direction is parallel to the normal direction of the surface of the polyhedron where the player character is located after the transformation, so that the player character can be affected by the gravity in the corresponding direction, thereby creating a more three-dimensional and multi-dimensional game space. Since various basic mechanisms including the operation of the player character, the path-finding grid, objects and NPCs can be applied to the method provided in the embodiment of the present application, it supports the level based on the surface of the polyhedron, which is conducive to creating a more three-dimensional and multi-dimensional game space, thereby achieving the purpose of improving the playability of the game.
[0063] It is not difficult to find that the level based on the surface of a polyhedron provided in the embodiment of the present application is different from the idea of the traditional multi-layer level. Although objects can also be arranged on the wall in the traditional multi-layer level, the gravity direction of the player character and the objects is consistent with the whole world; while the level based on the surface of a polyhedron sets the gravity direction independently on each surface, so that each surface can become an independent "ground". In the design of the present application, a rotating device that can pass through different surfaces can be arranged between multiple surfaces. The player can use the rotating device to switch the surface he is on, realize the switching of the gravity direction, and thus experience different gameplay and perspectives on each surface. When the player character is on a certain surface, the direction of the gravity acting on it is parallel to the normal direction of the surface, so that the player character can walk along the surface, just like walking on a normal horizontal plane.
[0064] Optionally, in some embodiments, different surfaces of the polyhedron have different normal directions; the surface of the polyhedron where the player character is located after the transformation may include: the surface of the polyhedron adjacent to the surface of the polyhedron where the player character is currently located, or the surface of the polyhedron not adjacent to the surface of the polyhedron where the player character is currently located.
[0065] Optionally, in some embodiments, the rotation device includes a progressive rotation device and / or an instantaneous rotation device; wherein: the progressive rotation device is used to smoothly transition and change the gravity direction of the game world, so that the surface of the polyhedron where the player character is located after the transformation is the surface of a polyhedron adjacent to the surface of the polyhedron where the player character is currently located; the instantaneous rotation device is used to instantly change the gravity direction of the game world, so that the surface of the polyhedron where the player character is located after the transformation is the surface of a polyhedron adjacent to or not adjacent to the surface of the polyhedron where the player character is currently located. The progressive rotation device is described below through the second embodiment; the instantaneous rotation device is described through the third embodiment.
[0066] Second embodiment
[0067] The second embodiment of the present application relates to a method for changing the direction of gravity. The second embodiment is an improvement on the first embodiment, and the specific improvement is: in the second embodiment of the present application, a processing mechanism is provided when the rotating device is specifically the progressive rotating device.
[0068] Specifically, in some embodiments, the rotating device is specifically the progressive rotating device. The progressive rotating device can gradually change the player's perspective and the direction of the game world through a smooth transition animation.
[0069] Exemplarily, the progressive rotating device may have two different manifestations, such as Figure 2 and Figure 3 The rotating device 1 and the rotating device 2 are shown. In this example, when the player moves the player character by manipulating the player character to make the player character on the progressive rotating device, the progressive rotating device can sense the player character and automatically drive the dynamic rotation of the area where the player character is currently located, so as to transform the surface of the polyhedron where the player character is currently located and change the gravity direction of the game world.
[0070] Correspondingly, transforming the surface of the polyhedron where the player character is currently located and changing the gravity direction of the game world according to the first interaction information and the rotating device may include the following steps:
[0071] Step S201, determining the rotation progress according to the position of the player character based on the progressive rotation device;
[0072] Step S202: according to the rotation progress, transform the surface of the polyhedron where the player character is currently located and change the gravity direction of the game world.
[0073] Specifically, the progressive rotation device can calculate the rotation progress according to the position of the player character on the progressive rotation device, and automatically drive the dynamic rotation of the area where the player character is currently located according to the rotation progress, so as to achieve the transformation of the surface of the polyhedron where the player character is currently located and change the gravity direction of the game world. Figure 4 and Figure 5 As shown in the figure, the blue arrow indicates the direction of gravity on the surface. As the player character walks through the entire progressive rotating device, the rotation process is completed. At this time, the level entity group and pathfinding grid of the original wall 1 are disabled, while the level entity group and pathfinding grid of the new wall 2 are activated, and the player can experience the corresponding game content based on the new wall 2.
[0074] Optionally, in some embodiments, the determining of the rotation progress according to the position of the player character based on the progressive rotating device, that is, step S201, may further include the following steps:
[0075] Step S2011, obtaining an initial rotation angle and a target center point set based on the progressive rotation device;
[0076] Step S2012, determining angle data according to a line connecting the player character and the center of the target circle;
[0077] Step S2013, determining the rotation progress according to the proportional relationship between the angle data and the initial rotation angle.
[0078] Specifically, based on the progressive rotation device, the initial rotation angle A and the target center can be predefined; according to the position of the player character on the progressive rotation device, the line between the player character and the target center O is determined, and then an angle data B can be calculated based on the line, and the current rotation progress can be determined based on the proportional relationship between the angle data B and the initial rotation angle A. The value of the rotation progress is a number in the range of [0,1]. Among them, O means that the rotation has not started yet, and 1 means that the rotation has been completed. It can be understood that the position of the player character on the progressive rotation device will dynamically affect the measurement of the angle data B. As the player character moves on the progressive rotation device, the angle data B will change, so as to achieve the purpose of updating the rotation progress in real time.
[0079] For example, Figure 7 and Figure 8 The following are two different forms of the progressive rotating device. These two forms correspond to different calculation methods of the target circle center O and the angle data B. The level designer can flexibly adjust the form of the progressive rotating device according to the specific layout and design requirements of the level.
[0080] The above embodiment introduces an innovative calculation scheme to determine the rotation progress, and the innovative calculation scheme is applicable to the progressive rotation device. In this way, the rotation progress can be smoothly adjusted according to the actual movement distance and direction of the player character on the progressive rotation device, which is conducive to enhancing the player's sense of control and interactive experience.
[0081] Optionally, in some embodiments, according to the rotation progress, the surface of the polyhedron where the player character is currently located is transformed and the gravity direction of the game world is changed, that is, step S202 may further include the following steps:
[0082] According to the rotation progress, the surface of the polyhedron where the player character is currently located is transformed and the gravity direction of the game world is changed, so that the player character moves from the surface of a first polyhedron to the surface of a second polyhedron; wherein, in the process of the player character moving from the surface of the first polyhedron to the surface of the second polyhedron, the level entity group and the navigation mesh of the surface of the first polyhedron are disabled, and the level entity group and the navigation mesh of the surface of the second polyhedron are activated.
[0083] Specifically, when the progressive rotating device senses that the player character walks onto the progressive rotating device from the surface of the first polyhedron, the entities in the entity group of the surface of the first polyhedron are disabled, and the navigation grid of the surface of the first polyhedron is disabled. At the same time, different disabling operations can be taken for NPCs and objects respectively. For example, when disabling an NPC, the NPC's navigation function and AI function are disabled, the model used to characterize the NPC is hidden, and the position of the NPC is indicated by generating special effects at the position of the NPC; when disabling an object, the interactive function and billboard of the object are disabled. As the player manipulates the player character to move on the progressive rotating device, the disabled NPC and objects will rotate with the scene to maintain visual consistency.
[0084] When the progressive rotating device senses that the player character leaves the progressive rotating device and enters the surface of the second polyhedron, the entities in the entity group of the surface of the second polyhedron are activated, and the navigation grid of the surface of the second polyhedron is activated. At the same time, different activation operations can be taken for NPCs and objects, and the activation operation corresponds to the disabling operation. For example, when activating an NPC, the NPC's navigation function and AI function are activated, the model used to represent the NPC is unhidden, and the special effects originally generated at the position of the NPC are destroyed; when activating an object, the object's interactive function and billboard are activated.
[0085] like Fig. 9 As shown, it clearly shows the transformation of the state of the surface entity group of the first polyhedron and the surface entity group of the second polyhedron when the player character enters and leaves the progressive rotating device, as well as the dynamic change process of the NPC and the object during the rotation process. In this example, the original wall is used to represent the surface of the first polyhedron, and the target wall is used to represent the surface of the second polyhedron.
[0086] For ease of understanding, the NPC is described as follows in the embodiments of the present application:
[0087] NPC-related mechanisms in game levels are an important part of game design, and they add realism and interactivity to the game world. Common NPC-related mechanisms in games include: Quest system: NPCs often act as quest givers, providing players with specific tasks or missions. The tasks may involve fighting, solving puzzles, collecting items, etc.; Dialogue system: NPCs communicate with players through the dialogue system to reveal the story background, provide clues or task instructions through communication; Event triggering: NPCs can act as triggers to trigger specific game events or plots. When players approach or interact with NPCs, plot animations or environmental changes may be activated; Combat mechanism: In combat games, NPCs may be aggressive and players need to fight NPCs. NPCs' combat capabilities, behaviors, and reactions are controlled by AI; Social interaction: The NPCs can establish social relationships with players, which may develop based on the player's choices and behaviors, affecting the progress and ending of the game; Navigation system: NPCs use the navigation system of the game world to move in the level to ensure that they can avoid obstacles and reach their destination; Environmental interaction: NPCs can interact with the game environment and perform actions such as opening doors, activating mechanisms, or interacting with environmental objects. Randomness and Adaptability: NPCs' AI may include randomness and adaptability to make their behavior more realistic and unpredictable, and to adapt to the player's strategy.
[0088] For ease of understanding, the objects in the game level are described as follows in the embodiments of the present application:
[0089] Objects in game levels are key elements in the design of game levels to enhance player interactivity and gaming experience. Common mechanisms related to objects in games include: physical interaction: the objects can interact with players according to the physical rules of the game world, for example, obstacles block the player's path, etc.; state change: the objects can have different states, and the player's behavior can change the state of the object, such as picking up a dropped item; environmental interaction: the objects can interact with the game environment, such as triggering mechanisms, opening paths, or changing the layout of the environment; collection and achievements: the objects can be used as collection elements, and players can unlock achievements or new content, such as new character costumes, by collecting a certain number or specific types of objects; visual and auditory feedback: when players interact with the objects, the objects can provide visual feedback. Sensory and auditory feedback enhances the player's sense of immersion, such as animation effects of explosions or sounds of impact; Puzzle solving: In puzzle games, the objects are often key puzzle elements, and players need to observe, operate or combine these objects to solve puzzles and advance the game; Narrative elements: The objects can be used as narrative tools to tell players stories or provide background information through their uniqueness, such as an ancient artifact may tell the legend of the past; Marking and tracking: The objects can be used as map markers to help players track targets or remember important locations; Emotional connection: Objects that are emotionally connected to characters or stories can stimulate players' emotional responses, increase players' investment in the game world and resonance with the story.
[0090] The above embodiment provides an entity group management method based on the progressive rotation device. By managing the entity group states of the surface of the first polyhedron used to represent the original surface and the surface of the second polyhedron used to represent the target surface of the target polyhedron, it can be ensured that during the process of the progressive rotation device automatically driving the dynamic rotation of the area where the player character is currently located, the game can provide players with a rich and coherent gaming experience while maintaining high logic and interactivity.
[0091] It is not difficult to find that in the embodiment of the present application, the rotation device is specifically the progressive rotation device; the changing of the surface of the polyhedron where the player character is currently located and the changing of the gravity direction of the game world according to the first interaction information and the rotation device includes: determining the rotation progress according to the position of the player character based on the progressive rotation device; according to the rotation progress, changing the surface of the polyhedron where the player character is currently located and changing the gravity direction of the game world, which provides a processing mechanism when the rotation device is specifically the progressive rotation device.
[0092] Third embodiment
[0093] The third embodiment of the present application relates to a method for changing the direction of gravity. The third embodiment is substantially the same as the second embodiment, except that: in the second embodiment of the present application, a processing mechanism is provided when the rotating device is specifically the progressive rotating device; and in the third embodiment of the present application, a processing mechanism is provided when the rotating device is specifically the instantaneous rotating device.
[0094] Specifically, in some embodiments, the rotating device is specifically the instantaneous rotating device. The instantaneous rotating device can make the player feel the change of gravity direction almost immediately.
[0095] It should be noted that, when using the instantaneous rotation device to automatically drive the dynamic rotation of the area where the player character is currently located, so as to transform the surface of the polyhedron where the player character is currently located and change the gravity direction of the game world, the original surface and the target surface of the target polyhedron can be non-adjacent surfaces, and the original surface and the target surface of the target polyhedron can belong to different areas of the level respectively.
[0096] Correspondingly, transforming the surface of the polyhedron where the player character is currently located and changing the gravity direction of the game world according to the first interaction information and the rotating device may include the following steps:
[0097] Step S301, obtaining the destination information of the instantaneous rotating device; the destination information at least includes the target surface of the target polyhedron;
[0098] Step S302: according to the first interaction information and the destination information, the player character is transferred to a preset position, and the target surface of the target polyhedron is rotated and the gravity direction of the game world is changed.
[0099] Exemplarily, a level designer can arrange the instantaneous rotating device through the level editor, and can specify destination information for each instantaneous rotating device, wherein the destination information may include a target area, a target surface of a target polyhedron of the target area, and a target position of the target surface of the target polyhedron. A player can interact with the instantaneous rotating device by manipulating a player character, so that the instantaneous rotating device automatically drives the dynamic rotation of the area where the player character is currently located, and transmits the player character to a preset position of the instantaneous rotating device, so as to transform the surface of the polyhedron where the player character is currently located and change the gravity direction of the game world.
[0100] Exemplarily, the instantaneous rotating device can be implemented by a transmission door or an object having a similar function to the transmission door. Fig.10As shown, during the transmission process, the player character is first located at the transmission gate 1, and after the transmission is triggered, the player character will be immediately transmitted to the preset position of the transmission gate 1, that is, the surface 2. In other words, the instantaneous rotation device allows the player character to instantly move from the original wall surface 1 to the target wall surface 2 of the target polyhedron through the transmission gate 1, even if the original wall surface and the target wall surface of the target polyhedron are originally two non-adjacent walls, and even if the original wall surface and the target wall surface of the target polyhedron can also belong to different areas of the level respectively.
[0101] Optionally, in some embodiments, the player character is transmitted to a preset location according to the first interaction information and the destination information, and is rotated according to the target surface of the target polyhedron and the gravity direction of the game world is changed, that is, step S302 may further include the following steps:
[0102] Step S3021, determining whether to load the scene blocks and level entity groups of the target area according to whether the current area where the player character is located is the same as the target area, and obtaining a determination result;
[0103] Step S3022, according to the determination result, transmitting the player character and the camera to the preset position;
[0104] Step S3023: Rotate the target surface of the target polyhedron and change the gravity direction of the game world.
[0105] Optionally, in some embodiments, in the process of rotating the target surface of the target polyhedron and changing the gravity direction of the game world, the method may further include the following steps: activating the entity group and the navigation grid of the target surface of the target polyhedron; disabling the entity group and the navigation grid of other surfaces except the target surface of the target polyhedron.
[0106] For example, Fig.11As shown, if the current area where the player character is located is different from the target area, the game first loads the target content contained in the target area before transmitting the player character to the preset location according to the first interaction information and the destination information, and the target content includes scene blocks and level entity groups; if the current area where the player character is located is the same as the target area, or after the target area is loaded, the game can play a transition performance, and in the process of playing the transition performance, the player character and the camera are transmitted to the preset position, and the target area is rotated to ensure that the gravity direction of the target surface of the target polyhedron is facing the downward direction of the world coordinate; at the same time, the entity group and the pathfinding grid of the target surface of the target polyhedron can be activated, and the entity group and the pathfinding grid of other surfaces except the target surface of the target polyhedron can be disabled; after the transmission is completed, the transition performance ends, and the content of the area where the player character was originally located is unloaded. It should be pointed out that the above is only an example, and the transition performance is not necessary for the implementation of this solution.
[0107] It is not difficult to find that in the embodiment of the present application, the rotating device is specifically the instantaneous rotating device; the changing the surface of the polyhedron where the player character is currently located and changing the gravity direction of the game world according to the first interactive information and the rotating device includes: obtaining the destination information of the instantaneous rotating device; the destination information at least includes the target surface of the target polyhedron; according to the first interactive information and the destination information, the player character is transmitted to a preset position, and rotated according to the target surface of the target polyhedron and the gravity direction of the game world is changed, providing a processing mechanism when the rotating device is specifically the instantaneous rotating device. By accurately transmitting the player character by quickly and seamlessly switching the area where the player character is located, the game design can be made more flexible, and unexpected game experiences and exploration paths can be created; it can also allow the player character to transcend traditional spatial limitations and experience a richer and more dynamic game world.
[0108] Fourth embodiment
[0109] The fourth embodiment of the present application relates to a method for transforming the direction of gravity. The fourth embodiment is an improvement made on the basis of the first embodiment, and the specific improvement is: in the fourth embodiment of the present application, a surface division mechanism is provided.
[0110] Specifically, in some embodiments, the rotating device is located in a rotatable area; each of the rotatable areas includes a plurality of surfaces; each surface corresponds to a specified level entity group and a navigation grid.
[0111] Specifically, the level designer can use the level editing tool to divide a rotatable area into multiple surfaces, set a unique surface number for each surface, and set the gravity direction of each surface.
[0112] For example, see Fig.12 As shown, the six faces of a cube can be used as six walls, and the gravity direction of each wall can be set. For example, the normal direction of the wall can be defined to be consistent with the gravity direction of the wall. Fig.12 The blue arrows in the figure indicate the direction of gravity on each wall.
[0113] Specifically, see Fig.13 As shown, the level designer can also use the level editing tool to specify a level entity group and a navigation grid for each surface. In this way, each surface can be distinguished from other surfaces visually, and each surface is independent and functional in terms of game logic and interactivity, thereby providing players with a rich and coherent game experience.
[0114] It should be noted that the embodiments of the present application may also be improvements based on the second embodiment and / or the third embodiment.
[0115] It is not difficult to find that in the embodiment of the present application, a surface division mechanism is provided. Specifically, the rotating device is located in the rotatable area; each of the rotatable areas includes multiple surfaces; each surface corresponds to a specified level entity group and a pathfinding grid. This is conducive to providing players with a rich and coherent gaming experience.
[0116] Fifth embodiment
[0117] The fifth embodiment of the present application relates to a method for changing the direction of gravity. The fifth embodiment is an improvement on the fourth embodiment, and the specific improvement is: in the fifth embodiment of the present application, a region division mechanism based on game levels is provided.
[0118] Specifically, in some embodiments, the method may further include:
[0119] According to the game level, a rotatable area and a non-rotatable area are determined; wherein each rotatable area and non-rotatable area corresponds to a specified scene block and a level entity group respectively.
[0120] Exemplarily, a level designer can use the level editing tool to divide a complete game level into several areas, which can be set as non-rotating areas or rotatable areas. In some examples, a unique area number can also be set for each area.
[0121] For example, Fig.14 Shows a top-down view of a complete game level divided into several areas. Fig.14 Contains different types of areas (rotatable areas and non-rotatable areas) and corridors connecting the different types of areas. Among them, area 0 and area 2 are marked as non-rotatable areas, which indicates that the gravity direction of area 0 and area 2 is fixed, and the player character needs to move and interact based on the non-rotatable areas in the traditional up, down, left and right directions. Area 1 and area 3 are marked as rotatable areas, which indicates that the gravity direction of area 1 and area 3 can change, and the player character can interact with the rotating device to achieve the transformation of the surface of the polyhedron where the player character is currently located and change the gravity direction of the game world. Corridor 0-1, corridor 1-2 and corridor 2-3 are used to connect the above-mentioned rotatable area and non-rotatable area, and are transition areas between the non-rotatable area and the rotatable area, so that the player character can move between the non-rotatable area and the rotatable area. Through such a design, the player character can obtain a novel experience of transitioning from a traditional gravity environment to a multi-force environment, and because different types of areas and corridors may contain specific challenges, puzzles or interactive elements, it is conducive to increasing the depth and fun of the game.
[0122] For example, the level designer can also use the level editing tool to specify corresponding scene blocks and level entity groups for each rotatable area and non-rotatable area. Fig.15 A schematic diagram of the contents of each area (including rotatable areas and non-rotatable areas) in a game level is shown. Each area consists of a static scene block set and a level entity group set. The static scene block set is the sum of multiple static scene blocks, and the basic unit of the static scene block is a scene block. The static scene block represents the static part of the scene, and the basic unit of the static scene block is a scene block. Each scene block contains information such as models, lighting, materials, and collision bodies; the level entity group set is the sum of multiple entity groups, and the level entity group refers to a series of level entities, including an entity set composed of NPCs and objects.
[0123] It should be noted that the embodiments of the present application may also be improvements based on any one or more of the second to third embodiments.
[0124] It is not difficult to find that in the embodiment of the present application, the rotatable area and the non-rotatable area are determined according to the game level; wherein each rotatable area and the non-rotatable area respectively corresponds to a specified scene block and a level entity group, thereby providing an area division mechanism based on the game level.
[0125] Sixth embodiment
[0126] The sixth embodiment of the present application relates to a method for changing the direction of gravity. The sixth embodiment is an improvement on the first embodiment, and the specific improvement is: in the sixth embodiment of the present application, a region switching mechanism based on game levels is provided.
[0127] Specifically, in some embodiments, the method may further include the following steps:
[0128] Step S401, obtaining second interaction information sent by a player character; the second interaction information is used to interact with a switching device; the switching device is used for the player character to switch between different areas;
[0129] Step S402: Switch the player character from the first area to the second area according to the second interaction information and the switching device.
[0130] Exemplarily, a level designer can use the level editing tool to deploy the switching device in the game. The switching device is a special level entity or entity group, which is used to act as a trigger point in the game and can sense the interactive behavior of the player character. Specifically, the player can interact with the switching device by manipulating the player character and send the second interactive information. According to the second interactive information, the switching device can automatically drive the area switching of the game level, so that the player character moves from one area to another area, and prepares the display content of another area at the same time.
[0131] It should be noted that the embodiments of the present application may also be improvements based on any one or more of the second to fifth embodiments.
[0132] It is not difficult to find that in the embodiment of the present application, by obtaining the second interaction information sent by the player character, and according to the second interaction information and the switching device, the player character is switched from the first area to the second area; the second interaction information is used to interact with the switching device; the switching device is used for the player character to switch different areas; and a game level-based area switching mechanism is provided.
[0133] Optionally, in some embodiments, the switching device may include a gradual switching device and / or an instantaneous switching device; wherein: the gradual switching device is used to smoothly transition the player character from the first area to the second area; the instantaneous switching device is used to instantly switch the player character from the first area to the second area. The following describes the gradual switching device through the seventh embodiment; and the instantaneous switching device is described through the eighth embodiment.
[0134] Seventh embodiment
[0135] The seventh embodiment of the present application relates to a method for changing the direction of gravity. The seventh embodiment is an improvement based on the sixth embodiment, and the specific improvement is: in the seventh embodiment of the present application, a processing mechanism is provided when the switching device is specifically the progressive switching device.
[0136] Specifically, in some embodiments, the switching device is specifically the progressive switching device; the progressive switching device includes an entrance portion, a corridor area, and an exit portion;
[0137] Switching the player character from the first area to the second area based on the second interaction information and the switching device may include the following steps: based on the second interaction information, allowing the player character to enter the corridor area from the first area through the entrance part of the progressive switching device, and allowing the player character to enter the second area through the exit part.
[0138] For example, see Fig.16 and Fig.17 As shown, the progressive switching device is a special level entity group, and the level entity group can be composed of three objects, including a corridor area, an entrance part-door 1, and an exit part-door 2. The player character can open door 1 by interacting with door 1 in the first area (area 1) currently located, and then the player character enters the corridor area. The corridor area will sense the entry of the player character and start loading the scene blocks and level entity group of the second area (area 2). During the loading process, the player character can move in the corridor area, but cannot open door 2. When the player character is in the corridor area, he can open door 1 by interacting with door 1 and return to the first area (area 1). The corridor area can sense the player character entering the first area (area 1) and cancel the loading process of the second area (area 2). When the second area (area 2) is loaded, the player character can open door 2 by interacting with door 2, and the player character enters the second area (area 2). The corridor area can sense the player character entering the second area (area 2), unload the scene blocks and level entity group of the first area (area 1), and make door 1 enter an unopenable state.
[0139] The shape of the corridor area can be arbitrary, such as trapezoidal, circular, etc., and is not limited to Fig.16 The rectangle in .
[0140] Among them, in the progressive switching device, the corridor area senses that the player character enters the corridor area and senses that the player character enters the first area (area 1) and the second area (area 2), which can be implemented by a trigger mechanism. For example, in the Unity engine, it can be implemented by using a Collider component; in the Unreal Engine engine, it can be implemented by using a mechanism including but not limited to TriggerVolume or similar mechanisms, which is not specifically limited in the embodiments of the present application.
[0141] It should be noted that the embodiments of the present application may also be improvements based on any one or more of the first to fifth embodiments.
[0142] It is not difficult to find that in the embodiment of the present application, a processing mechanism is provided when the switching device is specifically the progressive switching device. Specifically, when the switching device is specifically the progressive switching device; the progressive switching device includes an entrance, a corridor area, and an exit; according to the second interactive information, the player character can enter the corridor area from the first area through the entrance of the progressive switching device, and enter the second area through the exit.
[0143] Eighth embodiment
[0144] The eighth embodiment of the present application relates to a method for changing the direction of gravity. The eighth embodiment is substantially the same as the seventh embodiment, except that: in the seventh embodiment of the present application, a processing mechanism is provided when the switching device is specifically the progressive switching device; and in the eighth embodiment of the present application, a processing mechanism is provided when the switching device is specifically the instantaneous switching device.
[0145] Specifically, in some embodiments, the switching device is specifically the instantaneous switching device; switching the player character from the first area to the second area according to the second interaction information and the switching device may include: directly transferring the player character from the first area to the second area according to the second interaction information and the instantaneous switching device.
[0146] For example, Fig.18 and Fig.19 As shown, the instantaneous switching device can be a portal or any object with similar functions. The level designer can deploy the instantaneous switching device in the game through the level editor and specify the target position of the second area to be transmitted for each instantaneous switching device. The player can control the player character to interact with the instantaneous switching device to transmit the player character to the target position of the second area.
[0147] Exemplarily, at the beginning of the transmission, the instantaneous switching device can first load the content contained in the second area, including scene blocks and level entity groups; after the loading is completed, the game can choose to play the transition performance; during the transition performance, the player character and the camera will be transmitted to the target position of the second area through the instantaneous switching device; after the transmission is completed, the transition performance ends, and the relevant content of the first area where the player character was originally located, including the scene blocks and level entity groups, is unloaded.
[0148] It should be noted that the embodiments of the present application may also be improvements based on any one or more of the first to fifth embodiments.
[0149] It is not difficult to find that in an embodiment of the present application, a processing mechanism is provided when the switching device is specifically the instantaneous switching device, which can directly transfer the player character from the first area to the second area according to the second interaction information and the instantaneous switching device.
[0150] Ninth embodiment
[0151] The ninth embodiment of the present application relates to a method for changing the direction of gravity. The ninth embodiment is an improvement made on the basis of the first embodiment, and the specific improvement is: in the ninth embodiment of the present application, a network archiving mechanism is provided.
[0152] Specifically, in some embodiments, different surfaces correspond to different surface numbers; different regions correspond to different region numbers; the method may further include the following steps:
[0153] Step S501, obtaining the area number of the area where the player character is located, and the surface number of the surface where the player character is located;
[0154] Step S502, sending the area number and the surface number to a remote server for network archiving.
[0155] Specifically, the area number of the area where the player character is located and the surface number of the surface where the player character is located are used to indicate the position of the player character. The area number and the surface number can be sent to the remote server periodically or in real time, which is not specifically limited in the embodiment of the present application.
[0156] Exemplarily, the area number and the surface number may be sent to the remote server periodically at a preset time. The preset time may include: the player character completes area switching; the player character completes surface transformation.
[0157] Exemplarily, during the game, the region number and the surface number are sent to the remote server periodically, for example, every 0.1 seconds. However, in the following states, the region number and the surface number are stopped from being sent to the remote server: the player character is in the region switching process, for example, the player character is in the progressive switching device; the player character is in the surface transformation process, for example, the player character is on the progressive rotating device.
[0158] Exemplarily, when the player character re-enters the game, the area number and surface number of the last uploaded archive can be pulled from the remote server to determine the position of the player character; and based on the above area number, the content of the corresponding area is loaded; based on the above surface number, the area is rotated to transport the player character to the last position of the player character, thereby facilitating providing the player with a seamless gaming experience.
[0159] It should be noted that the embodiments of the present application may also be improvements based on any one or more of the second to eighth embodiments.
[0160] It is not difficult to find that in the embodiment of the present application, by obtaining the area number of the area where the player character is located, and the surface number of the surface where the player character is located, and sending the area number and the surface number to a remote server, a network archiving mechanism is provided, which can ensure that when the player exits the game and re-enters the game for various reasons, the player character can be restored to the position before exiting the game.
[0161] Tenth embodiment
[0162] The tenth embodiment of the present application relates to a method for transforming the direction of gravity. The tenth embodiment is an improvement on the first embodiment, and the specific improvement is: in the tenth embodiment of the present application, a 3D navigation map mechanism is provided.
[0163] Specifically, in some embodiments, the method may further include the following steps:
[0164] A 3D navigation map is provided; the 3D navigation map is used at least for the player to view at least one of the following: the position of the player character, the position of the treasure chest, the position of the puzzle-solving device, and the position of the rotating device.
[0165] For example, players can view the location of their own player characters, the location of treasure chests in an area, the location of puzzle devices in an area, the location of rotating devices in an area, etc. through the 3D navigation map according to actual needs.
[0166] Optionally, in some embodiments, the method for determining the 3D navigation map may include:
[0167] Step S601, determining a plurality of sub-models according to the 3D model of the area used to represent the game level; the number of the sub-models is the same as the number of surfaces of the polyhedron in the area; and each sub-model corresponds to one surface;
[0168] Step S602: determining the 3D navigation map according to the sub-model.
[0169] Exemplarily, the 3D navigation map may be composed of the following contents: the 3D model of the entire game level area is split into a plurality of sub-models, so that the number of the sub-models is the same as the number of surfaces of the polyhedron in the entire game level area. Each sub-model represents a surface. In the 3D navigation map, treasure chests, puzzle devices, rotating devices, etc. in the game can be represented by 2D icons.
[0170] Optionally, in some embodiments, the player character may freely rotate, translate and zoom the 3D navigation map; wherein, when the player character freely rotates the 3D navigation map, the transparency value of the sub-model changes.
[0171] Optionally, in some embodiments, the transparency value is specifically determined according to the angle between the player's line of sight and the gravity direction of the corresponding surface.
[0172] Exemplarily, the player can open the navigation map through a button in the game interface, and the 3D navigation map will be opened if the player is currently in a rotatable area. When the 3D navigation map is opened, the sub-model corresponding to the 3D navigation map will be consistent with the rotation state of the corresponding area in the game world, that is, the gravity direction of the surface where the player character is currently located is facing the downward direction of the world coordinates. The player character can freely rotate, translate and zoom the 3D navigation map, so that the player can observe every corner of the level more carefully.
[0173] Among them, when the player character freely rotates, translates and scales the 3D navigation map, the 2D icons indicating the player's own character and other key locations (such as treasure chests, puzzle devices, rotating devices) will also rotate and translate accordingly; the 3D navigation map will also scale with the scene, while the scale of the 2D icons remains unchanged.
[0174] In addition, when the player character freely rotates the 3D navigation map, the transparency value of the sub-model corresponding to each surface will change, and the transparency value is related to the angle between the player's line of sight and the gravity direction of the corresponding surface. By making the transparency of the sub-model corresponding to each surface in the 3D navigation map dynamically change according to the angle between the player's line of sight and the gravity direction of the corresponding surface, it is helpful to make the 3D navigation map more intuitive and easy to understand.
[0175] It is not difficult to find that in the embodiment of the present application, by providing a 3D navigation map, at least for allowing players to view at least one of the following contents: the position of the player character, the position of the treasure chest, the position of the puzzle device, and the position of the rotating device, the purpose of enhancing the player's navigation experience in the 3D game world can be achieved.
[0176] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0177] In addition, some embodiments of the present application also provide an electronic device. The electronic device may be a digital computer in various forms, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, etc. The electronic device may also be a mobile device in various forms, such as a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices.
[0178] The electronic device includes: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the steps of the method provided in any one or more of the above embodiments. Fig. 20 An exemplary structural diagram of the electronic device is disclosed. Fig. 20As shown, the electronic device includes: one or more processors 1101, memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Among them, the components shown in this article, their connections and relationships, and their functions are only used as examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0179] The electronic device may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Fig. 20 The example of connecting through bus is taken in the following.
[0180] The input device 1103 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a track ball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0181] To provide interaction with a user, the electronic device may be a computer. The computer has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0182] In the embodiments of the present application, a computer program / instruction is stored on a computer-readable medium, and when the computer program / instruction is executed by a processor, the steps of the method provided by any one or more of the above embodiments are implemented. The computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.
[0183] The memory 1102 can be used as a non-transient computer-readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, so as to implement the program instructions / modules corresponding to the method provided by any one or more embodiments in the embodiments of the present application.
[0184] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0185] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0186] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0187] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).
[0188] In the above-described embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. For example, it can be implemented by using an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented by hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0189] The computer program product provided in the embodiment of the present application includes one or more computer programs / instructions, and when the computer program / instructions are executed by the processor, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive so lid state di sk (SSD)), etc.
[0190] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0191] The scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim may also be implemented by one unit or device through software or hardware. The words "first", "second", etc. are only used to distinguish the description, and do not indicate any particular order, nor can they be understood as indicating or implying relative importance.
[0192] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily mention changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims, and the above embodiments should be regarded as exemplary and non-restrictive.
Claims
1. A method for changing the direction of gravity, characterized in that: The method comprises: Acquire first interaction information sent by the player character; the first interaction information is used to interact with a rotating device, and the rotating device is used to transform the surface of the polyhedron where the player character is currently located; According to the first interaction information and the rotating device, the surface of the polyhedron where the player character is currently located is transformed and the gravity direction of the game world is changed; wherein the gravity direction is parallel to the normal direction of the surface of the polyhedron where the player character is located after the transformation.
2. The method according to claim 1, characterized in that Different surfaces of the polyhedron have different normal directions; the surface of the polyhedron where the player character is located after the transformation includes: the surface of the polyhedron adjacent to the surface of the polyhedron where the player character is currently located, or the surface of the polyhedron not adjacent to the surface of the polyhedron where the player character is currently located.
3. The method according to claim 1, characterized in that The rotating device comprises a progressive rotating device and / or an instantaneous rotating device; wherein: The progressive rotating device is used to smoothly transition and change the gravity direction of the game world; The instantaneous rotating device is used to instantly change the gravity direction of the game world.
4. The method according to claim 3, characterized in that The rotating device is specifically the progressive rotating device; The step of transforming the surface of the polyhedron currently located by the player character and changing the gravity direction of the game world according to the first interaction information and the rotating device comprises: determining a rotation progress according to a position of the player character based on the progressive rotation device; According to the rotation progress, the surface of the polyhedron where the player character is currently located is transformed and the gravity direction of the game world is changed.
5. The method according to claim 4, characterized in that Determining the rotation progress according to the position of the player character based on the progressive rotation device includes: Acquire an initial rotation angle and a target center point set based on the progressive rotation device; Determining angle data according to a line connecting the player character and the center of the target circle; The rotation progress is determined according to the proportional relationship between the angle data and the initial rotation angle.
6. The method according to claim 4, characterized in that The step of transforming the surface of the polyhedron currently located by the player character and changing the gravity direction of the game world according to the rotation progress includes: According to the rotation progress, the surface of the polyhedron where the player character is currently located is transformed and the gravity direction of the game world is changed, so that the player character moves from the surface of a first polyhedron to the surface of a second polyhedron; wherein, in the process of the player character moving from the surface of the first polyhedron to the surface of the second polyhedron, the level entity group and the navigation mesh of the surface of the first polyhedron are disabled, and the level entity group and the navigation mesh of the surface of the second polyhedron are activated.
7. The method according to claim 3, characterized in that The rotating device is specifically the instantaneous rotating device; The step of transforming the surface of the polyhedron currently located by the player character and changing the gravity direction of the game world according to the first interaction information and the rotating device includes: Acquiring destination information of the instantaneous rotating device; the destination information at least includes a target surface of a target polyhedron; According to the first interaction information and the destination information, the player character is transported to a preset position, and is rotated according to a target surface of the target polyhedron and the gravity direction of the game world is changed.
8. The method according to claim 7, characterized in that The step of transmitting the player character to a preset position according to the first interaction information and the destination information, and rotating the target polyhedron according to the target surface and changing the gravity direction of the game world includes: Determine whether to load the scene blocks and level entity groups of the target area according to whether the current area where the player character is located is the same as the target area, and obtain a determination result; According to the determination result, the player character and the camera are transferred to the preset position; The target surface of the target polyhedron is rotated and the gravity direction of the game world is changed.
9. The method according to claim 8, characterized in that In the process of rotating the target surface of the target polyhedron and changing the gravity direction of the game world, the method includes: activating an entity group and a navigation mesh for a target surface of the target polyhedron; Disables entity groups and navmeshes for surfaces of a target polyhedron other than the target surface of the target polyhedron.
10. The method according to claim 1, characterized in that The rotating device is located in a rotatable area; each of the rotatable areas includes a plurality of polyhedrons; and the surface of each polyhedron corresponds to a specified level entity group and a pathfinding grid.
11. The method according to claim 10, characterized in that The method further comprises: According to the game level, a rotatable area and a non-rotatable area are determined; wherein each rotatable area and non-rotatable area corresponds to a specified scene block and a level entity group respectively.
12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: Acquiring second interaction information sent by the player character; the second interaction information is used to interact with a switching device; the switching device is used for the player character to switch between different areas; According to the second interaction information and the switching device, the player character is switched from the first area to the second area.
13. The method according to claim 12, characterized in that The switching device includes a gradual switching device and / or an instantaneous switching device; wherein: The progressive switching device is used to smoothly transition the player character from the first area to the second area; The instantaneous switching device is used to instantly switch the player character from the first area to the second area.
14. The method according to claim 13, characterized in that The switching device is specifically the progressive switching device; the progressive switching device includes an entrance portion, a corridor area and an exit portion; The switching of the player character from the first area to the second area according to the second interaction information and the switching device comprises: According to the second interactive information, the player character is made to enter the corridor area from the first area through the entrance portion of the progressive switching device, and the player character is made to enter the second area through the exit portion.
15. The method according to claim 13, characterized in that The switching device is specifically the instantaneous switching device; The switching of the player character from the first area to the second area according to the second interaction information and the switching device comprises: directly transferring the player character from the first area to the second area according to the second interaction information and the instantaneous switching device.
16. The method according to any one of claims 1 to 11, characterized in that Different surfaces of the polyhedron correspond to different surface numbers; different regions correspond to different region numbers; The method further comprises: Obtaining the region number of the region where the player character is located, and the surface number of the surface where the player character is located; The region number and the surface number are sent to a remote server for network archiving.
17. The method according to any one of claims 1 to 11, characterized in that The method further comprises: A 3D navigation map is provided; the 3D navigation map is used at least for the player to view at least one of the following: the position of the player character, the position of the treasure chest, the position of the puzzle-solving device, and the position of the rotating device.
18. The method according to claim 17, characterized in that The method for determining the 3D navigation map includes: Determine a plurality of sub-models according to the 3D model of the area representing the game level; the number of the sub-models is the same as the number of surfaces of the polyhedron in the area; each sub-model corresponds to one surface; The 3D navigation map is determined according to the sub-model.
19. The method according to claim 18, characterized in that The player character can freely rotate, translate and zoom the 3D navigation map; wherein, when the player character freely rotates the 3D navigation map, the transparency value of the sub-model changes.
20. The method according to claim 19, characterized in that The transparency value is specifically determined according to the angle between the player's sight direction and the gravity direction of the corresponding surface.
21. An electronic device, characterized in that: The electronic device comprises: one or more processors; and A memory storing computer program instructions which, when executed, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 20.
22. A computer readable medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 20 are implemented.
23. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 20 are implemented.
