Information processing method, device, equipment, storage medium and product in game

By constructing a multi-level nested game map area system, the current position of the target virtual object is determined and the background music is matched, which solves the problem of music configuration conflicts between game map areas, improves the matching degree between music and scene and the player's immersion, and simplifies the control logic of area music.

CN123167489APending Publication Date: 2026-11-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611339320.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, there are nested and conflicting music configurations between game map areas, resulting in background music that does not match the player's current location, thus affecting the user experience.

Method used

By constructing a multi-level nested game map area system, the current position of the target virtual object is determined, the lowest level map area in which it is located is identified, and the corresponding background music configuration information is matched for playback to ensure that the music matches the scene.

Benefits of technology

It improves the matching degree between music and scene, enhances the player's sense of immersion in the space, avoids music state conflicts, simplifies the control logic of regional music, and improves the efficiency and stability of configuration iteration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123167489A_ABST
    Figure CN123167489A_ABST
Patent Text Reader

Abstract

The application discloses a game information processing method, device, equipment, storage medium and product. A graphical user interface is provided through a terminal device. The graphical user interface displays at least part of a virtual scene. The virtual scene includes a target virtual object controlled by the terminal device. The method includes determining a current position of the target virtual object in a game map, determining a lowest layer map area where the target virtual object is currently located according to the current position of the target virtual object, determining target background music configuration information corresponding to the lowest layer map area according to background music configuration information corresponding to each map area, and determining and playing current background music according to the target background music configuration information. In this way, the application determines the lowest layer area where the virtual object is located and matches and plays corresponding background music by constructing a multi-level nested game map area, which can avoid music state conflicts, improve scene matching degree, and enhance spatial immersion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer interaction technology, specifically to an information processing method in a game, an information processing device in a game, an electronic device, a computer-readable storage medium, and a computer program product. Background Technology

[0002] In related technologies, the switching of background music in game areas typically relies on audio region boxes drawn in the scene editor, combined with the state mechanism of the audio middleware. That is, when the player is within different box ranges, corresponding music events and state switching are triggered. However, multiple map areas in a game map often have nested relationships. When the player is simultaneously within multiple levels of map areas, there is a problem of music configuration conflicts between different levels of areas. This results in the background music playing not matching the player's current actual area level, which affects the user experience to some extent. Summary of the Invention

[0003] This application provides an information processing method, an information processing device, a computer-readable storage medium, an electronic device, and a computer program product for games. By constructing a multi-level nested game map area system, the current position of the target virtual object is determined, the lowest level map area where the target virtual object is located is determined, and the corresponding background music configuration information is matched and played. This can clearly express the spatial inclusion relationship of the map, avoid music state conflicts, improve the matching degree between music and scene, enhance the player's spatial immersion, and ensure that music switching is stable and predictable.

[0004] On one hand, embodiments of this application provide an information processing method for games, which provides a graphical user interface through a terminal device. The graphical user interface displays at least a portion of a virtual scene, the virtual scene including target virtual objects controlled by the terminal device. The method includes: Determine the current position of the target virtual object in the game map, wherein the game map includes multiple levels of map regions, the map regions of the same level are independent of each other, and the lower level map regions are part of the higher level map regions; Based on the current position of the target virtual object, determine the lowest level map region where the target virtual object is currently located; Based on the background music configuration information corresponding to each of the map regions, determine the target background music configuration information corresponding to the bottommost map region; Based on the target background music configuration information, determine the current background music and play it.

[0005] On the other hand, embodiments of this application provide an information processing device for games, which provides a graphical user interface through a terminal device. The graphical user interface displays at least a portion of a virtual scene, the virtual scene including target virtual objects controlled by the terminal device. The device includes: The location determination module is used to determine the current location of the target virtual object in the game map, wherein the game map includes multiple levels of map areas, the map areas of the same level are independent of each other, and the lower level map area is a part of the higher level map area. The region determination module is used to determine the lowest-level map region where the target virtual object is currently located based on the current position of the target virtual object; The configuration determination module is used to determine the target background music configuration information corresponding to the bottommost map area based on the background music configuration information corresponding to each of the map areas. The playback module is used to determine and play the current background music based on the target background music configuration information.

[0006] On the other hand, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores a computer program, and the processor executes the information processing method in the game as described in any of the above embodiments by calling the computer program stored in the memory.

[0007] On the other hand, embodiments of this application provide a computer-readable storage medium storing a computer program adapted for loading by a processor to execute the information processing method in a game as described in any of the above embodiments.

[0008] On the other hand, embodiments of this application provide a computer program product, including computer instructions, which, when executed by a processor, implement the information processing method in a game as described in any of the above embodiments.

[0009] The information processing method, information processing device, computer-readable storage medium, electronic device, and computer program product in the game provided in this application embodiment, by constructing a multi-level nested game map area system, makes the lower-level map area a component of the higher-level map area, and the map areas of the same level are independent of each other, forming a hierarchical area division logic that matches the spatial structure of the large world. During game operation, the current position of the target virtual object in the game map is first determined, and then the lowest-level map area where the target virtual object is located is determined according to the current position. Then, the background music configuration information corresponding to the lowest-level map area is matched, and finally, the appropriate background music is determined and played according to the configuration information. Compared to music switching schemes that use equal-level area divisions, the multi-level nested area structure can clearly express the spatial inclusion relationship of the world map. It naturally has the rule that inner areas have higher priority than outer areas, avoiding music state conflicts between different levels of areas from an architectural perspective. To a certain extent, it eliminates the problem of large-scale background music incorrectly covering small-scale exclusive music. Moreover, based on the mechanism of matching music to the lowest level area, it can ensure that the background music played is always consistent with the specific spatial environment of the target virtual object, effectively improving the matching degree between area music and actual scene, and enhancing the player's spatial immersion and environmental sense during exploration.

[0010] In addition, the unified hierarchical judgment system replaces the mode of multiple independent judgment systems coexisting, which simplifies the control logic of regional music to a certain extent, reduces the probability of music status disorder and accidental triggering, improves the efficiency of configuration iteration, ensures the stability and predictability of regional music switching, makes the music area planning of the world map more organized, and facilitates subsequent content expansion and configuration maintenance. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a flowchart illustrating the information processing method in a game provided in an embodiment of this application.

[0013] Figure 2 This is a schematic diagram of a multi-level map region nesting structure provided in an embodiment of this application.

[0014] Figure 3 This is a schematic diagram of the In / Out determination and transmission fallback process provided in the embodiments of this application.

[0015] Figure 4 This is a schematic diagram illustrating the weighting of overlapping areas in multiple maps at the same level, as provided in an embodiment of this application.

[0016] Figure 5 A flowchart illustrating the drawing process of a closed polygon map region provided in this application embodiment.

[0017] Figure 6 A schematic diagram of the architecture of the large-scale regional music automatic switching system provided in this application embodiment.

[0018] Figure 7 A comparative schematic diagram showing the relevant technical solutions provided in the embodiments of this application and the solutions in the embodiments of this application.

[0019] Figure 8 This is a schematic diagram of the structure of the information processing device in the game provided in the embodiment of this application.

[0020] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] This application provides an information processing method, an information processing device, a computer-readable storage medium, an electronic device, and a computer program product for games. Specifically, the information processing method for games in this application can be executed by an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, smart TV, wearable smart device, smart vehicle terminal, etc. The terminal can also include a client, which can be a browser client, instant messaging client, or mini-program, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0023] It should be noted that, in this embodiment, the executing entity of the information processing method in the game can be a terminal device or a server. The terminal device can be a local terminal device or a client device in a cloud platform. This embodiment does not limit the type of executing entity.

[0024] For example, when the information processing method in the game runs on a terminal device, the terminal device may include a display screen and a processor. The display screen is used to present a graphical user interface (GUI) and receive instructions generated by the user interacting with the GUI. The processor is used to store applications, generate the GUI, respond to instructions, and control the display of the GUI on the display screen. When the user operates the GUI through the display screen, the GUI can control the local content of the terminal device in response to the received operation instructions. The terminal device can provide the GUI to the user in various ways, such as rendering it on the terminal device's display screen or presenting the GUI through holographic projection.

[0025] For example, when the information processing method in the game runs on a server, this method can be implemented and executed based on a cloud system. The cloud system includes servers and client devices. The application's runtime and the graphical user interface (GUI) presentation are separate. The storage and execution of the game's information processing methods are completed on the server. The GUI presentation, however, is completed on the client. The client is primarily used for data reception, transmission, and GUI presentation. For example, the client can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, PDA, personal digital assistant, or head-mounted display. However, the terminal device performing data processing is the server in the cloud. During this process, the user operates the client to send instructions to the server. The server executes the instructions, encodes and compresses the GUI data, returns it to the client via the network, and finally, the client decodes and outputs the GUI.

[0026] It should be noted that, in this embodiment, the executing entity of the information processing method in the game can be a terminal device or a server. The terminal device can be a local terminal device or a client device in the aforementioned cloud system. This embodiment does not limit the type of executing entity.

[0027] The technical solution of this application will be described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0028] With the rapid development of the game industry and the increasing demand from players for immersive experiences, open-world games have become a mainstream direction in game development, placing higher demands on the accuracy and smoothness of regional music switching. Regional music is an audio means of creating the atmosphere of the game space and enhancing the player's emotional immersion. It requires that the background music be highly matched to the environment when players explore different geographical areas of the virtual world, thereby enhancing the player's spatial perception and improving the immersion of the exploration process. In the implementation of regional music in open-world games, audio middleware is usually used to handle state switching and music playback. Developers define corresponding state groups and states for different regions. When a player enters a corresponding region, a state switch is triggered, and the audio middleware plays matching music according to the current state. At the same time, the game engine needs to define the spatial range of each region in the scene using three-dimensional boxes and detect changes in the player's position in real time to determine the player's behavior of entering and leaving the region, thereby triggering corresponding audio events and parameter adjustments.

[0029] In related technologies, the music switching in the open world area mainly adopts a scheme combining global configuration table and script distance judgment. That is, fixed parameters such as the coastline distance threshold are preset in the global configuration table, and the script program calculates the straight-line distance between the player's position and the coastline in real time, thereby switching the music state of near sea and far sea. The music in the island area is judged separately by manually drawn boxes in the scene editor. However, in this way, the two systems of sea area judgment and island judgment run independently and do not have a unified priority adjudication mechanism. When the coverage area of ​​the island box overlaps with the judgment area of ​​near sea and far sea, the music state will directly conflict, causing players to accidentally trigger island music during navigation, resulting in the problem of music not matching the current environment, which will destroy the player's immersive experience.

[0030] To address the aforementioned system conflict issues, some technologies employ a scenario where scene editor boxes are combined with edge collision triggering. This involves drawing 3D boxes in spherical, rectangular, or capsule shapes using solid components in the scene editor, adding audio components to these boxes, and then triggering music states by the player touching the box's edge. However, this approach suffers from limitations. The simple geometric shapes of the boxes cannot conform to the contours of irregular terrains like islands. To fully cover the playable area, developers need to expand the box's drawing area, resulting in the box covering more non-target areas, causing distortion of the area and leading to false music triggering. Furthermore, relying on edge collision to trigger audio events means that when players appear directly inside the box via teleportation, logging in, or logging out, they cannot trigger the entry event without passing through the box's edge, resulting in music states that do not match the actual area. This lack of an effective fallback mechanism in special scenarios further complicates matters. In addition, some scene editors provide a polygon mode for drawing polygonal boxes, attempting to solve the range distortion problem by fitting the box shape to the terrain. However, the relevant function has not yet been developed. After enabling it, the box shape cannot change accordingly, and there are no operable nodes to adjust the box deformation. It does not have practical application value and cannot provide effective support for the division of irregular terrain areas.

[0031] Furthermore, none of the relevant technical solutions establish the concept of hierarchical nesting of regions. All regions are at the same level, failing to express the hierarchical inclusion relationship of the open sea containing the near sea, and the near sea containing islands. This leads to chaotic region switching logic and unpredictable switching results. Additionally, when the spatial ranges of multiple boxes overlap, the relevant technical solutions lack weighting or priority mechanisms to adjudicate audio configurations. Developers cannot control which audio configurations take precedence in overlapping areas, easily resulting in state inconsistencies. Moreover, some technical solutions directly mount audio configurations onto the boxes in the scene editor. Each configuration modification requires loading a large scene map, resulting in long waiting times, impacting the efficiency of development iterations, and failing to meet the actual needs of agile development.

[0032] Please refer to the following for the above questions. Figure 1 and Figure 2 , Figure 1 This is a flowchart illustrating the information processing method in a game provided in an embodiment of this application. Figure 2 This is a schematic diagram of a multi-level map region nesting structure provided in an embodiment of this application. It should be noted that the steps shown can be executed in a logical order different from that shown in the flowchart. A graphical user interface is provided through a terminal device, displaying at least a portion of a virtual scene, the virtual scene including target virtual objects controlled by the terminal device. The method includes: 110: Determine the current position of the target virtual object in the game map, where the game map includes multiple levels of map areas, map areas of the same level are independent of each other, and lower-level map areas are parts of higher-level map areas; 120: Determine the lowest-level map region where the target virtual object is currently located, based on its current position. 130: Based on the background music configuration information corresponding to each map region, determine the target background music configuration information corresponding to the bottom-level map region; 140: Determine and play the current background music based on the target background music configuration information.

[0033] Specifically, in the development and operation of open-world games, game maps, such as open-world maps, typically contain vast and complex spatial areas. Different administrative regions and other map areas require corresponding background music to create an immersive atmosphere. Current technical solutions often use a horizontal division of map areas, failing to reflect the hierarchical nesting relationship between larger and smaller areas. When players are within overlapping areas, the lack of clear priority rules for determining which background music should be active can lead to inconsistent music switching and accidental triggering, resulting in a mismatch between the background music and the player's actual environment. This undermines the game's spatial immersion and exploration experience. Furthermore, the horizontal area management model is ill-suited to the complex administrative or geographical hierarchical structure of open-world maps, resulting in low efficiency in configuring and maintaining regional music. To address the aforementioned issues, this application provides an information processing method for games. The method involves running a game on a terminal device and displaying a graphical user interface. A multi-level nested regional division structure is constructed within the game map, with regions at the same level being independent of each other. Lower-level regions belong to higher-level regions. The current position of the controlled target virtual object on the game map is obtained in real time. Based on the position information, the lowest-level map region (the innermost administrative region) where the target virtual object is currently located is determined. Then, the background music configuration information corresponding to this lowest-level map region is retrieved. Finally, the corresponding background music is determined and played based on the configuration information. Automatic and accurate switching of regional music is achieved by relying on the natural priority of the nested hierarchy.

