Game control method and device, electronic equipment and readable storage medium

By dividing grid units in the game scene and adjusting the position of virtual characters, the problem of poor visual effects and weak immersion caused by overlapping display of virtual characters is solved, and the visual effects and immersion of the game are improved.

CN118846508APending Publication Date: 2024-10-29NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410925975.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the game, when multiple virtual characters are stacked in the same position or battle animations are played sequentially, the visual effects are poor and the player's immersion is weak.

Method used

By dividing grid units in the game scene, multiple reference positions surrounding the target object are determined, and their positions are adjusted according to the boundary of the second object's collision grid area, so that the second object is distributed at the target reference position to reduce overlap and improve Realism and immersion.

Benefits of technology

It achieves a reasonable distribution between virtual characters and between target characters, improves the visual effects of the game and player immersion, avoids overlapping display between virtual characters, and enhances the fidelity of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118846508A_ABST
    Figure CN118846508A_ABST
Patent Text Reader

Abstract

The invention discloses a game control method and device, electronic equipment and a readable storage medium. The method comprises the steps that a graphical user interface for displaying a game scene comprising a plurality of grid units is provided through terminal equipment, and the game scene comprises a first object located on at least one grid unit; according to a grid area formed by at least one grid unit occupied by the first object in the game scene, determining a plurality of non-overlapped reference positions surrounding the first object; in response to the collision of at least one second object to the area boundary of the grid area, if at least one reference position in an unoccupied state is included in the plurality of reference positions, determining a target reference position corresponding to each second object in each reference position in the unoccupied state according to each collision position; and controlling each second object to move to the corresponding target reference position. According to the method, the overlapping condition of a plurality of second objects surrounding the first object in the spatial position can be relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a game control method, device, electronic device, and computer-readable storage medium. Background Art

[0002] In some games, there are often situations where multiple virtual characters surround and attack a target character.

[0003] In the related art, when multiple virtual characters surround and attack a target character, the multiple virtual characters can be displayed overlappingly, and then each virtual character performs overlapping attacks; or, in some strategy games, the virtual character model is displayed above the attacked target character, that is, the virtual character and the target character are displayed overlappingly; or, in some related arts, when multiple virtual characters are in the same position, the combat animation of each virtual character is played separately in a preset order.

[0004] However, when the virtual characters are stacked together in the same position to perform overlapping attacks or when combat animations are played sequentially, the visual effect is poor and the player's sense of immersion is weak.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] In view of this, the present application provides a game control method, device, electronic device and computer-readable storage medium, which can reduce the overlap of multiple second objects besieging a first object in spatial position, thereby improving the player's visual effect and increasing the immersion of the game.

[0007] In a first aspect, an embodiment of the present application provides a method for controlling a game, providing a graphical user interface through a terminal device; the method comprising: displaying at least a portion of a game scene through the graphical user interface, the game scene comprising a plurality of grid units, the game scene comprising a first object located on at least one of the grid units;

[0008] Determine, according to a grid area composed of at least one of the grid units occupied by the first object in the game scene, a plurality of reference positions surrounding the first object, wherein the reference positions do not overlap;

[0009] In response to at least one second object colliding with a region boundary of the grid region, if the plurality of reference positions include at least one reference position in an unoccupied state, determining target reference positions corresponding to each second object in each of the unoccupied reference positions according to collision positions of each second object colliding with the region boundary of the grid region;

[0010] Control each of the second objects to move to the corresponding target reference position.

[0011] In a second aspect, an embodiment of the present application provides a game control device, which provides a graphical user interface through a terminal device; the device includes: a display unit, a determination unit, and a control unit;

[0012] The display unit is used to display at least a part of the game scene through the graphical user interface, the game scene includes a plurality of grid units, and the game scene includes a first object located on at least one of the grid units;

[0013] The determining unit is used to determine a plurality of reference positions surrounding the first object according to a grid area composed of at least one grid unit occupied by the first object in the game scene; the reference positions do not overlap;

[0014] The determining unit is further configured to, in response to at least one second object colliding with a region boundary of the grid region, determine, in each of the unoccupied reference positions, target reference positions corresponding to each of the second objects, respectively, according to collision positions of each of the second objects colliding with the region boundary of the grid region if the multiple reference positions include at least one reference position in an unoccupied state;

[0015] The control unit is used to control each of the second objects to move to the corresponding target reference position.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0017] Processor; and

[0018] The memory is used to store a data processing program. After the electronic device is powered on and the program is run by the processor, the method of the first aspect is executed.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a data processing program, which is executed by a processor to perform the method of the first aspect.

[0020] The game control method provided by the present application provides a graphical user interface through a terminal device; displays at least part of a game scene through the graphical user interface, the game scene includes a plurality of grid units, and the game scene includes a first object located on at least one grid unit; determines multiple reference positions surrounding the first object according to a grid area composed of at least one grid unit occupied by the first object in the game scene; the reference positions do not overlap; responds to at least one second object colliding with an area boundary of the grid area, if the multiple reference positions include at least one reference position in an unoccupied state, determines the target reference positions corresponding to the second objects in each unoccupied reference position according to the collision position of each second object colliding with the area boundary of the grid area; and controls each second object to move to the corresponding target reference position.

[0021] It can be seen that when the determined reference positions are distributed around the first object and the reference positions do not overlap, when it is detected that the second object collides with the region boundary of the grid region where the first object is located, it is first detected whether the reference positions include reference positions in an unoccupied state. If so, the corresponding target reference position is quickly determined for the second object in each unoccupied reference position, and the second object is moved to the target reference position. In this way, the second objects located at the target reference position can be distributed around the first object to achieve a situation of encircling the first object; and each target reference position is determined from multiple reference positions in an unoccupied state, that is, the target reference position corresponding to each second object is not the same reference position, which can reduce the overlap between the second objects and between the second objects and the first object, increase the realism of the virtual game, enhance the player's visual experience, and improve the player's immersion in the game. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0023] Figure 1 A schematic diagram of a graphical user interface provided in the related art showing overlapping display of multiple virtual characters when besieging a target character;

[0024] Figure 2 A schematic diagram of an example of a graphical user interface provided in the related art when multiple virtual characters and a target character being attacked are displayed overlappingly;

[0025] Figure 3A schematic diagram of a game system for implementing a game control method provided in an embodiment of the present application;

[0026] Figure 4 A flowchart of an example of a method for controlling a game provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of multiple reference positions surrounding a first object provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of the boundary corner points corresponding to the grid areas of different layouts and the outer lengths of each grid unit provided in an embodiment of the present application;

[0029] Figure 7 A schematic diagram of an example of evenly distributing the reference positions of the target number on the encirclement provided in an embodiment of the present application;

[0030] Figure 8 A schematic diagram of an example of unevenly distributing the reference positions of the target number on the encirclement provided in an embodiment of the present application;

[0031] Fig. 9 A schematic diagram of an example of determining a target reference position provided in an embodiment of the present application;

[0032] Fig.10 A schematic diagram of an example of determining a target reference position for a plurality of second objects moving toward a first object in the same direction provided by an embodiment of the present application;

[0033] Fig.11 A schematic diagram of an example of determining target reference positions for a plurality of second objects moving toward a first object in different directions provided by an embodiment of the present application;

[0034] Fig.12 A schematic diagram of an example of determining a target reference position for a second object when multiple reference positions provided in an embodiment of the present application are occupied;

[0035] Fig.13 A schematic diagram of a graphical user interface of an example of a control method for an application game provided in an embodiment of the present application;

[0036] Fig.14 A schematic diagram of the structure of a game control device provided in an embodiment of the present application;

[0037] Fig.15 A structural block diagram of an electronic device for implementing a game control method is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0038] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0039] It should be noted that the terms "first", "second", "third", etc. in the claims, description and drawings of the present application are used to distinguish similar objects and are not used to describe a specific order or sequence. The data used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including", "having" and their variants are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0040] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" is merely a way to describe the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "Including A, B and / or C" means including any one, any two, or any three of A, B, and C.

[0041] It should be understood that in the embodiments of the present application, "B corresponding to A", "B corresponding to A", "A corresponds to B", or "B corresponds to A" means that B is associated with A, and B can be determined according to A. Determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.

[0042] Before describing the implementation methods of the present application in detail, the related technologies are first further introduced.

[0043] In the related art, when multiple virtual characters attack a target character, Figure 1As shown, in the graphical user interface 100, target character 1, and virtual character 2, virtual character 3, virtual character 4 and virtual character 5 are displayed, wherein virtual character 2, virtual character 3, virtual character 4 and virtual character 5 besiege target character 1; virtual character 3, virtual character 4 and virtual character 5 in the graphical user interface 100 are displayed overlappingly, and then each virtual character 3 to virtual character 5 overlaps and attacks target character 1; in this game, there is no need to detect physical collisions, and for each virtual character, the entire space in the game scene can be occupied, so all virtual characters can select the same position and stack together for display. In some related technologies, when multiple virtual characters overlap, the battle animation of each virtual character can be played separately in a preset order, but this gives the player a very unrealistic experience and poor visual effects.

