Marking method and device in game and electronic equipment
By using marking controls and sights in the graphical user interface of shooting games, combined with sliding operations, marking enemy characters outside the cover is solved, and the problem of inability to mark in the cover in the game is improved, and the player's gaming experience is improved.
Patent Information
- Application Number
- CN202310643701.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-01
- Publication Date
- 2024-12-03
AI Technical Summary
In shooting games, the player character cannot mark the enemy characters outside the cover when hiding behind the cover, which will affect the game experience and may be discovered by the enemy when walking out of the cover, causing damage or death.
By providing marking controls and sights in the graphical user interface, displaying the first identification of the target position in response to the second trigger operation, and switching the target position through the sliding operation until the sliding operation is completed to mark the virtual units in the game scene, the cover is realized outside the cover The mark of the unit.
When the player character avoids virtual obstacles, he can mark virtual units that cannot be aligned by the sight, which improves the game experience and avoids the risk of injury or death due to exposure.
Smart Images

Figure CN119056053A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of game interaction design, and in particular to a marking method, device and electronic equipment in a game. Background Art
[0002] In shooting games, players can better inform teammates of the enemy's location by marking the enemy character, so as to coordinate the battle. In the related art, if a player wants to mark an enemy character, he needs to aim the crosshairs at the enemy character, and then click the mark control to mark the enemy character. However, when the player character hides behind a bunker, the crosshairs cannot be aimed at the enemy character outside the bunker, and the enemy character cannot be marked. The player character can only be marked by walking out of the bunker, but the player character may be discovered by the enemy when walking out of the bunker, which may cause the player character to be injured or killed, affecting the player's gaming experience. Summary of the invention
[0003] The purpose of the present invention is to provide a marking method, device and electronic device in a game, so as to mark an enemy character outside the cover when the player character hides in the cover, thereby improving the player's gaming experience.
[0004] In a first aspect, the present invention provides a marking method in a game, providing a graphical user interface through a terminal device; the graphical user interface displays a marking control, a crosshair and a scene screen of at least part of a game scene, the game scene includes a virtual weapon controlled by the terminal device, the crosshair is used to indicate the aiming direction of the virtual weapon, and the marking control is used to respond to a first trigger operation to mark a first unit determined based on the crosshair, the method comprising: in response to a second trigger operation for the marking control, displaying a first identifier for indicating a target position in the game scene in the graphical user interface; in response to a sliding operation continuous with the second trigger operation, controlling the switching of the target position indicated by the first identifier in the game scene; in response to the end of the sliding operation, controlling the marking of a second unit determined based on the target position indicated by the first identifier.
[0005] In a second aspect, the present invention provides a marking device in a game, which provides a graphical user interface through a terminal device; the graphical user interface displays a marking control, a crosshair and a scene screen of at least part of a game scene, wherein the game scene includes a virtual weapon controlled by the terminal device, the crosshair is used to indicate the aiming direction of the virtual weapon, and the marking control is used to respond to a first trigger operation to mark a first unit determined based on the crosshair. The device includes: an identification display module, which is used to respond to a second trigger operation for the marking control and display a first identification for indicating a target position in the game scene in the graphical user interface; a pointing switching module, which is used to respond to a sliding operation continuous with the second trigger operation and control the switching of the target position indicated by the first identification in the game scene; and a marking module, which is used to respond to the end of the sliding operation and control the marking of a second unit determined based on the target position indicated by the first identification.
[0006] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the marking method in the above-mentioned game.
[0007] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the marking method in the above-mentioned game.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The present invention provides a method, device and electronic device for marking objects in a game, wherein a crosshair is used to indicate the aiming direction of a virtual weapon, and a marking control is used to mark a first unit determined based on the crosshair in response to a first trigger operation; and in response to a second trigger operation on the marking control, a first identifier for indicating a target position in a game scene is displayed in a graphical user interface; and then in response to a sliding operation continuous with the second trigger operation, the target position indicated by the first identifier in the game scene is switched; and then in response to the end of the sliding operation, the second unit determined based on the target position indicated by the first identifier is controlled to be marked. This method can display the first identifier in the graphical user interface through the second trigger operation on the marking control, and mark the virtual unit at any position in the game scene through the first identifier, so that virtual units other than the virtual units determined by the crosshair can be marked, and virtual units that the crosshair cannot aim at can be marked when the player character is hiding from a virtual obstacle, thereby improving the player's gaming experience.
[0010] Other features and advantages of the present invention will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present invention.
[0011] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0013] Figure 1 A schematic diagram of object marking provided in the related art provided in an embodiment of the present invention;
[0014] Figure 2 A flowchart of a marking method in a game provided by an embodiment of the present invention;
[0015] Figure 3 A flowchart of another marking method in a game provided by an embodiment of the present invention;
[0016] Figure 4 A schematic diagram of displaying an arc mark provided by an embodiment of the present invention;
[0017] Figure 5 A flowchart of another marking method in a game provided by an embodiment of the present invention;
[0018] Figure 6 A schematic diagram of a pointing adjustment control provided by an embodiment of the present invention;
[0019] Figure 7 A schematic diagram of a cancel control display provided by an embodiment of the present invention;
[0020] Figure 8 A schematic diagram of the structure of a marking device in a game provided by an embodiment of the present invention;
[0021] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0023] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] In shooting games, players can better inform teammates of the enemy's location by marking the enemy character so as to coordinate the battle. In the related art, if a player wants to mark an enemy character, he needs to aim the crosshairs at the enemy character and then click the mark control to mark the enemy character. However, when the player character hides behind a cover, the crosshairs cannot be aimed at the enemy character outside the cover, such as Figure 1 The figure shows a schematic diagram of object marking provided in the related art, where the player character (equivalent to Figure 1 When a virtual object marked with a player hides behind a cover, the crosshairs are aimed at the cover and cannot mark the enemy character (equivalent to Figure 1 The virtual object marked with the enemy in the cover can only be marked when the player character walks out of the cover, but the player character may be discovered by the enemy when walking out of the cover, which may cause the player character to be injured or killed, affecting the player's gaming experience.
[0025] Based on the above problems, the embodiments of the present invention provide a marking method, device and electronic device in a game. The technology can be applied to marking scenes in shooting games, especially marking scenes for enemy characters, virtual materials, etc.
[0026] In one embodiment of the present disclosure, the marking method in the game can be run on a local terminal device or a server. When the marking method in the game is run on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0027] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the object selection method in the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0028] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0029] In a possible implementation, an embodiment of the present invention provides a marking method in a game, providing a graphical user interface through a terminal device, wherein the terminal device may be the local terminal device mentioned above, or may be a client device in the cloud interaction system mentioned above. The graphical user interface displays a marking control, a crosshair, and a scene screen of at least part of a game scene, wherein the game scene includes a virtual weapon controlled by the terminal device, the crosshair is used to indicate the aiming direction of the virtual weapon, and the marking control is used to mark a first unit determined based on the crosshair in response to a first trigger operation; Figure 2 As shown, the method comprises the following specific steps:
[0030] Step S202, in response to a second trigger operation on the mark control, a first mark for indicating a target position in the game scene is displayed in the graphical user interface.
[0031] In actual applications, players can adjust the virtual unit pointed by the crosshairs by sliding the screen. When the player performs the first trigger operation on the mark control, the virtual unit currently pointed by the crosshairs will be marked, that is, the first unit determined based on the crosshairs will be marked. The virtual unit, the first unit and the second unit can all be virtual characters, virtual materials, virtual objects or virtual buildings in the game scene. The above-mentioned first trigger operation can be a click operation on the mark control or other operations set according to research and development needs, which are not specifically limited here.
[0032] In specific implementation, the above-mentioned mark control can be displayed at any position of the graphical user interface, and the specific position can be determined according to research and development requirements. Players perform different trigger operations on the mark control, which will trigger different functions of the mark control, that is, the mark control can be used to respond to the first trigger operation and mark the first unit determined based on the crosshairs, and can also respond to the second trigger operation and mark the second unit determined by the target position pointed to by the first mark. Among them, the first trigger operation and the second trigger operation are different operations, and the above-mentioned second trigger operation for the mark control can be determined according to research and development requirements. For example, the second trigger operation can be a long press operation, a sliding operation, or a drag operation.
[0033] When the player performs the second trigger operation on the mark control, a first mark will be displayed in the graphical user interface. The first mark is used to indicate a target position in the game scene. The target position usually includes one or more virtual units.
[0034] In a specific embodiment, the first mark is a linear mark including a first end and a second end, the first end is configured to be connected to a virtual weapon, and the second end is configured to switch to indicate different target positions in the game scene in response to a sliding operation. Specifically, the first mark can be an arc mark, the first end of the arc mark can be understood as the issuing end of the line segment corresponding to the arc mark, and the second end of the second mark can be understood as being used to point to a certain position in the game scene. The target position can be any position in the game scene, which is specifically determined according to the player's operation.
[0035] Step S204, in response to a sliding operation continuous with the second triggering operation, controlling the switching of the target position indicated by the first mark in the game scene.
[0036] In a specific implementation, the target position indicated by the first identifier in the game scene can be determined according to the sliding direction of the sliding operation, and it can also be understood that the target position indicated by the second end of the first identifier in the game scene can be switched according to the sliding direction of the sliding operation. Generally, different sliding directions result in different target positions indicated by the switched first identifier in the game scene.
[0037] Step S206 , in response to the sliding operation ending, controlling marking of a second unit determined based on the target position indicated by the first marker.
[0038] In a specific implementation, the end of the sliding operation means stopping the sliding operation and ending the triggering of the mark control. For example, in a mobile game, the end of the sliding operation may be stopping the sliding operation and the finger leaving the screen; in a terminal game, the end of the sliding operation may be stopping the mouse from sliding and ending the pressing operation of the mouse button. Specifically, the sliding operation ends, and the first virtual object can be marked by a preset marking point. In actual applications, the target position may contain a virtual unit. In this case, the virtual unit contained in the target position can be determined as the second unit, and the second unit is marked at the end of the sliding operation. In a specific implementation, the target position may contain multiple virtual units. In this case, a mark list can be displayed in a graphical user interface at the end of the sliding operation. The mark list displays multiple virtual units or unit identifiers contained in the target position. The player can mark which virtual unit by clicking on the virtual unit in the mark list.
[0039] When the player finishes the sliding operation, a preset mark point will be set on the second unit, thereby marking the second unit through the preset mark point. Teammates who belong to the same game camp as the player's character can see the second unit marked by the preset mark point on their corresponding terminal devices, thereby reminding teammates that there are virtual supplies or enemy characters here, etc., which helps to improve the team's combat victory rate and the player's gaming experience.
[0040] An embodiment of the present invention provides a marking method in a game, in which a crosshair is used to indicate the aiming direction of a virtual weapon, a marking control is used to respond to a first trigger operation to mark a first unit determined based on the crosshair; and in response to a second trigger operation on the marking control, a first identifier for indicating a target position in a game scene is displayed in a graphical user interface; and then in response to a sliding operation continuous with the second trigger operation, the target position indicated by the first identifier in the game scene is switched; and then in response to the end of the sliding operation, the second unit determined based on the target position indicated by the first identifier is controlled to be marked. This method can display the first identifier in the graphical user interface through the second trigger operation on the marking control, and mark the virtual unit at any position in the game scene through the first identifier, so that virtual units other than the virtual units determined by the crosshair can be marked, and virtual units that the crosshair cannot aim at can be marked when the player character is avoiding virtual obstacles, thereby improving the player's gaming experience.
[0041] The embodiment of the present invention further provides another marking method in a game, which is implemented on the basis of the above embodiment. The method focuses on describing the specific process of controlling the marking of the second unit determined based on the target position indicated by the first identifier in response to the end of the sliding operation (implemented by the following step S308); Figure 3 As shown, the method comprises the following specific steps:
[0042] Step S302: Control the virtual weapon to move in the game scene, and in response to the presence of a virtual obstacle between the virtual weapon and the second unit, display the virtual obstacle in the graphical user interface.
[0043] In specific implementation, players can control virtual weapons to move arbitrarily in the game scene through terminal devices. At the same time, the movement direction and speed of virtual weapons in the game scene are determined by the specific operations of the players in the terminal devices. In practical applications, the present invention can also be applied to third-person games, that is, the scene screen displayed by the graphical user interface always contains the controlled virtual object. It can also be understood that the scene screen displayed in the graphical user interface is the scene screen obtained by shooting the game scene at a certain position behind the controlled virtual object by the virtual camera, and the camera position and camera angle of the virtual camera will change with the movement of the controlled virtual object. In third-person games, the above-mentioned virtual weapons are usually weapons held or ridden by the controlled virtual object. The virtual weapons include guns, grenades or tanks, etc.
[0044] When the controlled virtual object and virtual weapon move behind the virtual obstacle, the virtual obstacle can hide the controlled virtual object and virtual weapon to avoid the attack of the second unit in front of the virtual obstacle. At this time, there is a virtual obstacle between the virtual weapon and the second unit, and the virtual obstacle will be displayed in the graphical user interface. In specific implementation, the virtual obstacle can be a large tree, building, mountain or flower bush in the game scene that can be obscured. The above-mentioned second unit is usually a virtual unit that the player wants to mark. The virtual unit can be an enemy virtual character that does not belong to the same game camp as the controlled virtual object, or it can be a virtual material or a virtual building.
[0045] Step S304, in response to a second trigger operation on the mark control, a first identifier for indicating a target position in the game scene is displayed in the graphical user interface; wherein the first identifier is a linear identifier including a first end and a second end, the first end is configured as the starting end of the linear identifier, and the second end is configured to switch to indicate different target positions in the game scene in response to a sliding operation.
[0046] When there is a virtual obstacle in front of the virtual weapon, if the player wants to mark the virtual unit in front of the virtual obstacle, the player can perform a second trigger operation on the mark control through the terminal device to display the first mark in the graphical user interface. The second end of the first mark can indicate a target position in the game scene, and the target position contains the virtual unit that the player wants to mark.
[0047] The first mark may be an arc mark, which can bypass the virtual obstacle to point to the target position in front of the virtual obstacle in the game scene. Specifically, the first end of the first virtual mark is the emitting end of the linear mark, and the second end is the terminating end of the linear mark. Moreover, the first end of the linear mark may be on the same side of the virtual obstacle as the virtual weapon, and the second end of the linear mark may be located on the virtual obstacle or on the other side of the virtual obstacle opposite to the virtual weapon.
[0048] In an optional embodiment, the embodiment of the present invention can be applied to a third-person game, in which a controlled virtual object controlled by a terminal device is displayed, and the first end of the first identifier can be located at the camera position of a virtual camera, which is used to capture the game scene and obtain the scene image displayed in the graphical user interface, and the virtual camera is usually located behind the controlled virtual object. In a specific implementation, the first identifier will directly pass through the controlled virtual object and point to the virtual unit or virtual obstacle in front of the controlled virtual object, so that the player will not mark the controlled virtual object.
[0049] In a specific embodiment, the first mark can be an arc mark. When the player performs the second trigger operation on the mark control, an arc mark extending outward from the camera position of the virtual camera will be displayed in the graphical user interface, and the arc curvature of the arc mark is a preset curvature. The specific curvature value of the preset curvature can be determined according to research and development needs. Specifically, no matter where the camera position of the virtual camera is located in the game scene, the arc curvature of the arc mark is a fixed curvature, that is, it is a preset curvature. When the player performs the second trigger operation on the mark control, the first end of the arc mark displayed in the graphical user interface is located at the camera position of the virtual camera, and the second end is located on the virtual obstacle, such as Figure 4 Shown is a schematic diagram of displaying an arc mark provided by an embodiment of the present invention.
[0050] Figure 4 The virtual object between the player (equivalent to the above-mentioned controlled virtual object) and the enemy (equivalent to the above-mentioned second unit) is a virtual obstacle, the mark behind the player is a virtual camera, and the arc mark closer to the player is the arc mark displayed when the player performs the second trigger operation on the mark control. Figure 4The arc mark that is farther away from the player is the arc mark obtained by adjusting the direction of the second end of the arc mark. It should be noted that Figure 4 It is a schematic diagram. In fact, the arcs of the two arc markers are the same, both are preset arcs, and only one arc marker is displayed in the graphical user interface.
[0051] Step S306, in response to the sliding operation continuous with the second triggering operation, controlling the switching of the target position indicated by the first mark in the game scene.
[0052] The player can adjust the direction of the second end of the first mark displayed in the graphical user interface in the game scene through a sliding operation, thereby switching the target position indicated by the second end of the first mark in the game scene, so as to point the second end of the first mark to the second unit that the player wants to mark. Specifically, the direction of the second end of the first mark in the game scene is adjusted according to the sliding direction of the sliding operation. For example, if you slide to the right, the direction of the second end of the first mark will also be adjusted to the right.
[0053] In a specific embodiment, if the first marker is an arc marker, during the sliding process, if the second end of the arc marker points to a virtual unit of the target position in the game scene, the arc length of the arc marker will become longer or shorter, so that the arc marker collides with the virtual unit pointed to by the second end of the arc marker, and forms an intersection at the collision position where the two collide, and the intersection is also the placement position of the subsequent marking point.
[0054] Step S308, in response to the sliding operation ending, determining the second unit that the second end of the first marker collides with in the target position, and displaying a mark point at the collision position between the second end and the second unit.
[0055] In the specific implementation, the target position includes a virtual unit, which is the second unit colliding with the second end of the first marker. When the player ends the sliding operation, a marking point will be displayed at the collision position between the second end of the first marker and the second unit, thereby marking the second unit through the marking point.
[0056] In an optional embodiment, before the sliding operation ends, in response to the presence of a second unit displayed in the first display format at the target position, the second unit may be displayed in the second display format in the graphical user interface so that the second unit is visually distinguishable. Specifically, the first display format is usually the normal display state of the second unit during the game, and the second display format is different from the first display format. The second display format can be determined according to research and development requirements. For example, the second display format can be any one or more of the following: highlighting the second unit, stroking the second unit, displaying the second unit in a specified color, etc. By displaying the second unit in the second display format that is different from the first display format, the player can clearly know which virtual unit the second end of the first identifier is currently pointing to, thereby helping the player to make accurate markings.
[0057] The marking method in the above-mentioned game can bypass the virtual obstacle through the first mark and mark the second unit when there is a virtual obstacle between the virtual weapon and the second unit to be marked, so that when the controlled virtual object avoids the virtual obstacle, the second unit in front of the virtual obstacle can be achieved, thereby improving the player's gaming experience.
[0058] The embodiment of the present invention further provides another marking method in a game, which is implemented on the basis of the above embodiment. The method focuses on describing the specific process of controlling the switching of the target position indicated by the first mark in the game scene in response to the sliding operation continuous with the second trigger operation (implemented by the following step S506); Figure 5 As shown, the method comprises the following specific steps:
[0059] Step S502, in response to a second trigger operation on the marker control, a first marker for indicating a target position in the game scene is displayed in the graphical user interface, and a pointing adjustment control is displayed in the associated area of the marker control; wherein the pointing adjustment control is used to switch the first marker to indicate different target positions in the game scene.
[0060] The associated area of the above-mentioned mark control can be determined according to research and development requirements. For example, the associated area can be around the mark control, or a certain area near the mark control, etc. The above-mentioned direction adjustment control is usually a joystick, and the player can adjust the direction of the second end of the arc mark in the game scene by sliding the joystick.
[0061] like Figure 6 Shown is a schematic diagram of a pointing adjustment control provided by an embodiment of the present invention. Figure 6 The disc control with four arrows on the right side is the directional adjustment control, and the arc with arrows is the arc mark. Figure 6The circular control at the center of the pointing adjustment control is the marking control. By long pressing the marking control, the first identifier and the pointing adjustment control can be displayed in the graphical user interface.
[0062] Step S504, in response to a sliding operation that is continuous with the second trigger operation and is directed to the pointing adjustment control, switching the target position indicated by the first marker in the game scene according to the sliding direction of the sliding operation.
[0063] In a specific implementation, the target position indicated by the first marker in the game scene will change with the sliding direction of the sliding operation on the pointing adjustment control. For example, if the pointing adjustment control is slid to the right, the direction of the second end of the first marker will also be adjusted to the right.
[0064] Step S506 , in response to the sliding operation ending, controlling marking of a second unit determined based on the target position indicated by the first marker.
[0065] In an optional embodiment, if the target position contains multiple virtual units, a mark list can also be displayed in the graphical user interface in response to the end of the sliding operation; wherein the mark list includes: unit identifiers of multiple virtual units located at the target position; in response to a trigger operation for a target unit identifier among the unit identifiers of multiple virtual units, the virtual unit corresponding to the target unit identifier is marked. Specifically, if the target position contains multiple virtual units (for example, multiple soldiers), at the end of the sliding operation, it will first be determined which virtual units are contained in the target position indicated by the first identifier, and then the unit identifiers of these virtual units will be displayed in a mark list that pops up in the graphical user interface. The unit identifier can be the name or status of the virtual unit, etc. The player clicks on a unit identifier in the mark list to mark the virtual unit corresponding to the unit identifier.
[0066] In a specific implementation, a cancel control is also displayed in the associated area of the mark control; that is, when the player performs the second trigger operation on the mark control, not only the pointing adjustment control will be displayed in the associated area of the mark control, but also the cancel control will be displayed near the pointing adjustment control; in response to a sliding operation that is continuous with the second trigger operation and in which the sliding end point is located at the position of the cancel control, the marking of the second unit determined based on the target position indicated by the first identifier is canceled. Specifically, when sliding the pointing adjustment control, the player moves his finger or the mouse arrow to the position of the cancel control and lets go or releases the mouse to cancel the mark. This method can quickly cancel the current marking operation. Figure 7 The following is a schematic diagram of cancelling the display of the control. Figure 7 The control corresponding to the middle curve is the cancel control.
[0067] The marking method in the above game proposes a solution that can bypass virtual obstacles to mark in shooting games, so that the controlled virtual object can mark the enemy virtual object without leaving the cover. This solution has great application potential, is easy to implement, and significantly improves the gaming experience.
[0068] In view of the above method embodiment, the embodiment of the present invention further provides a marking device in a game, which provides a graphical user interface through a terminal device; the graphical user interface displays a marking control, a crosshair and a scene screen of at least part of a game scene, wherein the game scene includes a virtual weapon controlled by the terminal device, the crosshair is used to indicate the aiming direction of the virtual weapon, and the marking control is used to respond to a first trigger operation to mark a first unit determined based on the crosshair; Figure 8 As shown, the device comprises:
[0069] The identification display module 80 is used to respond to the second trigger operation on the mark control and display a first identification for indicating a target position in the game scene in the graphical user interface.
[0070] The pointing switching module 81 is used to respond to the sliding operation continuous with the second triggering operation, and control the switching of the target position indicated by the first mark in the game scene.
[0071] The marking module 82 is used for controlling marking of a second unit determined based on a target position indicated by the first identifier in response to the end of the sliding operation.
[0072] The marking device in the above-mentioned game, in which the crosshair is used to indicate the aiming direction of the virtual weapon, the marking control is used to respond to the first trigger operation to mark the first unit determined based on the crosshair; and in response to the second trigger operation on the marking control, a first identifier for indicating a target position in the game scene is displayed in the graphical user interface; and then in response to the sliding operation continuous with the second trigger operation, the target position indicated by the first identifier in the game scene is switched; and then in response to the end of the sliding operation, the second unit determined based on the target position indicated by the first identifier is controlled to be marked. This method can display the first identifier in the graphical user interface through the second trigger operation of the marking control, and mark the virtual unit at any position in the game scene through the first identifier, so that the virtual unit other than the virtual unit determined by the crosshair can be marked, and when the player character is avoiding the virtual obstacle, the virtual unit that the crosshair cannot aim at can be marked, thereby improving the player's gaming experience.
[0073] Specifically, the first mark is a linear mark including a first end and a second end, the first end is configured to be connected to the virtual weapon, and the second end is configured to switch to indicate different target positions in the game scene in response to a sliding operation.
[0074] In actual applications, the above-mentioned device also includes a display format change module, which is used to display the second unit in the second display format in the graphical user interface in response to the presence of a second unit displayed in the first display format at the target position before the sliding operation ends, so that the second unit is visually distinguishable.
[0075] Furthermore, the above-mentioned device also includes a moving module, which is used to: before responding to the second trigger operation on the marking control, control the virtual weapon to move in the game scene, and in response to the existence of a virtual obstacle between the virtual weapon and the second unit, display the virtual obstacle in the graphical user interface.
[0076] In a specific implementation, the above-mentioned device also includes a control display module, which is used to: respond to a second trigger operation on the marking control, and display a pointing adjustment control in the associated area of the marking control; wherein the pointing adjustment control is used to switch the first identifier to indicate different target positions in the game scene; based on this, the above-mentioned pointing switching module 81 is used to: respond to a sliding operation that is continuous with the second trigger operation and is directed to the pointing adjustment control, and switch the target position indicated by the first identifier in the game scene according to the sliding direction of the sliding operation.
[0077] Furthermore, the marking module 82 is used to: in response to the end of the sliding operation, determine the second unit that the second end of the first marker collides with in the target position, and display a marking point at the collision position between the second end and the second unit.
[0078] Furthermore, the above-mentioned marking module 82 is also used to: display a marking list in a graphical user interface in response to the end of the sliding operation; wherein the marking list includes: unit identifications of multiple virtual units located at the target position; and mark the virtual unit corresponding to the target unit identification in response to a trigger operation on a target unit identification among the unit identifications of multiple virtual units.
[0079] In a specific implementation, a cancel control is also displayed in the associated area of the mark control; the above-mentioned device also includes a cancel mark module, which is used to: respond to a sliding operation that is continuous with the second trigger operation and the sliding end point is located at the position of the cancel control, and cancel the marking of the second unit determined based on the target position indicated by the first identifier.
[0080] The marking device in the game provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0081] The embodiment of the present invention further provides an electronic device, such as Fig. 9As shown, the electronic device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the marking method in the above-mentioned game.
[0082] Specifically, a graphical user interface is provided through a terminal device; a scene screen of a marking control, a crosshair and at least a part of a game scene is displayed in the graphical user interface, wherein the game scene includes a virtual weapon controlled by the terminal device, the crosshair is used to indicate the aiming direction of the virtual weapon, and the marking control is used to mark a first unit determined based on the crosshair in response to a first trigger operation. The marking method in the game comprises: in response to a second trigger operation for the marking control, displaying a first identifier for indicating a target position in the game scene in the graphical user interface; in response to a sliding operation continuous with the second trigger operation, controlling the switching of the target position indicated by the first identifier in the game scene; and in response to the end of the sliding operation, controlling the marking of a second unit determined based on the target position indicated by the first identifier.
[0083] The marking method in the above-mentioned game can display the first identifier in the graphical user interface through the second trigger operation of the marking control, and mark the virtual units at any position in the game scene through the first identifier, so that the virtual units other than the virtual units determined by the crosshairs can be marked. When the player character is avoiding the virtual obstacles, the virtual units that the crosshairs cannot be aimed at can be marked, thereby improving the player's gaming experience.
[0084] In an optional embodiment, the first mark is a linear mark including a first end and a second end, the first end is configured to be connected to the virtual weapon, and the second end is configured to switch to indicate different target positions in the game scene in response to a sliding operation.
[0085] In an optional embodiment, before the sliding operation ends, the method further includes: in response to the presence of a second unit displayed in the first display format at the target position, displaying the second unit in the second display format on the graphical user interface so that the second unit is visually distinguishable.
[0086] In an optional embodiment, before responding to the second trigger operation on the marking control, the method further includes: controlling the virtual weapon to move in the game scene, and in response to the presence of a virtual obstacle between the virtual weapon and the second unit, displaying the virtual obstacle in the graphical user interface.
[0087] In an optional embodiment, the above method also includes: responding to a second trigger operation for the marker control, displaying a pointing adjustment control in the associated area of the marker control; wherein the pointing adjustment control is used to switch the first identifier to indicate different target positions in the game scene; responding to a sliding operation continuous with the second trigger operation, controlling the step of switching the target position indicated by the first identifier in the game scene, including: responding to a sliding operation continuous with the second trigger operation and for the pointing adjustment control, switching the target position indicated by the first identifier in the game scene according to the sliding direction of the sliding operation.
[0088] In an optional embodiment, the above-mentioned step of controlling marking of the second unit determined based on the target position indicated by the first identifier in response to the end of the sliding operation includes: in response to the end of the sliding operation, determining the second unit that the second end of the first identifier collides with in the target position, and displaying a mark point at the collision position between the second end and the second unit.
[0089] In an optional embodiment, the above-mentioned step of controlling marking of the second unit determined based on the target position indicated by the first identifier in response to the end of the sliding operation includes: displaying a mark list in a graphical user interface in response to the end of the sliding operation; wherein the mark list includes: unit identifiers of multiple virtual units located at the target position; and marking the virtual unit corresponding to the target unit identifier in response to a trigger operation for a target unit identifier among the unit identifiers of the multiple virtual units.
[0090] In an optional embodiment, a cancel control is also displayed in the associated area of the marking control; the above method also includes: responding to a sliding operation that is continuous with the second trigger operation and whose sliding end point is located at the position of the cancel control, canceling the marking of the second unit determined based on the target position indicated by the first identifier.
[0091] Further, Fig. 9 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .
[0092] The memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0093] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 101 or the instruction in the form of software. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and completes the steps of the method of the above embodiment in combination with its hardware.
[0094] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the marking method in the above-mentioned game. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0095] Specifically, a graphical user interface is provided through a terminal device; a scene screen of a marking control, a crosshair and at least a part of a game scene is displayed in the graphical user interface, wherein the game scene includes a virtual weapon controlled by the terminal device, the crosshair is used to indicate the aiming direction of the virtual weapon, and the marking control is used to mark a first unit determined based on the crosshair in response to a first trigger operation. The marking method in the game comprises: in response to a second trigger operation for the marking control, displaying a first identifier for indicating a target position in the game scene in the graphical user interface; in response to a sliding operation continuous with the second trigger operation, controlling the switching of the target position indicated by the first identifier in the game scene; and in response to the end of the sliding operation, controlling the marking of a second unit determined based on the target position indicated by the first identifier.
[0096] The marking method in the above-mentioned game can display the first identifier in the graphical user interface through the second trigger operation of the marking control, and mark the virtual units at any position in the game scene through the first identifier, so that the virtual units other than the virtual units determined by the crosshairs can be marked. When the player character is avoiding the virtual obstacles, the virtual units that the crosshairs cannot be aimed at can be marked, thereby improving the player's gaming experience.
[0097] In an optional embodiment, the first mark is a linear mark including a first end and a second end, the first end is configured to be connected to the virtual weapon, and the second end is configured to switch to indicate different target positions in the game scene in response to a sliding operation.
[0098] In an optional embodiment, before the sliding operation ends, the method further includes: in response to the presence of a second unit displayed in the first display format at the target position, displaying the second unit in the second display format on the graphical user interface so that the second unit is visually distinguishable.
[0099] In an optional embodiment, before responding to the second trigger operation on the marking control, the method further includes: controlling the virtual weapon to move in the game scene, and in response to the presence of a virtual obstacle between the virtual weapon and the second unit, displaying the virtual obstacle in the graphical user interface.
[0100] In an optional embodiment, the above method also includes: responding to a second trigger operation for the marker control, displaying a pointing adjustment control in the associated area of the marker control; wherein the pointing adjustment control is used to switch the first identifier to indicate different target positions in the game scene; responding to a sliding operation continuous with the second trigger operation, controlling the step of switching the target position indicated by the first identifier in the game scene, including: responding to a sliding operation continuous with the second trigger operation and for the pointing adjustment control, switching the target position indicated by the first identifier in the game scene according to the sliding direction of the sliding operation.
[0101] In an optional embodiment, the above-mentioned step of controlling marking of the second unit determined based on the target position indicated by the first identifier in response to the end of the sliding operation includes: in response to the end of the sliding operation, determining the second unit that the second end of the first identifier collides with in the target position, and displaying a mark point at the collision position between the second end and the second unit.
[0102] In an optional embodiment, the above-mentioned step of controlling marking of the second unit determined based on the target position indicated by the first identifier in response to the end of the sliding operation includes: displaying a mark list in a graphical user interface in response to the end of the sliding operation; wherein the mark list includes: unit identifiers of multiple virtual units located at the target position; and marking the virtual unit corresponding to the target unit identifier in response to a trigger operation for a target unit identifier among the unit identifiers of the multiple virtual units.
[0103] In an optional embodiment, a cancel control is also displayed in the associated area of the marking control; the above method also includes: responding to a sliding operation that is continuous with the second trigger operation and whose sliding end point is located at the position of the cancel control, canceling the marking of the second unit determined based on the target position indicated by the first identifier.
[0104] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0105] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0106] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A marking method in a game, characterized in that: A graphical user interface is provided through a terminal device; the graphical user interface displays a marking control, a crosshair, and a scene screen of at least a part of a game scene, wherein the game scene includes a virtual weapon controlled by the terminal device, the crosshair is used to indicate an aiming direction of the virtual weapon, and the marking control is used to mark a first unit determined based on the crosshair in response to a first trigger operation, and the method includes: In response to a second trigger operation on the mark control, displaying a first mark indicating a target position in the game scene in the graphical user interface; In response to a sliding operation that is continuous with the second triggering operation, controlling switching of a target position indicated by the first mark in the game scene; In response to the sliding operation being ended, control is performed to mark a second unit determined based on the target position indicated by the first marker.
2. The method according to claim 1, characterized in that The first mark is a linear mark including a first end and a second end, the first end is configured to be connected to the virtual weapon, and the second end is configured to switch to indicate different target positions in the game scene in response to the sliding operation.
3. The method according to claim 1, characterized in that Before the sliding operation ends, the method further includes: In response to a second unit displayed in a first display format existing at the target location, the second unit is displayed in a second display format on the graphical user interface so that the second unit is visually distinguishable.
4. The method according to claim 1, characterized in that: Before responding to the second trigger operation on the marking control, the method further includes: The virtual weapon is controlled to move in the game scene, and in response to a virtual obstacle existing between the virtual weapon and the second unit, the virtual obstacle is displayed in the graphical user interface.
5. The method according to claim 1, characterized in that The method further includes: in response to a second trigger operation on the mark control, displaying a pointing adjustment control in an associated area of the mark control; wherein the pointing adjustment control is used to switch the first mark to indicate different target positions in the game scene; The step of controlling the switching of the target position indicated by the first identifier in the game scene in response to the sliding operation continuous with the second trigger operation includes: responding to the sliding operation continuous with the second trigger operation and directed to the pointing adjustment control, and switching the target position indicated by the first identifier in the game scene according to the sliding direction of the sliding operation.
6. The method according to claim 2, characterized in that In response to the sliding operation ending, the step of controlling marking of a second unit determined based on the target position indicated by the first identifier includes: In response to the sliding operation ending, a second unit collided with by the second end of the first mark in the target position is determined, and a mark point is displayed at a collision position between the second end and the second unit.
7. The method according to claim 1, characterized in that In response to the sliding operation ending, the step of controlling marking of a second unit determined based on the target position indicated by the first identifier includes: In response to the sliding operation ending, displaying a mark list in the graphical user interface; wherein the mark list includes: unit identifiers of multiple virtual units located at the target position; In response to a triggering operation on a target unit identifier among the unit identifiers of the plurality of virtual units, the virtual unit corresponding to the target unit identifier is marked.
8. The method according to claim 5, characterized in that A cancel control is also displayed in the associated area of the mark control; the method further includes: In response to a sliding operation that is continuous with the second trigger operation and whose sliding end point is located at the position where the cancel control is located, the marking of the second unit determined based on the target position indicated by the first identifier is canceled.
9. A marking device in a game, characterized in that: A graphical user interface is provided through a terminal device; the graphical user interface displays a marking control, a crosshair, and a scene screen of at least a part of a game scene, wherein the game scene includes a virtual weapon controlled by the terminal device, the crosshair is used to indicate the aiming direction of the virtual weapon, and the marking control is used to mark a first unit determined based on the crosshair in response to a first trigger operation, wherein the apparatus comprises: an identification display module, configured to respond to a second trigger operation on the mark control and display a first identification indicating a target position in the game scene in the graphical user interface; a pointing switching module, configured to respond to a sliding operation that is continuous with the second triggering operation, and control switching of a target position indicated by the first mark in the game scene; The marking module is used for controlling marking of a second unit determined based on a target position indicated by the first identifier in response to the sliding operation being ended.
10. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the marking method in the game described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the marking method in the game described in any one of claims 1 to 8.