[0034] In some embodiments, a terminal device can be understood as a device that runs a game program, outputs visuals and sound, and receives player commands, such as a personal computer, a game console, and a mobile smart terminal.

[0035] In some embodiments, a graphical user interface can be understood as a visual interactive interface presented on a terminal device display device during game runtime. It can display virtual scenes, game interface elements, and other content to players through visual graphical elements, provide feedback on game status, and carry out interactive operations.

[0036] In some embodiments, a virtual scene can be understood as a virtual space constructed by a game program that allows target virtual objects to move and explore, including various visual elements such as terrain, buildings, and environment.

[0037] In some embodiments, the target virtual object, namely the player GameObject, can be understood as a virtual character or vehicle that is directly controlled by the player through a terminal device and can move in a virtual scene and interact with the environment.

[0038] In some embodiments, the game map, i.e. the world map, can be understood as the spatial carrier of the virtual scene, including all explorable areas and geographical elements, and is the basic coordinate system and spatial boundary for dividing areas and determining locations.

[0039] In some embodiments, a map region, i.e. an administrative region, can be understood as a spatial unit in the game map that is divided into independent spatial ranges and attribute configurations according to certain rules, and each map region corresponds to an independent set of background music configurations.

[0040] In some embodiments, background music configuration information can be understood as a set of parameters pre-configured for each map region and bound to each map region to control the content and effects of background music playback.

[0041] In some embodiments, the hierarchy can be understood as the division of map regions. There is a nested relationship of inclusion and being included between different levels. The lower the level, the smaller the spatial range of the region, and the higher the priority of music activation.

[0042] In some embodiments, the bottom-level map region, i.e. the innermost administrative region, can be understood as the map unit that is at the lowest level in the multi-level nested regional structure in which the target virtual object is currently located, and no longer contains other lower-level sub-regions.

[0043] In some embodiments, the current background music can be understood as the background audio content that is currently being played dynamically based on the real-time position of the target virtual object.

[0044] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to the following exemplary description: Electronic devices generate and display a graphical user interface to players by running a game program on a terminal device through a graphics rendering pipeline. The graphical user interface displays at least part of the virtual scene content, and there are target virtual objects controlled by the terminal device within the virtual scene.

[0045] Players can send control commands to the game through the input peripherals of their terminal devices, and manipulate the target virtual objects to move and interact within the virtual scene.

[0046] During the game development phase, the regional division of the game map is bound to the administrative regional structure of the game. The map regions are pre-divided into multiple levels, namely administrative regions. Each map region at the same level is independent of the others. Lower-level map regions are components of higher-level map regions, forming a nested and inclusive relationship from top to bottom. The lower the level, the smaller the spatial range and the more refined the division. Furthermore, the music effect of the inner layer region has a higher priority than that of the outer layer region.

[0047] For example, such as Figure 2 As shown, some open-world games have a complete spatial division system from large planes to themed islands and then to subdivided terrains and points of interest. The levels can be set to four levels from high to low. The first level is the large world plane, which covers the entire open world or dungeon. The second level is the large map, which corresponds to large independent areas such as themed islands. The third level is the large area, which corresponds to areas with different terrains such as volcanic terrain and rainforest terrain. The fourth level is the small level or point of interest area, which corresponds to specific locations such as treasure chest areas and boss battle zones.

[0048] For example, taking a large-scale ocean scene as an example, a three-level nested structure can be formed: the highest level is the open ocean, covering the entire open sea area; the middle level is the near-shore archipelago area, covering the theme island and the surrounding near-shore area; and the lowest level is the island land area that can be visited, corresponding to the main island land area. The three levels of areas form a nested inclusion relationship, with the inner island area having a higher priority than the outer near-shore and open-ocean areas.

[0049] In some embodiments, each high-level region contains several low-level regions. Regions of the same level do not overlap and are independent of each other, forming a strict nested containment relationship between levels. The lower the level of the region, the smaller its spatial range and the higher the corresponding music priority, providing a clear hierarchical priority basis for music switching.

[0050] During gameplay, electronic devices acquire the coordinates of the target virtual object on the game map in real time, thus determining the current spatial location of the target virtual object.

[0051] Then, iterate through all levels of the map area and filter out all map areas that contain the current location of the target virtual object.

[0052] Among all the hit map regions, they are filtered in descending order of hierarchy, and the region with the lowest hierarchy is selected as the bottom-level map region, i.e., the innermost administrative region. The bottom-level map region is the smallest area where the target virtual object is currently located. According to the rule of inner-layer priority, the music configuration corresponding to the bottom-level map region has the highest priority for activation.

[0053] In some embodiments, each map region is pre-bound with corresponding background music configuration information. The electronic device retrieves the target background music configuration information corresponding to the bottom-level map region based on the determined bottom-level map region, and completes the mapping between the region and the audio resources.

[0054] For example, a pre-stored background music configuration table can be retrieved. The entry corresponding to the lowest-level map region in the background music configuration table can be found by the region identifier to determine the target background music configuration information that is currently in effect. The background music configuration table sets independent background music configuration information for each map region, including audio resources, playback rules and other content corresponding to each map region.

[0055] Finally, the electronic device executes the corresponding playback and switching commands based on the relevant parameters in the target background music configuration information, and plays the background music corresponding to the current map area.

[0056] When the target virtual object moves from one area to another, the electronic device can repeatedly execute the above process of location determination, area filtering, configuration matching and music switching to achieve automatic switching of background music according to the player's position.

[0057] Thus, in this embodiment, by constructing a multi-level nested game map region system, lower-level map regions become components of higher-level map regions, and map regions at the same level are independent of each other, forming a hierarchical region division logic that matches the spatial structure of the open world. During game operation, the current position of the target virtual object in the game map is first determined, then the lowest-level map region where the target virtual object is located is determined based on the current position, and then the background music configuration information corresponding to the lowest-level map region is matched. Finally, the appropriate background music is determined and played based on the configuration information. Compared with the music switching scheme using a horizontal region division, the multi-level nested region structure can clearly express the spatial inclusion relationship of the open world map, naturally possessing the rule that inner regions have higher priority than outer regions. From an architectural perspective, it avoids music state conflicts between different levels of regions, and to a certain extent, eliminates the problem of large-scale background music incorrectly covering small-scale exclusive music. Moreover, based on the mechanism of matching music to the lowest-level region, it can ensure that the background music played always matches the specific spatial environment where the target virtual object is currently located, effectively improving the matching degree between regional music and actual scene, and to a certain extent enhancing the player's spatial immersion and environmental sense during exploration.

[0058] In addition, the unified hierarchical judgment system replaces the mode of multiple independent judgment systems coexisting, which simplifies the control logic of regional music to a certain extent, reduces the probability of music status disorder and accidental triggering, improves the efficiency of configuration iteration, ensures the stability and predictability of regional music switching, makes the music area planning of the world map more organized, and facilitates subsequent content expansion and configuration maintenance.

[0059] In some embodiments provided in this application, the method further includes: Create closed shapes for each map region. The outline of the closed shape matches the outline of the map region. Closed shapes for map regions at the same level are independent of each other. The closed shape for a lower-level map region is a part of the closed shape for a higher-level map region. Step 120 above includes: Based on the current position of the target virtual object, determine the lowest level closed shape to which the target virtual object currently belongs; The map region corresponding to the bottom closed graphic is defined as the bottom map region.

[0060] Specifically, in the regional music switching scenes of open-world games, the spatial determination of map regions lacks a precise visual carrier. Related technical solutions often use simple geometric shapes as the determination unit, which cannot conform to the irregular contours of island terrain and other regions, resulting in a large deviation between the determined range and the actual area, easily leading to false music triggering. Simultaneously, multi-level region divisions lack corresponding hierarchical determination carriers; abstract hierarchical relationships are difficult to directly translate into executable position determination logic, failing to stably support the inner-layer priority region music switching rules, affecting the immersiveness and accuracy of the regional music. Based on the above problems, in some embodiments provided in this application, a closed shape with a matching contour is created for each map region. The contour of the closed shape completely matches the actual contour of the map region. Different levels of closed shapes maintain a consistent nested inclusion relationship with the map regions. By determining the lowest-level closed shape to which the target virtual object belongs, the corresponding lowest-level map region is indirectly determined, and finally, the corresponding background music is matched and played. This graphic-based determination improves the accuracy of regional music switching.

[0061] In some embodiments, a closed graphic can be understood as a spatial determination unit with a closed contour that corresponds one-to-one with a map region. The closed contour matches the boundary of the corresponding map region and can be used to detect whether the target virtual object is within the spatial range of the corresponding map region.

[0062] In some embodiments, contour matching can be understood as the boundary shape of the closed shape being consistent with the boundary shape of the map area, ensuring that the determination range coincides with the actual area range and avoiding range distortion caused by shape limitations.

[0063] In some embodiments, the lowest level closed graphic can be understood as the graphic with the lowest map region level among all the closed graphics in which the target virtual object is currently located.

[0064] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to... Figure 3 and the following exemplary description, Figure 3 This is a schematic diagram of the In / Out determination and fallback transmission process provided in the embodiments of this application, namely: During the game development phase, designers or developers create corresponding closed shapes for each map area as spatial determination carriers. The outlines of the closed shapes are drawn strictly according to the actual terrain outlines of the map area to ensure that the boundaries of the shapes completely fit the boundaries of the map area and can fully cover the spatial range of the corresponding map area.

[0065] In some embodiments, the hierarchical relationship of closed graphics strictly corresponds to the hierarchical relationship of map regions. Closed graphics corresponding to map regions of the same level are independent of each other and do not overlap spatially. Closed graphics corresponding to lower-level map regions are completely within the range of closed graphics corresponding to higher-level map regions, forming a nested structure that completely corresponds to the hierarchy of map regions.

[0066] In some embodiments, after the closed graphic is created, it can be bound to the background music configuration information of the corresponding map area to establish a one-to-one mapping relationship between the closed graphic and the map area configuration.

[0067] Furthermore, in some embodiments, the spatial data and configuration mapping relationships of all enclosed graphics can be uniformly stored in the regional configuration resource for use during game runtime.

[0068] During the game, after the electronic device obtains the current position of the target virtual object, it first traverses all levels of closed shapes to determine the spatial inclusion relationship based on the current position information of the target virtual object, filters out the closed shape to which the target virtual object currently belongs, and selects the one with the lowest level as the bottom closed shape among all the hit closed shapes.

[0069] Subsequently, by using the pre-established mapping relationship, the map region corresponding to the lowest closed graphic is found, and this map region is determined as the lowest map region where the target virtual object is currently located.

[0070] Finally, after determining the map region, based on the background music configuration information corresponding to each map region, the target background music configuration information corresponding to the bottom map region is retrieved, and the current background music is determined and played based on the target background music configuration information.

[0071] Thus, in this embodiment, by creating closed graphics with matching outlines for each level of map region, the spatial range of the closed graphics is made to perfectly match the corresponding map region. Closed graphics of the same level remain independent of each other, and lower-level closed graphics are completely subordinate to the range of higher-level closed graphics. This constructs a spatial determination system that corresponds one-to-one with multi-level map regions. By obtaining the current position of the target virtual object in the game map, the lowest closed graphic to which the target virtual object currently belongs is determined based on the position information. Then, the corresponding lowest-level map region is obtained through the mapping relationship between the closed graphics and the map region. Finally, the background music configuration information corresponding to the map region is matched and the appropriate background music is played. This achieves precise switching of multi-level region music based on visualized closed graphics. Compared to directly dividing music areas using coordinate values, using closed shapes as the physical carrier for area determination allows the boundaries of music areas to better match the actual terrain and scene outlines within the game. This effectively avoids the problem of discrepancies between the coverage area of ​​regular geometric shapes and the actual playable area, thus improving the accuracy of the music trigger range to some extent. Furthermore, the closed shape system maintains a consistent nested relationship with multi-level map areas, naturally adhering to the judgment logic that inner areas have higher priority than outer areas. This also provides a visual editing basis for the spatial division of music areas, reducing the difficulty of adjusting and maintaining area boundaries to some extent.

[0072] Furthermore, the location determination logic based on closed graphics is clear and stable, which can accurately identify the lowest level area where the target virtual object is located, ensuring the matching degree between the background music and the current spatial environment, reducing the problem of music mis-triggered and mismatched at the boundary of the area, and to a certain extent enhancing the spatial auditory immersion of players in the process of exploring the open world. This makes the music area control logic more organized and facilitates the subsequent expansion of scene content and iteration of music configuration.

[0073] In some embodiments provided in this application, the step of determining the lowest-level closed graph to which the target virtual object currently belongs based on its current position includes: Based on the current position of the target virtual object, determine the position state of the target virtual object for each closed shape, where the position state includes the state inside the box and the state outside the box; Among the closed shapes inside the box, the closed shape with the lowest corresponding map region level is determined as the bottom closed shape.

[0074] Specifically, in multi-layered nested regional music switching scenarios, the determination of closed graphics lacks standardized inner and outer layer state marking and hierarchical filtering logic. When faced with multi-layered nested regional structures, it is difficult to accurately identify the currently effective smallest area, which easily leads to hierarchical judgment deviations. This results in background music switching not conforming to the rule of inner layer priority, and the audio content not matching the actual environment. At the same time, the judgment process lacks a clear execution link, and the logic is scattered and chaotic, which is not conducive to development, debugging, and subsequent hierarchical expansion, and is difficult to adapt to the increasingly complex regional division requirements of large-scale world maps. Based on the above problems, in some embodiments provided in this application, the positional state of the current position relative to each closed graphic is first determined according to the current position of the target virtual object. The positional state can be divided into two categories: box-inside state and box-outside state. Among all closed graphics marked as box-inside state, the closed graphic with the lowest corresponding map region level is selected and determined as the lowest-level closed graphic to which the target virtual object currently belongs. Through the process of state marking and hierarchical filtering, the determination rule of inner layer region priority is stably implemented.

[0075] In some embodiments, the position state, i.e. the In / Out determination state, can be understood as the spatial ownership state of the target virtual object relative to a single closed shape, used to mark whether the target virtual object is within the coverage area of ​​the closed shape.

[0076] In some embodiments, the internal state of the box, i.e. the In state, can be understood as a positional status marker indicating that the coordinates of the target virtual object are within the spatial range of the closed graphic, representing that the target virtual object is currently located within the map area corresponding to the closed graphic.

[0077] In some embodiments, the outer state of the box, i.e. the Out state, can be understood as a position status marker where the coordinates of the target virtual object are outside the spatial range of the closed graphic, indicating that the target virtual object has not yet entered the corresponding map area of ​​the closed graphic.