[0044] Alternatively, in some strategy games, a model or logo representing a virtual character is displayed above the target character being attacked, that is, the model or logo of the virtual character is displayed overlapping with the target character; Figure 2 As shown, in the graphical user interface 101, the models corresponding to camp 7, camp 8 and camp 9 are displayed above the model of city 6, to indicate that camp 7, camp 8 and camp 9 attack city 6. In this way, the attacking model and the attacked model overlap each other, the player's visual experience is poor, and the game is not very realistic.

[0045] Based on the above-mentioned problems, the embodiments of the present application provide a game control method, device, electronic device and computer-readable storage medium.

[0046] The control method of the game provided in the embodiment of the present application can be performed by an electronic device, which can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, or a laptop computer. The server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (such as software or software modules for providing distributed services), or it can be implemented as a single software or software module. The embodiment of the present application does not specifically limit this.

[0047] In an optional embodiment, when the game control method is run on a terminal device, the terminal device stores a game application and a game virtual scene. The terminal device interacts with the player through a graphical user interface. The 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 device, or the graphical user interface may be presented through holographic projection.

[0048] In an optional embodiment, when the control method of the game is run on the server, the method can be implemented and executed based on the cloud gaming system. The cloud gaming system refers to a gaming method based on cloud computing. The cloud gaming system includes a server and a client device. The operating body of the game application and the game screen presentation body are separated, and the storage and operation of the game control method are completed on the server. The game screen presentation is completed on the client, and the client is mainly used for receiving and sending game data and presenting the game screen. For example, the client 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, a personal digital assistant, a head-mounted display device, etc., but the terminal device for processing game data is a server in the cloud. When playing the game, the player operates the client to send instructions to the server, and the server controls the running of the game according to the instructions, encodes and compresses the game screen and other data, and returns it to the client through the network. Finally, the client decodes and outputs the game screen.

[0049] It should be noted that in the embodiments of the present application, the execution subject of the game control method can be a terminal device or a server, wherein the terminal device can be a local terminal device or a client device in the aforementioned cloud game. The embodiments of the present application do not limit the type of the execution subject.

[0050] For example, in combination with the above introduction, Figure 3 A game system 1000 for implementing a game control method provided by an embodiment of the present application is shown. The game system 1000 may include at least one terminal 1001, at least one server 1002, at least one database 1003, and a network. The terminal 1001 held by the player can be connected to the servers of different games through the network. The terminal is any device with computing hardware that can support and execute software application tools corresponding to the game.

[0051] In the above-mentioned game system 1000, the terminal 1001 is used to install and run the game application. In some cases, the game application may not be installed in advance in the terminal 1001, and the player can directly access the game through a client such as a browser. The player uses the registered game account to log in to the game application, and can control the virtual character corresponding to the game account to participate in the game. When the player logs in to the game application, the terminal 1001 will send a login request to the server 1002, and the server 1002 will verify the game account used by the player. At the same time, the server 1002 determines the game mechanism corresponding to the game account according to the login request, and the verification will return a login success notification to the terminal 1001. In the process of the player participating in the game through the game application, the terminal 1001 and the server 1002 interact with each other, and the terminal 1001 sends various information to the server 1002. The server 1002 determines the display data of the terminal 1001 according to the stored game mechanism (such as the control method of the game provided in this application) and the received information, and sends the display data to the terminal 1001, so as to display the display data sent by the server 1002 to the player through the terminal 1001.

[0052] In possible application scenarios, different terminals 1001 may be served by different servers 1002. Therefore, in order to distinguish the servers 1002 corresponding to different game terminals 1001, the first and second methods will be used for description when involved in the embodiments of the present application. In fact, the servers 1002 corresponding to different game terminals 1001 may be the same server 1002. Therefore, without distinguishing between the first and the second, it can be understood that the terminals 1001 corresponding to the virtual characters in the same game scene are served by the same server 1002.

[0053] In addition, when the game system 1000 includes multiple terminals, multiple servers, and multiple networks, different terminals can be connected to each other through different networks and different servers. The network can be a wireless network or a wired network, such as a wireless network such as a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different terminals can also use their own Bluetooth network or hotspot network to connect to other terminals or to servers, etc. In addition, the game system 1000 may include multiple databases, multiple databases are coupled to different servers, and game-related information can be continuously stored in the database when different players play multi-player games online.

[0054] It should be noted that Figure 3The game system diagram shown is only an example. The game system 1000 described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can know that with the evolution of the game system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0055] It should be noted that in the embodiment of the present application, a graphical user interface of a virtual game is provided by a terminal device in a game system. There is no restriction on whether the terminal device providing the graphical user interface is placed horizontally or vertically, that is, there is no specific restriction on whether the virtual game is a horizontal screen game or a vertical screen game. In this embodiment, the virtual game is a vertical screen game, and the terminal device is placed vertically as an example to introduce the solution. However, it does not mean that the interactive control method of the game provided in this application is not applicable to horizontal screen games. The interactive control method of the game provided in this application can be applicable to horizontal screen games and vertical screen games, that is, the operation mode set in the virtual game and the corresponding game logic are consistent in horizontal screen games and vertical screen games, and there are only slight differences in the layout of the interface elements in the graphical user interface.

[0056] The technical solution of the present application is 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 in detail in some embodiments.

[0057] like Figure 4 As shown, Figure 4 This is a flowchart of an example of a method for controlling a game provided in an embodiment of the present application. It should be noted that the steps shown may be performed in a logical order different from that shown in the flowchart of the method. The method may include the following steps S210 to S240.

[0058] Step S210: displaying at least a portion of a game scene through a graphical user interface, where the game scene includes a plurality of grid units, and the game scene includes a first object located on at least one grid unit.

[0059] Step S220: determining a plurality of reference positions surrounding the first object according to a grid area composed of at least one grid unit occupied by the first object in the game scene; the reference positions do not overlap.

[0060] Step S230: In response to at least one second object colliding with an area boundary of a grid area, if the multiple reference positions include at least one reference position in an unoccupied state, according to the collision position of each second object colliding with the area boundary of the grid area, determine the target reference positions corresponding to each second object in each unoccupied reference position.

[0061] Step S240: Control each second object to move to a corresponding target reference position.

[0062] The above steps S210 to S240 are described in detail below.

[0063] Step S210: displaying at least a portion of a game scene through a graphical user interface, where the game scene includes a plurality of grid units, and the game scene includes a first object located on at least one grid unit.

[0064] The graphical user interface is the visual representation and operation interface for players to interact with virtual games. It includes the game scenes of the virtual game, control components, social elements, etc., which are used to display the style of the game world and guide user operations.

[0065] In a graphical user interface, multiple interface contents to be displayed are usually presented in layers. Layers refer to a layered display method in a graphical user interface. Different interface contents can be placed on different layers to better control the display and hiding of each interface content. For example, the game scene can be placed on the scene layer, that is, the scene layer is mainly used to render the game world and the objects therein, including characters, environments, dynamic elements, etc. The display of various UI (User Interface) elements is placed on the UI layer. For example, UI elements can include but are not limited to various operation controls, information panels for displaying various game information (such as chat interfaces, character status panels, etc.), game thumbnail maps, and other elements. Since UI elements are interface elements for players to interact with games, generally, the display level of the UI layer where UI elements are placed is higher than the scene layer of the game scene. That is, the display level of each UI element is higher than the display level of the scene screen.

[0066] Among them, the game scene displayed in the scene layer can be understood as a scene in which the player controls the virtual character to complete the game logic. It can be a simulation environment of the real world in the game, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The game scene can be any one of a two-dimensional game scene, a 2.5-dimensional game scene, and a three-dimensional game scene. A game scene can usually include multiple scene elements, and a scene element refers to each element required to constitute the game scene. For example, it can include but is not limited to at least one of the following: virtual character elements, virtual item elements, virtual building elements, virtual terrain elements, virtual vegetation elements, etc. Among them, virtual terrain elements can include but are not limited to natural landform elements such as land, oceans, lakes, and rivers.

[0067] In this embodiment, the game scene includes several grid units. In other words, the game scene can be divided into several grid units. Among them, the grid unit refers to dividing the game map into a series of minimum operation units with fixed sizes for technical aspects such as physical simulation and collision detection when designing the game map. These minimum operation units can be quadrilaterals, hexagons or other shapes. In this embodiment, the grid unit is taken as an example of a quadrilateral. That is, the grid unit is the basis for building the game scene, especially in strategy games, role-playing games, simulation business games, and many two-dimensional games and three-dimensional games. For example, in the game, the grid unit can be used to locate each scene element, control movement, and detect collisions with obstacles.

[0068] It should be noted that the sizes of different grid cells can be the same or different. Usually, the sizes of each grid cell remain consistent. In addition, each grid cell can have different attributes, such as terrain type (grassland, desert, water, mountain, etc.), traffic conditions (whether it is passable, speed penalty, etc.), resource distribution, visual appearance (texture, color) and interactive elements (buildings, obstacles, treasure chests, etc.).

[0069] It should be noted that, in this embodiment, the grid unit may be referred to as a plot unit, and one grid unit corresponds to one plot unit.

