Regional function control method and device in game scene, equipment and storage medium
By separating the preset area configuration data in the game map from the game map model, and updating the area status according to the game progress, the problems of high model complexity and large memory overhead in the existing technology are solved, and the game performance and player experience are improved.
Patent Information
- Application Number
- CN202410764533.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-10
AI Technical Summary
The high model complexity and large memory overhead in existing game scenarios affect the frame rate and thus the player's gaming experience.
By separating the preset area configuration data in the game map from the game map model, using the preset data structure to store the area configuration data, and obtaining and updating the area's open status attributes according to the game progress, the current attributes of the area are determined and server overhead is reduced.
It reduces the editing cost of preset areas in the game map, improves game performance, reduces server burden, and improves players' gaming experience.
Smart Images

Figure CN118615696A
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device, equipment and storage medium for controlling regional functions in a game scene. Background Art
[0002] With the development of Internet technology, games have become an important part of leisure and entertainment in people's lives.
[0003] Different models may generally be placed in the game scenes of existing games. Some models have blocking effects, and some models have special functions, such as teleportation functions, or virtual restaurants, virtual inns, etc. By placing different models in the game scene, the final game scene can be successfully configured, and players can perform game operations in the configured game scene.
[0004] However, this configuration method has the problems of high model complexity and large memory overhead, which affects the frame rate and thus the player's gaming experience. Summary of the invention
[0005] The purpose of this application is to provide a method, device, equipment and storage medium for controlling regional functions in a game scene in order to address the deficiencies in the above-mentioned prior art and solve the problems in the prior art that affect the frame rate and thus the player's gaming experience.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for controlling regional functions in a game scene, the method comprising:
[0008] Acquire a preset data structure of a game map, wherein the data structure pre-stores: area configuration data of at least one preset area in the game map;
[0009] Determine the area configuration data of each preset area of the current game scene from the preset data structure;
[0010] According to the game progress of the controlled virtual object in the game map, obtaining the opening state attribute of each of the preset areas;
[0011] According to the area configuration data of each of the preset areas and the open state attribute, the current attribute of each of the preset areas is determined.
[0012] In a second aspect, another embodiment of the present application provides a device for controlling regional functions in a game scene, the device comprising: an acquisition module and a determination module, wherein:
[0013] The acquisition module is used to acquire a preset data structure of a game map, wherein the data structure pre-stores: area configuration data of at least one preset area in the game map;
[0014] The determination module is used to determine the area configuration data of each preset area of the current game scene from the preset data structure;
[0015] The acquisition module is specifically used to acquire the opening state attribute of each of the preset areas according to the game progress of the controlled virtual object in the game map;
[0016] The determining module is specifically configured to determine the current attribute of each of the preset areas according to the area configuration data of each of the preset areas and the opening state attribute.
[0017] In the third aspect, another embodiment of the present application provides a regional function control device in a game scene, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, when the regional function control device in the game scene is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of any method described in the first aspect above.
[0018] In a fourth aspect, another embodiment of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any method described in the first aspect are executed.
[0019] The beneficial effect of the present application is: by adopting the area function control method in the game scene provided by the present application, the area configuration data of each preset area in the game map is stored in a preset data structure, so that the game map model and the preset data structure are two independent parts, the game map model is only responsible for the game performance in the game, and the preset data structure is used for the calculation, performance or logical structure of the logic layer in the game, thereby reducing the editing cost of the preset areas in the game map. During the game, the player can directly determine the area configuration data of each preset area in the current game scene in the preset data structure, obtain the opening state attribute of the preset area according to the game progress of the controlled virtual object in the game map, and determine the current attribute of each preset area according to the opening state attribute and the area configuration data of the preset area, so that whether each preset area in the game is turned on is determined by the area configuration data and the opening state attribute, thereby reducing the server overhead and not adding burden to the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A schematic diagram of a flow chart of a method for controlling regional functions in a game scene provided by an embodiment of the present application;
[0022] Figure 2 A schematic flow chart of a method for controlling regional functions in a game scene provided by another embodiment of the present application;
[0023] Figure 3 A schematic flow chart of a method for controlling regional functions in a game scene provided by another embodiment of the present application;
[0024] Figure 4 A schematic diagram of a regional mask diagram provided by an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of a regional function control device in a game scene provided by an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the structure of a regional function control device in a game scene provided by another embodiment of the present application;
[0027] Figure 7 A schematic diagram of the structure of a regional function control device in a game scene provided in one embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0029] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0030] In one embodiment of the present application, the method for controlling regional functions in a game scene can be run on a local terminal device or a server. When the method for controlling regional functions in a game scene is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0031] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the regional function control method in the game scene are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the player side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0032] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0033] In addition, the flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of this application, and can also remove one or more operations from the flowchart.
[0034] The following is an explanation of a method for controlling regional functions in a game scene provided by an embodiment of the present application in combination with a number of specific application examples. Figure 1A flowchart of a method for controlling regional functions in a game scene provided by an embodiment of the present application is shown as follows: Figure 1 As shown, the method includes:
[0035] Step 101: Obtain a preset data structure of a game map.
[0036] The data structure pre-stores: area configuration data of at least one preset area in the game map.
[0037] In an embodiment of the present application, in order to reduce the memory occupied by data storage, reduce performance consumption, and reduce server overhead, the preset data structure in the present application can be stored in the form of a two-dimensional array, for example, and the two-dimensional array only includes the location data of each preset area, which is used to indicate the location of each preset area in the game map.
[0038] This setting method is that after the art staff sets up the map, the developer can export the game map and directly divide each preset area based on the location area of each preset area in the game map to obtain the preset data structure corresponding to the current game map, wherein the shape of each preset area can be flexibly adjusted according to the needs of the developer, and each preset area is stored in the form of a preset data structure, which reduces overhead and improves development speed.
[0039] Step 102: Determine the area configuration data of each preset area of the current game scene from the preset data structure.
[0040] In the embodiments of the present application, since the model of the game map and the preset data structure are separated, the model of the game map is only responsible for the presentation of the game scene, and the preset data structure is used for the calculation, presentation and logical structure of each area in the game map at the logic layer. This setting simplifies the operating logic and processing logic of the game map model, and reduces the production cost and development cost of configuring multiple preset areas in the game map model.
[0041] In some possible embodiments, for example, a game may be provided with multiple game maps. For example, different copy game scenes may correspond to different game maps, different task game scenes may correspond to different game maps, and different branch task game scenes may correspond to different game maps. Each game map may have its own corresponding preset data structure to characterize the configuration of each preset area in the game map. It should be understood that the above embodiments are only exemplary descriptions, and the configuration method of the preset data structure of a specific game map can be flexibly adjusted according to user needs and is not limited to the above embodiments.
[0042] In an embodiment of the present application, in order to enable the obtained preset data structure to be normally applied in the client, for example, the preset ratio can be determined according to the size of the display screen of the client device, and then the preset data structure of the game map is scaled according to the preset ratio to obtain the scaled preset data structure; so that the preset data structure can be normally displayed on clients with different display sizes, thereby improving the application scope of the preset data structure, expanding the applicability of the method provided by the present application, and avoiding the problem of limited use caused by the non-adjustable size.
[0043] Step 103: According to the game progress of the controlled virtual object in the game map, the opening state attribute of each preset area is obtained.
[0044] Among them, the open state attribute is, for example, stored in the client and managed by the client itself, and only a preset data structure is stored in the server. This setting method further reduces the performance consumption of the server and does not add any additional overhead to the server.
[0045] In some possible embodiments, in response to a control operation on a controlled virtual object, the controlled virtual object is controlled to perform a game behavior corresponding to the control operation in a portion of a first area in a game map; wherein the first area is an area where the on-state attribute indicates that it is on; that is, in an embodiment of the present application, the player can only control the controlled virtual object to move in an area where the on-state attribute indicates that it is on, and the controlled virtual object cannot enter an area where the on-state attribute indicates that it is off. This setting makes it possible to control whether each preset area is an accessible area through the on-state attribute.
[0046] Step 104: Determine the current attribute of each preset area according to the area configuration data and the open state attribute of each preset area.
[0047] In an embodiment of the present application, the current attributes of each preset area in the current game map can be clarified based on the area configuration data of the preset area and the activation status attributes of the preset area. The current attributes include the position attributes of each preset area in the game map, and the activation status attributes of each preset area in the game map. The game can display the preset areas in different styles, or enable or disable different functions of different areas according to the current attributes of each preset area. How to represent each preset area in the game map according to the current attributes of each preset area can be flexibly adjusted according to user needs, and is not limited to the above embodiments.
[0048] By adopting the area function control method in the game scene provided by the present application, the area configuration data of each preset area in the game map is stored in a preset data structure, so that the game map model and the preset data structure are two independent parts. The game map model is only responsible for the game performance in the game, and the preset data structure is used for the calculation, performance or logical structure of the logic layer in the game, which reduces the editing cost of the preset areas in the game map. During the game, the player can directly determine the area configuration data of each preset area in the current game scene in the preset data structure, and obtain the opening state attribute of the preset area according to the game progress of the controlled virtual object in the game map. According to the opening state attribute and the area configuration data of the preset area, the current attribute of each preset area is determined, so that whether each preset area in the game is turned on is determined by the area configuration data and the opening state attribute, which reduces the server overhead and does not add burden to the server.
[0049] In an embodiment of the present application, the enable status attribute of each preset area is updated in real time according to a trigger event for updating the progress of the game map, that is, in response to a trigger event for updating the progress of the game map, the enable status attribute of each preset area is updated.
[0050] Among them, the game map includes: at least one second area whose opening state attribute indicates closed, and / or a first area whose opening state attribute indicates opened, and the method for updating the opening state attribute of each preset area can be, for example: in response to the game behavior of the controlled virtual object in the first area, determining whether a trigger event is triggered; if the trigger event is triggered, updating the opening state attribute of the first second area in the game map from closed to open, so as to update the first second area to the first area.
[0051] In an embodiment of the present application, each preset area in the game map has a preset order, and the opening state attribute of each preset area is sequential opening. The opening method can be determined by the opening state attribute of the previous area of the current preset area; for example, for a level game, there may be 10 levels, and each level has its own corresponding level sequence, such as levels 1-10. The player needs to pass each level in turn, and the passing of the current level will unlock the opening of the next level. For example, if the player passes level 1, the opening state attribute of level 2 will be updated to open, that is, the current level Among levels 1-10, only level 1 and level 2 have the open state attribute set to open, and the open state attributes of the remaining levels are all closed. If the player wants to enter level 4, he needs to pass levels 1, 2, and 3 before the open state attribute of level 4 is updated to open, and the player can enter level 4 to play the game. It should be understood that the above embodiments are only exemplary, and each preset area may also be, for example, a copy area, scene areas of different difficulty, different task areas, etc. The type of specific preset area can be flexibly adjusted according to user needs and is not limited to the above embodiments.
[0052] In some possible embodiments, for example, the current game map may be a level-type map, and the triggering method of the triggering event may be, for example, that only when the current level is passed, the preset area corresponding to the next level of the current level will be opened; or, still taking the current game map as a level-type map as an example for explanation, the triggering method of the triggering event may be, for example, that when the current level is passed, the score or star rating of the current level may also be considered, or the score / star rating of the current level and a preset number of historical levels is passed, and the triggering method of the triggering event may be, for example, that only when the score meets the preset score / star threshold, the preset area corresponding to the next level of the current level will be opened; or, the current game map may be, for example, different game scenes, and only after the player unlocks and passes the preset area corresponding to the current game scene, will the opening state of the preset area corresponding to the next game scene be determined to be open; it should be understood that the above embodiments are only exemplary descriptions, and the specific triggering method of the triggering event can be flexibly adjusted according to user needs, and is not limited to the above embodiments.
[0053] In an embodiment of the present application, in order to improve the intuitiveness of the game map display, the display status of each preset area in the game map can be determined according to the on-state attribute of each preset area. For example, at the location of the first area in the current game scene, the preset special effect corresponding to the first area is displayed in the first display state; wherein the first area is an area indicated to be on by the on-state attribute; at the location of the second area in the current game scene, the preset special effect corresponding to the second area is displayed in the second display state; wherein the second area is an area indicated to be closed by the on-state attribute.
[0054] Among them, the first display state can be displayed normally, for example, and the second display state can be displayed in the form of fog, that is, a preset mask can be displayed on the second area, for example, to prompt that the opening state attribute of the second area is not opened. The preset mask can be, for example, a preset virtual fog, a preset virtual cloud, etc., as long as the second area can be represented as a covered and unopened area. The specific display states and display styles of the first display mode and the second display mode can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiments.
[0055] Optionally, based on the above embodiment, the embodiment of the present application can also provide a method for controlling regional functions in a game scene. The following is an example of how to determine the implementation process of regional configuration data in the above method in combination with the accompanying drawings. Figure 2 A flowchart of a method for controlling regional functions in a game scene provided by another embodiment of the present application, wherein the regional configuration data includes: functional status data, wherein the functional status data includes at least one functional attribute, such as Figure 2 As shown, step 102 may include:
[0056] Step 111: Determine the functional status data of each preset area from the preset data structure.
[0057] In some possible embodiments, in addition to including the location information of each preset area in the game map, the preset data structure may also include at least one functional status data of each preset area. That is to say, the preset data structure in the embodiment of the present application includes the functional status data of each preset area and the location information of each preset area, wherein the functional status data and location information of each preset area are associated with the identification information of each preset area to indicate the association relationship between each location information and functional status data and the identification information. The user can uniquely determine the corresponding preset area through the identification information to obtain the relevant data of the preset area corresponding to the current identification information in the preset data structure: the location information and the functional status data.
[0058] In some possible embodiments, each functional status data can be identified and zoned with a preset serial number, for example, serial number A corresponds to the trap function, serial number B corresponds to the transmission function, serial number C corresponds to the fog function, serial number D corresponds to the lake function, and serial number E corresponds to the grassland function. It should be understood that the above embodiments are only exemplary descriptions, and the specific identification of each functional status data can be, for example, a digital identification, a code identification, etc.
[0059] Step 112: Determine the target function attribute in the function status data of each preset area.
[0060] Among them, the target functional attribute is the functional attribute in the turned-on state.
[0061] In an embodiment of the present application, a preset area may, for example, include multiple functional status data, and the multiple functional status data are used to indicate that the functional status data corresponding to the preset area in, for example, different time periods or different difficulty levels are different. For example, for preset area 1, from 19:00 to 21:00 every day, the target functional attribute corresponding to the preset area 1 is the trap function; in other time periods except from 19:00 to 21:00 every day, the target functional attribute corresponding to the preset area 1 is the grass function.
[0062] Or, for example, the current game map includes three difficulty modes: simple, normal and difficult. The game maps corresponding to different difficulty modes are the same, but the attributes of the virtual objects in the game are different. For example, the damage value of the virtual objects in the game map to the controlled virtual objects will increase with the increase of the difficulty mode. For preset area 2, for example, in a game map with simple difficulty, the target function attribute corresponding to preset area 2 is a lake; in a game map with normal difficulty, the target function attribute corresponding to preset area 2 is a trap; in a game map with complex difficulty, the target attribute function corresponding to preset area 2 is teleportation.
[0063] Or, for example, the current game map may correspond to different game modes, such as desert mode, Iceland mode, grassland mode or lake mode, etc. For the same preset area in the same game map, the corresponding target attribute functions may be different in different game modes. For example, for the game map in desert mode, the target function attribute corresponding to preset area 3 may be a desert attribute; for the game map in lake mode, the target function attribute corresponding to preset area 3 may be a lake attribute; for the game map in grassland mode, the target function attribute corresponding to preset area 3 may be a grass attribute, for example.
[0064] Or, for example, there may be at least two virtual objects of different camps in the current game map, and for the same preset area, the target attribute functions of the area corresponding to different camps may be different; for example, for preset area 4, even if it is the same preset area in the same game map, for the virtual objects of the first camp, the target function attribute corresponding to preset area 4 may be, for example, a jungle attribute; for the virtual objects of the second camp, the target function attribute corresponding to preset area 4 may be, for example, a grass attribute; for the virtual objects of the third camp, the target function attribute corresponding to preset area 4 may be a blocking attribute, that is, the virtual objects of the third camp cannot enter.
[0065] It can be seen that even for the same preset area in the same game map, the target function attributes corresponding to the preset area may be different due to the attribute information of the current game, such as the time of the current game, or the mode of the current game, or the camp to which the player currently playing the game belongs, or the difficulty of the current game, or other attribute information. Therefore, in the embodiments of the present application, it is necessary to determine the target function attributes in the functional status data of the preset area based on the attribute information of the current game. It should be understood that the above embodiments are only illustrative, and how the target function attributes of each specific preset area are determined can be flexibly adjusted according to user needs and is not limited to the above embodiments.
[0066] In an embodiment of the present application, in order to ensure the gaming experience of players in the game map, under the attribute information of the same game, only one target function attribute is turned on in the same preset area. During the game, it is necessary to determine the target attribute function corresponding to each preset area based on the attribute information in the current game map. This setting method allows game developers to flexibly configure each preset area according to various possible situations, greatly improving the playability of the game map, and the configuration method is simple and the configuration cost is low, so that developers can independently configure each preset area according to game requirements, including but not limited to the configuration of the location of each preset area, and the configuration of the target function attributes corresponding to each preset area in different situations.
[0067] Optionally, based on the above embodiment, the embodiment of the present application may also provide a method for controlling regional functions in a game scene. The implementation process of the above method is illustrated below in conjunction with the accompanying drawings. Figure 3 A flowchart of a method for controlling regional functions in a game scene provided by another embodiment of the present application is shown as follows: Figure 3 As shown, before step 101, the method may further include:
[0068] Step 121: According to the information of the game map, obtain the area mask map corresponding to the game map.
[0069] In an embodiment of the present application, for example, a base map M with the same size as the game map can be determined according to the size of the game map as the base map of the preset area corresponding to the current game map, and the identifier of each preset area can be determined according to the number of preset areas, wherein the number of preset areas can be flexibly adjusted according to the needs of the game and the design requirements of the artists. For example, the current number of preset areas is n, and the number of preset areas can be adaptively adjusted. n can be any value, such as 5, 8, 10, 13, 21, or any integer value greater than 1; each preset area has its own corresponding unique identifier: 1~n. It should be understood that the above embodiment is only an exemplary description. The identifier of each preset area can also be other forms of identifiers, as long as it can uniquely indicate the preset area, such as different number identifiers, or different English letter identifiers, or different Chinese character identifiers. The setting method and expression form of the identifier information of the specific preset area can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiment.
[0070] The method of binding the area identification of each preset area with the color channel corresponding to each preset area can be, for example: determining the target color channel corresponding to each area in multiple color channels according to the initial mask map corresponding to the game map, the number of preset areas and the preset segmentation rules; binding the area identification information of each preset area with the target color channel corresponding to each preset area.
[0071] In an embodiment of the present application, in order to improve the visualization effect of the base map M, for example, multiple preset areas can be evenly distributed to multiple color channels of the base map M according to the number of preset areas to establish an association relationship between each preset area and the color channel. For example, according to the initial mask map corresponding to the game map and the number of preset areas corresponding to the game map, the area identification information of each preset area can be bound to the color channel corresponding to each preset area to obtain the area mask map corresponding to the game map; wherein the preset color channel can be, for example, a red green blue (RGB) channel.
[0072] In some possible embodiments, the target color channel may be determined, for example, by: determining the number of target segments based on the number of preset areas and preset segmentation rules; and determining the target color channel corresponding to each preset area based on the initial mask image and the number of target segments corresponding to the game map.
[0073] Still taking the preset number of 21 as an example, for example, the area identifiers of the 21 preset areas can be bound to the color channels respectively. For example, the color channel can be evenly divided into 21 segments. The color channel values in the same segment are the same, and they represent the same preset area. For example, RGB=(32,0,0) can be bound to preset area 1, and the pixels of RGB=(32,0,0) in the area mask map are all areas corresponding to preset area 1; RGB=(64,0,0) can be bound to preset area 2, and the pixels of RGB=(64,0,0) in the area mask map are all areas corresponding to preset area 2, and so on, so as to distinguish different preset areas in the area mask map through different values of RGB channels.
[0074] In an embodiment of the present application, in order to improve the intuitiveness of the display of the regional mask map, for example, each preset area in the regional mask map may be dyed to obtain a dyed regional mask map; wherein the dyeing method may be, for example, irregular dyeing, for example, random dyeing, or the user may manually dye each preset area. Figure 4 A schematic diagram of a regional mask diagram provided by an embodiment of the present application is shown in FIG. Figure 4 As shown, the area mask map includes multiple preset areas, and the filling colors in the preset areas are different. The area without filling color is the ordinary area. The size and position of each preset area in the dyed area mask map are clear at a glance, so that the player can realize the visualization production of the preset area. The specific dyeing method is not restricted in this application, and it shall be based on the actual needs of the user. It only needs that the colors of adjacent preset areas are different so that the artist can intuitively view the preset areas in the base map M. After dyeing the base map M, the area mask map corresponding to the game map can be obtained.
[0075] Step 122: construct a preset data structure according to the pixel value of each pixel point in the regional mask image.
[0076] In some possible embodiments, the method of constructing a preset data structure can be, for example: determining the area identification information of the preset area corresponding to each pixel point based on the identification information of the pixel value of each pixel point in the area mask image; and constructing a preset data structure based on the identification information of each pixel value and the area identification information of each preset area.
[0077] In an embodiment of the present application, for example, the RGB value of each pixel in the area mask map can be traversed, and the identification information of the pixel value of each pixel can be determined according to the RGB value of each pixel and the preset segmentation rule. For example, the pixels with RGB=(32,0,0) in the area mask map are all areas corresponding to the preset area 1; the pixels with RGB=(64,0,0) in the area mask map are all areas corresponding to the preset area 2. For example, each pixel with RGB=(32,0,0) in the area mask map can be bound to the identification 1 of the preset area 1, and each pixel with RGB=(64,0,0) in the area mask map can be bound to the identification 2 of the preset area 2, and so on, to construct a preset data structure for the game map. In this determination method, only a string of two-dimensional arrays is stored in the preset data structure, the amount of data is greatly reduced, the storage pressure of the server or client is greatly reduced, and the resource consumption caused by data storage is reduced.
[0078] By adopting the method provided in the present application, the model of the game map and the preset data structure of each preset area in the game map are separately produced, and the configuration of the area corresponding to each pixel in the base map is realized by binding the area identifier of the preset area with the color channel of each pixel in the base map, wherein the base map is a map of the same size as the game map, thereby realizing flexible configuration of each preset area in the game map, and each preset area is not limited in number or shape, and is visually configured, so that the development side can configure each preset area offline, and the preset data structure of each preset area in the game map is stored in the form of a two-dimensional array, which greatly reduces the pressure of data storage and does not add burden to the server, and the opening state of the preset area and the preset function attributes can also be flexibly configured or expanded according to user needs, so that the production, development and maintenance costs of the preset area are greatly reduced.
[0079] The following is an explanation of the regional function control device in the game scene provided by the present application in conjunction with the accompanying drawings. The regional function control device in the game scene can perform the above Figure 1-Figure 4 The specific implementation and beneficial effects of the regional function control method in any game scene are as mentioned above and will not be repeated below.
[0080] Figure 5 This is a schematic diagram of the structure of a regional function control device in a game scene provided by an embodiment of the present application, such as Figure 5 As shown, the device includes: an acquisition module 201 and a determination module 202, wherein:
[0081] The acquisition module 201 is used to acquire a preset data structure of a game map, wherein the data structure pre-stores: area configuration data of at least one preset area in the game map;
[0082] The determination module 202 is used to determine the area configuration data of each preset area of the current game scene from the preset data structure;
[0083] The acquisition module 201 is specifically used to acquire the opening state attribute of each of the preset areas according to the game progress of the controlled virtual object in the game map;
[0084] The determining module 202 is specifically configured to determine the current attribute of each of the preset areas according to the area configuration data of each of the preset areas and the open state attribute.
[0085] Optionally, based on the above embodiment, the embodiment of the present application may also provide a regional function control device in a game scene, as follows in conjunction with the accompanying drawings: Figure 5 The implementation process of the given device is described by way of example. Figure 6 This is a structural diagram of a regional function control device in a game scene provided by another embodiment of the present application, such as Figure 6 As shown, the device also includes: a control module 203, which is used to control the controlled virtual object to perform a game behavior corresponding to the control operation in a partial first area in the game map in response to a control operation on the controlled virtual object; wherein the first area is an area where the opening state attribute indicates that it is turned on.
[0086] Alternatively, if Figure 6 As shown, the device further includes: an updating module 204, which is used to update the opening state attribute of each of the preset areas in response to a triggering event for updating the progress of the game map.
[0087] Optionally, the game map includes at least one second area in which the open state attribute indicates closed; the determination module 202 is specifically configured to determine whether to trigger the trigger event in response to the game behavior of the controlled virtual object in the first area;
[0088] The updating module 204 is specifically configured to update the opening state attribute of the first second area in the game map from closed to opened if the triggering event is triggered, so as to update the first second area to the first area.
[0089] Optionally, the area configuration data includes: functional status data, wherein the functional status data includes at least one functional attribute, and a determination module 202 is specifically used to determine the functional status data of each of the preset areas from the preset data structure; determine a target functional attribute in the functional status data of each of the preset areas; wherein the target functional attribute is a functional attribute that is in an on state.
[0090] Optionally, the determination module 202 is specifically configured to display a preset special effect corresponding to the first area in a first display state at the location of the first area in the current game scene; wherein the first area is an area indicated to be turned on by the turn-on state attribute.
[0091] Optionally, the determination module 202 is specifically configured to display a preset special effect corresponding to the second area in a second display state at the location of the second area in the current game scene; wherein the second area is an area where the opening state attribute indicates that it is closed.
[0092] Optionally, the acquisition module 201 is specifically configured to acquire a regional mask map corresponding to the game map according to the information of the game map;
[0093] The determination module 202 is specifically configured to construct the preset data structure according to the pixel value of each pixel point in the regional mask image.
[0094] Optionally, the determination module 202 is specifically used to bind the area identification information of each preset area with the color channel corresponding to each preset area according to the initial mask map corresponding to the game map and the number of preset areas corresponding to the game map, so as to obtain the area mask map corresponding to the game map.
[0095] Optionally, the determination module 202 is specifically used to determine the target color channel corresponding to each of the preset areas in multiple color channels according to the initial mask image corresponding to the game map, the number of the preset areas and the preset segmentation rules; and bind the area identification information of each preset area with the target color channel corresponding to each preset area.
[0096] Optionally, the determination module 202 is specifically used to determine the number of target segments according to the number of the preset areas and the preset segmentation rules; and determine the target color channel corresponding to each of the preset areas according to the initial mask image corresponding to the game map and the number of target segments.
[0097] Optionally, the determination module 202 is specifically configured to dye each preset region in the region mask image to obtain the dyed region mask image.
[0098] Optionally, the determination module 202 is specifically used to determine the area identification information of the preset area corresponding to each pixel point according to the identification information of the pixel value of each pixel point in the area mask image; and construct the preset data structure according to the identification information of each pixel value and the area identification information of each preset area.
[0099] Optionally, the determination module 202 is specifically configured to scale the preset data structure of the game map according to a preset ratio to obtain a scaled preset data structure.
[0100] By using the area function control device in the game scene provided by the present application, the area configuration data of each preset area in the game map can be stored in a preset data structure, so that the game map model and the preset data structure are two independent parts. The game map model is only responsible for the game performance in the game, and the preset data structure is used for the calculation, performance or logical structure of the logical layer in the game, which reduces the editing cost of the preset areas in the game map. During the game, the player can directly determine the area configuration data of each preset area in the current game scene in the preset data structure, and obtain the opening state attribute of the preset area according to the game progress of the controlled virtual object in the game map. According to the opening state attribute and the area configuration data of the preset area, the current attribute of each preset area is determined, so that whether each preset area in the game is turned on is determined by the area configuration data and the opening state attribute, which reduces the server overhead and does not add burden to the server.
[0101] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0102] Figure 7 This is a schematic diagram of the structure of a regional function control device in a game scene provided in one embodiment of the present application. The regional function control device in the game scene can be integrated into a terminal device or a chip of the terminal device.
[0103] like Figure 7 As shown, the regional function control device in the game scene includes: a processor 501, a bus 502 and a storage medium 503.
[0104] The processor 501 is used to store programs. The processor 501 calls the program stored in the storage medium 503 to execute the above Figure 1-Figure 4 Corresponding method embodiments.
[0105] Specifically, the steps of the processor 501 executing the method for controlling regional functions in the above-mentioned game scene include:
[0106] Acquire a preset data structure of a game map, wherein the data structure pre-stores: area configuration data of at least one preset area in the game map;
[0107] Determine the area configuration data of each preset area of the current game scene from the preset data structure;
[0108] According to the game progress of the controlled virtual object in the game map, obtaining the opening state attribute of each of the preset areas;
[0109] According to the area configuration data of each of the preset areas and the open state attribute, the current attribute of each of the preset areas is determined.
[0110] In some embodiments, the processor 501 is further configured to execute:
[0111] In response to a control operation on the controlled virtual object, the controlled virtual object is controlled to perform a game behavior corresponding to the control operation in a first portion of the game map; wherein the first portion is an area where the on-state attribute indicates on.
[0112] In some embodiments, the processor 501 is further configured to execute:
[0113] In response to a triggering event for updating the progress of the game map, the opening state attribute of each of the preset areas is updated.
[0114] In some embodiments, the game map includes at least one second area whose opening state attribute indicates closing; when the processor 501 executes the updating of the opening state attribute of each preset area in response to the triggering event for updating the progress of the game map, it is also used to execute:
[0115] In response to the game behavior of the controlled virtual object in the first area, determining whether to trigger the trigger event;
[0116] If the trigger event is triggered, the opening state attribute of the first second area in the game map is updated from closed to open, so as to update the first second area to the first area.
[0117] In some embodiments, the area configuration data includes: functional status data, wherein the functional status data includes at least one functional attribute, and the processor 501, when executing the determination of the area configuration data of each preset area of the current game scene from the preset data structure, is further used to execute:
[0118] Determining functional status data of each of the preset areas from the preset data structure;
[0119] The target functional attribute is determined in the functional status data of each of the preset areas; wherein the target functional attribute is a functional attribute in an on state.
[0120] In some embodiments, the processor 501 is further configured to execute:
[0121] At the location of the first area in the current game scene, a preset special effect corresponding to the first area is displayed in a first display state; wherein the first area is the area indicated to be turned on by the turn-on state attribute.
[0122] In some embodiments, the processor 501 is further configured to execute:
[0123] At the location of the second area in the current game scene, a preset special effect corresponding to the second area is displayed in a second display state; wherein the second area is the area where the opening state attribute indicates that it is closed.
[0124] In some embodiments, before executing the step of determining the area configuration data of each preset area of the current game scene from the preset data structure, the processor 501 is further configured to execute:
[0125] According to the information of the game map, obtaining a regional mask map corresponding to the game map;
[0126] The preset data structure is constructed according to the pixel value of each pixel point in the regional mask image.
[0127] In some embodiments, when the processor 501 executes the step of obtaining the area mask map corresponding to the game map according to the information of the game map, it is further configured to execute:
[0128] According to the initial mask image corresponding to the game map and the number of preset areas corresponding to the game map, the area identification information of each preset area is bound to the color channel corresponding to each preset area to obtain the area mask image corresponding to the game map.
[0129] In some embodiments, the processor 501, when executing the binding of the area identification information of each preset area with the color channel corresponding to each preset area according to the initial mask image corresponding to the game map and the number of preset areas corresponding to the game map, is further configured to execute:
[0130] Determine a target color channel corresponding to each of the areas in a plurality of color channels according to an initial mask image corresponding to the game map, the number of the preset areas, and a preset segmentation rule;
[0131] The region identification information of each preset region is bound to the target color channel corresponding to each preset region.
[0132] In some embodiments, when the processor 501 executes the step of determining the target color channel corresponding to each of the areas in the plurality of color channels according to the initial mask image corresponding to the game map, the number of the preset areas and the preset segmentation rule, it is further configured to execute:
[0133] Determining the number of target segments according to the number of the preset areas and the preset segmentation rule;
[0134] The target color channel corresponding to each of the preset areas is determined according to the initial mask image corresponding to the game map and the number of target segments.
[0135] In some embodiments, before executing the step of obtaining the area mask map corresponding to the game map, the processor 501 is further configured to execute:
[0136] Each preset area in the area mask image is dyed to obtain the dyed area mask image.
[0137] In some embodiments, when executing the step of constructing the preset data structure according to the pixel value of each pixel point in the regional mask image, the processor 501 is further configured to execute:
[0138] Determine the region identification information of the preset region corresponding to each pixel point according to the identification information of the pixel value of each pixel point in the region mask image;
[0139] The preset data structure is constructed according to the identification information of each pixel value and the area identification information of each preset area.
[0140] In some embodiments, before executing the step of determining the area configuration data of each preset area of the current game scene from the preset data structure, the processor 501 is further configured to execute:
[0141] The preset data structure of the game map is scaled according to a preset ratio to obtain a scaled preset data structure.
[0142] By using the regional function control device in the game scene provided by the present application, the regional configuration data of each preset area in the game map can be stored in a preset data structure, so that the game map model and the preset data structure are two independent parts. The game map model is only responsible for the game performance in the game, and the preset data structure is used for the calculation, performance or logical structure of the logical layer in the game, which reduces the editing cost of the preset areas in the game map. During the game, the player can directly determine the regional configuration data of each preset area in the current game scene in the preset data structure, and obtain the opening state attribute of the preset area according to the game progress of the controlled virtual object in the game map. According to the opening state attribute and the regional configuration data of the preset area, the current attribute of each preset area is determined, so that whether each preset area in the game is turned on is determined by the regional configuration data and the opening state attribute, which reduces the server overhead and does not add burden to the server.
[0143] Optionally, the present application also provides a program product, such as a storage medium, on which a computer program is stored, including a program that, when executed by a processor, executes an embodiment corresponding to the above method.
[0144] The specific processor executes the above method including the following steps:
[0145] Acquire a preset data structure of a game map, wherein the data structure pre-stores: area configuration data of at least one preset area in the game map;
[0146] Determine the area configuration data of each preset area of the current game scene from the preset data structure;
[0147] According to the game progress of the controlled virtual object in the game map, obtaining the opening state attribute of each of the preset areas;
[0148] According to the area configuration data of each of the preset areas and the open state attribute, the current attribute of each of the preset areas is determined.
[0149] In some embodiments, the processor is further configured to perform:
[0150] In response to a control operation on the controlled virtual object, the controlled virtual object is controlled to perform a game behavior corresponding to the control operation in a first portion of the game map; wherein the first portion is an area where the on-state attribute indicates on.
[0151] In some embodiments, the processor is further configured to perform:
[0152] In response to a triggering event for updating the progress of the game map, the opening state attribute of each of the preset areas is updated.
[0153] In some embodiments, the game map includes at least one second area whose opening state attribute indicates closing; when the processor executes the updating of the opening state attribute of each of the preset areas in response to the triggering event for the progress update of the game map, it is also used to execute:
[0154] In response to the game behavior of the controlled virtual object in the first area, determining whether to trigger the trigger event;
[0155] If the trigger event is triggered, the opening state attribute of the first second area in the game map is updated from closed to open, so as to update the first second area to the first area.
[0156] In some embodiments, the area configuration data includes: functional status data, wherein the functional status data includes at least one functional attribute, and when the processor executes the step of determining the area configuration data of each preset area of the current game scene from the preset data structure, it is also used to execute:
[0157] Determining functional status data of each of the preset areas from the preset data structure;
[0158] The target functional attribute is determined in the functional status data of each of the preset areas; wherein the target functional attribute is a functional attribute in an on state.
[0159] In some embodiments, the processor is further configured to perform:
[0160] At the location of the first area in the current game scene, a preset special effect corresponding to the first area is displayed in a first display state; wherein the first area is the area indicated to be turned on by the turn-on state attribute.
[0161] In some embodiments, the processor is further configured to perform:
[0162] At the location of the second area in the current game scene, a preset special effect corresponding to the second area is displayed in a second display state; wherein the second area is the area where the opening state attribute indicates that it is closed.
[0163] In some embodiments, before the processor determines the area configuration data of each preset area of the current game scene from the preset data structure, it is further configured to execute:
[0164] According to the information of the game map, obtaining a regional mask map corresponding to the game map;
[0165] The preset data structure is constructed according to the pixel value of each pixel point in the regional mask image.
[0166] In some embodiments, when the processor executes the step of obtaining the area mask map corresponding to the game map according to the information of the game map, the processor is further configured to execute:
[0167] According to the initial mask image corresponding to the game map and the number of preset areas corresponding to the game map, the area identification information of each preset area is bound to the color channel corresponding to each preset area to obtain the area mask image corresponding to the game map.
[0168] In some embodiments, the processor, when executing the step of binding the area identification information of each preset area with the color channel corresponding to each preset area according to the initial mask image corresponding to the game map and the number of preset areas corresponding to the game map, is further configured to execute:
[0169] Determine a target color channel corresponding to each of the areas in a plurality of color channels according to an initial mask image corresponding to the game map, the number of the preset areas, and a preset segmentation rule;
[0170] The region identification information of each preset region is bound to the target color channel corresponding to each preset region.
[0171] In some embodiments, when the processor executes the step of determining the target color channel corresponding to each of the areas in a plurality of color channels according to the initial mask image corresponding to the game map, the number of the preset areas, and the preset segmentation rule, the processor is further configured to execute:
[0172] Determining the number of target segments according to the number of the preset areas and the preset segmentation rule;
[0173] The target color channel corresponding to each of the preset areas is determined according to the initial mask image corresponding to the game map and the number of target segments.
[0174] In some embodiments, before executing the step of obtaining the area mask map corresponding to the game map, the processor is further configured to execute:
[0175] Each preset area in the area mask image is dyed to obtain the dyed area mask image.
[0176] In some embodiments, when the processor executes the step of constructing the preset data structure according to the pixel value of each pixel point in the regional mask image, the processor is further configured to execute:
[0177] Determine the region identification information of the preset region corresponding to each pixel point according to the identification information of the pixel value of each pixel point in the region mask image;
[0178] The preset data structure is constructed according to the identification information of each pixel value and the area identification information of each preset area.
[0179] In some embodiments, before the processor determines the area configuration data of each preset area of the current game scene from the preset data structure, it is further configured to execute:
[0180] The preset data structure of the game map is scaled according to a preset ratio to obtain a scaled preset data structure.
[0181] By using the storage medium provided by the present application, the regional configuration data of each preset area in the game map can be stored in a preset data structure, so that the game map model and the preset data structure are two independent parts. The game map model is only responsible for the game performance within the game, and the preset data structure is used for the calculation, performance or logical structure of the logical layer within the game, which reduces the editing cost of the preset areas in the game map. During the game, the player can directly determine the regional configuration data of each preset area in the current game scene in the preset data structure, obtain the activation state attribute of the preset area according to the game progress of the controlled virtual object in the game map, and determine the current attribute of each preset area according to the activation state attribute and the regional configuration data of the preset area, so that whether each preset area in the game is turned on is determined by the regional configuration data and the activation state attribute, which reduces the server overhead and does not add burden to the server.
[0182] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0184] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0185] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims
1. A method for controlling regional functions in a game scene, characterized in that: By displaying a graphical user interface on a terminal device, the graphical user interface displays a current game scene, and the method includes: Acquire a preset data structure of a game map, wherein the data structure pre-stores: area configuration data of at least one preset area in the game map; Determine the area configuration data of each preset area of the current game scene from the preset data structure; According to the game progress of the controlled virtual object in the game map, obtaining the opening state attribute of each of the preset areas; According to the area configuration data of each of the preset areas and the open state attribute, the current attribute of each of the preset areas is determined.
2. The method according to claim 1, characterized in that The method further comprises: In response to a control operation on the controlled virtual object, the controlled virtual object is controlled to perform a game behavior corresponding to the control operation in a first portion of the game map; wherein the first portion is an area where the on-state attribute indicates on.
3. The method according to claim 2, characterized in that: The method further comprises: In response to a triggering event for updating the progress of the game map, the opening state attribute of each of the preset areas is updated.
4. The method according to claim 3, characterized in that The game map includes at least one second area whose open state attribute indicates closed; The updating of the opening state attribute of each of the preset areas in response to the triggering event for updating the progress of the game map includes: In response to the game behavior of the controlled virtual object in the first area, determining whether to trigger the trigger event; If the trigger event is triggered, the opening state attribute of the first second area in the game map is updated from closed to open, so as to update the first second area to the first area.
5. The method according to claim 1, characterized in that The area configuration data includes: functional status data, wherein the functional status data includes at least one functional attribute, and the area configuration data of each preset area of the current game scene is determined from the preset data structure, including: Determining functional status data of each of the preset areas from the preset data structure; The target functional attribute is determined in the functional status data of each of the preset areas; wherein the target functional attribute is a functional attribute in an on state.
6. The method according to claim 1, characterized in that The method further comprises: At the location of the first area in the current game scene, a preset special effect corresponding to the first area is displayed in a first display state; wherein the first area is the area indicated to be turned on by the turn-on state attribute.
7. The method according to claim 1, characterized in that The method further comprises: At the location of the second area in the current game scene, a preset special effect corresponding to the second area is displayed in a second display state; wherein the second area is the area where the opening state attribute indicates that it is closed.
8. The method according to claim 1, characterized in that Before determining the area configuration data of each preset area of the current game scene from the preset data structure, the method further includes: According to the information of the game map, obtaining a regional mask map corresponding to the game map; The preset data structure is constructed according to the pixel value of each pixel point in the regional mask image.
9. The method according to claim 8, characterized in that The step of obtaining a regional mask map corresponding to the game map according to the information of the game map includes: According to the initial mask image corresponding to the game map and the number of preset areas corresponding to the game map, the area identification information of each preset area is bound to the color channel corresponding to each preset area to obtain the area mask image corresponding to the game map.
10. The method according to claim 9, characterized in that The step of binding the area identification information of each preset area with the color channel corresponding to each preset area according to the initial mask image corresponding to the game map and the number of preset areas corresponding to the game map includes: Determine a target color channel corresponding to each of the areas in a plurality of color channels according to an initial mask image corresponding to the game map, the number of the preset areas, and a preset segmentation rule; The region identification information of each preset region is bound to the target color channel corresponding to each preset region.
11. The method according to claim 10, characterized in that The step of determining a target color channel corresponding to each of the areas in a plurality of color channels according to the initial mask image corresponding to the game map, the number of the preset areas, and a preset segmentation rule includes: Determining the number of target segments according to the number of the preset areas and the preset segmentation rule; The target color channel corresponding to each of the preset areas is determined according to the initial mask image corresponding to the game map and the number of target segments.
12. The method according to claim 8, characterized in that Before obtaining the area mask map corresponding to the game map, the method further includes: Each preset area in the area mask image is dyed to obtain the dyed area mask image.
13. The method according to claim 8, characterized in that The step of constructing the preset data structure according to the pixel value of each pixel point in the regional mask image includes: Determine the region identification information of the preset region corresponding to each pixel point according to the identification information of the pixel value of each pixel point in the region mask image; The preset data structure is constructed according to the identification information of each pixel value and the area identification information of each preset area.
14. The method according to claim 1, characterized in that Before determining the area configuration data of each preset area of the current game scene from the preset data structure, the method further includes: The preset data structure of the game map is scaled according to a preset ratio to obtain a scaled preset data structure.
15. A regional function control device in a game scene, characterized in that: The device comprises: an acquisition module and a determination module, wherein: The acquisition module is used to acquire a preset data structure of the game map according to information of the game map where the current game scene is located, wherein the data structure pre-stores: area configuration data of at least one preset area in the game map; The determination module is used to determine the area configuration data of the target area in the current game scene from the preset data structure according to the position information of the current game scene; and determine the opening state of the target area according to the area configuration data of the target area.
16. A regional function control device in a game scene, characterized in that: The device includes: a processor, a storage medium and a bus, the storage medium stores machine-readable instructions executable by the processor, when the area function control device in the game scene is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the method described in any one of claims 1 to 14.
17. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 14 is executed.