[0078] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to... Figure 3 And the following exemplary description, namely: After obtaining the current position coordinates of the target virtual object, the electronic device traverses all configured closed shapes in the scene and performs spatial calculations on the current position coordinates and the range of the closed shape one by one using spatial geometry algorithms to determine the spatial inclusion relationship between the target virtual object and each closed shape, thereby marking the corresponding position state for each closed shape.

[0079] In some embodiments, to accurately determine the positional state of the target virtual object relative to each closed shape, a ray casting method can be used to calculate the spatial inclusion relationship. Specifically, starting from the current position of the target virtual object, a ray is emitted along any direction on the horizontal plane, i.e., the XZ plane. The number of intersections between this ray and the projection polygon of the boundary prism of the closed shape, i.e., the side surface of the three-dimensional box, on the horizontal plane is calculated. If the number of intersections is odd, the target virtual object is determined to be within the spatial range of the closed shape, and the closed shape is marked as the box interior state, i.e., the In state. If the number of intersections is even, including zero, the target virtual object is determined to be outside the spatial range of the closed shape, and is marked as the box exterior state, i.e., the Out state.

[0080] Furthermore, since the closed shape is a vertically stretched 3D box with a horizontal cross-sectional shape consistent with the target plane, the horizontal orientation in 3D space can be accurately reflected simply by counting the intersections of rays and polygons on a 2D plane. Meanwhile, the height direction is further verified by comparing the vertical coordinates of the target virtual object with the top and bottom height ranges of the 3D box, ensuring that it is only considered an internal state when both horizontal and vertical conditions are simultaneously met.

[0081] To more clearly illustrate the spatial inclusion relationship calculation process provided in the embodiments of this application, please refer to the following exemplary description using a convex quadrilateral closed figure as an example: Assume the closed shape is composed of four nodes arranged in a clockwise order, forming a regular rectangular or trapezoidal region. When the current position of the target virtual object is inside the closed quadrilateral, the ray emitted from the current position of the target virtual object along the positive X-axis will intersect the boundary of the closed quadrilateral at a single point. If the number of intersection points is odd, it is determined that the current position of the target virtual object is inside the closed shape and marked as the internal state of the box.

[0082] When the target virtual object moves outside the closed quadrilateral, the ray may have no intersection with the quadrilateral's boundary or two intersections, with an even number of intersections, and is marked as an external state. For example, when the target virtual object moves to the left side of the closed quadrilateral, the horizontally emitted ray will enter from the left boundary and exit from the right boundary, creating two intersections. When the target virtual object moves directly above or below the closed quadrilateral, the ray will not intersect the quadrilateral's boundary, and the number of intersections is zero. In both of these cases, the number of intersections is even, and both can be marked as an external state.

[0083] Furthermore, for complex closed shapes with concave boundaries, such as stars, L-shapes, or irregular polygons, ray casting still maintains accuracy. Consider a star-shaped closed shape whose boundary consists of multiple concave and convex vertices. When the target virtual object is located in a concave area of ​​the shape, a ray emitted horizontally from the target virtual object's current position may alternately cross the concave and convex boundaries, but the total number of intersections remains odd. Ray casting is accurate and is marked as an internal state. For example, if the star-shaped shape has five convex vertices and five concave vertices, when the target virtual object is located in a concave area near a concave vertex, the ray may first cross the entrance edge of the concave area and then the exit edge, ultimately resulting in an odd number of intersections with the overall polygon. This avoids misjudging it as external due to a local concavity. When the target virtual object is located outside the star-shaped shape, the number of intersections between the ray and the polygon is even, and it is marked as an external state.

[0084] In addition to the ray casting method described above, in one embodiment, the cross product sign consistency method can also be used to determine whether the target virtual object is inside the closed shape. That is, for a convex polygon closed shape, if the current position of the target virtual object is on the same side of each directed edge of the polygon, it is determined to be inside the polygon; if there is an edge that makes the target virtual object located on a different side, it is determined to be outside the polygon.

[0085] Specifically, for a polygon composed of n vertices arranged in a counter-clockwise or clockwise order, the electronic device sequentially extracts each edge of the polygon according to the vertex order and calculates the cross product sign from the current position of the target virtual object to each edge. Using the vector formed by the start and end points of a certain edge of the polygon as a reference, the cross product value is calculated between the vector formed by the current position of the target virtual object and the start point of the edge, and the reference vector. If the cross product value is greater than zero, it indicates that the target virtual object is to the left of that edge; if the cross product value is less than zero, it indicates that it is to the right; and if the cross product value is zero, it indicates that the target virtual object is exactly on the extension line of that edge. For convex polygons, when the cross product signs of all edges are the same, the current position of the target virtual object is inside the polygon. If the cross product sign of one edge is inconsistent with the other edges, the target virtual object is outside the polygon. Simultaneously, when the target virtual object is exactly on the boundary of the polygon, the cross product value is zero. This can be determined as a boundary state, and depending on the actual application scenario, the current position can be classified as an internal state or the state of the previous frame can be kept unchanged to prevent state jitter.

[0086] In another embodiment, an angle accumulation method can be used to determine whether the target virtual object is inside a closed shape. Specifically, for any polygonal closed shape, the current position of the target virtual object is sequentially connected to each vertex of the polygon, the angles formed between adjacent lines are calculated, and all angles are accumulated with a sign. If the sum of the accumulated angles is 360 degrees or -360 degrees, the target virtual object is determined to be inside the polygon; if the sum of the accumulated angles is 0 degrees, the target virtual object is determined to be outside the polygon.

[0087] Specifically, the electronic device takes adjacent vertices in the order of the polygon vertices, calculates the direction vector from the current position of the target virtual object to these two vertices, then calculates the angle between the two direction vectors, and uses the cross product to determine the rotation direction of the angle. Subsequently, the signed angles corresponding to each pair of adjacent vertices are summed one by one to obtain the total angle sum.

[0088] Because the vertices of the polygon form a complete wraparound relationship around the current position of the target virtual object, when the target virtual object is inside the polygon, the wraparound direction of all adjacent vertices relative to the target virtual object is consistent, and the sum of the signed angles is 360 degrees or -360 degrees. When the target virtual object is outside the polygon, the wraparound directions formed by adjacent vertices relative to the target virtual object will cancel each other out, and the sum of the signed angles is 0 degrees. When the target virtual object is exactly on the boundary of the polygon, a certain angle is 0 degrees. In this case, the current position can still be determined as an internal state or maintain the state of the previous frame, depending on the configuration. For example, in an irregular pentagonal closed shape, the electronic device connects the current position of the target virtual object to each of the five vertices, calculates the angle between adjacent lines, and accumulates them. If the sum of the signed angles is 360 degrees, the current position is determined to be inside the pentagonal closed shape and marked as an internal state. If the sum of the signed angles is 0 degrees, the current position is determined to be outside the pentagonal closed shape and marked as an external state.

[0089] In practical applications, the cross-product sign consistency method and angle accumulation method described above can be used in conjunction with the ray casting method. For example, for convex polygonal closed figures, the cross-product sign consistency method, which has the highest computational efficiency, can be preferred. For complex concave or irregular polygons, the angle accumulation method can be introduced into the ray casting method for cross-validation to improve the robustness of judgments at special locations. Electronic devices can dynamically select the optimal spatial inclusion relationship calculation strategy based on the specific shape of the closed figure, the number of vertices, and the performance load of the current operating environment to achieve a balance between judgment accuracy and computational efficiency.

[0090] If the coordinates of the target virtual object are within the spatial range of the closed shape, the position state corresponding to the closed shape is marked as the box interior state, i.e., the In state, which indicates that the target virtual object is currently within the map area corresponding to the closed shape.

[0091] If the coordinates of the target virtual object are outside the spatial range of the closed shape, the position state corresponding to the closed shape is marked as the outer state of the box, i.e., the Out state, indicating that the target virtual object has not yet entered the map area corresponding to the closed shape.

[0092] In addition, in some embodiments, if the target virtual object is located on the boundary of a closed shape, the state at the previous moment remains unchanged. The state determination result will only be updated after the object has completely entered or completely left the closed shape, so as to avoid frequent state fluctuations at the boundary.

[0093] After determining the state of all closed shapes, the electronic device filters out all closed shapes marked as being inside the box, forming the current set of matched shapes.

[0094] Subsequently, the map region level information corresponding to each hit closed graphic is retrieved and sorted from high to low according to the map region level value. The map region level corresponds one-to-one with the nesting and inclusion relationship. The lower the level value, the more subdivided the corresponding map region is, and the more it is in the inner layer of the nested structure.

[0095] Next, after sorting, the lowest-level closed shape at the end of the sorted sequence is selected as the bottom-level closed shape to which the target virtual object currently belongs. The bottom-level closed shape corresponds to the smallest spatial range and has the highest music activation priority according to the rule of inner layer priority.

[0096] Furthermore, in some embodiments, if there is only one closed shape in the set of hit shapes, then the closed shape is directly determined as the bottom-level closed shape without the need for additional sorting and filtering.

[0097] Finally, after determining the bottom closed shape, the map area corresponding to the bottom closed shape is identified as the bottom map area. Then, the background music configuration information corresponding to the bottom map area is retrieved, and the current background music is determined and played based on the background music configuration information.

[0098] Thus, in this embodiment, by first determining the internal and external states of closed graphics one by one, and then filtering the lowest-level internal graphics according to their hierarchy, the inner-layer priority rule of multi-level nested regions is transformed into a standardized determination step. This achieves accurate identification of the target's location and correct music matching in nested scenarios. Compared to the determination scheme for regions without hierarchy, the determination method based on internal and external states combined with hierarchical filtering naturally fits the spatial inclusion relationship of nested regions. It can stably and accurately lock the currently effective smallest region, avoiding music configuration conflicts between different levels of regions from the determination mechanism level, and to a certain extent, preventing the problem of large-scale background music incorrectly covering small-scale exclusive music. At the same time, the logic of determining each graphic is clear and controllable, and the determination result has clear predictability. It can ensure that when the target virtual object moves within the nested region, the music switching always follows the inner-layer priority rule, effectively improving the matching degree between the regional music and the actual environment. It can adapt to complex multi-level nested scenarios, and to a certain extent enhances the spatial auditory immersion of players during exploration. This makes the regional music management logic more organized and facilitates the subsequent expansion and maintenance of map regions and music configurations.

[0099] In some embodiments provided in this application, the step of determining the positional state of the target virtual object relative to each closed shape based on the current position of the target virtual object includes: When the target virtual object leaves the edge of the first closed shape and enters the second closed shape based on its current position, the position state of the first closed shape is determined as the external state of the box, and the position state of the second closed shape is determined as the internal state of the box.

[0100] Specifically, in the regional music switching scenes of open-world games, when a target virtual object moves continuously between different regions, the regional determination mechanisms of relevant technical solutions often rely on single boundary detection to trigger state changes. This can easily lead to situations where the state of leaving the old region is not cleared in time, or the state of entering the new region is not synchronized, resulting in delayed, overlapping, or mismatched music switching. Simultaneously, the collision-based determination of relevant technical solutions struggles to distinguish between boundary contact and complete region crossing, easily causing repeated state jumps at the junctions of adjacent regions, disrupting the smoothness of audio playback and reducing the player's spatial immersion experience. Based on the above problems, in some embodiments provided in this application, when it is confirmed that the target virtual object has left the boundary of the first closed shape and simultaneously entered the interior of the second closed shape based on its current position, the position state of the first closed shape is simultaneously updated to the external state, and the position state of the second closed shape is updated to the internal state. Through the paired switching of leaving and entering states, the consistency and continuity of state determination during the region transition process are ensured.

[0101] In some embodiments, the first closed shape can be understood as a closed shape that the target virtual object is about to leave or has just left during the movement of the target virtual object, corresponding to the map area where the target virtual object was located before the movement.

[0102] In some embodiments, the second closed shape can be understood as a closed shape that the target virtual object is about to enter or has just entered during the movement of the target virtual object, corresponding to the map area where the target virtual object is located after the movement.

[0103] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to... Figure 3 And the following exemplary description, namely: During gameplay, the electronic device acquires the current position coordinates of the target virtual object in real time, while simultaneously recording the position coordinates of the previous frame as a comparison benchmark. For each closed shape, the position assignment results of the current frame and the previous frame are compared to determine whether the position state of the target virtual object has changed.

[0104] In addition, during the position determination process, if the coordinates of the target virtual object are only at the boundary of the closed shape, the position state of the previous moment remains unchanged. The corresponding position state will only be updated when the target virtual object completely enters or completely leaves the closed shape, so as to avoid frequent state jitter at the boundary of the region.

[0105] When it is detected that the position coordinates of the target virtual object in the previous frame are inside the first closed shape and the position coordinates of the target virtual object in the current frame are outside the first closed shape, and at the same time the position coordinates of the target virtual object in the previous frame are outside the second closed shape and the position coordinates of the target virtual object in the current frame are inside the second closed shape, that is, when the position of the target virtual object moves from the inner range of the first closed shape to outside the boundary of the first closed shape, and at the same time the coordinates fall into the inner range of the second closed shape, it is determined that the target virtual object has completed the process of leaving the first closed shape and entering the region of the second closed shape.

[0106] At this moment, the electronic device immediately updates the position status of the first closed shape and the second closed shape, switching the position status of the first closed shape from the inside state to the outside state, marking that the target virtual object has completely left the map area corresponding to the first closed shape, and switching the position status of the second closed shape from the outside state to the inside state, marking that the target virtual object has completely entered the map area corresponding to the second closed shape.

[0107] Furthermore, in some embodiments, the updates to the departure and entry states need to be completed synchronously to avoid anomalies such as state vacuum or state overlap.

[0108] Finally, after the position status of the closed graphic is updated, the corresponding audio configuration changes are executed synchronously.

[0109] Furthermore, in some embodiments, the remaining closed shapes that have not undergone state changes are kept in their original state.

[0110] Thus, in this embodiment, by acquiring the current position of the target virtual object in real time and determining the behavior of the target virtual object crossing the boundary of the closed shape based on the position change, when the target virtual object leaves the edge of the first closed shape and enters the interior of the second closed shape, the position states of the first and second closed shapes are updated synchronously. The closed shape that has moved out is set to the external state of the box, and the closed shape that has moved in is set to the internal state of the box. This achieves synchronous switching of the internal and external states of the closed shapes during the region movement, providing a reliable state basis for subsequent bottom-level region determination and music playback. Compared with the scheme that relies on edge collision to trigger region switching, the synchronous state update mechanism based on position determination can match the actual spatial displacement of the target virtual object, avoiding the problem of state judgment errors caused by edge collision omissions or misjudgments to a certain extent. It effectively reduces the music state chaos and mis-triggered problems at the region boundary, and the synchronous update logic ensures the consistency of the state switching sequence when entering and leaving the region, avoiding the occurrence of intermediate abnormal states where the old region has not exited or the new region has not taken effect. To a certain extent, it improves the smoothness and accuracy of region music switching and reduces the probability of music jumps and mismatches.