[0070] When the above-mentioned first object is displayed in the game scene, it is located on at least one grid unit. When the model corresponding to the first object is large, the first object can be located on multiple grid units in the game scene. Among them, the first object can be understood as a scene element located in the game scene. Specifically, it can include but is not limited to: a player character model representing the image of a player participating in a virtual game, a non-player character model, or a model of a virtual object in the game scene. Each model can be a three-dimensional virtual model or a two-dimensional virtual model, which is not specifically limited in this embodiment. That is, the first object includes but is not limited to at least one of a virtual character, a virtual animal, a virtual machine, a virtual building, and a virtual plant.

[0071] In this embodiment, the first object is an attacked object, and may be a virtual object corresponding to any game account participating in the virtual game.

[0072] It is understandable that virtual games can be divided into first-person games and third-person games according to the shooting angle of the virtual camera. Generally speaking, in a first-person game, the virtual camera that shoots the game scene can be set at a certain position of the virtual object controlled by the player (such as the head of the virtual character), and the virtual camera moves with the movement of the virtual object, and the direction of the virtual camera rotates with the rotation of the virtual object, that is, the shooting angle of the virtual camera is consistent with the direction of the virtual object. Therefore, the game scene is a part of the game scene within a preset range in front of the virtual character. In a third-person game, the virtual camera can be set directly above the virtual object controlled by the player (which can be called a God's perspective game) or above and behind, so the game scene is a part of the game scene including the virtual object.

[0073] It should be noted that in the embodiments of the present application, a third-person game is taken as an example for introduction. The game scene displayed through the graphical user interface may be a game scene captured by a virtual camera when shooting a virtual character controlled by a player, and the entire virtual character controlled by the player is displayed in the game scene.

[0074] Step S220: determining a plurality of reference positions surrounding the first object according to a grid area composed of at least one grid unit occupied by the first object in the game scene; the reference positions do not overlap.

[0075] As described above, the first object can be located on at least one grid unit in the game scene. Depending on the model shape and model area corresponding to the first object, the number and layout of the grid units occupied by the first object in the game scene are different. In this embodiment, the one or more grid units occupied by the first object in the game scene are referred to as a grid area.

[0076] The above-mentioned multiple reference positions surrounding the first object refer to the attack positions of each second object when at least one second object belonging to a different camp from the first object attacks the first object. In this embodiment, one second object belongs to an attack unit, and an attack unit may include one or more virtual characters, virtual animals and / or virtual machines. When attacking the first object, different second objects belong to the same camp; for example, the second object may be a single virtual character or a unit composed of multiple virtual characters.

[0077] In this embodiment, the reference positions can be distributed around the first object to present a tendency to surround the first object, and the reference positions do not overlap each other. In this way, when the second objects are located at the reference positions, the second objects will not be located at the same reference position, reducing the overlap between the second objects.

[0078] It should be noted that the reference positions may be evenly distributed around the first object or unevenly distributed around the first object. The even distribution of the reference positions around the first object generally refers to setting the reference positions according to a certain criterion so that the reference positions appear to be balanced in shape or achieve optimal distribution in a certain sense. The distances between the reference positions evenly distributed around the first object and the object boundary of the first object may be the same or different, and are set according to a specific even distribution strategy, which will not be described in detail here.

[0079] The reference positions are unevenly distributed around the first object. The reference positions may be distributed at specific positions around the first object, but not evenly distributed between the specific positions. The specific distribution method may be referred to in the following description and will not be described in detail here.

[0080] For the specific implementation of step S220, please refer to the following description and will not be described in detail here.

[0081] Step S230: In response to at least one second object colliding with an area boundary of a grid area, if the multiple reference positions include at least one reference position in an unoccupied state, according to the collision position of each second object colliding with the area boundary of the grid area, determine the target reference positions corresponding to each second object in each of the reference positions in the unoccupied state.

[0082] When the second object collides with the region boundary of the grid area, it means that the second object and the region boundary of the grid area are in contact with each other; and the above-mentioned collision position is the position of the second object when the second object and the region boundary of the grid area are in contact with each other. In this embodiment, when the second object contacts the region boundary of the grid area where the first object is located, it can be considered that the second object has entered the battle area where it can fight with the first object.

[0083] In this embodiment, the target reference position is the position where each second object is located when fighting with the first object. It should be noted that in this embodiment, when each second object is at the target reference position, it cannot be changed.

[0084] It is understandable that in the game, when multiple second objects collide with the region boundaries of the grid region in different directions at the same time, the collision positions of the region boundaries of the grid region where each second object collides are monitored simultaneously, and the target reference positions corresponding to each second object are determined respectively according to each collision position. One second object corresponds to one target reference position.

[0085] It is understandable that the initial position state corresponding to the multiple reference positions surrounding the first object determined in the above step S220 may be an unoccupied state, that is, there is no second object at each reference position at the beginning; as the game progresses, some reference positions may be occupied by second objects, and each reference position includes reference positions in an occupied state and reference positions in an unoccupied state. In this step S230, when determining the target reference positions corresponding to each second object, the position state of each reference position is first detected. When there is a reference position in an unoccupied state in each reference position, the target reference position is determined in each unoccupied reference position. In this way, it is possible to avoid allocating multiple second objects at the same reference position, so that each second object corresponds to a unique target reference position, reduce the overlap between the second objects in the related art, and improve the player's visual experience and the immersion of the game.

[0086] Step S240: Control each second object to move to a corresponding target reference position.

[0087] After the target reference positions corresponding to the second objects are determined in step S230, the second objects are controlled to automatically move to their corresponding target reference positions, so that the second objects can fight with the first objects at the target reference positions.

[0088] It can be seen that when the determined reference positions are distributed around the first object and the reference positions do not overlap, when it is detected that the second object collides with the region boundary of the grid region where the first object is located, it is first detected whether the reference positions include reference positions in an unoccupied state. If so, the corresponding target reference position is quickly determined for the second object in each unoccupied reference position, and the second object is moved to the target reference position. In this way, the second objects located at the target reference position can be evenly distributed around the first object to achieve a situation of encircling the first object; and each target reference position is determined from multiple reference positions in an unoccupied state, that is, the target reference position corresponding to each second object is not the same reference position, which can reduce the overlap between the second objects and between the second objects and the first object, increase the realism of the virtual game, enhance the player's visual experience, and improve the player's immersion in the game.

[0089] The following is a further introduction to the game control method provided by this application.

[0090] In some optional embodiments, the above step S220 can be specifically implemented through the following steps S221 to S222.

[0091] Step S221: determining an encirclement whose distance from the object boundary of the first object is equal to a preset distance.

[0092] Step S222: determining a plurality of reference positions surrounding the first object on the encirclement according to a grid area composed of at least one grid unit occupied by the first object in the game scene.

[0093] The purpose of step S221 to step S222 is to limit the determined multiple reference positions to be located on the same encirclement so that the distance between each reference position and the object boundary of the first object is equal.

[0094] In this embodiment, the object boundary of the first object refers to a physical boundary defined for the model of the first object, and the space occupied by the first object in the game scene is represented by the physical boundary.

[0095] Typically, the physical boundary may be a player's visual boundary, that is, a visible boundary on a graphical user interface; or it may be a pre-set collision boundary that is wider than the visual boundary, such as a boundary represented by a bounding box set for the first object.

[0096] In a specific embodiment, the visual boundary of the first object may be simplified using a bounding box, or the visual boundary of the first object may not be simplified. Generally, the first object may be simplified into a rectangular or circular equiaxially symmetrical collision body through a bounding box, that is, a cube or a sphere is set to surround the first object, and then the collision with the cube or the sphere is detected to detect whether the first object is collided, which helps to ensure the authenticity of the collision detection of the first object in the game and save game performance; or, the boundary shape of the first object may not be simplified, and the visual boundary of the first object may only be expanded a certain distance to obtain the object boundary of the first object for collision detection. At this time, the object boundary of the first object has the same shape as the visual boundary of the first object. If the visual boundary of the first object is an irregular shape, the object boundary of the expanded first object is also an irregular shape. For the object boundary of the first object, the embodiment of the present application does not specifically limit it, and it can be set according to actual needs.

[0097] The above-mentioned preset distance can be regarded as the attack distance between the second object and the first object, that is, when the distance between the second object and the first object is the preset distance, if the second object has not defeated the first object, the second object cannot move forward until it defeats the first object. The specific value of the preset distance can be set according to the actual needs of the game, and there is no specific limitation on this.

[0098] The encirclement may be a position set of multiple reference positions whose distances from the object boundary of the first object are equal to a preset distance; one encirclement corresponds to a position set corresponding to a specified preset distance, and different encirclements are different position sets of reference positions whose distances from the object boundary of the first object are equal to different preset distances. It should be noted that the encirclement is only a virtual concept, which is used to characterize that each position set is densely arranged through multiple reference positions, so that when multiple second objects are located at each reference position, a visual "circle" surrounding the first object is formed. In essence, the reference position is directly set at a distance equal to the object boundary, without setting an encirclement.

[0099] In this embodiment, each reference position may be located on the same encirclement or on different encirclements. In the specific embodiment, the scheme is introduced by taking the reference positions being located on the same encirclement as an example, that is, the specific examples of this application all take the existence of an encirclement around the first object as an example. Generally, the encirclement is not visible in the graphical user interface. Of course, the encirclement can also be indicated by highlighting, special icons or other signs to help players understand the battlefield layout in the game.

[0100] like Figure 5 As shown, Figure 5 A schematic diagram of multiple reference positions surrounding a first object provided in an embodiment of the present application. It can be understood that: Figure 5 In the specific example shown, a virtual building is taken as a specific example of the first object, the virtual building occupies 9 grid units in the game scene as a specific example of the grid area, and 20 reference positions are taken as a specific example of multiple reference positions.

[0101] like Figure 5 As shown, it is assumed that the virtual building as the first object occupies 9 grid units in the game scene, and the grid area formed by these 9 grid units is a nine-square grid; Figure 5 In the figure, a solid circle represents the object boundary preset for the virtual building, and a dotted circle represents the encirclement at a distance R1 from the object boundary. 20 reference positions are distributed on the encirclement. The distance between the 20 reference positions and the object boundary is R1, and the reference positions do not overlap with each other.

[0102] It should be noted that there is no correlation between the visual boundary shape of the first object, the shape of the grid area, the shape of the object boundary of the first object and the shape of the encirclement, and the shapes may be the same or different, which is not specifically limited in this embodiment.

[0103] For example, Figure 5As shown, the shape of the grid area is a rectangle. It is assumed that the visual boundary of the virtual building is also a rectangle, and the boundaries of the enclosing circle and the first object can both be circles. Optionally, Figure 5 The encircling circle in is set to a rectangle. There is no specific restriction on this.

[0104] It should be noted that when the shape of the object boundary of the first object is the same as the shape of the grid area, if the above preset distance is the same as the distance between the area boundary of the grid area and the object boundary of the first object, the area boundary can be used as an encirclement.

[0105] In some optional specific embodiments, in the above step S222, "determining multiple reference positions surrounding the first object on the encirclement according to a grid area composed of at least one grid unit occupied by the first object in the game scene" can be specifically implemented through the following steps T10 to T20.

[0106] Step T10: Determine layout information of a grid area composed of at least one grid unit occupied by the first object in the game scene.

[0107] Step T20: determining a plurality of reference positions surrounding the first object on the encirclement according to the layout information.

[0108] It can be understood that the layout information of the grid area refers to a set of information on the spatial distribution and arrangement rules of each grid unit in the grid area; the layout information of the grid area may include but is not limited to: the number of grid units in the grid area, the position of each grid unit, the alignment of each grid unit, the shape of the grid area, the corner points corresponding to the grid area, the side length of the grid area, the size of the grid area and other information, without specific limitation.

[0109] When the layout information of the grid area is determined, multiple reference positions surrounding the first object can be further determined on the encirclement according to the layout information. In this way, the distribution of each reference position can combine the characteristics of the encirclement and the grid area, thereby increasing the fidelity of the distribution of each reference position.

[0110] In an optional specific embodiment, in the above step T20, determining multiple reference positions surrounding the first object on the encirclement according to the layout information specifically needs to consider the distribution of the multiple reference positions, that is, the above step T20 can be implemented specifically through the following steps T21 to T22.

[0111] Step T21: Obtain a preset distribution pattern corresponding to a plurality of reference positions surrounding the first object.

[0112] Step T22: determining a plurality of reference positions surrounding the first object on the encirclement according to the layout information and a preset distribution method, wherein the preset distribution method is uniform distribution or non-uniform distribution.

[0113] It should be noted that, as described above, each reference position can be evenly distributed or unevenly distributed around the first object, that is, the preset distribution mode can be evenly distributed or unevenly distributed. When each reference position is located on the encirclement, each reference position can be evenly distributed on the encirclement or unevenly distributed on the encirclement; uneven distribution on the encirclement means that the unevenly distributed designated positions on the encirclement are determined as reference positions. The designated position can be understood as a position point with preset characteristics.

[0114] In an optional specific embodiment, the above step T22 can be implemented through the following steps T220 to T221.

[0115] Step T220: If the preset distribution mode is uniform distribution, determine the number of targets surrounding the reference position of the first object according to the layout information, where the number of targets is multiple.

[0116] Step T221: Determine reference positions of a target number uniformly distributed around the first object on the encirclement.

[0117] That is, the purpose of step T220 to step T221 is to determine the specific number of multiple reference positions surrounding the first object according to the layout information of the grid area when the reference positions are evenly distributed, that is, the target number of reference positions can be evenly distributed around the first object.

[0118] Specifically, the corresponding relationship between the boundary length corresponding to the grid area and the number of targets at the reference position can be preset. For example, when the boundary length corresponding to the grid area is l1, the number of targets at the reference position is m1; when the boundary length corresponding to the grid area is l2, the number of targets at the reference position is m2; when the boundary length corresponding to the grid area is l3, the number of targets at the reference position is m3; where l1, l2, and l3 are all different, then m1, m2, and m3 are all different.

[0119] Alternatively, in an optional specific embodiment, the above step T220 can be specifically implemented through the following steps T2200 to T2201.

[0120] Step T2200: Determine the number of boundary corner points corresponding to the grid area and the number of outer side lengths of each grid unit constituting the area boundary of the grid area according to the layout information.

[0121] Step T2201: Determine the number of targets surrounding the reference position of the first object on the encirclement according to the number of boundary corner points and the number of outer side lengths.

[0122] In this embodiment, the side length of each grid unit that constitutes the region boundary of the grid area is called the outer side length, and the side length of each grid unit that does not constitute the region boundary in the grid area is called the inner side length; the boundary corner point corresponding to the grid area refers to the turning point where two adjacent region boundaries intersect in the two-dimensional top view corresponding to the grid area and do not intersect with any inner side length, that is, the boundary corner point and the outer side length are used to define the outline of the grid area. In this embodiment, the point on the region boundary of the grid area that intersects with the inner side length is called a boundary point, and the boundary point does not have a turning angle.

[0123] In an optional specific embodiment, after determining the number of boundary corner points and the number of outer side lengths corresponding to the grid area, the sum of the number of boundary corner points and the number of outer side lengths can be determined as the target number of multiple reference positions surrounding the first object on the encirclement.

[0124] like Figure 6 As shown, Figure 6 Schematic diagram of the boundary corner points and the outer lengths of each grid unit corresponding to the grid areas of different layouts provided in the embodiment of the present application. Figure 6 Middle (a)~ Figure 6 The grid areas shown in (c) are all regular grid areas; Figure 6 The grid area shown in (d) is an irregular grid area.

[0125] like Figure 6 As shown in (a), Figure 6 In (a), a grid area composed of grid units is provided, i.e., a grid area of ​​1×1 layout; the grid area of ​​1×1 layout includes 4 boundary corner points and 4 outer side lengths; the 4 boundary corner points are: boundary corner point A, boundary corner point B, boundary corner point C, and boundary corner point D; the 4 outer side lengths are: outer side length AB, outer side length BC, outer side length CD, and outer side length DA. Based on this, the sum of the number of boundary corner points and the number of outer side lengths is 8, so 8 reference positions can be set for the first object located on the grid area, and the 8 reference positions are evenly distributed around the first object.

[0126] like Figure 6 As shown in (b), Figure 6(b) provides an example of a grid area composed of three grid units, specifically a grid area of ​​3×1 layout; the grid area includes 4 boundary corner points, 4 boundary points, 8 outer side lengths and 2 inner side lengths; among them, the 4 boundary corner points are: boundary corner point A, boundary corner point D, boundary corner point E and boundary corner point H; the 4 boundary points are: boundary point B, boundary point C, boundary point F and boundary point G, each boundary point intersects with the inner side length, so it is not used as a boundary corner point of the grid area; the 8 outer side lengths are: outer side length AB, outer side length BC, outer side length CD, outer side length DE, outer side length EF, outer side length FG, outer side length GH and outer side length HA; the 2 inner side lengths are: inner side length BG and inner side length CF. Based on this, the sum of the number of boundary corner points and the number of outer side lengths is 12, so 12 reference positions can be set for the first object located on the grid area, and the 12 reference positions are evenly distributed around the first object.

[0127] like Figure 6 As shown in (c), Figure 6 (c) provides an example of a grid area composed of four grid units, specifically a grid area with a 2×2 layout; the grid area includes 4 boundary corner points, 4 boundary points, 8 outer side lengths, 4 inner side lengths and 1 internal point; wherein the 4 boundary corner points are: boundary corner point A, boundary corner point C, boundary corner point E and boundary corner point G; the 4 boundary points are: boundary point B, boundary point D, boundary point F and boundary point H; the 1 internal point is internal point I; the 8 outer side lengths are: outer side length AB, outer side length BC, outer side length CD, outer side length DE, outer side length EF, outer side length FG, outer side length GH and outer side length HA; the 4 inner side lengths are: inner side length BI, inner side length FI, inner side length HI and inner side length DI; based on this, the sum of the number of boundary corner points and the number of outer side lengths is 12, then 12 reference positions can be set for the first object located on the grid area, and the 12 reference positions can be evenly distributed around the first object.

[0128] like Figure 6 As shown in (d), Figure 6(d) provides an example of an irregular grid region, which includes 8 boundary corner points, 4 boundary points, 4 inner side lengths, and 12 outer side lengths; wherein the 8 boundary corner points are: boundary corner point A, boundary corner point B, boundary corner point D, boundary corner point E, boundary corner point G, boundary corner point H, boundary corner point J, boundary corner point K; the 4 boundary points are: boundary point C, boundary point F, boundary point I, and boundary point L; the 12 outer side lengths are: outer side length AB, outer side length BC, outer side length CD, outer edge length DE, outer edge length EF, outer edge length FG, outer edge length GH, outer edge length HI, outer edge length IJ, outer edge length JK, outer edge length KL, and outer edge length LA; the four inner edge lengths are: inner edge length CF, inner edge length FI, inner edge length IL, and inner edge length LC; based on this, the sum of the number of boundary corner points and the number of outer edge lengths is 20, then 20 reference positions can be set for the first object located on the grid area, and the 20 reference positions can be evenly distributed around the first object.

[0129] Alternatively, in some optional specific embodiments, the outer side length described above may include: a first outer side length connected to a boundary corner point, and a second outer side length not connected to the boundary corner point; Figure 6 As shown in (b), in the three horizontally arranged grid units, the outer edge lengths respectively connected to the boundary corner point A, the boundary corner point D, the boundary corner point E and the boundary corner point H may include: outer edge length AB, outer edge length CD, outer edge length DE, outer edge length EF, outer edge length GH and outer edge length HA. In this embodiment, the outer edge length AB, outer edge length CD, outer edge length DE, outer edge length EF, outer edge length GH and outer edge length HA can be referred to as the first outer edge length; the outer edge lengths that are not connected to the boundary corner point A, the boundary corner point D, the boundary corner point E and the boundary corner point H may include: outer edge length BC and outer edge length FG. In this embodiment, the outer edge length BC and the outer edge length FG can be referred to as the second outer edge length.

[0130] Based on this, in this embodiment, the above-described step T2201: "Based on the number of boundary corner points and the number of outer edge lengths" can be specifically implemented through the following steps A01 to A02.

[0131] Step A01: Obtain a first preset number of reference positions corresponding to a single boundary corner point, a second preset number of reference positions corresponding to a single first outer side length, and a third preset number of reference positions corresponding to a single second outer side length.

[0132] Step A02: Determine the target number of reference positions surrounding the first object on the encirclement according to the number of boundary corner points, the number of first outer side lengths, the number of second outer side lengths, the first preset number, the second preset number and the third preset number.

[0133] That is, in this optional specific embodiment, the number of corresponding reference positions is set for a single boundary corner point, a single first outer side length, and a single second outer side length, and then after determining the number of boundary corner points, the number of first outer side lengths, and the number of second outer side lengths of the grid area, the total number of reference positions surrounding the first object located on the grid area is calculated.

[0134] In a specific embodiment, a first product of a first preset number and the number of boundary corner points, a second product of a second preset number and the number of first outer side lengths, and a third product of a third preset number and the number of third outer side lengths are calculated; and the sum of the first product, the second product, and the third product is determined as the above-mentioned target number.

[0135] Assume that the first preset number is n1, the second preset number is n2, and the third preset number is n3; the number of boundary corner points is p1, the number of first outer side lengths is p2, and the number of second outer side lengths is p3; then the number of targets surrounding the reference position of the first object located on the grid area can be calculated by the following formula (1).

[0136] M=n1×p1+n2×p2+n3×p3 (1)

[0137] Wherein, M is the number of targets surrounding the reference position of the first object located in the grid area.

[0138] So far, some implementation methods for setting the number of reference positions on the encirclement have been introduced. Of course, in the embodiments of the present application, in addition to the above calculation method, the number of reference positions on the encirclement can also be randomly set according to needs. The above methods are only examples and do not constitute a specific limitation on the control method of the game provided by the present application.

[0139] It is understandable that when determining the target number of reference positions, the reference positions of the target number may be evenly distributed or unevenly distributed on the encirclement.

[0140] Next, combine Figure 5 and Figure 7 Uniformly distributing the reference positions of the target number on the encirclement is described in detail.

[0141] Assume that the first preset number is 1, the second preset number is 1, and the third preset number is 2; then Figure 5 As shown, in a grid area with a nine-square layout, there are 4 boundary corner points, 8 first outer side lengths, and 4 second outer side lengths. According to the above formula (1), the target number of reference positions of the first object located on the grid area on the encirclement can be calculated to be 20. Furthermore, the 20 reference positions can be evenly distributed on the encirclement.

[0142] For example, Figure 7 As shown in the figure, in a 3×1 grid area, the shape of the grid area is a rectangle, the visual boundary of the first object is close to a rectangle, and the object boundary and the encirclement of the first object are in arc shape. The grid area corresponds to 4 boundary corner points, 6 first outer side lengths, and 2 second outer side lengths; then the number of targets of the reference positions of the first object located on the grid area on the encirclement can be calculated according to the above formula (1), which is 14. Furthermore, the 14 reference positions can be evenly distributed on the encirclement.

[0143] In an optional specific embodiment, when the preset distribution method is uneven distribution and the shape of the encirclement is the same as the shape of the grid area, the step T22 described above of "determining multiple reference positions surrounding the first object on the encirclement according to the layout information and the preset distribution method" can also be implemented in the following way.

[0144] If the preset distribution mode is uneven distribution, the encircling points corresponding to the boundary corner points of the region boundary of the grid region, the midpoints of the first outer sides, and the trisection points of the second outer sides are determined on the encircling circle according to the layout information of the grid region, and the encircling points on the encircling circle are determined as reference positions for encircling the first object. The midpoint of the first outer side refers to the position point that divides the first outer side into two equal parts; the trisection points of the second outer side refer to the two position points that divide the second outer side into three equal parts.

[0145] It can be understood that when the shape of the encirclement is the same as the shape of the grid area, there are also intersection points and side lengths on the encirclement that correspond to the boundary corner points, the first outer side length, and the second outer side length of the grid area. Therefore, encirclement points corresponding to the boundary corner points of the grid area, the midpoints of the first outer side lengths, and the trisection points of the second outer side lengths can be determined on the encirclement.

[0146] like Figure 8 As shown, Figure 8 A schematic diagram of an example of unevenly distributing the reference positions of the target number on the encirclement provided in an embodiment of the present application; Figure 8 , in the layout of 3×1 grid area, the shape of the grid area is rectangular, the visual boundary of the first object is close to the rectangle, and Figure 7 In comparison, Figure 8 The shape of the object boundary and the shape of the encirclement of the first object in the layout are the same as the shape of the grid area. The corresponding boundary corner points, first outer side length, and second outer side length of the 3×1 grid area can all be referenced Figure 6 .

[0147] Based on this, the corresponding encircling points on the encirclement for the boundary corner points corresponding to the 3×1 grid area in the layout are: encirclement point 1, encirclement point 6, encirclement point 8, and encirclement point 13; the corresponding encircling points on the encirclement for the midpoints of the first outer side lengths corresponding to the 3×1 grid area in the layout are: encirclement point 2, encirclement point 5, encirclement point 7, encirclement point 9, encirclement point 12, and encirclement point 14; the corresponding encircling points on the encirclement for the three equal division points of the second outer side lengths corresponding to the 3×1 grid area in the layout are: encirclement point 3, encirclement point 4, encirclement point 10, and encirclement point 11.

[0148] At this time, if the preset distribution mode is uneven distribution, the encircling point 1 to the encircling point 14 on the encircling circle can be used as the reference position for encircling the first object. Figure 8 As shown, the reference positions are not evenly distributed on the encircling circle.

[0149] In some optional embodiments, the game control method provided in the present application may further include the following step S250.

[0150] Step S250: When controlling each second object to move to the corresponding target reference position, the position state of each target reference position is adjusted from an unoccupied state to an occupied state.

[0151] That is, when a reference position is occupied by a second object, the reference position is set to an occupied state to avoid subsequently allocating multiple second objects to the reference position.

[0152] Based on this implementation, in some optional implementations, the above step S230 "determining the target reference positions corresponding to each second object in each reference position in an unoccupied state according to the collision position of the area boundary of the grid area where each second object collides" can be specifically implemented by the following step S231.

[0153] Step S231: Determine the reference position that is closest to the collision position among the reference positions in the unoccupied state as the target reference position.

[0154] In this embodiment, being the closest to the collision position means that the distance between the collision position and each reference position in an unoccupied state is the smallest.

[0155] In this embodiment, the number of reference positions closest to the collision position may include one or more, and is usually at most 2. When the number of reference positions closest to the collision position is one, the reference position closest to the collision position may be directly determined as the target reference position; and when the number of reference positions closest to the collision position is two, a reference position may be randomly selected from the two reference positions closest to the collision position to be determined as the target reference position; or, the selection may be made from the two reference positions in the manner described below, which will not be repeated here.

[0156] That is, when the second object collides with the boundary of the area, the distance between the second object and each unoccupied reference position is first determined, the reference position closest to the collision position is determined among each distance, and the reference position closest to the collision position and in an unoccupied state is determined as the target reference position; that is, the second object can be controlled to move toward the reference position that is closest to itself and in an unoccupied state.

[0157] In this way, controlling the second object to move toward the reference position closest to itself can improve the realism and immersion of the game and enhance the player's gaming experience.

[0158] Next, combine Fig. 9 The game control method including the above step S231 and step S240 is described in detail. In this specific example, a second object moves toward a first object as an example.

[0159] like Fig. 9 As shown, Fig. 9 As shown in (a), 20 reference positions are evenly distributed around the first object, marked as reference position 1 to reference position 20. When a second object moves toward the first object until the second object collides with the region boundary of the grid region occupied by the first object, as shown in Fig. 9 As shown in (b), the second object touches the region boundary of the grid region. At this time, the target reference position closest to the second object (i.e., the collision position) is determined among the reference positions. Assume that the target reference position closest to the second object is Fig. 9 The dashed arrow in the middle indicates the reference position 1, and then, as Fig. 9 As shown in (c), the second object is moved to the reference position 1 and attacks the first object at the reference position 1.

[0160] Next, combine Fig.10 The game control method including the above step S231 and step S240 is described in detail. In this specific example, it is taken that a plurality of second objects move toward the first object in the same direction.

[0161] like Fig.10As shown in (a), there are 4 second objects moving toward the first object along the direction indicated by the dotted arrows; based on this, Fig.10 As shown in (b), when the first second object among the four second objects collides with the region boundary of the grid region first, the target reference position closest to the first second object is determined first. Assuming that the target reference position closest to the first second object is reference position 1, then Fig.10 As shown in (c), the second object ranked first is moved to its corresponding reference position 1.

[0162] like Fig.10 As shown in (c), when the second object ranked first moves to the reference position 1, if the second object ranked second collides with the region boundary of the grid region, the reference position closest to the second object ranked second is determined from the remaining reference positions (reference position 2 to reference position 20) except the occupied reference position 1. Assuming that the reference position closest to the second object ranked second is reference position 20, then Fig.10 As shown in (d), the second object ranked second is moved to its corresponding reference position 20.

[0163] like Fig.10 As shown in (d), when the second object ranked second moves to the reference position 20, if the second object ranked third collides with the region boundary of the grid region, the reference position closest to the second object ranked third is determined from the remaining reference positions (reference position 2 to reference position 19) except the occupied reference position 1 and reference position 20. Assuming that the reference position closest to the second object ranked third is reference position 2, then Fig.10 As shown in (e), the second object ranked third is moved to its corresponding reference position 2.

[0164] like Fig.10 As shown in (e), when the second object ranked third moves to reference position 2, if the second object ranked fourth collides with the region boundary of the grid region, the reference position closest to the second object ranked fourth is determined from the remaining reference positions (reference position 3 to reference position 19) except the occupied reference position 1, reference position 2 and reference position 20. Assuming that the reference position closest to the second object ranked fourth is reference position 19, then Fig.10 As shown in (f), the second object ranked fourth is moved to its corresponding reference position 19.

[0165] In this way, multiple second objects moving from the same direction are sequentially adsorbed to different reference positions, so that the second objects are displayed at the same position without overlapping, thereby improving the player's visual experience and increasing the realism of the game.

[0166] Next, combine Fig.11 The game control method including the above step S231 and step S240 is described in detail. In this specific example, it is taken that a plurality of second objects move toward the first object in different directions.

[0167] like Fig.11 As shown in (a), there are four second objects moving toward the first object in the directions indicated by the dotted arrows in the upper and lower directions of the first object; based on this, Fig.11 As shown in (b), when the first-ranked second object among the four second objects in the two directions collides with the region boundary of the grid area at the same time, the reference positions closest to the two first-ranked second objects are determined respectively. For example, the reference position closest to the first-ranked second object below the first object is reference position 1, and the reference position closest to the first-ranked second object above the second object is reference position 11. Then the first-ranked second object below the first object is moved to reference position 1, and the first-ranked second object above the second object is moved to reference position 11; and so on. Fig.11 As shown in (c), the target reference positions determined for the second object ranked second in the up and down directions are reference position 10 and reference position 20 respectively, then the second object ranked second in the up and down directions is controlled to move to reference position 10 and reference position 20 respectively until Fig.11 As shown in (d), all the second objects are distributed to different reference positions. In summary, when the plurality of second objects move toward the first object in different directions, a plurality of point diffusion distributions are achieved for each second object.

[0168] In some optional embodiments, the above step S231 is specifically implemented through the following step S2310.

[0169] Step S2310: If the reference positions closest to the collision position among the reference positions in the unoccupied state include the first reference position and the second reference position, and the first reference position and the second reference position are respectively located in the two side areas of the collision position, the first reference position or the second reference position located in the target side area of ​​the collision position is determined as the target reference position.

[0170] In this embodiment, there are two reference positions that are closest to the collision position among the reference positions in the unoccupied state, namely, the first reference position and the second reference position.

[0171] The two side areas of the collision position refer to dividing the surrounding area of ​​the collision position into two adjacent and opposite areas, such as dividing the surrounding area of ​​the collision position into a left area and a right area. The first reference position and the second reference position are located in the two areas respectively.

[0172] The target side area refers to the area with a higher priority on both sides of the collision position, and the target side area can be the area where the first reference position is located, or the area where the second reference position is located. If the target side area is the area where the first reference position is located, the first reference position can be determined as the target reference position; if the target side area is the area where the second reference position is located, the second reference position can be determined as the target reference position.

[0173] like Fig.11 As shown in (b), when the second object ranked first above the first object collides with the area boundary of the grid area, it is assumed that the reference position closest to the second object ranked first above the first object includes reference position 10 and reference position 11, and reference position 10 and reference position 11 are respectively located in the left and right side areas of the second object ranked first. In this case, if the preset side area with a higher priority is the left area of ​​any collision position, the reference position 11 located in the left area can be determined as the target reference position of the second object ranked first, and the second object ranked first can be moved to reference position 11.

[0174] In some optional embodiments, in the above step S230, only when it is determined that at least one reference position in an unoccupied state is included in the multiple reference positions evenly distributed around the first object, the subsequent steps in step S230 are executed. In this embodiment, when it is determined that there is no reference position in an unoccupied state among the multiple reference positions evenly distributed around the first object, that is, the multiple reference positions evenly distributed around the first object are all in an occupied state, the remaining steps can be executed. In this optional embodiment, the game control method provided by the present application also includes the following steps S260 to S270.

[0175] Step S260: In response to at least one second object colliding with the region boundary of the grid region, if multiple reference positions are in an occupied state, each reference position is rotated on the encirclement by a preset angle in a preset rotation direction to obtain multiple new reference positions; the new reference positions are in an unoccupied state.

[0176] Step S270: determining target reference positions corresponding to the second objects from a plurality of new reference positions that are not occupied, according to the collision positions of the second objects with the region boundary of the grid region.

[0177] It can be understood that the multiple reference positions uniformly distributed around the first object are all in an occupied state, which means that each reference position is occupied by the second object, and there is no unoccupied reference position that can be allocated to the current second object. In this case, in the above step S260, each reference position is rotated on the encirclement by a preset angle according to a preset rotation direction to obtain a plurality of new reference positions.

[0178] The preset rotation direction may include a counterclockwise direction or a clockwise direction. The preset angle may be any value between 0 and 360 degrees, for example, the preset angle may be 30 degrees, which is not specifically limited in this embodiment.

[0179] New reference positions obtained after rotating the encircling circle by a preset angle in a preset rotation direction are all located on the encircling circle, that is, the distances between each new reference position and the object boundary of the first object are equal.

[0180] Based on this, the target reference position can be determined in the new reference position according to the collision position. It should be noted that the specific implementation of determining the target reference position in the new reference position can refer to the implementation of determining the target reference position in the reference position in an unoccupied state according to the collision position described above, which will not be repeated here.

[0181] Next, combine Fig.12 The game control method including the above-mentioned step S260 and step S270 is further described.

[0182] like Fig.12 As shown in (a), the 20 reference positions distributed on the encirclement of the first object are all occupied, that is, reference position 1 to reference position 20 are all in an occupied state. Fig.12 As shown in (a), when a second object moves toward the first object until the second object collides with the region boundary of the grid region occupied by the first object, that is, Fig.12 As shown in (b), when the second object contacts the region boundary of the grid region, reference positions 1 to 20 can be respectively rotated 30 degrees clockwise on the encirclement to obtain 20 new reference positions, namely reference positions 21 to 40; based on this, the target reference position closest to the second object can be determined from the reference positions 21 to 40; assuming that the reference position closest to the second object from the reference positions 21 to 40 is the reference position 40, then the reference position 40 is determined as the target reference position of the second object, and as shown in Fig.12 As shown in (c), the second object is moved to the reference position 40.

[0183] In this way, the defect in the related art that the second object behind the second object cannot attack the first object can be avoided, further improving the viewing experience of large-scale battle performances in the game, restoring the real effect, enhancing the player's visual experience, and increasing the realism of the game.

[0184] In some optional embodiments, the game control method provided in the present application may further include the following step S270.

[0185] Step S270: When each second object collides with the region boundary of the grid region, the second object is controlled to execute a game action of attacking the first object.

[0186] As described above, when the second object collides with the region boundary of the grid region, it indicates that the second object is within the attack range capable of attacking the first object. At this time, the second object can be controlled to perform attack-type game actions.

[0187] Based on this, in some optional embodiments, the game control method provided by the present application may further include the following step S280.

[0188] Step S280: Control the first object to perform a game action of attacking or defending the first object.

[0189] When the second object is within the attack range, if the first object corresponds to a defensive game action or an offensive game action, the first object is controlled to perform the offensive or defensive game action, thereby achieving a battle between the first object and the second object.

[0190] In the implementation of the above step S270 or step S280, the second object is controlled to execute the game action of attacking the first object while moving toward the target reference position.

[0191] In this way, the time the player waits for the second object to move can be reduced in terms of physical perception, thereby improving the player's gaming experience.

[0192] Next, combine Fig.13 An example of a graphical user interface schematic diagram of the game control method provided in the present application is described.

[0193] like Fig.13 As shown, Fig.13 The graphical user interface 300 shown shows a first object, and camps 1 to 7 surrounding the first object, wherein camps 1 to 7 are equidistant from the object boundary of the first object, that is, camps 1 to 7 are located on the encirclement corresponding to the first object; it can be understood that the current positions of camps 1 to 7 can be determined according to the embodiments described above, so that camps 1 to 7 are not displayed overlappingly.

[0194] It should be noted that Figure 5 to Figure 13 The dotted lines in any of the figures are imaginary lines for the sake of ease of understanding, and these dotted lines may not exist on the graphical user interface displayed by the terminal device.

[0195] It should be noted that in each of the drawings, the same pattern represents the same element. Therefore, each pattern is labeled when it first appears, and when it appears in subsequent drawings, it is not labeled but can be referred to the description in the previous drawings. In addition, it can be understood that the above similar to Figure 1 , Figure 2 , Figures 5 to 13 The size, appearance, layout, display text and other information of each element in the schematic diagram are exemplary and are not intended to limit the actual graphical user interface.

[0196] So far, the control method of the game provided by the present embodiment has been described. In the case where the determined reference positions are distributed around the first object and the reference positions do not overlap, when it is detected that the second object collides with the region boundary of the grid region where the first object is located, it is first detected whether the reference positions include reference positions in an unoccupied state. If so, the corresponding target reference position is quickly determined for the second object in the reference positions in an unoccupied state, and the second object is moved to the target reference position. In this way, the second objects located at the target reference position can be distributed around the first object to achieve a situation of encircling the first object; and the target reference position is determined from multiple reference positions in an unoccupied state, that is, the target reference position corresponding to each second object is not the same reference position, which can reduce the overlap between the second objects and between the second objects and the first object, increase the realism of the virtual game, enhance the visual experience of the player, and enhance the immersion of the player in the game.

[0197] In addition, when all the set reference positions are occupied, the original reference positions can be rotated on the encirclement to obtain new unoccupied reference positions, so that the second object that arrives later can also attack the first object at the front, avoiding the defect that the second object behind the second object cannot attack the first object, further improving the viewing experience of large-scale battle performances in the game, restoring the real effect, enhancing the player's visual experience, and increasing the realism of the game.

[0198] Corresponding to the game control method provided in the embodiment of the present application, the embodiment of the present application also provides a game control device 2000, which provides a graphical user interface through a terminal device; Fig.14 As shown, the device 2000 includes: a display unit 2001, a determination unit 2002 and a control unit 2003;

[0199] A display unit 2001 is used to display at least part of a game scene through a graphical user interface, where the game scene includes a plurality of grid units, and the game scene includes a first object located on at least one grid unit;

[0200] A determination unit 2002 is used to determine a plurality of reference positions surrounding the first object according to a grid area composed of at least one grid unit occupied by the first object in the game scene; the reference positions do not overlap;

[0201] The determining unit 2002 is further configured to respond to at least one second object colliding with a region boundary of the grid region, and if the plurality of reference positions include at least one reference position in an unoccupied state, determine target reference positions corresponding to the second objects in the unoccupied reference positions according to collision positions of the second objects colliding with the region boundary of the grid region;

[0202] The control unit 2003 is used to control each second object to move to a corresponding target reference position.

[0203] Optionally, the determination unit 2002 is specifically used to determine an encirclement whose distance from the object boundary of the first object is equal to a preset distance; and determine multiple reference positions surrounding the first object on the encirclement based on a grid area composed of at least one grid unit occupied by the first object in the game scene.

[0204] Optionally, the determination unit 2002 is further specifically configured to determine layout information of a grid area composed of at least one grid unit occupied by the first object in the game scene; and determine multiple reference positions surrounding the first object on the encirclement according to the layout information.

[0205] Optionally, the determination unit 2002 is further specifically used to obtain a preset distribution pattern corresponding to multiple reference positions surrounding the first object; determine multiple reference positions surrounding the first object on the encirclement according to the layout information and the preset distribution pattern; the preset distribution pattern is uniform distribution or uneven distribution.

[0206] Optionally, the determination unit 2002 is further specifically used to determine the number of target reference positions surrounding the first object according to the layout information if the preset distribution method is uniform distribution, and the number of targets is multiple; and determine the reference positions of the number of targets surrounding the first object evenly distributed on the encirclement.

[0207] Optionally, determination unit 2002 is further specifically used to determine, based on the layout information, the number of boundary corner points corresponding to the grid area and the number of outer side lengths of each grid unit constituting the area boundary of the grid area; and determine, based on the number of boundary corner points and the number of outer side lengths, the number of targets surrounding the reference positions of the first object on the encirclement.

[0208] Optionally, the outer side length includes: a first outer side length connected to the boundary corner point, and a second outer side length not connected to the boundary corner point;

[0209] The determination unit 2002 is also specifically used to obtain a first preset number of reference positions corresponding to a single boundary corner point, a second preset number of reference positions corresponding to a single first outer side length, and a third preset number of reference positions corresponding to a single second outer side length; based on the number of boundary corner points, the number of first outer side lengths, the number of second outer side lengths, the first preset number, the second preset number and the third preset number, determine the target number of reference positions surrounding the first object on the encirclement.

[0210] Optionally, the determination unit 2002 is further specifically used to determine a first product of a first preset number and the number of boundary corner points, a second product of a second preset number and the number of first outer side lengths, and a third product of a third preset number and the number of third outer side lengths; determine the sum of the first product, the second product and the third product, and determine the sum as the target number of multiple reference positions enclosing the first object on the encirclement.

[0211] Optionally, the shape of the encirclement is the same as the shape of the grid area; the area boundary of the grid area includes a boundary corner point, a first outer side length connected to the boundary corner point, and a second outer side length not connected to the boundary corner point.

[0212] The determination unit 2002 is further specifically used to determine, if the preset distribution method is uneven distribution, the encirclement points corresponding to the boundary corner points of the area boundary of the grid area, the midpoints of the first outer sides, and the trisection points of the second outer sides on the encirclement according to the layout information; and determine the encirclement points on the encirclement as reference positions for encircling the first object.

[0213] Optionally, the device 2000 further includes an adjustment unit 2004;

[0214] The adjusting unit 2004 is configured to adjust the position state of each target reference position from an unoccupied state to an occupied state when controlling each second object to move to the corresponding target reference position.

[0215] Optionally, the determining unit 2002 is further specifically configured to determine, among the reference positions in the unoccupied state, a reference position that is closest to the collision position as the target reference position.

[0216] Optionally, the determination unit 2002 is further specifically used to determine the first reference position or the second reference position located in the target side area of ​​the collision position as the target reference position if the reference positions closest to the collision position among the reference positions in the unoccupied state include the first reference position and the second reference position, and the first reference position and the second reference position are respectively located in the areas on both sides of the collision position.

[0217] Optionally, the determination unit 2002 is also used to respond to the regional boundary of the grid area where at least one second object collides with. If multiple reference positions are in an occupied state, each reference position is rotated on the encirclement by a preset angle in a preset rotation direction to obtain multiple new reference positions; the new reference positions are in an unoccupied state; and according to the collision position of the regional boundary of the grid area where each second object collides with, the target reference positions corresponding to each second object are determined from the multiple new reference positions in the unoccupied state.

[0218] Optionally, the control unit 2003 is further configured to control the second objects to execute a game action of attacking the first objects when the second objects collide with the region boundary of the grid region.

[0219] Optionally, the control unit 2003 is further used to control the first object to perform a game action of attacking or defending the first object.

[0220] Corresponding to the game control method provided in the embodiment of the present application, the embodiment of the present application also provides an electronic device 3000 for implementing the game control method, such as Fig.15 As shown, the electronic device 3000 includes: a processor 3001; and a memory 3002, which is used to store a program of a game control method. After the device is powered on and the program of the game control method is run by the processor, a graphical user interface is provided through the terminal device, and the following steps are performed:

[0221] Displaying at least a portion of a game scene through the graphical user interface, the game scene comprising a plurality of grid units, and the game scene comprising a first object located on at least one of the grid units;

[0222] Determine, according to a grid area composed of at least one of the grid units occupied by the first object in the game scene, a plurality of reference positions surrounding the first object, wherein the reference positions do not overlap;

[0223] In response to at least one second object colliding with a region boundary of the grid region, if the plurality of reference positions include at least one reference position in an unoccupied state, determining target reference positions corresponding to each second object in each of the unoccupied reference positions according to collision positions of each second object colliding with the region boundary of the grid region;

[0224] Control each of the second objects to move to the corresponding target reference position.

[0225] Corresponding to the game control method provided in the embodiment of the present application, the embodiment of the present application further provides a computer-readable storage medium storing a program of the game control method, the program is executed by a processor, a graphical user interface is provided through a terminal device, and the following steps are performed:

[0226] Displaying at least a portion of a game scene through the graphical user interface, the game scene comprising a plurality of grid units, and the game scene comprising a first object located on at least one of the grid units;

[0227] Determine, according to a grid area composed of at least one of the grid units occupied by the first object in the game scene, a plurality of reference positions surrounding the first object, wherein the reference positions do not overlap;

[0228] In response to at least one second object colliding with a region boundary of the grid region, if the plurality of reference positions include at least one reference position in an unoccupied state, determining target reference positions corresponding to each second object in each of the unoccupied reference positions according to collision positions of each second object colliding with the region boundary of the grid region;

[0229] Control each of the second objects to move to the corresponding target reference position.

[0230] It should be noted that for the detailed description of the device, electronic device and computer-readable storage medium provided in the embodiments of the present application, reference can be made to the relevant description of the game control method embodiment provided in the embodiments of the present application, which will not be repeated here.

[0231] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

[0232] In a typical configuration, an electronic device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0233] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0234] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable operations, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0235] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0236] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

