Game control method and device, electronic device, and storage medium
By dynamically adjusting the shooting controls according to the position of the bunker, the problem of difficulty in shooting operations and interface burden after the virtual character hides is solved, and the game experience and interface simplicity are improved.
Patent Information
- Application Number
- CN202111123139.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-09-24
AI Technical Summary
In shooting games on mobile terminals, when the virtual character hides behind a bunker, the existing technology usually displays only one best way of shooting the probe, making another way of shooting the probe meaningless and increasing the content of the main interface. burden.
According to the positional relationship between the connection between the virtual object and the hostile object and the cover area, the appropriate shooting controls are dynamically displayed, and the corresponding probe shooting action is performed in response to user operations, including a variety of conditional judgments to determine the best shooting method.
It reduces the difficulty for users to shoot virtual objects behind the bunker, improves the game experience, and reduces the number of shooting controls required on the game interface, thereby reducing the load of interface content.
Smart Images

Figure CN113797557B
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to game control methods and devices, electronic devices, and storage media. Background Art
[0002] With the development of network technology, more and more games are applied to mobile terminals. In shooting games on mobile terminals, users can control virtual objects in the game and use virtual props (such as guns, bows and arrows, etc.) to shoot in the virtual environment of the game.
[0003] In the related art, when the virtual character controlled by the user hides behind a bunker, a left peeking shooting control and a right peeking shooting control are displayed in the corresponding display interface. When the virtual character hides behind a bunker to shoot, in order to avoid exposing too many body parts, the user generally selects the left peeking shooting control or the right peeking shooting control according to the actual scene to control the virtual character to perform the corresponding peeking shooting action. Since there is generally only one optimal peeking shooting method when the virtual character hides behind a bunker to shoot, at this time, another peeking shooting method is meaningless, and will also cause interference to the player, and will increase the load of the main interface content. Summary of the invention
[0004] In view of the above problems, the present application is proposed to provide a game control method and device, an electronic device, and a storage medium that overcome the above problems or at least partially solve the above problems, including:
[0005] A game control method, the method comprising:
[0006] When it is detected that the first virtual object controlled by the user is located behind the cover, according to the positional relationship between the line between the first virtual object and its hostile second virtual object and the shielding area of the cover, a shooting control associated with the probe mode is displayed;
[0007] In response to a selection operation on the shooting control, the first virtual object is controlled to perform a shooting action in a probing manner associated with the shooting control.
[0008] Optionally, displaying a shooting control associated with the probe mode according to a positional relationship between a line between the first virtual object and its hostile second virtual object and a shielding area of the bunker includes:
[0009] When the shielding area exceeds the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, the shooting control associated with the right probe mode is displayed;
[0010] When the shielded area does not exceed the first distance on the left side of the connecting line and exceeds the second distance on the right side of the connecting line, the shooting control associated with the left probe mode is displayed;
[0011] When the blocked area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, the shooting controls associated with the left probing mode are displayed, or the shooting controls associated with the right probing mode are displayed.
[0012] Optionally, when the shielded area does not exceed a first distance on the left side of the connecting line and does not exceed a second distance on the right side of the connecting line, displaying a shooting control associated with a left probe mode, or displaying a shooting control associated with a right probe mode, comprises:
[0013] When the distance between the left side of the shielding area and the connecting line is greater than the distance between the right side of the shielding area and the connecting line, a shooting control associated with the right probe mode is displayed;
[0014] When the distance between the left side of the shielding area and the connecting line is smaller than the distance between the right side of the shielding area and the connecting line, the shooting control associated with the left probe mode is displayed.
[0015] Optionally, when the shielded area does not exceed a first distance on the left side of the connecting line and does not exceed a second distance on the right side of the connecting line, displaying a shooting control associated with a left probe mode, or displaying a shooting control associated with a right probe mode, comprises:
[0016] The probing mode associated with the shooting control is determined according to the default probing mode.
[0017] Optionally, when the shielded area does not exceed a first distance on the left side of the connecting line and does not exceed a second distance on the right side of the connecting line, displaying a shooting control associated with a left probe mode, or displaying a shooting control associated with a right probe mode, comprises:
[0018] The probing mode associated with the shooting control is determined according to the probing mode of the last shooting.
[0019] Optionally, when the shielded area does not exceed a first distance on the left side of the connecting line and does not exceed a second distance on the right side of the connecting line, displaying a shooting control associated with a left probe mode, or displaying a shooting control associated with a right probe mode, comprises:
[0020] The probing mode associated with the shooting control is determined according to the moving direction of the first virtual object when it moves to the rear side of the bunker.
[0021] Optionally, before displaying a shooting control associated with the probe mode according to the positional relationship between a line between the first virtual object and its hostile second virtual object and the shielding area of the bunker, the method further includes:
[0022] A second virtual object that is hostile to the first virtual object is determined according to the position of the crosshair corresponding to the first virtual object.
[0023] A game control device, comprising:
[0024] A probe mode determination module, configured to display a shooting control associated with the probe mode according to a positional relationship between a line between the first virtual object and a second virtual object that is hostile to the first virtual object and an occluded area of the cover when it is detected that the first virtual object controlled by the user is located behind the cover;
[0025] The probe shooting response module is used to respond to the selection operation of the shooting control and control the first virtual object to perform a shooting action in a probe manner associated with the shooting control.
[0026] Optionally, the probe mode determination module includes:
[0027] A first probe mode determination module, configured to display a shooting control associated with a right probe mode when the shielded area exceeds a first distance on the left side of the connecting line and does not exceed a second distance on the right side of the connecting line;
[0028] A second probe mode determination module, configured to display a shooting control associated with a left probe mode when the shielded area does not exceed a first distance to the left of the connecting line and exceeds a second distance to the right of the connecting line;
[0029] The third probing mode determination module is used to display the shooting controls associated with the left probing mode, or to display the shooting controls associated with the right probing mode, when the blocked area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line.
[0030] Optionally, the third probe mode determination module includes:
[0031] A left probe mode determination module, configured to display a shooting control associated with a right probe mode when the distance between the left side of the shielding area and the connecting line is greater than the distance between the right side of the shielding area and the connecting line;
[0032] The right probing mode determining module is used to display the shooting control associated with the left probing mode when the distance between the left side of the occluding area and the connecting line is smaller than the distance between the right side of the occluding area and the connecting line.
[0033] Optionally, the third probe mode determination module is used to:
[0034] The probing mode associated with the shooting control is determined according to the default probing mode.
[0035] Optionally, the third probe mode determination module is used to:
[0036] The probing mode associated with the shooting control is determined according to the probing mode of the last shooting.
[0037] Optionally, the third probe mode determination module is used to:
[0038] The probing mode associated with the shooting control is determined according to the moving direction of the first virtual object when it moves to the rear side of the bunker.
[0039] Optionally, the device further comprises:
[0040] The second virtual object determining module is used to determine a second virtual object that is hostile to the first virtual object according to the position of the crosshair corresponding to the first virtual object.
[0041] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the game control method described above when executed by the processor.
[0042] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the game control method described above are implemented.
[0043] This application has the following advantages:
[0044] In an embodiment of the present application, when it is detected that the first virtual object controlled by the user is located behind a cover, a shooting control associated with the probing mode is displayed according to the positional relationship between the line between the first virtual object and its hostile second virtual object and the blocking area of the cover; in response to a selection operation on the shooting control, the first virtual object is controlled to perform a shooting action according to the probing mode associated with the shooting control; thereby automatically determining the probing mode of shooting according to the position of the cover, which can reduce the difficulty of the user controlling the virtual object hiding behind the cover to shoot, and improve the user's gaming experience; and, the game interface only needs to be configured with one shooting control, which can reduce the burden of the interface content. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description 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.
[0046] Figure 1 A flowchart of a game control method according to an embodiment of the present application;
[0047] Figure 2 A schematic diagram of a positional relationship between a shelter and a connection line in an embodiment of the present application;
[0048] Figure 3 A schematic diagram of another positional relationship between a shelter and a connection line according to an embodiment of the present application;
[0049] Figure 4 A schematic diagram of another positional relationship between a shelter and a connection line in an embodiment of the present application;
[0050] Figure 5 This is a structural block diagram of a game control device according to an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0052] Reference Figure 1 , showing a step flow chart of a game control method provided by an embodiment of the present application, by executing an application on a processor of a terminal device and rendering it on a touch screen of the terminal device to obtain a graphical user interface, wherein the graphical user interface at least includes a display screen of a virtual environment.
[0053] In the embodiment of the present application, the application executed on the processor of the terminal device may be an application that needs to be downloaded and installed, or an application that can be used immediately after clicking, which is not limited in the embodiment of the present application. The terminal device may be an electronic device such as a smart phone, a tablet computer, a game console, an e-book reader, a multimedia player, a wearable device, etc.
[0054] In the embodiment of the present application, the above-mentioned application can be any application that can provide a virtual environment for the user to substitute and operate the virtual object to perform activities in the virtual environment. Typically, the application is a game application, such as a multiplayer online tactical competitive game (Multiplayer Online Battle Arena, MOBA), a battle royale survival game (Battle Royale, BR), a third-person shooting game (Third-Personal Shooting Game, TPS), a first-person shooting game (First-Personal Shooting Game, FPS) and a multiplayer gun battle survival game, etc. Of course, in addition to game applications, other types of applications can also display virtual objects to users and provide corresponding functions to virtual objects. For example, virtual reality (Virtual Reality, VR) applications, augmented reality (Augmented Reality, AR) applications, three-dimensional map applications, military simulation applications, social applications, etc., the embodiment of the present application does not limit this. In addition, for different applications, the form of the virtual objects provided by them will also be different, and the corresponding functions will also be different, which can be pre-configured according to actual needs, and the embodiment of the present application does not limit this. Optionally, a client of the above application program is running in the terminal device.
[0055] Among them, the above-mentioned virtual environment is a scene provided by the client of an application (such as a game application) when it runs on a terminal device. The virtual environment refers to a scene created for virtual objects to carry out activities (such as game competitions), such as virtual houses, virtual islands, virtual maps, and virtual buildings. The virtual environment can be a simulation of the real world, a semi-simulated and semi-fictitious environment, or a purely fictitious environment. The virtual environment can be a two-dimensional virtual environment, or a 2.5-dimensional virtual environment. It is known that it is a three-dimensional virtual environment, and the embodiments of the present application do not limit this.
[0056] The above-mentioned virtual object can be a virtual character controlled by a user account in an application, or a virtual character controlled by a computer program in the application. Taking the application as a game application as an example, the virtual object can be a game character controlled by a user account in the game application, or a game monster controlled by a computer program in the game application. The virtual object can be in the form of a person, an animal, a cartoon or other form, which is not limited in the embodiments of the present application. The virtual object can be displayed in three-dimensional form or in two-dimensional form, which is not limited in the embodiments of the present application.
[0057] The display screen of the virtual environment refers to the screen corresponding to the virtual environment displayed to the user in the graphical user interface. Among them, the display screen of the virtual environment can be a screen obtained by the virtual camera from the virtual environment. In one embodiment, the virtual camera can obtain the virtual environment screen from the third perspective of the target virtual object controlled by the user. Optionally, the virtual camera is set obliquely above the target virtual object, and the application observes the virtual environment with the target virtual object as the center through the virtual camera, and obtains the display screen of the virtual environment with the target virtual object as the center. In another embodiment, the virtual camera obtains the display screen of the virtual environment from the first perspective of the target virtual object. Optionally, the virtual camera is set in front of the target virtual object, and the application observes the virtual environment from the perspective of the target virtual object through the virtual camera, and obtains the display screen of the virtual environment with the target virtual object as the first perspective. Of course, in other possible embodiments, the placement position of the virtual camera can be adjusted in real time.
[0058] In the embodiment of the present application, the display screen of the virtual environment is used to display the display screen of the virtual environment provided by the shooting application. Among them, the shooting application refers to an application that provides a virtual gun or bow and arrow for shooting a target virtual object controlled by a user, such as a third-person shooting game, a first-person shooting game, and a multiplayer gun battle survival game, etc.
[0059] The method may specifically include the following steps:
[0060] Step 101, when it is detected that a first virtual object controlled by a user is located behind a cover, a shooting control associated with a probe mode is displayed according to a positional relationship between a line between the first virtual object and a second virtual object that is hostile to the first virtual object and a shielding area of the cover;
[0061] Step 102: In response to a selection operation on the shooting control, the first virtual object is controlled to perform a shooting action in a probe mode associated with the shooting control.
[0062] In an embodiment of the present application, when it is detected that the first virtual object controlled by the user is located behind a cover, a shooting control associated with the probing mode is displayed according to the positional relationship between the line between the first virtual object and its hostile second virtual object and the blocking area of the cover; in response to a selection operation on the shooting control, the first virtual object is controlled to perform a shooting action according to the probing mode associated with the shooting control; thereby automatically determining the probing mode of shooting according to the position of the cover, which can reduce the difficulty of the user controlling the virtual object hiding behind the cover to shoot, and improve the user's gaming experience; and, the game interface only needs to be configured with one shooting control, which can reduce the burden of the interface content.
[0063] Next, the game control method in this exemplary embodiment will be further described.
[0064] In the above step 101, when it is detected that the first virtual object controlled by the user is located behind the cover, the shooting controls associated with the probe mode are displayed according to the positional relationship between the line between the first virtual object and its hostile second virtual object and the occluding area of the cover.
[0065] In the embodiment of the present application, the virtual environment includes a first virtual object controlled by a user, and a second virtual object that is hostile to the first virtual object. The virtual object that is hostile to the first virtual object may include a virtual object in a different camp from the first virtual object, such as a virtual object controlled by other users that is in a hostile camp to the first virtual object; it may also include a virtual object set by the game system, i.e., NPC (Non Player Character), such as monsters, beasts, turrets, and other virtual objects in the game scene that have the ability to attack and be attacked.
[0066] The above-mentioned shelter refers to a virtual object in a virtual environment that can block bullets, shells, etc. Usually, a fixed shelter is set in the virtual environment, such as a wall, a stone, a box, etc. The user can avoid being hit by the hostile virtual object in front of the shelter by controlling the first virtual object to move to the back side of the shelter.
[0067] During the game, the user not only needs to control the first virtual object to avoid being hit by the hostile virtual object, but also needs to control the first virtual object to attack its hostile virtual object; in shooting games, the attack method is generally shooting. Therefore, controlling the first virtual object to hide behind the bunker and then wait for an opportunity to attack the hostile virtual object is a combat method often used by users. In addition, in order to reduce the probability of being hit by the hostile virtual object during the attack, the user will control the first virtual object to attack the hostile virtual object by using the method of probing shooting (also called sideways shooting in some games), so that the first virtual object only exposes part of its body when shooting, and reduces the probability of being hit by reducing the exposure of excessive body parts.
[0068] In the virtual environment of the game, there are generally multiple virtual objects that are hostile to the first virtual object. When there are multiple hostile virtual objects, the user is required to determine a target virtual object, ie, the second virtual object, from among the multiple hostile virtual objects.
[0069] In the graphical user interface of the embodiment of the present application, a crosshair corresponding to the first virtual object controlled by the user can also be displayed. The crosshair is also called a crosshair, and can be any pattern with a visual indication effect, for example, a dot-shaped, cross-shaped, or ring-shaped pattern with color or preset transparency. The crosshair will move with the first virtual object, and is usually used in the interface to indicate the direction of the virtual shooting prop when the virtual shooting prop is not aimed. The position of the crosshair can be considered as the position of the virtual shooting prop. The crosshair can assist the user in determining the direction in which the virtual shooting prop is pointing and assist the user in aiming at the target.
[0070] Therefore, in an optional implementation of the present application, when there are multiple virtual objects that are hostile to the first virtual object, the second virtual object that is hostile to the first virtual object can be determined according to the position of the crosshair corresponding to the first virtual object.
[0071] Specifically, a hostile virtual object that is closest to the position of the crosshair corresponding to the first virtual object may be determined as the second virtual object; and a virtual object that is aimed at by the crosshair corresponding to the first virtual object may also be determined as the second virtual object.
[0072] After the second virtual object is determined, the probe mode associated with the shooting control is determined according to the positional relationship between the line connecting the first virtual object and the second virtual object and the shielding area of the bunker, and a pattern corresponding to the associated probe mode is displayed in the shooting control.
[0073] Among them, the line connecting the first virtual object and the second virtual object is used to indicate the shooting direction of the first virtual object when not poking its head to shoot. When there is no obstruction to the line, the first virtual object can hit the second virtual object by shooting in the shooting direction indicated by the line. The shielding area of the bunker refers to the area where the bunker extends to the left and right sides of the line. By judging the positional relationship between the shielding area of the bunker and the line, it can be determined whether the first virtual object can shoot the second virtual object by poking its head, and when it is determined that the shooting of the second virtual object can be achieved by poking its head, the shooting control associated with the poking method is displayed; it can be understood that at this time, a pattern corresponding to the poking method is displayed in the shooting control. The pattern displayed by the shooting control allows the user to predict in advance the action that the first virtual object will perform when the shooting control is triggered.
[0074] Exemplarily, when the pattern displayed by the shooting control is a left probe, when the user triggers the shooting control, the first virtual object will perform a left probe shooting action.
[0075] In an optional implementation manner of the present application, the displaying of the shooting control associated with the probe mode according to the positional relationship between the line connecting the first virtual object and the second virtual object and the shielding area of the cover may include the following steps:
[0076] When the shielding area exceeds the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, the shooting control associated with the right probe mode is displayed;
[0077] When the shielded area does not exceed the first distance on the left side of the connecting line and exceeds the second distance on the right side of the connecting line, the shooting control associated with the left probe mode is displayed;
[0078] When the blocked area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, the shooting controls associated with the left probing mode are displayed, or the shooting controls associated with the right probing mode are displayed.
[0079] In an embodiment of the present application, the first distance may be equal to the distance between the crosshair position of the first virtual object when not poking out and the crosshair position when performing a left probe under the same conditions; correspondingly, the second distance may be equal to the distance between the crosshair position of the first virtual object when not poking out and the crosshair position when performing a right probe under the same conditions. Generally, the first distance may be equal to the second distance. Optionally, the first distance and the second distance may be equal to the width of the head of the first virtual object. In addition to the settings listed above, the first distance and the second distance may also be set by the game developer according to the specific circumstances of the game, or may be set by the game player during the game.
[0080] like Figure 2 As shown, Figure 2 A schematic diagram of the positional relationship between the shelter and the connection line in the embodiment of the present application; Figure 2 In the example, the occlusion area of the cover exceeds the first distance on the left side of the line, which means that the first virtual object will be blocked by the cover when performing left-peek shooting, resulting in the inability to hit the second virtual object. In other words, left-peek shooting is meaningless at this time. The occlusion area of the cover does not exceed the second distance on the right side of the line, which means that the first virtual object will not be blocked by the cover when performing right-peek shooting and can hit the second virtual object. In other words, the best shooting method at this time is right-peek shooting. Therefore, the probing method associated with the shooting control is determined to be right-peek, and the right-peek pattern is displayed in the shooting control. At this time, the shooting method corresponding to the shooting control is determined to be right-peek shooting.
[0081] like Figure 3 As shown, Figure 3 FIG. 1 is another schematic diagram of the positional relationship between the shelter and the connection line in an embodiment of the present application; Figure 3In the example, the occlusion area of the cover exceeds the second distance on the right side of the line, which means that the first virtual object will be blocked by the cover when performing right-peek shooting, resulting in the inability to hit the second virtual object. In other words, right-peek shooting is meaningless at this time. The occlusion area of the cover does not exceed the first distance on the left side of the line, which means that the first virtual object will not be blocked by the cover when performing left-peek shooting and can hit the second virtual object. In other words, the best shooting method at this time is left-peek shooting. Therefore, the probing method associated with the shooting control is determined to be left-peek shooting, and the left-peek pattern is displayed in the shooting control. At this time, the shooting method corresponding to the shooting control is determined to be left-peek shooting.
[0082] like Figure 4 As shown, Figure 4 FIG. 1 is another schematic diagram of the positional relationship between the shelter and the connection line in the embodiment of the present application; Figure 4 In the figure, the occlusion area of the cover does not exceed the first distance on the left side of the connecting line, indicating that the first virtual object will not be blocked by the cover when performing left-peek shooting and can hit the second virtual object; at the same time, the occlusion area of the cover does not exceed the second distance on the right side of the connecting line, indicating that the first virtual object will not be blocked by the cover when performing right-peek shooting and can hit the second virtual object; that is, at this time, left-peek shooting or right-peek shooting can both hit the second virtual object, therefore, it is determined that the shooting control is associated with the left probe or the right probe, and the pattern of the left probe or the right probe is displayed in the shooting control.
[0083] When both left and right probing shooting can hit the second virtual object, only one probing method can be associated with the shooting control. Therefore, the shooting control can only display a pattern of one probing method, that is, the first virtual object can only perform one probing shooting method when actually shooting. In an optional embodiment of the present application, when the occluded area does not exceed the first distance to the left of the connecting line, and does not exceed the second distance to the right of the connecting line, displaying the shooting control associated with the left probing method, or displaying the shooting control associated with the right probing method may include:
[0084] When the distance between the left side of the shielding area and the connecting line is greater than the distance between the right side of the shielding area and the connecting line, a shooting control associated with the right probe mode is displayed;
[0085] When the distance between the left side of the shielding area and the connecting line is smaller than the distance between the right side of the shielding area and the connecting line, the shooting control associated with the left probe mode is displayed.
[0086] like Figure 4 As shown, the distance between the left side of the occluding area and the connecting line is L0, and the distance between the right side of the occluding area and the connecting line is L1. The probe mode associated with the shooting control is determined by judging the size of L0 and L1, and the pattern corresponding to the associated probe mode is displayed in the shooting control.
[0087] In this embodiment, when L0 is less than L1, it is generally considered that the first virtual object is close to the left side of the bunker. At this time, when the first virtual object performs a peeking shot, it uses a left peeking shot. Similarly, when L0 is greater than L1, it is generally considered that the first virtual object is close to the right side of the bunker. At this time, when the first virtual object performs a peeking shot, it uses a right peeking shot. This embodiment determines the peeking shot mode by comparing the distance between the two sides of the occluded area and the connecting line, and then determines the peeking mode associated with the shooting control, and displays the icon corresponding to the peeking mode in the shooting control.
[0088] It should be noted that when L0 is equal to L1, the probe mode associated with the shooting control can be determined in a manner corresponding to when L0 is less than L1, that is, when L0 is less than or equal to L1, the shooting control is determined to be associated with the left probe, and the pattern displayed by the shooting control is the left probe; when L0 is greater than L1, the shooting control is determined to be associated with the right probe, and the pattern displayed by the shooting control is the right probe. Alternatively, when L0 is equal to L1, the probe mode associated with the shooting control can be determined in a manner corresponding to when L0 is greater than L1, that is, when L0 is less than L1, the shooting control is determined to be associated with the left probe, and the pattern displayed by the shooting control is the left probe; when L0 is greater than or equal to L1, the shooting control is determined to be associated with the right probe, and the pattern displayed by the shooting control is the right probe. The embodiments of the present application are not limited to this.
[0089] In an optional embodiment of the present application, when the blocked area does not exceed the first distance to the left of the connecting line and does not exceed the second distance to the right of the connecting line, displaying the shooting control associated with the left probe mode, or displaying the shooting control associated with the right probe mode may include:
[0090] The probing mode associated with the shooting control is determined according to the default probing mode.
[0091] In this embodiment, a default probe mode can be preset. When the left probe or the right probe of the first virtual object is not blocked by the cover, a shooting control associated with the default probe mode is displayed, and a pattern corresponding to the default probe mode is displayed in the shooting control. The default probe mode can be set by the user in the system settings, or by the system default setting; this embodiment of the application does not limit this.
[0092] In one example, the default probe mode can be set to left probe, and when the blocked area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, the left probe pattern is displayed in the shooting control.
[0093] In another example, the default probe mode can be set to right probe, and when the blocked area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, the right probe pattern is displayed in the shooting control.
[0094] In an optional embodiment of the present application, when the blocked area does not exceed the first distance to the left of the connecting line and does not exceed the second distance to the right of the connecting line, displaying the shooting control associated with the left probe mode, or displaying the shooting control associated with the right probe mode may include:
[0095] The probing mode associated with the shooting control is determined according to the probing mode of the last shooting.
[0096] In this embodiment, when the left or right probe of the first virtual object is not blocked by the cover, the probe mode of the last shooting is obtained, and the pattern corresponding to the probe mode associated with the last shooting is determined in the current shooting control according to the probe mode of the last shooting. Among them, in determining the probe mode associated with the current shooting control according to the probe mode of the last shooting, the last shooting is the left probe shooting or the right probe shooting used most recently.
[0097] In one example, the peeking mode associated with the current shooting control may be the same as the peeking mode of the last shooting. For example, when the peeking mode of the last shooting was left peeking, it may be determined that the current shooting control is associated with the left peeking mode, and a left peeking pattern is displayed in the shooting control. By making the peeking mode the same as the last shooting, the user's peeking shooting habits can be better catered to.
[0098] In another example, the probe mode associated with the current shooting control may be opposite to the probe mode of the last shooting. For example, when the probe mode of the last shooting was left probe, it may be determined that the current shooting control is associated with the right probe mode, and a right probe pattern is displayed in the shooting control. By being opposite to the probe mode of the last shooting, the difficulty of the hostile second virtual object attacking the first virtual object may be increased, that is, the probability of the first virtual object being hit by the enemy may be reduced.
[0099] The above two exemplary probe modes can be set by the user in the system settings, or by the system default settings; the embodiments of the present application do not limit this.
[0100] In an optional embodiment of the present application, when the blocked area does not exceed the first distance to the left of the connecting line and does not exceed the second distance to the right of the connecting line, displaying the shooting control associated with the left probe mode, or displaying the shooting control associated with the right probe mode may include:
[0101] The probing mode associated with the shooting control is determined according to the moving direction of the first virtual object when it moves to the rear side of the bunker.
[0102] In this embodiment, when the left or right probe of the first virtual object is not blocked by the cover, the moving direction of the first virtual object when it moves to the back of the cover is obtained, and the probe mode associated with the current shooting control is determined according to the moving direction. The moving direction of the first virtual object when it moves to the back of the cover refers to the moving direction of the first virtual object when it moved behind the cover the most recent time.
[0103] In one example, the probe mode associated with the current shooting control can be the same as the moving direction. For example, when the first virtual object moves from the left side (left rear) of the bunker to the rear side of the bunker, its moving direction is from left to right. It can be determined that the current shooting control is associated with the right probe mode, and the right probe pattern is displayed in the shooting control, that is, the head of the corresponding first virtual object is offset to the right. Relatively speaking, the head moves from left to right, which is the same as the moving direction of the first virtual object. When the hostile second virtual object is monitoring the first virtual object being blocked by the bunker, its focus generally remains at the position where the first virtual object disappears from its field of vision. In this example, the probe mode is the same as the moving direction, so that the first virtual object performs probe shooting on the other side of the bunker, which can increase the difficulty of the hostile second virtual object attacking the first virtual object, that is, reduce the probability of the first virtual object being hit by the enemy.
[0104] In another example, the probe mode associated with the current shooting control can be opposite to the moving direction. For example, when the first virtual object moves from the left side (left rear) of the bunker to the back side of the bunker, its moving direction is from left to right. It can be determined that the current shooting control is associated with the left probe mode, and the left probe pattern is displayed in the shooting control, that is, the head of the corresponding first virtual object is offset to the left. Relatively speaking, the head moves from right to left, which is opposite to the moving direction of the first virtual object. Generally, when the user controls the first virtual object to move to the back side of the bunker, the user can also determine the position of the crosshairs during the probe shooting. Therefore, when performing the probe shooting, controlling the first virtual object to probe and shoot in the passing direction can increase the probability of hitting the second virtual object.
[0105] The above two exemplary probe modes can be set by the user in the system settings, or by the system default settings; the embodiments of the present application do not limit this.
[0106] It should be noted that when the occluded area exceeds the first distance on the left side of the connecting line and exceeds the second distance on the right side of the connecting line, the shooting control does not display a pattern for indicating the peeking mode during shooting. It can be understood that at this time, whether the first virtual object peeks left or right, it will be blocked by the cover, and peeking shooting is meaningless.
[0107] In step 102, in response to a selection operation on the shooting control, the first virtual object is controlled to perform a shooting action in a probing manner associated with the shooting control.
[0108] In an embodiment of the present application, when a selection operation for a shooting control is detected, the first virtual object is controlled to perform a shooting action in a probe mode associated with the shooting control. The selection operation may include a click operation or a long press operation. The shooting action may refer to an action of a virtual object firing a virtual bullet using a virtual shooting prop.
[0109] For example, when the shooting control is associated with the left probe mode, that is, when the left probe pattern is displayed in the shooting control, when a selection operation for the shooting control is detected, the first virtual object is controlled to perform a left probe shooting action. Similarly, when the shooting control is associated with the left probe mode, that is, when the right probe pattern is displayed in the shooting control, when a selection operation for the shooting control is detected, the first virtual object is controlled to perform a right probe shooting action.
[0110] In an optional implementation manner of the present application, in response to the selection operation on the shooting control, controlling the first virtual object to perform a shooting action in a probe mode associated with the shooting control may include:
[0111] In response to a selection operation on a shooting control, determining a target probe mode of a first virtual object according to a pattern displayed by the shooting control and corresponding to the target probe mode;
[0112] Determine a crosshair position corresponding to a target probe mode of the first virtual object;
[0113] The first virtual object is controlled to perform a shooting action targeting the crosshair position according to the target probe method.
[0114] In this embodiment, when a selection operation on a shooting control is detected, the target probe mode that the first virtual object is about to execute can be determined by a pattern corresponding to the target probe mode displayed by the shooting control, and then the crosshair position corresponding to the target probe mode can be determined. When the first virtual object executes the shooting action of the above-mentioned target probe mode, its shooting direction is in the direction of the crosshair position corresponding to the target probe mode.
[0115] In an embodiment of the present application, when it is detected that the first virtual object controlled by the user is located behind a cover, a pattern corresponding to the probing method is displayed in the shooting control according to the positional relationship between the line between the first virtual object and its hostile second virtual object and the blocking area of the cover; the pattern in the shooting control is used to indicate the best probing method for the first virtual object when performing shooting at the current position; in response to a selection operation on the shooting control, the first virtual object is controlled to perform a shooting action in the probing method indicated by the pattern displayed in the shooting control; thereby automatically determining the probing method for shooting according to the position of the cover, which can reduce the difficulty of the user controlling the virtual object hiding behind the cover to shoot, and improve the user's gaming experience; and, the game interface only needs to be configured with one shooting control, which can reduce the burden of the interface content.
[0116] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0117] Reference Figure 5 , shows a structural block diagram of an embodiment of a game control device of the present application, wherein a graphical user interface is obtained by executing an application on a processor of a terminal device and rendering it on a touch screen of the terminal device, wherein the graphical user interface at least includes a display screen of a virtual environment. The device may specifically include the following modules:
[0118] The probing mode determining module 501 is used to display shooting controls associated with the probing mode according to the positional relationship between the line between the first virtual object and its hostile second virtual object and the shielding area of the shelter when it is detected that the first virtual object controlled by the user is located behind the shelter;
[0119] The probe shooting response module 502 is used to respond to the selection operation on the shooting control and control the first virtual object to perform a shooting action in a probe manner associated with the shooting control.
[0120] In one embodiment of the present application, the probe mode determination module 501 includes:
[0121] A first probe mode determination module, configured to display a shooting control associated with a right probe mode when the shielded area exceeds a first distance on the left side of the connecting line and does not exceed a second distance on the right side of the connecting line;
[0122] A second probe mode determination module, configured to display a shooting control associated with a left probe mode when the shielded area does not exceed a first distance to the left of the connecting line and exceeds a second distance to the right of the connecting line;
[0123] The third probing mode determination module is used to display the shooting controls associated with the left probing mode, or to display the shooting controls associated with the right probing mode, when the blocked area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line.
[0124] In one embodiment of the present application, the third probe mode determination module includes:
[0125] A left probe mode determination module, configured to display a shooting control associated with a right probe mode when the distance between the left side of the shielding area and the connecting line is greater than the distance between the right side of the shielding area and the connecting line;
[0126] The right probing mode determining module is used to display the shooting control associated with the left probing mode when the distance between the left side of the occluding area and the connecting line is smaller than the distance between the right side of the occluding area and the connecting line.
[0127] In one embodiment of the present application, the third probe mode determination module is used to:
[0128] The probing mode associated with the shooting control is determined according to the default probing mode.
[0129] In one embodiment of the present application, the third probe mode determination module is used to:
[0130] The probing mode associated with the shooting control is determined according to the probing mode of the last shooting.
[0131] In one embodiment of the present application, the third probe mode determination module is used to:
[0132] The probing mode associated with the shooting control is determined according to the moving direction of the first virtual object when it moves to the rear side of the bunker.
[0133] In one embodiment of the present application, the device further includes:
[0134] The second virtual object determining module is used to determine a second virtual object that is hostile to the first virtual object according to the position of the crosshair corresponding to the first virtual object.
[0135] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0136] In an embodiment of the present application, when it is detected that the first virtual object controlled by the user is located behind a cover, a pattern corresponding to the probing method is displayed in the shooting control according to the positional relationship between the line between the first virtual object and its hostile second virtual object and the blocking area of the cover; the pattern in the shooting control is used to indicate the best probing method for the first virtual object when performing shooting at the current position; in response to a selection operation on the shooting control, the first virtual object is controlled to perform a shooting action in the probing method indicated by the pattern displayed in the shooting control; thereby automatically determining the probing method for shooting according to the position of the cover, which can reduce the difficulty of the user controlling the virtual object hiding behind the cover to shoot, and improve the user's gaming experience; and, the game interface only needs to be configured with one shooting control, which can reduce the burden of the interface content.
[0137] An embodiment of the present application also discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the game control method described above when executed by the processor.
[0138] The embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the game control method described above are implemented.
[0139] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0140] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt 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.
[0141] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0144] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0145] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0146] The game control method and device, electronic device and storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A game control method, characterized in that: The method comprises: When it is detected that the first virtual object controlled by the user is located behind the cover, according to the positional relationship between the line between the first virtual object and its hostile second virtual object and the shielding area of the cover, a shooting control associated with the probe mode is displayed; In response to a selection operation on the shooting control, controlling the first virtual object to perform a shooting action in a probe mode associated with the shooting control; The displaying of shooting controls associated with the probe mode according to the positional relationship between the line between the first virtual object and its hostile second virtual object and the shielding area of the bunker comprises: When the shielding area exceeds the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, the shooting control associated with the right probe mode is displayed; When the shielded area does not exceed the first distance on the left side of the connecting line and exceeds the second distance on the right side of the connecting line, the shooting control associated with the left probe mode is displayed; When the blocked area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, the shooting controls associated with the left probing mode are displayed, or the shooting controls associated with the right probing mode are displayed.
2. The method according to claim 1, characterized in that When the shielding area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, displaying the shooting control associated with the left probing mode, or displaying the shooting control associated with the right probing mode, includes: When the distance between the left side of the shielding area and the connecting line is greater than the distance between the right side of the shielding area and the connecting line, a shooting control associated with the right probe mode is displayed; When the distance between the left side of the shielding area and the connecting line is smaller than the distance between the right side of the shielding area and the connecting line, the shooting control associated with the left probe mode is displayed.
3. The method according to claim 1, characterized in that When the shielding area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, displaying the shooting control associated with the left probing mode, or displaying the shooting control associated with the right probing mode, includes: The probing mode associated with the shooting control is determined according to the default probing mode.
4. The method according to claim 1, characterized in that: When the shielding area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, displaying the shooting control associated with the left probing mode, or displaying the shooting control associated with the right probing mode, includes: The probing mode associated with the shooting control is determined according to the probing mode of the last shooting.
5. The method according to claim 1, characterized in that When the shielding area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line, displaying the shooting control associated with the left probing mode, or displaying the shooting control associated with the right probing mode, includes: The probing mode associated with the shooting control is determined according to the moving direction of the first virtual object when it moves to the rear side of the bunker.
6. The method according to any one of claims 1 to 5, characterized in that: Before displaying a shooting control associated with the peeking mode according to the positional relationship between a line between the first virtual object and its hostile second virtual object and the shielding area of the bunker, the method further includes: A second virtual object that is hostile to the first virtual object is determined according to the position of the crosshair corresponding to the first virtual object.
7. A game control device, characterized in that: The device comprises: A probe mode determination module, configured to display a shooting control associated with the probe mode according to a positional relationship between a line between the first virtual object and a second virtual object that is hostile to the first virtual object and an occluded area of the cover when it is detected that the first virtual object controlled by the user is located behind the cover; A probe shooting response module, used to respond to a selection operation on the shooting control and control the first virtual object to perform a shooting action in a probe manner associated with the shooting control; Wherein, the probe mode determination module includes: A first probe mode determination module, configured to display a shooting control associated with a right probe mode when the shielded area exceeds a first distance on the left side of the connecting line and does not exceed a second distance on the right side of the connecting line; A second probe mode determination module, configured to display a shooting control associated with a left probe mode when the shielded area does not exceed a first distance to the left of the connecting line and exceeds a second distance to the right of the connecting line; The third probing mode determination module is used to display the shooting controls associated with the left probing mode, or to display the shooting controls associated with the right probing mode, when the blocked area does not exceed the first distance on the left side of the connecting line and does not exceed the second distance on the right side of the connecting line.
8. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the game control method according to any one of claims 1 to 6 when executed by the processor.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the game control method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method for processing information in game, electronic equipment and storage medium
CN108144300A
Object aiming method and device, storage medium and electronic device
CN108553891A
Method for shielding virtual object in virtual environment, terminal and medium
CN110721469A
Virtual prop control method and device, storage medium and electronic device
CN111111164A
Prop control method and device, storage medium and electronic device
CN112107859A