[0111] Furthermore, the position-based state update method can adapt to multi-level nested regional structures. Even when the target virtual object continuously traverses multiple regions, it can still stably maintain the correct state of each closed graphic, which to a certain extent ensures the accuracy of the judgment results of the lowest-level region. This ensures that the background music always matches the player's current spatial environment, optimizes the auditory immersion experience of exploring the open world, and makes the control logic of regional music clearer and more controllable, improving the efficiency of configuration debugging and content expansion.

[0112] In some embodiments provided in this application, the step of determining the positional state of the target virtual object relative to each closed shape based on the current position of the target virtual object includes: In response to a target game event associated with the target virtual object, determine the third closed shape in which the target virtual object is currently located based on the current position of the target virtual object and the position of each closed shape; The position of the third closed figure is defined as the internal state of the box, and the position of all other closed figures except the third closed figure is defined as the external state of the box.

[0113] Specifically, in the regional music switching scenarios of open-world games, existing edge collision-based detection schemes only adapt to scenarios where the target virtual object moves continuously. When game events such as logging in, logging out, or teleporting occur, causing instantaneous position changes, the target virtual object can directly appear inside the closed shape without crossing its boundary. Edge collision detection cannot capture this entry action, failing to trigger the corresponding state update and music switch. This results in the background music remaining in the old region's state, which is inconsistent with the target virtual object's current actual environment. Furthermore, instantaneous displacement may leave state residue in multiple old regions, further exacerbating state confusion, disrupting the game's audio immersion, and increasing the complexity of adapting to special scenarios during development. Based on these issues, in some embodiments provided in this application, when target game events such as logging in, logging out, or teleporting are triggered, the current position of the target virtual object is directly determined based on its current location. The position state of the third closed shape is then set to the "inside the box" state, while the position states of all other remaining closed shapes are uniformly set to the "outside the box" state. This one-time full state reset eliminates the need for edge collision detection, ensuring that the music state is consistent with the current position.

[0114] In some embodiments, a target game event can be understood as a game event that causes a sudden change in the position of a target virtual object, such as online, offline, or teleportation game scenarios. In such game scenarios, the target virtual object does not pass through the edge path of a closed graphic and cannot trigger a state change through edge collision.

[0115] In some embodiments, going online can be understood as the process by which a player starts the game and enters a virtual scene, at which point the target virtual object will be directly generated at the specified location.

[0116] In some embodiments, "offline" can be understood as the process of a player exiting the game and leaving the virtual scene, at which point the target virtual object will be removed from the scene.

[0117] In some embodiments, teleportation can be understood as a function in a game that allows a target virtual object to instantly move from one location to another through a specific mechanism, without going through an intermediate path.

[0118] In some embodiments, the third closed graph can be understood as the lowest closed graph where the target virtual object is actually located, determined based on its current position after a special game event such as a target game event is triggered.

[0119] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to... Figure 3 And the following exemplary description, namely: Electronic devices monitor various game events related to the target virtual object in real time. When a target game event such as logging in, logging out, or teleporting is detected, the regular frame-by-frame position comparison and determination is paused, and the current coordinate information of the target virtual object after the event is completed is directly obtained.

[0120] Subsequently, the electronic device traverses all closed graphics, compares the current position information of the target virtual object after the event is directly acquired with the spatial range of all closed graphics one by one, filters out all closed graphics containing the current position information, and selects the lowest level closed graphics from all the matched closed graphics according to the rule of hierarchy from low to high, and determines it as the third closed graphics where the target virtual object is currently located, that is, the lowest level map area that is currently effective.

[0121] After completing the positioning of the closed shape, the electronic device performs a batch reset of the position status of all closed shapes, marks the position status corresponding to the third closed shape as the internal state of the box, indicating that the target virtual object is currently in the map area covered by the third closed shape, and marks the position status of all other closed shapes except the third closed shape as the external state of the box, clearing all old state residues at once to ensure the accuracy of the state set.

[0122] For example, taking the teleportation scenario as an example, when a player teleports from point A to point B in the open world, the target virtual object is located in the closed shape corresponding to the far sea area before teleportation, and is in the state of being inside the box. The background music corresponding to the far sea area is played. After teleportation, the target virtual object instantly appears in the closed shape corresponding to the island area.

[0123] At this time, in response to the transmission event, the electronic device directly determines that the target virtual object is located within the third closed shape corresponding to the island area based on its current position, sets the third closed shape as the internal state of the box, and sets all other closed shapes as the external state of the box. The music is synchronously switched to the content corresponding to the island area to ensure that the state is consistent with the actual position.

[0124] After the status update is completed, the electronic device directly performs a complete music configuration decision and switch based on the latest location status, and outputs background music that matches the current map area.

[0125] After the special target game event is processed, the electronic device exits the special scene determination process, resumes the normal position determination logic, and then responds normally to the movement behavior of the target virtual object.

[0126] In addition, in cross-world teleportation scenarios, electronic devices will wait for the new scene to load before executing the above judgment process. Based on the position of the target virtual object in the new world, the position status of all closed graphics will be re-determined to ensure that calculations can be performed based on the closed graphics data of the new scene, thus ensuring the consistency between the music status and the area of ​​the new world.

[0127] Thus, in this embodiment, by responding to special target game events such as going online, going offline, and teleporting, the system directly determines all closed graphics in which the target virtual object is located based on its current position. Simultaneously, it resets and updates the position states of all closed graphics, setting the closed graphics containing the target virtual object as the internal state of the box and the remaining closed graphics as the external state. This achieves rapid calibration of the regional music state in instantaneous displacement scenarios, providing accurate state information for subsequent bottom-level region determination and music playback. Compared to solutions that rely on edge collisions to trigger region switching, the event-triggered direct position determination mechanism can fully cover special scenarios of non-continuous displacement of the target virtual object. It can complete state calibration without passing through the edge boundaries of closed graphics, thus solving, to some extent, the problem of incorrect music state caused by the lack of edge collisions in teleportation, online / offline scenarios, and effectively avoiding abnormal situations such as music not switching, mismatched music, or old state residue. Furthermore, the method of directly updating all graphic states in batches based on the current position can quickly complete full state synchronization after a special event occurs, shortening the state calibration time, avoiding multi-state chaos, and improving the response speed and stability of regional music switching to a certain extent.

[0128] Furthermore, the direct location determination based on event triggers provides a fallback mechanism for special displacement scenarios. It can adapt to multi-level nested regional structures, ensuring that no matter which level of the region the target virtual object instantly appears in, it can accurately determine all corresponding closed graphics and update their states. To a certain extent, this improves the fit between the background music and the current spatial environment, optimizes the auditory immersion experience of exploring the open world, reduces the probability of audio anomalies in special scenarios, and enhances the robustness and reliability of regional music playback.

[0129] In some embodiments provided in this application, the step of determining the map region corresponding to the bottommost closed graphic as the bottommost map region includes: When the number of bottom-level closed figures is one, the map region corresponding to the bottom-level closed figure is determined as the bottom-level map region; and / or, When the number of bottom-level closed graphics is greater than one, the map region corresponding to the bottom-level closed graphics with the highest graphic weight is determined as the bottom-level map region. The graphic weight is obtained by pre-configuring the closed graphics.

[0130] Specifically, in a multi-layered nested regional music determination system, when multiple closed graphics at the bottom layer exist and their ranges overlap, relying solely on layer hierarchy cannot determine a unique effective unit. Related technical solutions lack conflict resolution rules for overlapping scenarios at the same layer, leading to the problem of multiple bottom-layer region music configurations being effective simultaneously or conflicting with each other, easily causing chaotic music switching and mismatched playback content. To solve these problems, designers or developers need to specifically adjust the region shape to avoid overlapping regions at the same layer and prevent music configuration conflicts, limiting the flexibility of region division and making it difficult to adapt to the complex terrain and point-of-interest layouts in large-scale world maps, increasing the difficulty and workload of region configuration. Based on the above problems, in some embodiments provided in this application, when there is only one bottom-layer closed graphic, the map region corresponding to the bottom-layer closed graphic is directly determined as the bottom-layer map region. When the number of bottom-layer closed graphics is greater than one, priority is determined based on the graphic weights pre-configured for each closed graphic, and the map region corresponding to the bottom-layer closed graphic with the highest weight is determined as the final effective bottom-layer map region. This weight mechanism resolves configuration conflicts caused by overlapping graphics at the same layer.

[0131] In some embodiments, graphic weight can be understood as a priority value pre-configured for each closed graphic, used for conflict resolution when multiple graphics overlap at the same level. The higher the weight value, the higher the effective priority of the configuration.

[0132] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please also refer to... Figure 3 , Figure 4 And the following exemplary description, Figure 4 This is a schematic diagram illustrating the weighting of overlapping multiple map regions at the same level, provided in an embodiment of this application. After determining the position and state of all closed shapes, the electronic device first filters out all closed shapes that are inside the box, and then extracts the group of closed shapes with the lowest level as a candidate set. All closed shapes in the candidate set belong to the same lowest level.

[0133] Subsequently, the electronic device determines the number of closed shapes in the candidate set. If the number is one, that is, the number of the lowest level closed shapes obtained by screening is one, it indicates that there are no overlapping closed shapes at the same level. The map area corresponding to the closed shape is directly determined as the lowest level map area where the target virtual object is currently located.

[0134] If the number of closed shapes in the candidate set is greater than one, meaning the number of bottom-level closed shapes obtained through screening is greater than one, it indicates that the current target virtual object is simultaneously within the overlapping range of multiple regions at the same level. The electronic device reads the pre-configured graphic weight value of each candidate closed shape, sorts all candidate closed shapes according to their weight values, selects the closed shape with the highest graphic weight value, and determines the map region corresponding to the closed shape as the final effective bottom-level map region.

[0135] In some embodiments, the graph weight can be any integer between 0 and 99, with higher values ​​indicating higher priority. The default value is 0.

[0136] Furthermore, in some embodiments, if multiple candidate closed shapes have the same graphic weight value, the audio parameters configured for multiple candidate closed shapes with the same graphic weight value are completely identical. Switching to the same state in the same state group will not cause a change in playback. Regardless of which one is selected, the final music effect is the same. The electronic device can choose any one to execute without causing a state conflict.

[0137] In some embodiments, closed shapes with the same weight are often used to combine and splice complex-shaped regions, so as to wrap a special spatial range by superimposing multiple closed shapes. For example, for special spaces such as cones and rings, multiple simple polygons can be superimposed with the same weight, which improves the flexibility of region design and adapts to the region division requirements of complex terrain.

[0138] Finally, after determining the bottom-level map area, the electronic device retrieves the background music configuration information corresponding to the bottom-level map area, determines the background music that should be played based on the configuration content, and completes the audio output.

[0139] Thus, in this embodiment, by pre-setting differentiated weight parameters for closed graphics, when multiple closed graphics at the same level overlap and multiple bottom-level closed graphics are simultaneously selected, the weight is used as a unified adjudication criterion, and the region corresponding to the graphic with the highest priority is selected as the effective region. This achieves automatic adjudication of music configuration in overlapping regions, ensuring correct switching of regional music in multi-level nesting and overlapping scenarios. Compared to the peer-level region judgment scheme without weight priority, the pre-configured weight adjudication mechanism can resolve music configuration conflicts caused by overlapping regions at the rule level. Designers or developers do not need to deliberately arrange closed graphics to avoid overlapping areas, which reduces the difficulty of region division in complex terrain to a certain extent, improves the flexibility and freedom of music region planning, and the flexibly preset weight feature allows designers or developers to accurately control the effective priority of overlapping regions, specifying that music in specific regions should take priority according to design requirements, avoiding the problem of music jumping randomly in overlapping regions, and improving the stability and predictability of regional music switching to a certain extent.

[0140] In addition, the branch processing logic of direct mapping of single graphics and weight judgment of multiple graphics can fully cover all scenes of single and overlapping areas, which to a certain extent ensures the universality and integrity of the judgment logic, can adapt to the complex and diverse regional layouts in the large world map, optimizes the auditory immersion experience of players during the exploration process, and facilitates the expansion and iteration of map areas and music configurations in the future.

[0141] In some embodiments provided in this application, the step of creating a closed graphic corresponding to each map region includes: In response to the triggering operation of placing an audio region editor component in the game scene editor, an audio region editor component corresponding to the map region is generated in the game scene editor. In response to a triggering operation that places multiple nodes in the game scene editor, generate multiple target nodes in the game scene editor that correspond to the map area; Based on the target plane formed by multiple target nodes, generate closed graphics corresponding to the map regions respectively.

[0142] Specifically, in the development process of regional music in open-world games, the scene editors of relevant technical solutions mostly use general Entity components to draw regional judgment carriers, which only support simple geometric shapes such as spheres, rectangles, and capsules. This is insufficient to fit irregular terrain contours such as islands and coastlines. To cover the entire playable area, the graphic range must be enlarged, resulting in severe distortion of the judgment area and frequent false music triggers. Furthermore, some editors provide incomplete polygon drawing functions and lack dedicated audio region editing entry points, requiring manual attachment of audio components to graphics, making the process cumbersome and inefficient. In addition, the simple graphic creation method cannot support the massive and complex regional division requirements of open-world maps, restricting the development iteration speed and accuracy of the regional music system. Based on the above problems, in some embodiments provided in this application, a dedicated audio region editor component is provided in the scene editor as a graphic carrier. The region outline is delineated to form a target plane by placing target nodes point by point. Then, a closed graphic matching the corresponding map region is generated based on the target plane, realizing the visual creation of arbitrary shape judgment units.

[0143] In some embodiments, a game scene editor can be understood as a development tool for building and editing game virtual scene content, supporting the placement and adjustment of scene elements and the configuration of their attributes.

[0144] In some embodiments, the audio region editor component can be understood as a functional component in the scene editor specifically used for creating and configuring audio regions. It integrates graphics drawing and audio configuration functions, comes with an audio configuration panel by default, and can be recognized by logic without the need to attach an additional audio recognition component.

[0145] In some embodiments, the target node, i.e. the polygonal outline node, can be understood as the control point that constitutes the outline of the closed shape. The shape and range of the closed shape can be changed by adjusting the position of the node.

[0146] In some embodiments, the target plane, i.e. the closed polygonal plane, can be understood as a closed planar figure formed by connecting multiple target nodes in sequence, which is the basis for generating a three-dimensional closed figure.

[0147] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to the following exemplary description: In the process of creating a closed shape corresponding to each map region, when designers or developers create map regions in the game scene editor, they first select the audio region editor component from the component library and place it in the currently edited scene.