Claims

1. A method for controlling a game, characterized in that: Providing a graphical user interface through a terminal device; the method comprises: Displaying at least a portion of a game scene through the graphical user interface, the game scene comprising a plurality of grid units, and the game scene comprising a first object located on at least one of the grid units; Determine, according to a grid area composed of at least one of the grid units occupied by the first object in the game scene, a plurality of reference positions surrounding the first object, wherein the reference positions do not overlap; In response to at least one second object colliding with a region boundary of the grid region, if the plurality of reference positions include at least one reference position in an unoccupied state, determining target reference positions corresponding to each second object in each of the unoccupied reference positions according to collision positions of each second object colliding with the region boundary of the grid region; Control each of the second objects to move to the corresponding target reference position.

2. The method according to claim 1, characterized in that: The determining of a plurality of reference positions surrounding the first object according to a grid area composed of at least one grid unit occupied by the first object in the game scene comprises: determining an encirclement whose distance from an object boundary of the first object is equal to a preset distance; According to a grid area composed of at least one grid unit occupied by the first object in the game scene, a plurality of reference positions surrounding the first object are determined on the encirclement.

3. The method according to claim 2, characterized in that The determining, on the encirclement according to a grid area composed of at least one grid unit occupied by the first object in the game scene, a plurality of reference positions surrounding the first object comprises: Determine layout information of a grid area composed of at least one of the grid units occupied by the first object in the game scene; A plurality of reference positions surrounding the first object are determined on the encircling circle according to the layout information.