[0148] After placement, the editor automatically generates a component instance corresponding to the target map area. The audio region editor component is the editing unit for audio regions, integrating graphic drawing and audio configuration functions. It can be recognized by region determination without the need for an additional audio recognition component.

[0149] After entering the component's editing mode, designers or developers can perform trigger operations to place multiple nodes in the scene editor. Typically, they will first place the starting node and then switch to a top-down view for subsequent drawing.

[0150] In some embodiments, using a top-down perspective can avoid visual offset caused by the display order of different layers, ensure that all target nodes fall on the same horizontal plane, align the drawn area with the map terrain, and improve the accuracy of the drawing.

[0151] Designers or developers can click along the actual terrain boundaries of the map area to place target nodes. Each click generates a target node corresponding to the target map area.

[0152] Furthermore, in some embodiments, target nodes serve as contour control points for closed graphics. Designers or developers can arrange these nodes point by point along the terrain boundary, ensuring they conform to the terrain contour and providing a foundation for high-precision regional graphics. Simultaneously, the more target nodes there are and the more refined their arrangement, the more closely the generated graphics will fit the actual regional boundaries.

[0153] The electronic device connects all target nodes sequentially to form the target plane, connects adjacent nodes sequentially according to the node placement order to form the boundary edges of the polygon, and performs closure verification between the beginning and end of the outline to generate a closed graphic that matches the corresponding map area.

[0154] Specifically, after the designer or developer places all the target nodes in the scene editor, the electronic device reads the node list and connects adjacent nodes with straight line segments in the order they were placed. For example, the first node is connected to the second node to form the first edge, the second node is connected to the third node to form the second edge, and so on, until the last node is connected to the first node to form a complete closed polygon outline.

[0155] In addition, during the connection process, the electronic device records the start and end coordinates of each edge in real time and maintains an ordered vertex list to ensure that the connection order of the edges is strictly consistent with the placement order of the nodes.

[0156] In some embodiments, after all adjacent nodes are connected, the electronic device can also perform a closure check on the polygon outline, checking whether the last node coincides with the first node, or whether there is a gap between the first and last nodes. If the first and last nodes do not completely coincide, the electronic device automatically draws a connecting line segment between the first node and the last node operated on, so that the target plane forms a complete closed polygon.

[0157] For example, if the map area is a regular shape, the designer or developer places four target nodes along the area boundary in a clockwise direction, with each node corresponding to one of the four vertices of a convex quadrilateral. The electronic device connects the first node to the second, the second to the third, the third to the fourth, and the fourth to the first, forming four boundary edges, according to the node placement order. After the closure check passes, the target plane becomes a closed convex quadrilateral shape, whose outline perfectly matches the boundary of the regular-shaped map area.

[0158] For example, if the map area represents an irregular island coastline with winding boundaries, including multiple bays and headlands, designers or developers can place multiple target nodes sequentially along the actual coastline. The spacing between nodes can be adaptively adjusted according to the curvature of the coastline; that is, the node spacing can be increased where the coastline is straight and decreased where the coastline is sharply curved, to ensure the polygon edges fit the coastline. Electronic devices connect adjacent nodes sequentially according to the node placement order, forming a polygonal zigzag line along the coastline. When nodes are arranged along the concave bay boundary, the interior angle of the polygon formed between the concave vertices and adjacent vertices is less than 180 degrees. Electronic devices can directly connect these adjacent vertices according to the node order, naturally forming a concave polygonal closed shape with a concave boundary. The boundary of this concave polygonal closed shape matches the concave and convex shapes of the island's coastline, completely covering the playable area of ​​the island without additional processing.

[0159] In addition, in some embodiments, the electronic device also has a self-intersection detection and error prevention mechanism during the node connection process. When connecting adjacent nodes sequentially, if a newly generated edge is detected to intersect with an existing non-adjacent edge, the electronic device will provide a visual warning in the editing view, reminding the designer or developer to adjust the node position to avoid self-intersecting polygons affecting the accuracy of subsequent judgments. The designer or developer can drag or fine-tune the coordinate position of a specific node based on the warning information until the polygon outline no longer self-intersects and completely fits the terrain boundary.

[0160] In some embodiments, the position of the target node directly determines the outline shape of the closed shape, supports polygonal shapes with any number of sides, and can adapt to various complex terrain outlines.

[0161] Thus, in this embodiment, by using the audio region editor component within the scene editor as the drawing entry point, and constructing the regional planar outline by placing target nodes point by point, a closed graphic corresponding to each map region is ultimately generated. This achieves a visually controllable region graphic drawing process, providing a spatial determination carrier for music determination in multi-level map regions. Compared to solutions that only support simple geometric box shapes, the node-based planar drawing method supports the generation of closed graphics with arbitrary outline shapes, which can fit the actual boundaries of irregular terrains such as islands and seas. It eliminates the need to deliberately expand the graphic range to cover the entire play area, effectively solving the problem of regional range distortion caused by the mismatch between regular shapes and irregular terrains, and to a certain extent improving the fit between music trigger boundaries and actual play areas. At the same time, the editor component, combined with the node placement operation mode, is intuitive and easy to use. Designers or developers can flexibly arrange node positions according to the terrain outline, which to a certain extent reduces the difficulty of region division in complex terrains and improves the production efficiency of music regions.

[0162] Furthermore, the method of generating closed graphics based on the target plane ensures that the graphic space range completely corresponds to the map area, naturally adapts to multi-level nested area structures, provides an accurate spatial basis for subsequent location determination and music switching, facilitates subsequent area adjustment and configuration iteration, reduces the maintenance cost of the large world music area to a certain extent, and improves the efficiency of the overall development process.

[0163] In some embodiments provided in this application, the step of generating closed graphics corresponding to map regions based on a target plane formed by multiple target nodes includes: If the target plane formed by multiple target nodes is closed, the height of the target plane is configured to obtain a three-dimensional box, wherein the top and bottom of the three-dimensional box are planes and the sides are closed polygons. The 3D box is defined as a closed shape corresponding to a map region.

[0164] Specifically, in large-scale game scenes, there are often complex vertically layered structures such as varying terrain, multi-story buildings, and underground spaces. Plane graphics can only perform two-dimensional coordinate determination, failing to distinguish areas at different heights, easily leading to accidental music triggering in the vertical direction. Furthermore, the area creation tools in related technical solutions often lack standardized 3D area generation capabilities, making it difficult to quickly create determination units that fit the terrain height. This results in insufficient accuracy and low efficiency in 3D area division, failing to meet the increasingly complex design requirements of large-scale game scenes. Based on the above problems, in some embodiments provided in this application, for target planes that have formed closed outlines, a 3D box is generated as a closed graphic by configuring height parameters. The top and bottom of the 3D box are parallel planes, and the sides are composed of closed polygons, completely enclosing the 3D spatial range of the corresponding map area, thus serving as the spatial carrier for area determination.

[0165] In some embodiments, a three-dimensional box can be understood as a three-dimensional determination unit with a top and bottom parallel plane and sides enclosed by closed polygons, which can cover the horizontal and vertical spatial range of the corresponding map area and can be used to detect whether the target virtual object is within the three-dimensional spatial range of the corresponding map area.

[0166] In some embodiments, height configuration can be understood as a parameter setting used to define the vertical range of a three-dimensional box, which determines the height span of the map area in space, and generates a three-dimensional volume by stretching a closed plane by setting a height value.

[0167] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to the following exemplary description: In the process of generating a closed graph based on target nodes, the electronic device first verifies whether the target plane formed by connecting multiple target nodes in sequence is in a closed state.

[0168] If the first and last nodes of the target plane are completely connected to form a closed contour, it is determined to be a closed plane.

[0169] At this point, the electronic device configures the target plane at a certain height and stretches the plane vertically to generate a three-dimensional box with spatial volume, namely the audio area box. The top and bottom of the three-dimensional box are parallel planes, and the outlines of the top and bottom are consistent with the shape of the target plane. The sides are enclosed by closed polygons formed by connecting corresponding nodes, and the whole is a closed prismatic three-dimensional spatial structure.

[0170] For example, electronic devices can provide a height configuration option in the properties panel, allowing designers or developers to input specific height values ​​and define the spatial range of the area in the vertical direction. After the designer or developer inputs the height value, the electronic device uses the target plane as a reference plane and stretches upwards by the specified height in the vertical direction to generate a three-dimensional box with a parallel top and bottom surface and sides formed by stretching polygonal edges.

[0171] After the 3D box is generated, the electronic device defines the 3D box as a closed shape of the corresponding map area, which serves as the entity unit for subsequent spatial determination. The spatial range of the 3D box can completely cover the horizontal boundary and vertical height of the corresponding map area, and can match the area boundaries of 3D scenes such as terrain and buildings.

[0172] Finally, after the closed shape is created, the bottom closed shape to which the target virtual object belongs is determined based on the three-dimensional coordinates of the target virtual object, the bottom map area is mapped, and then the corresponding background music configuration information is matched to finally complete the background music playback control.

[0173] In one embodiment, when determining the player's position, i.e. the current position of the target virtual object, it is necessary to verify both the horizontal coordinate and the vertical height. Only when both the horizontal coordinate and the vertical height fall within the range of the three-dimensional box will it be determined that the player is currently inside the three-dimensional box.

[0174] In addition, in some embodiments, designers or developers can flexibly adjust the height value according to the actual height requirements of the area to adapt to various scenarios from flat land to high mountains.

[0175] Thus, in this embodiment, by configuring the height of a closed polygonal plane, a three-dimensional box with a complete three-dimensional spatial range is generated as the determination carrier for the music area. This achieves a three-dimensional music area division adapted to the three-dimensional virtual scene, providing a reliable spatial determination basis for music switching in multi-level map areas. Compared to solutions that only support regular geometric boxes such as spheres and cuboids, the three-dimensional box generated based on the polygonal plane can perfectly fit the natural boundaries of various irregular terrains in the horizontal direction. There is no need to deliberately expand the box range to cover the entire play area, effectively solving the problem of music trigger range distortion caused by the mismatch between regular shapes and complex terrains. At the same time, the three-dimensional box has a clear vertical height boundary, which can accurately limit the effective range of music in three-dimensional space, avoiding the false triggering problem that occurs in pure planar determination in scenarios with height differences, and improving the accuracy and spatial matching of regional music triggering to a certain extent.

[0176] Furthermore, the generation method combining planar node arrangement with height configuration makes the operation process intuitive and controllable. Designers or developers can quickly complete the construction of 3D music areas by referring to the scene terrain, which to some extent reduces the production threshold of music areas in three-dimensional scenes, improves the development efficiency of music configuration in the open world, and the spatial structure of the 3D box is clear and stable, with unified and reliable internal and external judgment logic. It can well adapt to multi-level nested area structures, which to some extent ensures the accuracy of area judgment results under different spatial levels, optimizes the auditory immersion experience of players in the process of exploring the 3D open world, facilitates subsequent area boundary adjustments and music configuration iterations, and reduces the overall cost of project development and later maintenance.

[0177] In some embodiments provided in this application, the step of generating closed graphics corresponding to map regions based on a target plane formed by multiple target nodes further includes: If the target plane formed by multiple target nodes is not closed, a connection is made between the first node of the target plane and the last node operated on to close the target plane.

[0178] Specifically, in the regional audio production process of open-world games, when designers or developers place nodes point by point along the terrain boundary to draw the region outline, it is easy for the first and last nodes to not connect, resulting in the generated target plane being in an unclosed state. Related technical solutions' editing tools cannot handle unclosed polygons, requiring designers or developers to repeatedly backtrack and adjust the positions of the first and last nodes to manually close the outline, a cumbersome and inefficient process. Furthermore, manual closure is prone to node overlap or gaps, affecting the spatial accuracy of the final 3D box, increasing the risk of subsequent errors, and increasing debugging and maintenance costs. Based on the above problems, in some embodiments provided in this application, when it is detected that the target plane composed of target nodes does not form a complete closed outline, a connecting line segment is automatically generated between the first node and the last node operated on in the polygonal plane to fill the outline gap, making the target plane closed. This completes the closure process without manual alignment, providing an effective and complete basic outline for the subsequent generation of the 3D box.

[0179] In some embodiments, the first node can be understood as the first target node placed when drawing the polygon outline, which is the starting control point of the polygon outline and the starting placement point in the corresponding area drawing process.

[0180] In some embodiments, the last node operated on can be understood as the last target node placed or edited when drawing the polygon outline, which is the current termination control point of the polygon outline.

[0181] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to the following exemplary description: After the designer or developer completes the node placement and triggers the generation of the 3D box, the electronic device first performs a closure check on the target plane formed by the sequential connection of multiple target nodes to determine whether the plane contour is connected end to end to form a complete closed loop.

[0182] If the verification result shows that the target plane is in a closed state, then the height of the target plane is directly configured to generate a three-dimensional box as the closed shape of the corresponding area, that is, the closed shape of the administrative area.

[0183] If the verification result shows that the target plane is not closed and there are gaps between the first and last nodes, the automatic closure process is triggered.

[0184] The electronic device locates the first node and the last node of the polygonal plane. Taking the coordinates of the first node as the starting point and the coordinates of the last node as the ending point, it automatically configures a connecting line segment between the two nodes to fill the gaps in the contour, so that the entire target plane forms a complete closed polygon.

[0185] Furthermore, in some embodiments, the automatically configured connecting line segments between the first node and the last operation node have the same properties as other manually drawn edge polygon plane edges, together forming the polygonal outline of the closed point, which will not have a different impact on subsequent height stretching and spatial determination.

[0186] After the automatic completion is completed, the electronic device uses the completed closed plane as a reference and performs a height stretching operation on the completed target plane to generate a three-dimensional box with a parallel top and bottom plane and closed polygons on the sides. This three-dimensional box is then identified as the closed shape of the corresponding map area, namely the audio area box.

[0187] Thus, in this embodiment, by automatically adding start and end lines to unclosed node planes to complete the contour closure, an automatic completion mechanism is achieved in the music area drawing process. This lowers the threshold for drawing 3D boxes and ensures the integrity and standardization of the closed graphic contour. Compared to solutions that require manual alignment of start and end nodes to generate a closed graphic, the automatic closure mechanism eliminates the need for operators to accurately match the positions of start and end nodes, effectively simplifying the area drawing operation steps, reducing the workload of manual adjustments, and improving the production efficiency of the music area to a certain extent. At the same time, the automatically generated lines ensure that the planar contour is always in a completely closed state, avoiding graphic gaps caused by drawing omissions to a certain extent. This ensures that the subsequently generated 3D box has continuous and complete boundaries, guarantees the accuracy of spatial interior and exterior determination, and prevents abnormal music triggering or non-triggering caused by area determination loopholes.

[0188] In addition, the automatic closing feature can adapt to drawing various irregularly shaped areas, ensuring to a certain extent that even if the operator quickly arranges the nodes without completing the connection between the beginning and the end, a qualified closed shape can still be generated stably. This improves the fault tolerance and smoothness of the drawing process, thereby reducing the difficulty of creating music areas in complex terrains to a certain extent. It also makes it easier for designers to quickly iterate and adjust the area boundaries, optimizing the overall development process of the large-scale music configuration.

[0189] In some embodiments provided in this application, the step of creating a closed graphic corresponding to each map region further includes: In response to node adjustment operations on the 3D box, the coordinates of the target node are adjusted according to the node adjustment operation to change the shape of the 3D box.

[0190] Specifically, in the iterative maintenance process of regional audio in open-world games, the generated 3D boxes often lack flexible shape adjustment capabilities. When terrain boundaries are modified, or the area range needs fine-tuning, most of the production tools in related technical solutions do not support direct editing of the generated judgment graphics. Designers or developers can only delete the original boxes and redraw all nodes, which is cumbersome, inefficient, and increases maintenance costs. In addition, redrawing makes it difficult to ensure consistency with the original area, easily leading to boundary deviations, affecting the accuracy of area judgment, and consequently causing mismatches or omissions in music switching, reducing the overall audio immersion experience. Based on the above problems, in some embodiments provided in this application, when it is necessary to modify the range and outline of the 3D box, designers or developers perform node adjustment operations, directly adjusting the coordinate position of the corresponding target node. The electronic device synchronously updates the overall shape of the 3D box, realizing outline fine-tuning without redrawing the entire area graphics, effectively improving the efficiency and accuracy of area modification, and can quickly adapt to terrain changes or detail optimizations.

[0191] In some embodiments, node adjustment operation can be understood as a coordinate modification operation performed on the target node of the 3D box, which can be used to adjust the shape and spatial range of the 3D box, and supports two types of operations: fine-tuning of individual nodes and adjustment of overall parameters.

[0192] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to the following exemplary description: After the 3D box is created, if it is necessary to adjust the spatial range and outline shape of the 3D box, designers or developers can perform node adjustment operations on the target 3D box, select the target node to be modified, and adjust the coordinate position of the target node.

[0193] For example, in some embodiments, designers or developers can enter the node editing mode of the electronic device at any time. After selecting the 3D box that needs to be adjusted, all target nodes of the 3D box will be displayed in the graphical user interface as operable control points, with each target node corresponding to a vertex of the polygon outline.

[0194] In some embodiments, designers or developers can adjust the spatial coordinates of any target node by dragging with the mouse or entering coordinate values ​​in the properties panel.

[0195] The editor responds to the target node adjustment operation and synchronously updates the spatial coordinates of the corresponding target node. The change in the node position will be synchronously transmitted to the structure of the entire 3D box. The two sides connecting the node will be synchronously updated in position. The top and bottom planar contours will deform as the node position changes, and the closed polygons on the sides will also be adjusted accordingly, ultimately achieving the modification of the overall shape of the 3D box.

[0196] In addition, in some embodiments, designers or developers can preview the shape changes of the 3D box in real time through a graphical user interface until the outline perfectly fits the terrain requirements.

[0197] In addition, some embodiments support batch translation of multiple node points, in addition to adjusting individual target nodes, to achieve overall movement of local contours. Furthermore, during target node adjustment, all configured audio parameters are fully preserved and will not be lost due to shape modification, eliminating the need for reconfiguration.

[0198] Understandably, modifying the shape of the 3D box does not affect the configured audio parameters, avoiding repetitive audio configuration work and further reducing maintenance costs.

[0199] After the adjustment is completed, the 3D box will still serve as a closed shape for the corresponding map area and continue to perform the function of spatial determination.

[0200] Thus, in this embodiment, by supporting the adjustment of the coordinates of the target nodes of the 3D box to modify the box outline, flexible adjustment of the music area boundary is achieved, allowing the shape of the 3D box to be continuously iteratively optimized to match the actual terrain requirements. Compared with regular geometric box solutions with fixed shapes that can only be scaled and displaced as a whole, the shape adjustment method based on node coordinates can fine-tune the local boundaries of the box, optimizing the boundary fit without redrawing the entire area. This reduces the operational cost of area shape correction to a certain extent. Furthermore, designers or developers can adjust the node positions one by one according to the actual terrain, so that the outline of the 3D box highly matches the natural boundaries of irregular terrains such as islands, mountains, and seas. This avoids the problem of music triggering range exceeding or not fully covering due to rigid shapes, and improves the accuracy of music area boundaries and scene adaptability to a certain extent.

[0201] Furthermore, the node-based adjustment method is intuitive and controllable, allowing for rapid iteration and modification of area boundaries during debugging. This shortens the refinement cycle of music areas and improves the development efficiency of open-world music configuration. Simultaneously, the flexible shape adjustment capability adapts to various complex terrain layouts, ensuring that ideal judgment ranges can be achieved through node adjustments in both multi-layered areas with rich nesting and long, narrow, and winding shapes. This, in turn, guarantees the accuracy and stability of area judgment, optimizes the player's auditory immersion experience during open-world exploration, facilitates subsequent content updates and area adjustments, and reduces the project's later maintenance costs.

[0202] In some embodiments provided in this application, the target background music configuration information includes background music identification information and background music sound effect parameters.

[0203] Specifically, in the regional music system of open-world games, the background music configuration of related technical solutions usually only includes the location information of music resources, lacking an independent dimension for sound effect control. Different geographical regions have different environmental atmospheres, and simply changing music tracks is insufficient to fully reflect the spatial characteristics and environmental atmosphere of a region, resulting in a lack of audio immersion. However, adjusting music volume, reverb, filtering, and other effects often requires modifying the audio middleware's project files, making it impossible to directly link with the regional determination mechanism. This cumbersome adjustment process and long iteration cycle make it difficult to adapt to the differentiated audio design needs of the vast number of regions in an open-world game, limiting the richness of regional music expression. Based on the above problems, in some embodiments provided in this application, the composition of the target background music configuration information is structurally divided into two categories: background music identification information and background music sound effect parameters. Both are bound to the corresponding map region and take effect synchronously with the regional determination result, realizing differentiated customization of music content and auditory effects for different regions.

[0204] In some embodiments, background music identification information, i.e. audio event identification, can be understood as tagging information used to index and locate background music resources, such as audio event names, resource numbers in music tables, etc.

[0205] In some embodiments, background music sound effect parameters, i.e. real-time audio control parameters, can be understood as a set of various numerical parameters used to control the playback effect of background music. These parameters can change the volume, reverberation intensity, filter cutoff frequency, channel balance, and other auditory effects of the music, thus determining the final auditory quality of the music.

[0206] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to the following exemplary description: When configuring audio, complete target background music configuration information is pre-configured for each map area. In this embodiment, the target background music configuration information may include two categories: background music identification information and background music sound effect parameters.

[0207] The first category is background music identification information, which serves as a unique index marker for audio resources. In some embodiments, two configuration modes are supported: an event mode, where the audio event name is directly entered as the identifier; and a number mode, where the resource identifier (Identifier, ID) from the music table is entered as the identifier. Electronic devices can locate the corresponding background music resource from the audio resource library using the background music identification information, thus completing the loading and playback scheduling of the resource.

[0208] The second category is background music sound effect parameters, which cover various adjustable auditory attributes during music playback, including volume level, filter cutoff frequency, reverberation intensity, spatial effect ratio, etc. These parameters can directly affect the background music being played and change the final listening experience of the music.

[0209] During configuration, the identification information and effect parameters corresponding to entering and leaving the area can be set in the configuration panel of the audio area. When the target virtual object enters the corresponding map area, the electronic device synchronously reads the background music configuration information of the map area. On the one hand, it calls up the corresponding audio resources and plays them according to the background music identification information to complete the track switching. On the other hand, it sets all real-time parameters to the target value according to the background music sound effect parameters, and synchronously completes the adjustment of the music playback effect, so that the content and listening experience of the music are adapted to the environmental atmosphere of the current area.

[0210] In addition, in some embodiments, the above-mentioned track switching and music playback effect adjustment operations need to be completed within the same frame to avoid the occurrence of misalignment.

[0211] In addition, in some embodiments, different map areas can be configured with independent background music identification information and background music sound effect parameters to achieve differentiated design of music content and sound effect style between different areas.

[0212] Thus, in this embodiment, by decomposing the background music configuration into two independent dimensions—background music identification information and background music sound effect parameters—layered configuration of regional music is achieved. This allows for customized auditory performance in different map areas, better matching the diverse scene styles and environmental atmospheres of the open world. Compared to regional music solutions that only support binding a single audio file, the configuration mode that includes sound effect parameters allows for further adjustment of playback effects such as volume, reverb, and frequency characteristics beyond the music track itself. This makes the music's sound deeply integrated with the spatial attributes and environmental characteristics of the area, enhancing the music's scene adaptability to a certain extent and improving the player's auditory immersion during exploration. Furthermore, the configuration structure that separates the identification and parameters improves the reuse efficiency of audio resources to a certain extent. The same background music can be paired with different sound effect parameters and applied to multiple areas with similar styles, eliminating the need to repeatedly create multiple versions of audio files and effectively reducing the production cost and storage space of audio resources.

[0213] In addition, the structured configuration format facilitates unified management and batch adjustments. Designers or developers can directly modify the sound effect parameters of a specified area without altering the music resources themselves, which to some extent shortens the iteration cycle of sound effect debugging and improves the development and maintenance efficiency of the world music system.

[0214] In some embodiments provided in this application, background music is played through game audio middleware. Each level of map area corresponds to a state group and a state, and the game audio middleware determines the playback mode of the background music through the state group and the state.

[0215] Specifically, in the regional music system of open-world games, the open-world map has a multi-layered nested regional structure. The music logic of different levels of regions needs to be layered and superimposed for effect. Directly switching regional music through play / stop events cannot match the hierarchical relationship of nested regions, easily leading to state conflicts and confusing switching logic. Furthermore, related technical solutions struggle to fully utilize the scheduling capabilities of audio middleware, resulting in bottlenecks in the smoothness and effect of music switching. The audio logic and regional structure are highly coupled, leading to high debugging and maintenance costs and an inability to efficiently adapt to complex multi-level regional architectures. Based on these problems, some embodiments provided in this application rely on game audio middleware to implement background music playback scheduling. Each level of map region corresponds to a state group and a state. Through a one-to-one mapping between regional levels and the audio state system, the audio middleware determines the background music playback method based on the currently active state group and state combination, constructing a hierarchical and standardized regional music control mechanism.

[0216] In some embodiments, the game audio middleware, namely Wwise audio middleware, can be understood as a middleware system specifically designed for game audio resource management, playback scheduling, and effect processing, possessing mature state control, mixing, and sound effect processing capabilities.

[0217] In some embodiments, a State Group can be understood as a collection of units in the audio middleware used to manage a class of mutually exclusive states. Only one state can be activated at a time within the same State Group, corresponding to one dimension of audio logic control.

[0218] In some embodiments, a state can be understood as an independent audio logic unit within a state group, corresponding to specific audio playback rules and effect configurations, which can change the output performance of the audio when activated.

[0219] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to the following exemplary description: The background music playback is handled by the game audio middleware, which has professional audio resource management, state scheduling, mixing and effect control capabilities, and is the scheduling unit for game audio output.

[0220] During game development, electronic devices pre-configure state groups and states in the audio middleware. Each map level has a corresponding state group and a single state. State groups correspond to the hierarchical dimensions of the region, and each state group encompasses all states corresponding to that level. Only one state within the same group can be active at any given time, ensuring the uniqueness of the audio logic within a single level. For example, a four-level region structure corresponds to four state groups, representing the four levels: the open world plane, the large map, the large region, and the small level.

[0221] Each state group has several mutually exclusive states, each corresponding to a different region at that level. For example, the state group at the terrain level can have mutually exclusive states such as volcano and rainforest.

[0222] Furthermore, in some embodiments, the state groups corresponding to different levels are independent of each other, and the corresponding states under different state groups can be activated simultaneously to match the spatial relationship of nested and coexisting multi-level regions. The state combination of multiple state groups can jointly determine the final music playback result.

[0223] Each map region is configured with a target state bound to a corresponding hierarchical state group. When a target virtual object enters the corresponding map region, the electronic device sends a command to the audio middleware to automatically switch the corresponding state group to the state value bound to the corresponding map region.

[0224] The audio middleware reads all currently active state groups and state combinations in real time, determines the background music playback content, playback logic, and effect parameters according to preset state rules, and completes the final audio output.

[0225] In some embodiments, the state changes of different levels do not interfere with each other, and the layered superposition of different levels of music can be realized. That is, the state of the inner region can be superimposed on the state of the outer region, following the scheduling rule of inner layer priority, and realizing the layered music control under nested regions. For example, the bottom layer ambient sound plus the layer main melody.

[0226] In addition, in some embodiments, automatic cross-fade-in and fade-out can be implemented during state transitions to make the music transitions smoother.

[0227] Thus, in this embodiment, by mapping the multi-level map structure one-to-one with the state machine system of the audio middleware, using state groups to carry out the division of regional levels, and using states to correspond to the music configuration of specific regions, a structured and hierarchical music playback control is achieved. This gives the complex regional music system of the open world a clear logical architecture and a stable switching mechanism. Compared to solutions that directly bind audio files and rely on hard switching to change regional music, the playback mode based on the audio middleware state machine can rely on the middleware's audio processing capabilities to achieve music fade-in and fade-out and smooth transitions during regional switching, avoiding auditory jumps during switching and improving the naturalness of music switching and the player's auditory immersion to a certain extent. At the same time, the mapping method of state groups and levels is naturally compatible with the multi-level nested regional structure. Music states at different levels belong to different state groups for management, which to a certain extent avoids music state conflicts when multi-level regions overlap, ensuring the logical correctness and operational stability of music switching in nested scenarios.

[0228] Furthermore, the middleware-based playback architecture decouples game logic from audio logic. The game side only needs to set the corresponding state based on the player's location, without having to worry about underlying details such as audio resource loading and playback scheduling. This reduces the development and integration costs of the music system to a certain extent. Moreover, the scheduling and effect processing of audio resources are all handled by the middleware, making it easy for audio designers or developers to independently adjust music playback parameters without modifying the game's business code. This improves the iteration efficiency of audio content to a certain extent and reduces the later maintenance costs of the open-world music system.

[0229] In some embodiments provided in this application, step 140 above includes: In response to a target virtual object entering the target map area, the current background music is determined and played based on the entry configuration information in the target background music configuration information; In response to the target virtual object leaving the target map area, the current background music is determined and played based on the leaving configuration information in the target background music configuration information.