4. The method according to claim 3, characterized in that The step of determining, on the encircling circle, a plurality of reference positions enclosing the first object according to the layout information comprises: Acquire a preset distribution mode corresponding to a plurality of reference positions surrounding the first object; According to the layout information and a preset distribution method, a plurality of reference positions surrounding the first object are determined on the encirclement; the preset distribution method is uniform distribution or uneven distribution.

5. The method according to claim 4, characterized in that The step of determining a plurality of reference positions surrounding the first object according to the layout information and a preset distribution method includes: If the preset distribution mode is uniform distribution, determining the number of targets surrounding the reference position of the first object according to the layout information; the number of targets is multiple; Determine reference positions of the number of targets uniformly distributed around the first object on the encirclement.

6. The method according to claim 5, characterized in that The step of determining the number of targets surrounding the reference position of the first object according to the layout information includes: Determine, according to the layout information, the number of boundary corner points corresponding to the grid area and the number of outer side lengths of each grid unit constituting the area boundary of the grid area; The number of targets surrounding the reference position of the first object is determined on the encircling circle according to the number of the boundary corner points and the number of the outer side lengths.

7. The method according to claim 6, characterized in that The outer side length includes: a first outer side length connected to the boundary corner point, and a second outer side length not connected to the boundary corner point; The step of determining the number of targets surrounding the reference position of the first object on the encircling circle according to the number of the boundary corner points and the number of the outer side lengths includes: Obtaining a first preset number of the reference positions corresponding to a single boundary corner point, a second preset number of the reference positions corresponding to a single first outer side length, and a third preset number of the reference positions corresponding to a single second outer side length; The number of targets surrounding the reference position of the first object is determined on the encirclement according to the number of the boundary corner points, the number of the first outer side lengths, the number of the second outer side lengths, the first preset number, the second preset number and the third preset number.