[0230] Specifically, in relevant regional music implementation schemes, only the music switching logic when entering a region is typically considered, lacking independent configuration and control capabilities for the transition processing when leaving a region. When leaving a region, the current music is usually stopped abruptly or abruptly switched to the previous level of music, lacking smooth transition processing. This results in abrupt music switching when moving across regions, leading to poor auditory immersion. Furthermore, the music logic for entering and leaving is highly coupled. Adjusting the effect of entering or leaving one requires modifying the overall playback logic, resulting in high debugging costs, low iteration efficiency, and difficulty in supporting diverse transition audio designs, failing to fully match the atmospheric characteristics and transition requirements of different regions. Based on the above problems, in some embodiments provided in this application, when a target virtual object enters a target map region, background music is played according to the entry configuration information corresponding to the target map region; when the target virtual object leaves the target map region, background music transition processing is performed according to the departure configuration information corresponding to the target map region. Differentiated regional music switching and transition control are achieved through independent configuration of sub-nodes.

[0231] In some embodiments, the target map area can be understood as the map area where the current target virtual object is entering or leaving, and where the corresponding configuration information is in the process of taking effect.

[0232] In some embodiments, the entry configuration information can be understood as configuration data bound to the corresponding map area, used to define the background music playback rules when the target virtual object enters the area.

[0233] In some embodiments, the departure configuration information can be understood as configuration data bound to the corresponding map area, used to define the background music transition rules when the target virtual object leaves the area.

[0234] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please refer to the following exemplary description: When configuring the background music for each map area, two independent modules are set up: entry configuration information and exit configuration information. Both modules can include all configuration items such as audio events, real-time parameters, and state switching. By default, items that are not filled in will not take effect. Multiple sets of configurations can be added as needed, and unnecessary configuration items can also be removed.

[0235] When an electronic device detects that a target virtual object has moved from an external area into the target map area, it reads the entry configuration information from the target background music configuration information and starts and plays the corresponding background music according to the rules defined in the entry configuration information.

[0236] In some embodiments, the configuration information defines all audio behaviors triggered when the target virtual object enters the area, which can define the music's initial playback state, including attributes such as track selection, fade-in duration, initial volume, and playback start point, ensuring that the music can naturally connect with the current auditory state when entering the area.

[0237] When an electronic device detects that a target virtual object has moved from the target map area to outside the area, it reads the departure configuration information from the target background music configuration information and processes the currently playing background music according to the rules defined in the departure configuration information.

[0238] In some embodiments, the exit configuration information can define the exit transition logic of the music, including fade-out duration, playback of the final phrase, transition track connection, and rules for switching to music in the outer area, to ensure that the music can transition smoothly when leaving the area and avoid auditory gaps.

[0239] In some embodiments, the configuration information and exit configuration information modules are independent of each other, allowing designers or developers to flexibly configure them according to design needs to achieve differentiated music entry and exit experiences. For example, basic logic can be set to play music when entering and stop music when leaving, or a smooth transition can be set with the music gradually increasing when entering and decreasing when leaving. Different transition sound effects can also be configured to trigger when entering and leaving, enriching the auditory experience of the switching process.

[0240] In addition, in some embodiments, in special target game scenarios such as going online, going offline, and teleporting, the electronic device will batch execute the leave configuration of all moved-out areas and the entry configuration of all moved-in areas to ensure complete state updates and avoid state mismatches.

[0241] Thus, in this embodiment, by splitting the music configuration into two independent branches—entry and exit—corresponding to the area entry and exit actions of the target virtual object, the entire process of area music switching is finely controlled. This allows for customized music transition behaviors in different scenarios, effectively improving the naturalness and scene adaptability of music switching in the open world. Compared to area music solutions that only support playback triggered upon entry and direct or abrupt switching upon exit, the layered configuration supports setting differentiated transition logic for entry and exit actions. When entering an area, music fade-in and smooth transition rules can be configured; when leaving an area, music fade-out and layer fallback rules can be configured. This avoids the abrupt auditory sensation of volume jumps or sudden music stops when moving across areas, and to a certain extent enhances the auditory immersion experience during the exploration of the open world. Meanwhile, the independent departure configuration can be well adapted to the multi-level nested region structure. When the target virtual object leaves the sub-region, it can smoothly fall back to the corresponding music state of the parent level region through the departure configuration. No additional level judgment logic is needed to ensure the continuity of music switching in nested scenarios. To a certain extent, this avoids the problem of music logic confusion or state jump when switching multi-level regions, and improves the operational stability of the music system under complex region layout.

[0242] Furthermore, the separate entry and exit configuration enhances the design flexibility of the music system. Different entry and exit strategies can be matched with different areas, ensuring to a certain extent the fit between the music performance and the spatial attributes and environmental characteristics of the area, enriching the auditory layers of different scenes in the open world. At the same time, the standardized entry and exit trigger logic reduces development and integration costs. The business side only needs to report area entry and exit events, and electronic devices automatically match the corresponding configuration to execute playback control. There is no need to write switching logic separately for each area, which improves the efficiency of batch deployment of music content in the open world to a certain extent, facilitates the subsequent unified adjustment of the global switching strategy, and reduces the maintenance and iteration costs in the later stages of the project.

[0243] To more clearly illustrate the information processing method in the game provided in the embodiments of this application, please also refer to... Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 And the following exemplary description, Figure 5 A flowchart illustrating the drawing process of a closed polygon map region provided in this embodiment of the application. Figure 6 This is a schematic diagram of the architecture of the large-scale regional music automatic switching system provided in the embodiments of this application. Figure 7 A comparative diagram of the relevant technical solutions provided for the embodiments of this application and the solutions of the embodiments of this application is shown below: During gameplay, a graphical user interface is provided via a terminal device. The graphical user interface displays at least a portion of the virtual scene, which includes target virtual objects controlled by the terminal device.

[0244] Furthermore, in some embodiments, the game map comprises multiple levels of map regions, with map regions at the same level being independent of each other. Lower-level map regions are portions of higher-level map regions, forming a nested containment relationship where inner regions have higher priority than outer regions. For example... Figure 2 The four-level division logic of the multi-level map region nesting structure shown is as follows: the highest level is the first-level administrative region XX sea area OpenWorld global map region at the world plane level; the second level is the second-level administrative region such as a certain theme island, near-shore archipelago and other large map regions; the third level is the terrain map region such as volcano region, rainforest region and other terrain map regions; and the lowest level is the fourth-level administrative region such as Point of Interest (POI) and other small specific regions.

[0245] Each map level corresponds to a state group and a state in the game audio middleware. The game audio middleware determines the background music playback mode based on the state group and state. For example, the highest level corresponds to the music state for distant sea voyages, and the next level corresponds to the ambient sound state for near-sea environments. Furthermore, in some embodiments, the mapping relationship between levels can be maintained by an administrative region nesting management module. This module is responsible for mapping the four levels of administrative regions to State Groups and is a data layer component of the large-scale world region music automatic switching system architecture.

[0246] During game development, in order to determine the location of map regions, it is necessary to create a corresponding closed shape for each map region. The outline of the closed shape matches the outline of the map region, and the closed shapes corresponding to map regions of the same level are independent of each other. The closed shape corresponding to a lower-level map region is a part of the closed shape corresponding to a higher-level map region.

[0247] In some embodiments, such as Figure 5 As shown, the creation of closed shapes can be completed in the game scene editor. The complete creation process can be supported by the polygon box drawing module. The polygon box drawing module has the ability to draw closed polygons, set the height, and adjust nodes. It belongs to the editing layer in the architecture of the large world area music automatic switching system.

[0248] First, respond to the trigger operation of placing the audio region editor component, and generate the corresponding audio region editor component in the editor. Then, place the starting target node and switch to a top-down view to ensure drawing accuracy, and generate a polygonal plane by drawing point by point, with each point corresponding to a target node.

[0249] Next, after the polygonal plane, i.e. the target plane, is drawn, it is determined whether the polygon is closed. If the target plane is closed, the height of the target plane is configured to obtain a three-dimensional box with a plane at the top and bottom and closed polygons on the sides. This three-dimensional box is then identified as the closed shape of the corresponding map area.

[0250] If the target plane is not closed, a connection will be automatically configured between the first node of the polygonal plane and the last node operated on, so that the target plane is closed before the 3D box is generated. Once the shape of the box is confirmed, the drawing can be completed.

[0251] In addition, in some embodiments, after the 3D box is created, the coordinates, rotation, and scaling parameters of the 3D box can be adjusted through the Details panel, or the coordinates of a single target node can be adjusted to change the shape of the 3D box.

[0252] Each map region corresponds to independent background music configuration information, which includes background music identification information and background music sound effect parameters. In some embodiments, the background music configuration information may also include entry configuration information and exit configuration information, which take effect when the target virtual object enters and leaves the corresponding map region, respectively.

[0253] In some embodiments, such as Figure 2 , Figure 3 As shown in Table 1 below, the configuration work is completed through the audio panel configuration module. The audio panel configuration module supports configuration items such as Event, Real-Time Parameter Control (RTPC), State, and ID mode switching, and is a component of the system architecture editing layer.

[0254] Table 1 Audio Panel Configuration Interface

[0255] The configuration options allow you to set the background music trigger rules for entry and exit separately. The Event option supports three types: Event, Sound, and Interactive_music. You can switch between event mode and ID mode. In ID mode, the mapping between the sound_config and interactive_music_config interfaces is completed through the music table ID mapping module. You can directly fill in the resource ID in the music table to complete the configuration without frequently loading large scene maps.

[0256] The RTPC field can be filled with the target value directly. When entering and leaving the area, the corresponding parameter will be switched to the specified value. For example, the ocean mixing parameter is set to 0.0 when entering the island and 1.0 when leaving the island.

[0257] The State item supports configuring multiple different State Groups, such as region type state groups and weather state groups. Multiple state groups can be active simultaneously, and each group can participate in weight determination independently.

[0258] In addition, each closed graphic can be pre-configured with a graphic weight of 0 to 99 for conflict resolution when multiple graphics overlap, with higher weight values ​​indicating higher priority.

[0259] In addition, the audio panel also supports adding multiple sets of Event / RTPC / State configuration items to meet the multi-audio behavior configuration requirements of complex scenarios. All configuration information and graph weight parameters are stored together and passed to the runtime layer.

[0260] During game operation, the location determination module first determines the current position of the target virtual object in the game map. The location information can be updated in real time and input to the In / Out determination module. The In / Out determination module is responsible for making judgments based on the relationship between the location and the outside world and provides the ability to teleport to other scenes. It is a component of the system architecture runtime layer.

[0261] Subsequently, the electronic device traverses all closed shapes, determining the position state of the target virtual object relative to each closed shape. The position state is divided into an internal state and an external state. When the target virtual object moves normally away from the edge of the first closed shape and enters the second closed shape, the position state of the first closed shape is updated to the external state, and the position state of the second closed shape is updated to the internal state.

[0262] After completing the state detection of all closed graphs, it is determined whether the position state has changed. If there is no change, the current audio state is maintained. If there is a change, the region determination and adjudication process is initiated. The adjudication process is executed by the weighted adjudication module, which is responsible for adjudicating conflicts between the State and RTPC, and also belongs to the runtime layer of the system architecture.

[0263] The adjudication process first selects the lowest-level closed shape from all closed shapes within the box as the bottom-level closed shape. If there is only one bottom-level closed shape, the map region corresponding to that shape is directly determined as the current bottom-level map region. If there are more than one bottom-level closed shape, a conflict adjudication module is used to adjudicate conflicts, selecting the map region corresponding to the closed shape with the highest weight as the final bottom-level map region.

[0264] In some embodiments, such as Figure 4As shown, the adjudication rule for conflicts within the same state group takes the state corresponding to the closed shape with the highest weight. For example, when a red box with a weight of 99 overlaps with a blue box with a weight of 60, the state configuration of the red box takes effect within the overlapping area. The rule of prioritizing higher weights ensures that the expected audio effect is stably implemented.

[0265] In addition, in some embodiments, in the event of a conflict between the same background music sound effect parameters, the parameter value corresponding to the closed graphic with the highest graphic weight can be taken, and there is no conflict in the Event item. The corresponding event is triggered when the target virtual object enters or exits each closed graphic.

[0266] In addition, in some embodiments, if there are multiple different state groups, the configuration with the highest weight is selected independently for each group, and the different state group configurations of different closed graphics can be applied simultaneously to achieve the combination and superposition of multi-dimensional audio effects.

[0267] In addition, for target game events such as teleportation, going online, and going offline, this application embodiment sets up a special fallback judgment mechanism that does not rely on edge collision triggering.

[0268] like Figure 3 As shown, when a target game event associated with the target virtual object is detected, the electronic device does not gradually detect edge state changes, but directly obtains the position of the player's GameObject. Based on the current position of the target virtual object and the position of each closed shape, it directly determines the In / Out state of all boxes, determines the third closed shape where the target virtual object is currently located, determines the position state of the third closed shape as the internal state of the box, and determines the position states of all closed shapes other than the third closed shape as the external state of the box. Then, the weight decision and region determination process is executed.

[0269] For cross-map teleportation scenarios, after the scene switch is completed, the electronic device re-determines the position status of all closed graphics based on the current position of the target virtual object in the new map, ensuring that the background music status is completely matched with the area of ​​the new scene.

[0270] After determining the lowest-level map region where the target virtual object is currently located, the configuration determination module extracts the target background music configuration information corresponding to the lowest-level map region based on the background music configuration information for each map region. When the target virtual object enters the target map region, the current background music is determined and played based on the entry configuration information in the target background music configuration information. When the target virtual object leaves the target map region, the current background music is determined and played based on the departure configuration information in the target background music configuration information.

[0271] Finally, the state switching command, sound effect parameter setting command, and music playback command are passed to the Wwise game audio middleware. The Wwise game audio middleware completes the final execution of regional music playback, state switching, and real-time parameter adjustment RTPC, and outputs audio effects that match the current region. The Wwise audio middleware belongs to the output layer of the system architecture.

[0272] Understandably, such as Figure 7 As shown, compared to the dual-system architecture without priority in related technical solutions, which uses global table configuration and script distance determination in parallel with scene editor box determination, the integrated solution of nested weights and In / Out in this application has many advantages. Related technical solutions rely on global table configuration and script distance determination to switch between coastline distance and near-shore / far-shore states, and simultaneously rely on scene editor box determination to switch between spherical, rectangular, box-shaped, and island music states. The parallel operation of these two systems without priority can easily lead to state conflicts, causing accidental activation of island music during navigation. This application's embodiment uses a four-level nested administrative region structure, covering the complete hierarchy from the open world to islands to terrain and then to POIs. Through the natural priority of the nested hierarchy and the graphic weight adjudication mechanism, configuration conflicts in overlapping areas are automatically resolved, resulting in clear and predictable hierarchical logic.

[0273] Furthermore, the boxes in the relevant technical solutions only support simple shapes such as spheres and rectangles, and the unavailability of polygon drawing mode results in the box range being far beyond actual needs. The closed polygon box in the embodiment of this application supports arbitrary shapes, height settings, and node adjustments, and can fit various irregular terrains without distortion of the area range.

[0274] In addition, the relevant technical solutions rely on edge collision triggering, which cannot cover transmission, online and offline scenarios. The internal and external determination mechanism based on location in this application embodiment can achieve correct state triggering in all scenarios.

[0275] In addition to the advantages mentioned above, the configuration modification of related technical solutions requires loading a large scene map, resulting in low iteration efficiency. The embodiments of this application support ID mode configuration, which allows configuration modification without loading a large scene, thereby improving development iteration efficiency.

[0276] To facilitate better implementation of the information processing method in games according to the embodiments of this application, the embodiments of this application also provide an information processing apparatus for games. Please refer to... Figure 8 , Figure 8 This is a schematic diagram of the structure of an information processing device in a game provided in an embodiment of this application. A graphical user interface (GUI) is provided through a terminal device. The GUI displays at least a portion of a virtual scene, which includes target virtual objects controlled by the terminal device. The information processing device 200 in the game may include: The location determination module 210 is used to determine the current location of the target virtual object in the game map. The game map includes multiple levels of map areas, and map areas of the same level are independent of each other. Lower-level map areas are parts of higher-level map areas. The region determination module 220 is used to determine the lowest-level map region where the target virtual object is currently located based on the current position of the target virtual object; The configuration determination module 230 is used to determine the target background music configuration information corresponding to the bottom layer map area based on the background music configuration information corresponding to each map area. The playback module 240 is used to determine and play the current background music based on the target background music configuration information.

[0277] In some embodiments, the region determination module 220 can also be used to create closed shapes corresponding to each map region; and determine the lowest level closed shape to which the target virtual object currently belongs based on the current position of the target virtual object; and determine the map region corresponding to the lowest level closed shape as the lowest level map region, wherein the outline of the closed shape matches the outline of the map region, the closed shapes corresponding to map regions of the same level are independent of each other, and the closed shape corresponding to the lower level map region is a part of the closed shape corresponding to the higher level map region.

[0278] In some embodiments, the region determination module 220 can also be used to determine the position state of the target virtual object relative to each closed shape based on the current position of the target virtual object; and determine the closed shape with the lowest map region level among each closed shape in the box-in-the-box state as the bottom-level closed shape, wherein the position state includes the box-in-the-box state and the box-out-of-the-box state.

[0279] In some embodiments, the region determination module 220 can also be used to determine the position state of the first closed shape as the external state of the box and the position state of the second closed shape as the internal state of the box when the target virtual object leaves the edge of the first closed shape and enters the second closed shape according to the current position of the target virtual object.

[0280] In some embodiments, the region determination module 220 can also be used to respond to a target game event associated with the target virtual object, determine the third closed shape where the target virtual object is currently located based on the current position of the target virtual object and the position of each closed shape; and determine the position state of the third closed shape as the internal state of the box, and determine the position states of all closed shapes other than the third closed shape as the external state of the box.

[0281] In some embodiments, the region determination module 220 can also be used to determine the map region corresponding to the bottom-level closed graphic as the bottom-level map region when the number of bottom-level closed graphics is one; and / or, when the number of bottom-level closed graphics is greater than one, determine the map region corresponding to the bottom-level closed graphic with the highest graphic weight as the bottom-level map region, wherein the graphic weight is obtained by pre-configuring the closed graphics.

[0282] In some embodiments, the region determination module 220 can also be used to generate an audio region editor component corresponding to the map region in the game scene editor in response to a trigger operation of placing an audio region editor component in the game scene editor; and to generate multiple target nodes corresponding to the map region in the game scene editor in response to a trigger operation of placing multiple nodes in the game scene editor; and to generate closed graphics corresponding to the map region respectively based on the target plane formed by the multiple target nodes.

[0283] In some embodiments, the region determination module 220 can also be used to close the target plane formed by multiple target nodes, configure the height of the target plane to obtain a three-dimensional box, and determine the three-dimensional box as a closed shape corresponding to the map region respectively, wherein the top and bottom of the three-dimensional box are planes, and the sides are closed polygons.

[0284] In some embodiments, the region determination module 220 can also be used to configure a connection between the first node and the last node operated on in the target plane if the target plane formed by multiple target nodes is not closed, so as to close the target plane.

[0285] In some embodiments, the region determination module 220 can also be used to adjust the coordinates of the target node in response to a node adjustment operation on the three-dimensional box, so as to change the shape of the three-dimensional box.

[0286] In some embodiments, the target background music configuration information includes background music identification information and background music sound effect parameters.

[0287] In some embodiments, background music is played through game audio middleware. Each level of map area corresponds to a state group and a state, and the game audio middleware determines the playback method of the background music based on the state group and the state.

[0288] In some embodiments, the playback module 240 can also be used to determine and play the current background music according to the entry configuration information in the target background music configuration information in response to the target virtual object entering the target map area; and to determine and play the current background music according to the departure configuration information in the target background music configuration information in response to the target virtual object leaving the target map area.

[0289] The various units in the information processing device of the aforementioned game can be implemented entirely or partially through software, hardware, or a combination thereof. These units can be embedded in or independent of the processor in the electronic device in hardware form, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to these units.

[0290] The information processing device 200 in the game can be integrated into a terminal or server that has memory and a processor and thus computing power, or the information processing device 200 in the game can be that terminal or server.

[0291] Optionally, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0292] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may be a terminal or a server. Figure 9 As shown, the electronic device 300 includes a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 and the memory 302 are electrically connected. Those skilled in the art will understand that the electronic device structure shown in the figures does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0293] The processor 301 is the control center of the electronic device 300. It connects various parts of the electronic device 300 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, it executes various functions of the electronic device 300 and processes data, thereby performing overall processing of the electronic device 300.

[0294] In this embodiment, the processor 301 in the electronic device 300 loads the instructions corresponding to the processes of one or more computer programs into the memory 302 according to the following steps, and the processor 301 runs the computer programs stored in the memory 302 to realize various functions: Determine the current position of the target virtual object in the game map, where the game map consists of multiple levels of map regions, and map regions at the same level are independent of each other, with lower-level map regions being parts of higher-level map regions; Based on the current location of the target virtual object, determine the lowest level map region where the target virtual object is currently located; Based on the background music configuration information corresponding to each map region, determine the target background music configuration information corresponding to the bottom map region; Based on the target background music configuration information, determine the current background music and play it.

[0295] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0296] Optional, such as Figure 9 As shown, the electronic device 300 also includes: a display screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the display screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307. Those skilled in the art will understand that... Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0297] The display screen 303 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The display screen 303 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program. Optionally, the touch panel may include a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 301, and can receive and execute commands from the processor 301. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 301 to determine the type of touch event. Subsequently, the processor 301 provides corresponding visual output on the display panel according to the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the display screen 303 to achieve input and output functions. However, in some embodiments, the touch panel and the display screen 303 can be implemented as two independent components to achieve input and output functions. That is, the display screen 303 can also be used as part of the input unit 306 to achieve input functions.

[0298] The radio frequency circuit 304 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.

[0299] Audio circuitry 305 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuitry 305 converts received audio data into electrical signals, transmits them to the speaker, and the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 305, converted back into audio data, and then processed by processor 301 before being transmitted via radio frequency circuitry 304 to, for example, another electronic device, or output to memory 302 for further processing. Audio circuitry 305 may also include an earphone jack to facilitate communication between peripheral headphones and electronic devices.

[0300] The input unit 306 can be used to receive input numbers, characters, or object feature information (such as fingerprints, irises, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0301] Power supply 307 is used to supply power to various components of electronic device 300. Optionally, power supply 307 can be logically connected to processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 307 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0302] although Figure 9 As not shown in the diagram, the electronic device 300 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0303] This application also provides a computer-readable storage medium for storing a computer program. This computer-readable storage medium can be applied to a computer device, and the computer program causes the computer device to execute the corresponding flow in the information processing method of the game in the embodiments of this application; for the sake of brevity, further details are omitted here.

[0304] This application also provides a computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding flow in the information processing method in the game described in this application embodiment. For brevity, further details are omitted here.

[0305] This application also provides a computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding flow in the information processing method of the game described in this application. For brevity, further details are omitted here.

[0306] It should be understood that the processor in this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0307] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0308] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0309] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0310] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0311] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0312] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0313] In addition, the functional units in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0314] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer or a server) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0315] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An information processing method in a game, characterized in that, The method includes providing a graphical user interface (GUI) via a terminal device, the GUI displaying at least a portion of a virtual scene, the virtual scene including target virtual objects controlled by the terminal device: Determine the current position of the target virtual object in the game map, wherein the game map includes multiple levels of map regions, the map regions of the same level are independent of each other, and the lower level map regions are part of the higher level map regions; Based on the current position of the target virtual object, determine the lowest level map region where the target virtual object is currently located; Based on the background music configuration information corresponding to each of the map regions, determine the target background music configuration information corresponding to the bottommost map region; Based on the target background music configuration information, determine the current background music and play it.

2. The information processing method in the game according to claim 1, characterized in that, The method further includes: Create a closed shape corresponding to each of the map regions, wherein the outline of the closed shape matches the outline of the map region, the closed shapes corresponding to the map regions at the same level are independent of each other, and the closed shape corresponding to the lower level map region is a part of the closed shape corresponding to the higher level map region. The step of determining the lowest-level map region where the target virtual object is currently located based on its current position includes: Based on the current position of the target virtual object, determine the lowest level closed graph to which the target virtual object currently belongs; The map region corresponding to the bottommost closed graphic is defined as the bottommost map region.

3. The information processing method in the game according to claim 2, characterized in that, The step of determining the lowest-level closed graph to which the target virtual object currently belongs based on the target virtual object's current position includes: Based on the current position of the target virtual object, determine the position state of the target virtual object for each of the closed shapes, wherein the position state includes the state inside the box and the state outside the box; Among the closed shapes that are inside the box, the closed shape with the lowest map region level is determined as the bottom closed shape.

4. The information processing method in the game according to claim 3, characterized in that, Determining the position state of the target virtual object for each closed shape based on the current position of the target virtual object includes: When the target virtual object leaves the edge of the first closed shape and enters the second closed shape based on the current position of the target virtual object, the position state of the first closed shape is determined as the external state of the box, and the position state of the second closed shape is determined as the internal state of the box.

5. The information processing method in the game according to claim 3, characterized in that, Determining the position state of the target virtual object for each closed shape based on the current position of the target virtual object includes: In response to a target game event associated with the target virtual object, the third closed shape in which the target virtual object is currently located is determined based on the current position of the target virtual object and the position of each of the closed shapes; The positional state of the third closed shape is determined as the internal state of the box, and the positional states of all other closed shapes besides the third closed shape are determined as the external state of the box.

6. The information processing method in the game according to claim 3, characterized in that, The step of determining the map region corresponding to the bottommost closed graphic as the bottommost map region includes: When the number of the bottom-level closed shapes is one, the map region corresponding to the bottom-level closed shapes is determined as the bottom-level map region; and / or, When the number of the bottom-level closed graphics is greater than one, the map region corresponding to the bottom-level closed graphics with the highest graphic weight is determined as the bottom-level map region, wherein the graphic weight is obtained by pre-configuring the closed graphics.

7. The information processing method in the game according to claim 2, characterized in that, The creation of a closed shape corresponding to each of the map regions includes: In response to a triggering operation that places an audio region editor component in the game scene editor, an audio region editor component corresponding to the map region is generated in the game scene editor. In response to a trigger operation that places multiple nodes in the game scene editor, multiple target nodes corresponding to the map area are generated in the game scene editor. Based on the target plane formed by the multiple target nodes, a closed graphic corresponding to each of the map regions is generated.

8. The information processing method in the game according to claim 7, characterized in that, The step of generating closed shapes corresponding to the map regions based on the target plane formed by the plurality of target nodes includes: If the target plane formed by the plurality of target nodes is closed, the target plane is height configured to obtain a three-dimensional box, wherein the top and bottom of the three-dimensional box are planes and the sides are closed polygons; The three-dimensional box is defined as a closed shape corresponding to each of the map regions.

9. The information processing method in a game according to claim 8, characterized in that, The step of generating closed shapes corresponding to the map regions based on the target plane formed by the plurality of target nodes further includes: If the target plane formed by the plurality of target nodes is not closed, a connection is made between the first node and the last node operated on in the target plane to close the target plane.

10. The information processing method in a game according to claim 8, characterized in that, The creation of a closed shape corresponding to each of the map regions further includes: In response to a node adjustment operation on the three-dimensional box, the coordinates of the target node are adjusted according to the node adjustment operation to change the shape of the three-dimensional box.

11. The information processing method in a game according to claim 1, characterized in that, The target background music configuration information includes background music identification information and background music sound effect parameters.

12. The information processing method in a game according to claim 1, characterized in that, The background music is played through the game audio middleware. Each level of the map area corresponds to a state group and a state. The game audio middleware determines the playback mode of the background music based on the state group and the state.

13. The information processing method in a game according to claim 1, characterized in that, The step of determining and playing the current background music based on the target background music configuration information includes: In response to the target virtual object entering the target map area, the current background music is determined and played according to the entry configuration information in the target background music configuration information; In response to the target virtual object leaving the target map area, the current background music is determined and played according to the leaving configuration information in the target background music configuration information.

14. An information processing device for games, characterized in that, A graphical user interface is provided via a terminal device, the graphical user interface displaying at least a portion of a virtual scene, the virtual scene including target virtual objects controlled by the terminal device, the device comprising: The location determination module is used to determine the current location of the target virtual object in the game map, wherein the game map includes multiple levels of map areas, the map areas of the same level are independent of each other, and the lower level map area is a part of the higher level map area. The region determination module is used to determine the lowest-level map region where the target virtual object is currently located based on the current position of the target virtual object; The configuration determination module is used to determine the target background music configuration information corresponding to the bottommost map area based on the background music configuration information corresponding to each of the map areas. The playback module is used to determine and play the current background music based on the target background music configuration information.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to execute the information processing method in a game according to any one of claims 1-13.

16. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing a computer program, and the processor executing the information processing method in the game according to any one of claims 1-13 by calling the computer program stored in the memory.

17. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the information processing method in the game as described in any one of claims 1-13.