8. The method according to claim 7, characterized in that The step of determining the number of targets surrounding the reference position of the first object according to the number of the boundary corner points, the number of the first outer side lengths, the number of the second outer side lengths, the first preset number, the second preset number, and the third preset number includes: Determine a first product of the first preset number and the number of the boundary corner points, a second product of the second preset number and the number of the first outer side lengths, and a third product of the third preset number and the number of the third outer side lengths; A sum of the first product, the second product, and the third product is determined, and the sum is determined as the number of targets surrounding the reference position of the first object on the encircling circle.

9. The method according to claim 4, characterized in that The shape of the encirclement is the same as the shape of the grid area, and the area boundary of the grid area includes a boundary corner point, a first outer side length connected to the boundary corner point, and a second outer side length not connected to the boundary corner point; The step of determining a plurality of reference positions surrounding the first object according to the layout information and a preset distribution method includes: If the preset distribution mode is uneven distribution, determine, according to the layout information, the encircling points corresponding to the boundary corner points of the region boundary of the grid region, the midpoints of the first outer sides, and the trisection points of the second outer sides on the encircling circle; The encircling points on the encircling circle are determined as reference positions for encircling the first object.

10. The method according to claim 1, characterized in that The method further comprises: When each of the second objects is controlled to move to the corresponding target reference position, the position state of each of the target reference positions is adjusted from the unoccupied state to the occupied state.

11. The method according to claim 10, characterized in that The determining, according to the collision position of each second object with the region boundary of the grid region, the target reference position corresponding to each second object in each unoccupied reference position, comprises: The reference position that is closest to the collision position among the reference positions in the unoccupied state is determined as the target reference position.

12. The method according to claim 11, characterized in that The step of determining the reference position closest to the collision position among the reference positions in the unoccupied state as the target reference position comprises: If the reference positions closest to the collision position among the reference positions in the unoccupied state include a first reference position and a second reference position, and the first reference position and the second reference position are respectively located in the areas on both sides of the collision position, the first reference position or the second reference position located in the target side area of ​​the collision position is determined as the target reference position.

13. The method according to claim 1, characterized in that The method further comprises: In response to at least one second object colliding with a region boundary of the grid region, if the multiple reference positions are all in an occupied state, each of the reference positions is rotated on the encirclement by a preset angle in a preset rotation direction to obtain multiple new reference positions; the new reference positions are in an unoccupied state; According to the collision position of each second object colliding with the region boundary of the grid region, the target reference positions respectively corresponding to each second object are determined in a plurality of the new reference positions in the unoccupied state.

14. The method according to claim 1, characterized in that The method further comprises: When each of the second objects collides with the region boundary of the grid region, the second objects are controlled to execute a game action of attacking the first objects.

15. A game control device, characterized in that: Providing a graphical user interface through a terminal device; the device comprises: a display unit, a determination unit and a control unit; The display unit is used to display at least a part of the game scene through the graphical user interface, the game scene includes a plurality of grid units, and the game scene includes a first object located on at least one of the grid units; The determining unit is used to determine a plurality of reference positions surrounding the first object according to a grid area composed of at least one grid unit occupied by the first object in the game scene; the reference positions do not overlap; The determining unit is further configured to, in response to at least one second object colliding with a region boundary of the grid region, determine, in each of the unoccupied reference positions, target reference positions corresponding to each of the second objects, respectively, according to collision positions of each of the second objects colliding with the region boundary of the grid region if the multiple reference positions include at least one reference position in an unoccupied state; The control unit is used to control each of the second objects to move to the corresponding target reference position.

16. An electronic device, characterized in that: include: processor; as well as The memory is used to store a data processing program. After the electronic device is powered on and the program is run by the processor, the method according to any one of claims 1 to 14 is executed.

17. A computer-readable storage medium, characterized in that: A data processing program is stored, and the program is run by a processor to execute the method according to any one of claims 1 to 14.