Game interaction method and apparatus, electronic device, and storage medium
By providing delay adjustment controls in shooting games, the system automatically adjusts shooting delay and scope magnification, solving the problem of unintelligent scope magnification adjustment in existing technologies, improving the gaming experience and interaction efficiency, and saving hardware resources.
Patent Information
- Application Number
- PCT/CN2025/098159
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-05
- Filing Date
- 2025-05-29
- Publication Date
- 2025-12-11
AI Technical Summary
In existing shooting games, there is insufficient intelligent adjustment mechanism for players to adjust the scope magnification, which makes it impossible to quickly adjust according to the actual game situation, affecting the smoothness of the combat experience and the efficiency of game interaction.
By providing delay adjustment controls in the graphical user interface, the system responds to player actions, automatically adjusts the shooting delay, and identifies the target virtual object, thus achieving intelligent scope magnification adjustment.
It enhances the player's shooting experience and the smoothness of combat in the game, improves the efficiency of game interaction, and saves the computing resources of hardware devices.
Smart Images

Figure CN2025098159_11122025_PF_FP_ABST
Abstract
Description
Game interaction method and device, electronic device and storage medium
[0001] Cross-reference to related applications
[0002] The present application claims priority to the Chinese patent application No. 202410726684.7, filed on June 5, 2024, and entitled "Game interaction method and device, electronic device and storage medium", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] The present disclosure relates to the technical field of games, in particular to a game interaction method and device, electronic device and storage medium. BACKGROUND
[0004] In order to meet people's pursuit of spiritual life, entertainment games that can be operated on terminals have emerged as the times require, such as multiplayer online action games, role-playing games, tactical competitive games or first-person shooting games (FPS) and other types of games developed based on client or server architecture. In the game, players can manipulate virtual characters in the screen to play the game, and can perform related operations such as walking, running, jumping, picking up props and fighting in the game scene based on the first-person or third-person perspective of the character operated by the player, so that players can experience the visual impact brought by the game in a first-person perspective, greatly enhancing the initiative and realism of the game.
[0005] In the current shooting game, virtual objects controlled by players usually fight each other through virtual guns, such as aiming at enemy virtual objects with virtual guns to cause damage and eliminate enemy virtual objects. However, as players' demand for game play increases, players need to intelligently adjust the open sight magnification according to the actual game battle. There are few ways to intelligently adjust the open sight magnification according to the actual game battle in the prior art, which leads to the inability to quickly adjust the open sight magnification according to the actual battle situation of the player, affecting the smoothness of the player's battle experience in the game match, and resulting in low game interaction efficiency. SUMMARY
[0006] The embodiments of the present disclosure provide a game interaction method and device, electronic device and storage medium, which can intelligently adjust the open sight magnification according to the actual game operation needs of the player, improve the shooting experience of the player, ensure the smoothness of the player's battle experience in the game match, and thus improve the game interaction efficiency; at the same time, reduce the response frequency of the hardware device, which helps to save the computing resources of the hardware device.
[0007] In a first aspect, the embodiments of the present disclosure provide a game interaction method. A graphical user interface is provided by a terminal device, the graphical user interface including at least part of a virtual scene and a controlled virtual object in the virtual scene controlled by the terminal device. The method includes:
[0008] providing a delay adjustment control on the graphical user interface;
[0009] in response to an adjustment operation on the delay adjustment control, determining a target shooting delay based on the adjustment operation;
[0010] in response to a shooting trigger event, determining a target virtual object to which a delayed shooting is directed, and controlling the controlled virtual object to automatically shoot at the target virtual object at least once after the target shooting delay.
[0011] In a second aspect, the embodiments of the present disclosure provide a game interaction apparatus. A graphical user interface is provided by a terminal device, the graphical user interface including at least part of a virtual scene and a controlled virtual object in the virtual scene controlled by the terminal device. The apparatus includes:
[0012] a display unit configured to provide a delay adjustment control on the graphical user interface;
[0013] a first response unit configured to determine a target shooting delay based on an adjustment operation on the delay adjustment control in response to the adjustment operation;
[0014] a second response unit configured to determine a target virtual object to which a delayed shooting is directed in response to a shooting trigger event, and control the controlled virtual object to automatically shoot at the target virtual object at least once after the target shooting delay.
[0015] In a third aspect, the embodiments of the present disclosure further provide an electronic device. The electronic device includes a memory storing a plurality of instructions, and a processor loading the instructions from the memory to perform the steps of any of the game interaction methods provided by the embodiments of the present disclosure.
[0016] In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium. The computer-readable storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform the steps of any of the game interaction methods provided by the embodiments of the present disclosure.
[0017] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product. The computer program product includes a computer program or instructions, and the computer program or instructions are executed by a processor to implement the steps in any of the game interaction methods provided by the embodiments of the present disclosure.
[0018] By adopting the scheme of the embodiments of the present disclosure, a method for intelligently adjusting the opening magnification can be provided to the player, the opening magnification can be quickly adjusted according to the actual battle situation of the player, the opening magnification can be intelligently adjusted according to the actual game operation demand of the player, the shooting experience of the player is improved, the smoothness of the battle experience of the player in the game match is ensured, and therefore the game interaction efficiency is improved; meanwhile, the response frequency of the hardware device is reduced, which is helpful to save the computing resources of the hardware device. BRIEF DESCRIPTION OF DRAWINGS
[0019] FIG. 1 is a scene schematic diagram of one of the game interaction systems according to the embodiments of the present disclosure;
[0020] FIG. 2 is a flow schematic diagram of one of the game interaction methods according to the embodiments of the present disclosure;
[0021] FIG. 3 is a scene schematic diagram of one of the game interaction methods according to the embodiments of the present disclosure;
[0022] FIG. 4 is a scene schematic diagram of one of the game interaction methods according to the embodiments of the present disclosure;
[0023] FIG. 5 is a scene schematic diagram of one of the game interaction methods according to the embodiments of the present disclosure;
[0024] FIG. 6 is a scene schematic diagram of one of the game interaction methods according to the embodiments of the present disclosure;
[0025] FIG. 7 is a scene schematic diagram of one of the game interaction methods according to the embodiments of the present disclosure;
[0026] FIG. 8 is a game interface schematic diagram of one of the game interaction methods according to the embodiments of the present disclosure;
[0027] FIG. 9 is a structure schematic diagram of one of the game interaction apparatuses according to the embodiments of the present disclosure;
[0028] FIG. 10 is a structure schematic diagram of one of the electronic devices according to the embodiments of the present disclosure. DETAILED DESCRIPTION
[0029] With reference to the drawings and the embodiments of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, but not all the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present disclosure. Meanwhile, in the description of the embodiments of the present disclosure, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance. Therefore, the features with "first" and "second" can explicitly or implicitly include one or more features. In the description of the embodiments of the present disclosure, the meaning of "multiple" is two or more, unless otherwise specifically limited.
[0030] The embodiments of the present disclosure provide a game interaction method and device, an electronic device and a computer readable storage medium. Specifically, the embodiments will be described from the perspective of a game interaction device, which can be integrated in an electronic device, i.e., the game interaction method of the embodiments of the present disclosure can be executed by an electronic device. Optionally, the electronic device can include a terminal device. The terminal device can be a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, a game console, or a personal computer (PC) and the like.
[0031] The game interaction method provided by the embodiments of the present disclosure can be applied to a game interaction system. The game interaction system can include a player terminal device and a server. The terminal device can be a device that includes receiving and transmitting hardware, i.e., a device with receiving and transmitting hardware capable of performing bidirectional communication on a bidirectional communication link. The player terminal device and the server can perform bidirectional communication through a network.
[0032] Optionally, the server can be a stand-alone server, or a server network or server cluster composed of servers, including but not limited to a computer, a network host, a single network server, a plurality of network server sets, or a cloud server composed of a plurality of servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.
[0033] The game interaction method in one of the embodiments of the present disclosure can run on a local terminal device or a server. When the game interaction method runs 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.
[0034] For example, when the game interaction method is run on a terminal, the terminal device stores a game application and is used to present a virtual scene in a game picture. The terminal device is used to interact with a user through a graphical user interface, for example, by downloading and installing the game application on the terminal device and running the game application. The terminal device can provide the graphical user interface to the user in various ways, for example, the graphical user interface can be rendered and displayed on a display screen of the terminal device, or the graphical user interface can be presented through holographic projection. For example, the terminal device can include a touch display screen and a processor, the touch display screen is used to present a graphical user interface and receive an operation instruction generated by a user acting on the graphical user interface, the graphical user interface includes a game picture, and the processor is used to run the game, generate the graphical user interface, respond to the operation instruction, and control display of the graphical user interface on the touch display screen.
[0035] For example, when the game interaction method is run on a server, the game interaction method can be cloud gaming. Cloud gaming refers to a game mode based on cloud computing. In the running mode of cloud gaming, a running subject of a game application and a game picture presentation subject are separated, and storage and running of the game interaction method are completed on a cloud gaming server. Presentation of the game picture is completed on a cloud gaming client. The cloud gaming client is mainly used for receiving and sending game data and presenting a game picture. For example, the cloud gaming client can be a display device close to a user side and having a data transmission function, such as a mobile terminal, a television, a computer, a palm computer, a personal digital assistant, or the like. However, a terminal device for processing game data is a cloud gaming server in the cloud. When playing a game, a user operates the cloud gaming client to send an operation instruction to the cloud gaming server, the cloud gaming server runs the game according to the operation instruction, encodes and compresses game picture data, returns the game picture data to the cloud gaming client through a network, and finally, the cloud gaming client decodes and outputs the game picture.
[0036] Referring to FIG. 1, FIG. 1 is a scene diagram of a game interaction system provided by an embodiment of the present disclosure. The system can include at least one terminal, at least one server, at least one database, and a network. The terminal held by a user can be connected to a server of different games through the network. The terminal is any device with computing hardware capable of supporting and executing a software product corresponding to a game. In addition, when the system includes multiple terminals, multiple servers, and multiple networks, different terminals can be connected to each other through different networks and through different servers. The network can be a wireless network or a wired network, such as a wireless network being a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, and the like. In addition, different terminals can also use their own Bluetooth networks or hotspot networks to connect to other terminals or servers, and the like. For example, multiple users can be online through different terminals to support multi-player games by connecting through appropriate networks and synchronizing with each other. In addition, the system can include multiple databases, which are coupled to different servers and can continuously store information related to a game environment in the databases when different users are online for multi-player games.
[0037] An embodiment of the present disclosure provides a game interaction method, which can be executed by a terminal or a server. An embodiment of the present disclosure is described by taking an example in which the game interaction method is executed by a terminal. The terminal can include a touch display screen and a processor (of course, the terminal can also use a mouse, a keyboard, and the like as an input device, and here, only the touch display screen is taken as an example for description), and the touch display screen is used to present a graphical user interface and receive an operation instruction generated by a user acting on the graphical user interface. When the user operates the graphical user interface through the touch display screen, the graphical user interface can control the content of the terminal locally in response to the received operation instruction, or control the content of the server at the other end in response to the received operation instruction. For example, the operation instruction generated by the user acting on the graphical user interface includes an instruction for starting a game application, and the processor is configured to start the game application after receiving the instruction for starting the game application provided by the user. In addition, the processor is configured to render and draw a graphical user interface associated with the game on the touch display screen. The touch display screen is a multi-touch screen capable of sensing a touch or a sliding operation of multiple points on the screen simultaneously. When the user performs a touch operation on the graphical user interface using a finger, the graphical user interface controls different virtual objects in the graphical user interface of the game to perform an action corresponding to the touch operation when the touch operation is detected.
[0038] It should be noted that the scene diagram of the game interaction system shown in FIG. 1 is only an example, and the game interaction system and the scene described in the embodiments of the present disclosure are used to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Those skilled in the art can know that the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems as new business scenarios appear.
[0039] The embodiments of the present disclosure provide a game interaction method, which can be executed by a terminal or a server. The embodiments of the present disclosure take an example of a game interaction method executed by a terminal to illustrate that a graphical user interface can be provided by a terminal device, the graphical user interface includes at least part of a virtual scene and a controlled virtual object in the virtual scene controlled by the terminal device. The graphical user interface, the virtual scene, and the virtual object are described below.
[0040] The game scene (or virtual scene) is a virtual scene displayed (or provided) by an application running on a terminal or a server. Optionally, the virtual scene is a simulation environment of the real world, or a virtual environment that is half-simulated and half-fictional, or a purely fictional virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be a sky, a land, a sea, etc., wherein the land includes environmental elements such as a desert and a city. The virtual scene is a scene in which a user controls a virtual object for complete game logic. For example, in a sandbox 3D shooting game, the virtual scene is a 3D game world for a player to control a virtual object for a battle. An example of a virtual scene can include at least one of a mountain, a plain, a river, a lake, a sea, a desert, a sky, a plant, a building, and a vehicle. For example, in a 2D card game, the virtual scene is a scene for displaying a released card or a virtual object corresponding to the card. An example of a virtual scene can include a stage, a battlefield, or other "field" elements or other elements that can display a card battle state. For a 2D or 3D multiplayer online tactical competitive game, the virtual scene is a 2D or 3D terrain scene for a virtual object to fight.
[0041] The graphical user interface is obtained by executing a software application on a processor of a mobile terminal or other terminal and rendering the graphical user interface on a display, which can be a display screen interface of the terminal device. The graphical user interface can present the entire game scene or only a part of the game scene. The game scene includes a plurality of static virtual objects, specifically including ground, mountains, stone bodies, vegetation, buildings, etc. When the game scene is relatively large, only a part of the game scene is displayed on the graphical user interface of the terminal device in the process of the game. Optionally, the game scene includes a game character, which can be a game character controlled by a player or an NPC (abbreviation of Non-Player Character, which is a type of character in a game, meaning a non-player character), and the present exemplary embodiments are not limited. The graphical user interface can include a UI interface for interaction by the player and a game picture. In an optional implementation, the UI interface can include game controls (such as skill controls, movement controls, function controls, etc.), indication marks (such as direction indication marks, character indication marks, etc.), information display areas (such as kill numbers, game time, etc.), or game setting controls (such as system settings, stores, gold coins, etc.). In an optional implementation, the game picture is a display picture corresponding to the virtual scene displayed by the terminal device, and the game picture can include virtual objects such as game characters, NPC characters, AI characters, etc. that execute game logic in the virtual scene.
[0042] The game object (or virtual object, game character) refers to a dynamic object that can be controlled in a virtual scene. Optionally, the dynamic object can be a virtual person, a virtual animal, an animation character, etc. The virtual object is a character controlled by a player through an input device, or an artificial intelligence (AI) set in a virtual environment battle, or a non-player character (NPC) set in a virtual scene battle. Optionally, the virtual object is a virtual person competing in a virtual scene. Optionally, the number of virtual objects in the virtual scene battle is preset or dynamically determined according to the number of clients joining the battle, which is not limited in the embodiments of the present disclosure. In a possible implementation manner, the user can control the virtual object to move in the virtual scene, for example, control the virtual object to run, jump, crawl, etc., and can also control the virtual object to use skills, virtual props, etc. provided by the application to fight with other virtual objects. The (game) prop refers to a prop that can be used by a virtual object in a virtual environment, including but not limited to firearms, cold weapons, hand grenades, shields, jumping boards, puppets, etc. The virtual object can use the virtual object to speed up its attributes, assist in combat, or launch damage to other virtual objects. The virtual prop can also be a supply prop such as a bullet, and can also be a accessory such as an extended magazine, a sighting magnifier, a flame arrester, a buttstock, etc. The virtual camera is a necessary component of a game scene picture, used for presentation of a game scene picture. There is at least one virtual camera corresponding to a game scene, and there can be two or more virtual cameras according to actual needs, as a window for game rendering, capturing and presenting picture content of a game world for a player. The player's viewing angle of the game world can be adjusted by setting parameters of the virtual camera, such as a first-person perspective and a third-person perspective.
[0043] The embodiments will be described in detail below with reference to the accompanying drawings. In the embodiments, the execution subject is a terminal device. It should be noted that the sequence of the following embodiments is not limited to the preferred sequence of the embodiments. Although a logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in an order different from that shown in the figure.
[0044] Referring to FIG. 2, FIG. 2 is a flowchart of a game interaction method provided by an embodiment of the present disclosure. The specific process of the game interaction method can include the following steps 101 to 103:
[0045] Step 101: determining a target scene position in the virtual scene according to a sight of the controlled virtual object.
[0046] In the shooting game, the crosshair is an icon or symbol used for aiming and shooting, usually displayed on the graphical user interface when the player controls the controlled virtual object to equip a virtual shooting prop and uses it. Specifically, the crosshair is the reference point for the player to shoot using the virtual shooting prop in the game. The position and change of the crosshair can help the player control the controlled virtual object to accurately aim at the target virtual object and shoot. The style and features of the crosshair may vary from game to game, for example, the crosshair can be a small dot, a crosshair, a circle or other shaped icons, and some shooting games also provide the option of customizing the crosshair, which allows the player to adjust it according to their own game preferences.
[0047] In the embodiments of the present disclosure, the computer device can determine the target scene position in the virtual scene according to the crosshair of the controlled virtual object, specifically, the target scene position can be determined according to the target virtual object or the virtual scene position aimed at by the crosshair of the controlled virtual object.
[0048] Step 102, obtaining the current position of the controlled virtual object in the virtual scene.
[0049] Specifically, the computer device can obtain the current position of the controlled virtual object in the virtual scene. Further, after determining the current position of the controlled virtual object in the virtual scene, the current position of the virtual shooting prop equipped by the controlled virtual object, or the current position of the virtual sight currently equipped by the virtual shooting prop can also be determined.
[0050] The virtual shooting prop can include virtual firearms or virtual weapons, for example, the virtual firearms can include virtual sniper rifles, virtual rifles, virtual submachine guns, and virtual pistols, etc.; the virtual weapons can include virtual bows, virtual crossbows, virtual blowpipes, etc.; the above-mentioned virtual shooting props can automatically determine the opening mirror magnification after being equipped with the virtual sight.
[0051] Further, the virtual sight refers to the aiming device used in real shooting in the shooting game, for example, holographic scope, red dot sight, two times mirror, four times mirror, or eight times mirror or higher magnification mirror, etc. Virtual sight. Virtual sight is usually used in combination with crosshair. Virtual sight helps the player to control the controlled virtual object to shoot accurately by displaying an icon or mark similar to the actual aiming device on the graphical user interface. Virtual sight can provide the player with a clearer and more accurate target view, so that the player can better aim at the target virtual object.
[0052] Step 103, determining the magnification used by the controlled virtual object when opening the mirror according to the current position and the target scene position.
[0053] Specifically, the computer device can determine a magnification used by the controlled virtual object when opening a sight according to the current position and the target scene position, wherein the current position can be a current position of the controlled virtual object in the virtual scene, a current position of a virtual shooting prop equipped by the controlled virtual object, or a current position of a virtual sight currently equipped by the virtual shooting prop.
[0054] To sum up, the embodiment of the present disclosure provides a game interaction method, which determines a target scene position according to a foresight of a controlled virtual object in a virtual scene, then acquires a current position of the controlled virtual object in the virtual scene, and finally determines a magnification used by the controlled virtual object when opening a sight according to the current position and the target scene position. The embodiment of the present disclosure can provide a method for intelligently adjusting a sight magnification for a player, quickly perform an adjustment operation of the sight magnification according to an actual battle situation of the player, intelligently adjust the sight magnification according to an actual game operation demand of the player, improve a shooting experience of the player, ensure a smoothness of a battle experience of the player in a game match, thereby improving a game interaction efficiency; meanwhile, reduce a response frequency of a hardware device, which is helpful to save a computing resource of the hardware device.
[0055] According to the above introduction, the game interaction method of the present disclosure will be further illustrated by examples as follows.
[0056] In an embodiment, the step of "determining a target scene position according to a foresight of a controlled virtual object in a virtual scene" comprises:
[0057] In response to an equipment operation instruction for a virtual shooting prop, the controlled virtual object is controlled to equip the virtual shooting prop, and a scene position aimed at by a foresight of the virtual shooting prop is determined as a target scene position.
[0058] Specifically, a player can equip a virtual shooting prop for a controlled virtual object, and in response to an equipment operation instruction for the virtual shooting prop, the computer device controls the controlled virtual object to equip the virtual shooting prop, and determines a scene position aimed at by a foresight of the virtual shooting prop as a target scene position. The virtual shooting prop can be automatically equipped by the controlled virtual object when picking up, or equipped by taking out from a game backpack.
[0059] Further, after the step of "controlling the controlled virtual object to equip the virtual shooting prop", the method further comprises:
[0060] In response to an equipment operation instruction for a virtual sight, the virtual shooting prop is controlled to equip the virtual sight.
[0061] The magnification used by the controlled virtual object when opening the scope is determined according to the current position and the target scene position, including:
[0062] A target magnification in a magnification range provided by the virtual scope is determined based on the current position and the target scene position, and the virtual scope is set to use the target magnification.
[0063] Specifically, the player can equip the virtual shooting prop with a virtual scope, and the computer device responds to the equipment operation instruction for the virtual scope to control the virtual shooting prop to equip the virtual scope. Then, the computer device can also determine a target magnification in a magnification range provided by the virtual scope based on the current position and the target scene position, and set the virtual scope to use the target magnification. Wherein, the virtual scope can be equipped automatically when the controlled virtual object picks up the virtual scope, or the virtual scope is equipped by taking the virtual scope out of the game backpack.
[0064] Wherein, the magnification in the shooting game refers to the field of view magnification provided by the virtual scope and other aiming devices. The magnification determines the magnification degree of the virtual scene observed by the observer or the target virtual object to be observed. When the player uses a virtual scope with zoom function, the field of view can be enlarged or reduced by adjusting the magnification to help more accurately aim at the target. Specifically, the magnification is usually represented in numerical form, such as 2 times, 4 times, 6 times, 8 times, etc. Lower magnification is usually suitable for close-range combat or fast target switching, while higher magnification is suitable for long-range sniping or situations that require more accurate aiming.
[0065] In a specific embodiment, after the step of "determining a target magnification in a magnification range provided by the virtual scope based on the current position and the target scene position, and setting the virtual scope to use the target magnification", it further includes:
[0066] In response to the opening scope instruction for the virtual scope, the virtual scope is controlled to open at the target magnification, so as to present the field of view picture observed by the virtual scope at the target magnification for the target scene position.
[0067] Specifically, the controlled virtual object is equipped with a virtual shooting prop, a center point on the graphical user interface appears with a crosshair, and the virtual shooting prop can be equipped with a virtual sight. When the player performs a sight operation, the sight field of view is adjusted according to the magnification of the virtual sight in the virtual shooting prop. The computer device controls the virtual sight to open at the target magnification in response to the sight instruction for the virtual sight, so as to present the view field picture observed by the virtual sight at the target magnification for the target scene position. Wherein, the sight refers to the state that the player switches the view angle of the controlled virtual object to the state of using the virtual sight to aim by pressing the sight control or performing a specific gesture. After the sight, the player can be presented with the view field picture observed by the virtual sight at the target magnification for the target scene position.
[0068] Optionally, the step of "determining the target scene position in the virtual scene according to the crosshair of the controlled virtual object" comprises:
[0069] In response to the sight instruction for the virtual sight, the target scene position in the virtual scene is determined according to the crosshair of the controlled virtual object.
[0070] Specifically, the target magnification can be determined automatically when the sight is triggered. For example, the player triggers the sight operation of the virtual sight, and the computer device determines the target scene position in the virtual scene according to the crosshair of the controlled virtual object in response to the sight instruction for the virtual sight, obtains the current position of the controlled virtual object in the virtual scene, and determines the magnification used by the controlled virtual object when the sight is opened according to the current position and the target scene position.
[0071] In an embodiment, the step of "determining the magnification used by the controlled virtual object when the sight is opened according to the current position and the target scene position", the method can comprise:
[0072] Obtaining the current position of the virtual shooting prop equipped by the controlled virtual object;
[0073] Determining the magnification used by the controlled virtual object when the sight is opened based on the virtual shooting prop and the target scene position.
[0074] Specifically, the current position of the virtual shooting prop equipped by the controlled virtual object can be obtained, and the magnification used by the controlled virtual object when the sight is opened can be determined based on the virtual shooting prop and the target scene position.
[0075] In order to automatically adjust the magnification when the crosshair moves or the virtual scope moves a large distance, a new target magnification can also be determined when it is detected that the change in the relative position information between the current position and the target scene position meets a preset magnification adjustment condition. Specifically, the step "after the virtual scope is controlled to open at the target magnification in response to the open scope instruction for the virtual scope", further includes:
[0076] In response to a change in the relative position information between the current position and the target scene position, and the changed relative position information meeting a preset magnification adjustment condition, a new target magnification in the magnification range provided by the virtual scope is determined according to the changed relative position information, and the new target magnification is set as the magnification used by the controlled virtual object when opening the scope.
[0077] For example, when it is detected that the current position of the controlled virtual object changes, or the target scene position changes, the computer device determines a new target magnification in the magnification range provided by the virtual scope according to the changed relative position information between the current position and the target scene position in response to the change in the relative position information, and sets the new target magnification as the magnification used by the controlled virtual object when opening the scope.
[0078] When a virtual object of a specified type exists in the target scene position, in order to make it more convenient to observe the virtual object, the target magnification can be adjusted according to the relative position information of the virtual object and the virtual scope. Specifically, the step "after the virtual scope is controlled to open at the target magnification in response to the open scope instruction for the virtual scope", the method can include:
[0079] In response to the existence of a virtual object of a preset type in the target scene position, the relative position information of the virtual object and the virtual scope is obtained;
[0080] Based on the relative position information of the virtual object and the virtual scope, the target magnification is adjusted, and the virtual scope uses the adjusted target magnification to present a field of view picture observed by the virtual scope at the adjusted target magnification for the target scene position.
[0081] The virtual object of the preset type can be a virtual object in a different game camp from the controlled virtual character or a non-player controlled virtual object (Non Player Character, NPC). The virtual object of the preset type can also be a virtual object whose object attribute is higher or lower than a preset threshold, and the object attribute can include a health value, an attack value, a defense value, or other object attributes.
[0082] For example, the computer acquires relative position information of the virtual object and the virtual aiming device in response to the virtual object in the target scene position having a life value below a preset threshold, adjusts the target magnification based on the relative position information of the virtual object and the virtual aiming device, and sets the virtual aiming device to use the adjusted target magnification, so as to present a field of view picture observed by the virtual aiming device at the adjusted target magnification for the target scene position.
[0083] In an embodiment, the magnification prompt control displays a magnification used by the virtual aiming device when the virtual aiming device is opened, and the magnification displayed in the magnification prompt control is updated according to the magnification determined in real time. Specifically, the graphical user interface further includes a magnification prompt control, which is used to prompt at least a magnification used by the virtual aiming device when the virtual aiming device is opened before the virtual aiming device is opened. After the step of determining the target magnification in the magnification range provided by the virtual aiming device based on the current position and the target scene position, and setting the virtual aiming device to use the target magnification, the method further includes:
[0084] updating the magnification displayed in the magnification prompt control to the target magnification, so as to prompt that the magnification used by the controlled virtual object when the virtual aiming device is opened is the target magnification.
[0085] Optionally, the magnification prompt control further displays a first magnification and a second magnification, where the first magnification and the second magnification are respectively a maximum magnification and a minimum magnification of the magnification range provided by the virtual aiming device.
[0086] For example, referring to FIG. 3, in an embodiment of the present disclosure, a graphical user interface is provided by a terminal device, the graphical user interface includes at least part of a virtual scene, and a part of a controlled virtual object (for example, a hand of the controlled virtual object) controlled and operated by the terminal device in the virtual scene, and can further include other virtual objects controlled by a terminal device of an enemy player. At this time, the controlled virtual object is holding a first virtual shooting prop corresponding to a first gun icon. The graphical user interface further displays a shooting control and a magnification prompt control, the magnification prompt control displays a magnification 3.5 times currently used by the virtual aiming device (i.e., a magnification used by the controlled virtual object when the virtual aiming device is opened is 3.5 times), a first magnification 8 times (a maximum magnification of the virtual aiming device), and a second magnification 1.5 times (a minimum magnification of the virtual aiming device).
[0087] In a specific embodiment, the step of determining the target magnification in the magnification range provided by the virtual aiming device based on the current position and the target scene position, the method can include:
[0088] acquiring a magnification range of the virtual aiming device and a corresponding preset distance range;
[0089] If the relative distance between the current position and the target scene position is within the preset distance range, a target magnification is determined from the magnification range based on the relative distance and magnification determination logic;
[0090] If the relative distance is greater than the maximum value of the preset distance range, the maximum magnification of the magnification range is determined as the target magnification.
[0091] If the relative distance is less than the minimum value of the preset distance range, the minimum magnification of the magnification range is determined as the target magnification.
[0092] For example, the preset distance range can be 20m < X < 50m, and the magnification range of the virtual sight can be 8 times < Y < 1.5 times. When the relative distance between the target scene position aimed at by the aiming point and the current position of the controlled virtual object is less than or equal to 20m, the minimum magnification of the virtual sight is used, and the minimum magnification can be 1.5 times. When the relative distance is greater than 20m and less than 50m, the opened magnification is the automatic transition magnification, which is converted by the magnification conversion formula, that is, the specific magnification is converted by the relative distance percentage between 20m and 50m, for example, when the relative distance is 30m, the virtual sight is opened, and the magnification of the virtual sight when the magnification is opened is 3.7 times. When the relative distance is greater than or equal to 50m, the maximum magnification of the virtual sight is used, for example, 8 times. Specifically, the disclosure provides a calculation formula of the magnification determination logic, and the specific formula is as follows:
[0093] 1 / L' + 1 / L = 1 / f
[0094] Wherein, L' is the distance from the center of the virtual sight magnification lens to the target scene position, referred to as the object distance; L is the distance from the center of the virtual sight magnification lens to the imaging plane, referred to as the image distance; f is the focal length of the lens. Further, the calculation formula of the magnification is m = L' / L.
[0095] Specifically, the step of "determining the scene position aimed at by the aiming point of the virtual shooting prop as the target scene position" comprises:
[0096] Determining the scene position of the target virtual object aimed at by the aiming point of the virtual shooting prop as the target scene position.
[0097] For example, referring to FIG. 4, at this time the target scene position can be the scene position of the target virtual object, and when the target magnification is determined to be 8 times, the current magnification is displayed as 8 times through the magnification prompt control. The player can trigger the magnification opening operation, and the computer device responds to the magnification opening instruction for the virtual sight to control the virtual sight to open at the target magnification of 8 times to present the field of view picture observed by the virtual sight at the target magnification of 8 times for the scene position of the target virtual object.
[0098] In order to determine the magnification more quickly, the scene position of the virtual object closest to the controlled virtual role in a preset range or in the direction of the controlled virtual role can be determined as the target scene position. The method further comprises:
[0099] When it is detected that there is at least one virtual object in the preset range corresponding to the controlled virtual object in the virtual scene, a target virtual object is determined based on the current direction of the virtual shooting prop and / or the relative distance between each virtual object and the controlled virtual object.
[0100] The scene position of the target virtual object is determined as the target scene position.
[0101] For example, a preset range can be determined with the controlled virtual object as the center to determine whether there are multiple virtual objects in the preset range. If so, a target virtual object is determined according to the current direction of the virtual shooting prop and / or the relative distance between each virtual object and the controlled virtual object. For example, the virtual object closest to the controlled virtual object in the straight-line distance in the current direction of the virtual shooting prop can be determined as the target virtual object, or the virtual object closest to the controlled virtual object in the preset range can be determined as the target virtual object.
[0102] In order to determine the magnification of the virtual sighting device more accurately, in addition to the relative distance, the object attribute of the target virtual object and / or the scene attribute of the virtual scene can also be referred to in determining the target magnification when the target magnification is automatically determined. Specifically, the step of "determining the target magnification in the magnification range provided by the virtual sighting device based on the current position and the target scene position" comprises:
[0103] At least one auxiliary reference information is obtained, wherein the auxiliary reference information comprises the object attribute of the target virtual object and / or the scene attribute of the virtual scene.
[0104] The target magnification in the magnification range provided by the virtual sighting device is determined based on the relative distance determined based on the current position and the target scene position and the auxiliary reference information.
[0105] The object attribute of the target virtual object can be the volume size, the health value, the attack power, etc. The scene attribute of the virtual scene can be the weather, the terrain, or the building type, etc. Specifically, the target magnification can be determined according to the volume size of the object aimed at. For example, the smaller the volume of the game object, the larger the target magnification of the game object with a smaller volume at the same distance. Or, the target magnification for the game vehicle at the same distance is smaller than the target magnification for the game object. The target magnification can be determined according to the current environment of the virtual scene. For example, the target magnification in sunny weather is slightly smaller than the target magnification in rainy and foggy weather at the same distance.
[0106] In an embodiment, after the target magnification is determined automatically, if the virtual shooting prop is switched, whether to continue using the target magnification of the virtual aiming device of the virtual shooting prop before the switch is determined according to the virtual aiming devices equipped by the two virtual shooting props before and after the switch, specifically, the step of “after determining the target magnification in the magnification range provided by the virtual aiming device based on the current position and the target scene position” further includes:
[0107] In response to the switching instruction of the virtual shooting prop, the virtual shooting prop after the switch is determined;
[0108] If the second magnification adjustment range of the virtual aiming device equipped by the virtual shooting prop after the switch meets the preset similarity condition with the first magnification adjustment range of the virtual aiming device of the virtual shooting prop before the switch, the target magnification of the virtual aiming device of the virtual shooting prop after the switch is the target magnification corresponding to the virtual shooting prop before the switch;
[0109] If the second magnification adjustment range of the virtual aiming device equipped by the virtual shooting prop after the switch does not meet the preset similarity condition with the first magnification adjustment range of the virtual aiming device of the virtual shooting prop before the switch, a specified magnification in the second magnification adjustment range is taken as the target magnification of the virtual aiming device of the virtual shooting prop after the switch.
[0110] Specifically, the target magnification determined automatically can be six times, the virtual aiming device equipped by the virtual shooting prop before the switch is a six-times virtual aiming device, at this time, if the virtual aiming device equipped by the virtual shooting prop after the switch is an eight-times virtual aiming device, that is, the preset similarity condition (the first magnification adjustment range and the second magnification adjustment range coincide or the second magnification adjustment range contains the first magnification adjustment range) is met, the target magnification of the virtual aiming device of the virtual shooting prop after the switch is the target magnification corresponding to the virtual shooting prop before the switch, that is, the target magnification of the virtual aiming device of the virtual shooting prop after the switch is also set to six times. If the virtual aiming device equipped by the virtual shooting prop after the switch is a four-times virtual aiming device, that is, the preset similarity condition is not met, a specified magnification in the second magnification adjustment range is taken as the target magnification of the virtual aiming device of the virtual shooting prop after the switch, for example, the specified magnification of the virtual aiming device of the virtual shooting prop after the switch can be two times, that is, the target magnification of the virtual aiming device of the virtual shooting prop after the switch is also set to two times.
[0111] Optionally, the method further includes:
[0112] If the sight type of the virtual sighting device equipped by the virtual shooting prop is a specified sight type, cancel the operation of determining the magnification used by the controlled virtual object when opening the sight according to the current position and the target scene position, and do not display the magnification prompt control on the graphical user interface.
[0113] Optionally, the method further comprises:
[0114] If the virtual shooting prop is not equipped with a virtual magnifying lens, cancel the operation of determining the magnification used by the controlled virtual object when opening the sight according to the current position and the target scene position, and do not display the magnification prompt control on the graphical user interface.
[0115] In an embodiment, the graphical user interface further comprises a mode switching control configured to switch at least in a first magnification adjustment mode and a second magnification adjustment mode;
[0116] In the first magnification adjustment mode, the graphical user interface comprises a sight opening control and a magnification prompt control, the sight opening control is used to control the virtual sighting device to open at a first target magnification after receiving a trigger operation, the first target magnification is determined in the magnification range provided by the virtual sighting device based on the current position and the target scene position;
[0117] In the second magnification adjustment mode, the graphical user interface comprises a sight opening control, a magnification prompt control and a magnification adjustment control, the magnification adjustment control is used to determine a second target magnification after receiving an adjustment operation, the sight opening control is used to control the virtual sighting device to open at the second target magnification after receiving a trigger operation;
[0118] Before determining the target scene position in the virtual scene that the controlled virtual object focuses on, the method further comprises:
[0119] In response to the sight type of the virtual sighting device being a preset sight type, controlling the controlled virtual object to enter a preset magnification adjustment mode, wherein the preset magnification adjustment mode is the first magnification adjustment mode or the second magnification adjustment mode.
[0120] For example, the preset sight type can be a high magnification virtual sighting device, wherein the high magnification virtual sighting device can be a virtual sighting device with a maximum magnification higher than 2 times. Specifically, the virtual shooting prop can be equipped with a high magnification virtual sighting device with a magnification range of 1.5 times to 8 times (i.e. an eight times magnifying lens). Then, the controlled virtual object is controlled to enter a preset magnification adjustment mode, wherein the preset magnification adjustment mode is the first magnification adjustment mode or the second magnification adjustment mode. Preferably, the preset magnification adjustment mode is set to the first magnification adjustment mode.
[0121] Further, after the controlled virtual object holds the virtual shooting prop (and the virtual shooting prop is equipped with a virtual sight), a center point on the graphical user interface will appear a crosshair. When the player performs a sight operation, the game screen will be changed, and the game field of view of the game screen will be converted from a regular first-person perspective or third-person perspective to a magnified first-person perspective or third-person perspective. The magnified field of view will be adjusted according to the magnification of the virtual sight in the virtual shooting prop. Specifically, a target magnification can be determined according to the actual target scene position to be aimed at, thereby enhancing the observation field of view of the player. The magnification determines the degree of magnification of the game screen seen by the player relative to the normal field of view. The computer device controls the virtual sight to open at the target magnification in response to the sight instruction for the virtual sight, so as to present the field of view screen observed by the virtual sight at the target magnification for the target scene position.
[0122] The second target magnification can be a default magnification of the virtual sight, a historically used magnification, or a target magnification determined after an adjustment operation on the magnification adjustment control. For example, the default magnification set for an eight-magnification virtual sight is four, and the second target magnification can be four. Alternatively, the player sets the magnification to six when using the eight-magnification virtual sight last time, and the second target magnification can be six. Alternatively, the player currently uses the eight-magnification virtual sight, and the target magnification determined after an adjustment operation on the magnification adjustment control by the player is eight, and the second target magnification can be eight.
[0123] For example, referring to FIG. 5, in the first magnification adjustment mode, the graphical user interface includes a sight control and a magnification prompt control. The sight control is used to control the virtual sight to open at a first target magnification after receiving a trigger operation. The first target magnification is a magnification determined in a magnification range provided by the virtual sight based on the current position and the target scene position. Specifically, the mode switching control includes a first switching control “automatic” and a second switching control “off”. When the first switching control “automatic” is selected, the current magnification adjustment mode is set to the first magnification adjustment mode. When the second switching control “off” is selected, the current magnification adjustment mode is set to the second magnification adjustment mode.
[0124] For example, referring to FIG. 6, in the second magnification adjustment mode, the graphical user interface includes a sight control, a magnification prompt control, and a magnification adjustment control. The magnification adjustment control is used to determine a second target magnification after receiving an adjustment operation. The sight control is used to control the virtual sight to open at the second target magnification after receiving a trigger operation.
[0125] In an embodiment, the preset magnification adjustment mode is the first magnification adjustment mode. After controlling the controlled virtual object to enter the preset magnification adjustment mode, the method further includes:
[0126] In the first zoom adjustment mode, in response to a triggering operation on the mode switching control, the first zoom adjustment mode is switched to the second zoom adjustment mode, and the zoom adjustment control is operable in the second zoom adjustment mode.
[0127] In another embodiment, the preset zoom adjustment mode is the second zoom adjustment mode; after the controlled virtual object is controlled to enter the preset zoom adjustment mode, the method further includes:
[0128] In the second zoom adjustment mode, in response to a triggering operation on the mode switching control, the second zoom adjustment mode is switched to the first zoom adjustment mode, and the zoom adjustment control is not operable or not displayed in the first zoom adjustment mode.
[0129] Optionally, in the first zoom adjustment mode and the second zoom adjustment mode, the display style of the zoom-in control is different, wherein the zoom-in control displays mode prompt information, and the mode prompt information is used to prompt that the controlled virtual object is in the first zoom adjustment mode or the second zoom adjustment mode.
[0130] In a specific embodiment, the method further includes:
[0131] In the second zoom adjustment mode, in response to an adjustment operation on the zoom adjustment control, a target zoom ratio is determined based on the adjustment operation.
[0132] Further, the step of “in response to an adjustment operation on the zoom adjustment control, determining a target zoom ratio based on the adjustment operation” includes:
[0133] In response to a sliding operation on the zoom adjustment control, a target zoom ratio is determined based on zoom ratio information indicated in the zoom adjustment control at the end of the sliding operation.
[0134] Specifically, the zoom adjustment control provides a setting area; the step of “in response to a sliding operation on the zoom adjustment control, determining a target zoom ratio based on zoom ratio information indicated in the zoom adjustment control at the end of the sliding operation” includes:
[0135] In response to a sliding operation on the setting area, a target display position in the setting area at the end of the sliding operation is determined;
[0136] A target zoom ratio is determined based on zoom ratio information corresponding to the target display position.
[0137] Specifically, the setting area is a sliding track, and a sliding block is displayed on the sliding track, and a position of the sliding block on the sliding track is used to indicate a target magnification of the virtual sight.
[0138] Further, during the sliding operation on the magnification adjustment control, a magnification prompt mark corresponding to the magnification adjustment control is also displayed, and the magnification prompt mark is used to indicate a value of a magnification selected in real time in the process.
[0139] Optionally, different virtual sights correspond to different magnification ranges, and a display style of the magnification adjustment control is determined based on the magnification ranges.
[0140] Optionally, a first magnification mark and a second magnification mark are also displayed near the magnification adjustment control, and the first magnification mark and the second magnification mark are used to indicate two range end values of the magnification ranges.
[0141] For example, referring to FIG. 7, the magnification adjustment control includes a sliding track and a sliding block displayed on the sliding track, a position of the sliding block on the sliding track is used to indicate a target magnification of the virtual sight, the sliding block displays a magnification prompt mark "3.5X" on one side, which is used to indicate that a value of a magnification selected in real time in the process is 3.5 times; a first magnification mark "8X" and a second magnification mark "1.5X" are also displayed near the magnification adjustment control, the first magnification mark "8X" indicates that a maximum magnification of the virtual sight is 8 times, and the second magnification mark "1.5X" indicates that a minimum magnification of the virtual sight is 1.5 times.
[0142] In the embodiment of the present disclosure, if the player turns on the automatic aiming, the appropriate magnification can be automatically adjusted according to the relative distance between the target scene position and the current position when the scope is opened; if the player turns off the automatic aiming, the magnification to be used when the scope is opened can be set in advance by clicking the magnification adjustment control before the scope is opened.
[0143] In conclusion, the embodiment of the present disclosure provides a game interaction method, which determines a target scene position in the virtual scene according to a foresight of the controlled virtual object in the virtual scene; then, a current position of the controlled virtual object in the virtual scene is obtained; finally, a magnification to be used by the controlled virtual object when the scope is opened is determined according to the current position and the target scene position. The embodiment of the present disclosure can provide a method for intelligently adjusting the opening magnification for the player, quickly perform the adjustment operation of the opening magnification according to the actual battle situation of the player, intelligently adjust the opening magnification according to the actual game operation demand of the player, improve the shooting experience of the player, ensure the fluency of the battle experience of the player in the game match, and thus improve the game interaction efficiency; meanwhile, the response frequency of the hardware device is reduced, which is helpful to save the computing resources of the hardware device.
[0144] Optionally, the game interface can be as shown in FIG. 8. The game interface can display at least part of the game scene and a plurality of controls. FIG. 8 is only an example of interface elements on the game interface. The game interface can also include interface elements other than those shown in FIG. 8. The interface elements shown in FIG. 8 are described in detail below.
[0145] 1001 represents a fire control (i.e., a shooting control) for controlling the controlled virtual character to fire, 1002 represents a left scope control for controlling the controlled virtual character to scope at the left side of a virtual firearm, 1003 represents a right scope control for controlling the controlled virtual character to scope at the right side of the virtual firearm, and 1004 represents a cancel throwing object control for canceling the throwing of a throwing object.
[0146] 1005a represents an operation point, 1005b represents a first control area, and 1005c represents a second control located at the periphery of the first control area. The first control area, the second control area, and the operation point can constitute a virtual joystick for controlling the speed of movement of the controlled virtual character. The player can control the target controlled virtual character to move at different speeds by dragging the operation point to the first control area and / or the second control area.
[0147] 1006 represents a medical supply control for triggering the terminal device to display the medical supplies possessed by the controlled virtual character, 1007 represents a primary weapon bar for displaying the primary weapon of the controlled virtual character, 1008 represents a secondary weapon bar for displaying the secondary weapon of the controlled virtual character, 1009 represents a health bar for displaying the current health value of the controlled virtual character, and 1010 represents a throwing object control for controlling the controlled virtual character to throw a throwing object in the virtual scene.
[0148] 1011 represents a helmet control for indicating the helmet state of the controlled virtual character, such as wearing a helmet, the damage state of the helmet, not wearing a helmet, etc., 1012 represents an armor control for indicating the armor state of the controlled virtual character, such as wearing armor, the damage state of the armor, not wearing armor, etc., 1013 represents a hunger state control for indicating the water and energy state of the controlled virtual character, 1014 represents a detection prompt control for setting a detection prop, 1015 represents a shooting mode control for switching between an automatic shooting mode and a semi-automatic shooting mode, 1016 represents a melee weapon control for controlling a melee weapon, 1017 represents a handgun control for controlling a handgun, 1018 represents a reload control for controlling the controlled virtual character to reload ammunition, and 1019 represents a crouch control for controlling the controlled virtual character to perform a crouching action.
[0149] 10020 represents a prone control for controlling the controlled virtual character to perform a prone action, 10021 represents a jump control for controlling the controlled virtual character to perform a jump action, 10022 represents a magnification switching control for switching the magnification of a scope, 10023 represents a aiming control (i.e., a scope opening control) for controlling the scope to aim, 10024 represents an external help control for seeking help from out-of-game lobby players and / or friends, 10025 represents a nearby help control for seeking help from in-game players, 10026 represents an inspection control for inspecting a weapon, 10027 represents a setting control for setting the first control region and / or the second control region, 10028 represents a rescue control for rescuing other players, and 10029 represents a skill control for setting the duration of a skill.
[0150] 10030 represents a pet control for releasing a pet of the controlled virtual character, 10031 represents a focus skill control for releasing a focus skill, 10032 represents a marker control for marking a position in a game scene, when the controlled virtual character is away from the marked position, the player can know the distance between the controlled virtual character and the marked position, 10033 represents a chat control for sending and receiving messages in a game session, 10034 represents a speaker control for playing sounds in a game session, 10035 represents a microphone control for collecting the player's voice, 10036 represents a game setting control for setting related configurations in a game session, 10037 represents a motion control for controlling related motions of the controlled virtual character, 10038 represents a flashlight for controlling the virtual controlled character to use a flashlight in a game scene, and 10039 represents a pickable resource.
[0151] 10040 represents a storm progress bar for indicating the progress of a storm invading a game scene, and 10050 represents a bearing indicator for indicating the orientation of the controlled virtual character or the bearing between the controlled virtual character and a preset position.
[0152] The embodiment also provides a game interaction device, which can be integrated in a terminal device. For example, as shown in FIG. 9, the game interaction device can include:
[0153] A first determination unit 201 is configured to determine a target scene position in the virtual scene according to a crosshair of the controlled virtual object;
[0154] A first determination unit 201 is configured to determine a target scene position in the virtual scene according to a crosshair of the controlled virtual object;
[0155] The second determining unit 203 is configured to determine a magnification used by the controlled virtual object when the virtual shooting prop is aimed at the target scene position according to the current position and the target scene position.
[0156] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0157] In response to an equipment operation instruction for the virtual shooting prop, the game interaction apparatus controls the controlled virtual object to equip the virtual shooting prop, and determines a scene position aimed at by a sight of the virtual shooting prop as a target scene position.
[0158] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0159] In response to an equipment operation instruction for the virtual shooting prop, the game interaction apparatus controls the controlled virtual object to equip the virtual shooting prop, and determines a scene position aimed at by a sight of the virtual shooting prop as a target scene position.
[0160] The determining of the magnification used by the controlled virtual object when the virtual shooting prop is aimed at the target scene position according to the current position and the target scene position comprises:
[0161] Determining a target magnification in a magnification range provided by the virtual shooting prop based on the current position and the target scene position, and setting the virtual shooting prop to use the target magnification.
[0162] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0163] In response to an aiming instruction for the virtual shooting prop, the game interaction apparatus controls the virtual shooting prop to aim at the target scene position with the target magnification, so as to present a field of view picture observed by the virtual shooting prop at the target magnification.
[0164] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0165] In response to an aiming instruction for the virtual shooting prop, the game interaction apparatus determines a target scene position in the virtual scene according to a sight of the controlled virtual object.
[0166] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0167] The game interaction apparatus acquires a current position of a virtual shooting prop equipped by the controlled virtual object;
[0168] The game interaction apparatus determines a magnification used by the controlled virtual object when the virtual shooting prop is aimed at the target scene position based on the virtual shooting prop and the target scene position.
[0169] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0170] In response to a change in the relative position information between the current position and the target scene position, and the changed relative position information satisfying a preset magnification adjustment condition, a new target magnification in a magnification range provided by the virtual aiming device is determined according to the changed relative position information, and the new target magnification is set as the magnification used by the controlled virtual object when the camera is opened.
[0171] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0172] In response to the presence of a virtual object of a preset type in the target scene position, relative position information of the virtual object and the virtual aiming device is obtained;
[0173] Based on the relative position information of the virtual object and the virtual aiming device, the target magnification is adjusted, and the virtual aiming device uses the adjusted target magnification to present a field of view picture observed by the virtual aiming device at the target scene position at the adjusted target magnification.
[0174] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0175] The magnification displayed by the magnification prompt control is updated to the target magnification to prompt that the magnification used by the controlled virtual object when the camera is opened is the target magnification.
[0176] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0177] A magnification range of the virtual aiming device and a corresponding preset distance range are obtained;
[0178] If the relative distance between the current position and the target scene position is within the preset distance range, a target magnification is determined from the magnification range based on the relative distance and magnification determination logic;
[0179] If the relative distance is greater than the maximum value of the preset distance range, the maximum magnification of the magnification range is determined as the target magnification;
[0180] If the relative distance is less than the minimum value of the preset distance range, the minimum magnification of the magnification range is determined as the target magnification.
[0181] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0182] The scene position of the target virtual object aimed at by the foresight of the virtual shooting prop is determined as the target scene position.
[0183] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0184] when it is detected that there is at least one virtual object within a preset range corresponding to the controlled virtual object in the virtual scene, determining a target virtual object based on a current orientation of the virtual shooting prop, and / or relative distances between each virtual object and the controlled virtual object;
[0185] determining a target scene position of the target virtual object.
[0186] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0187] obtaining at least one auxiliary reference information, wherein the auxiliary reference information comprises an object attribute of the target virtual object and / or a scene attribute of the virtual scene;
[0188] determining a target magnification in a magnification range provided by the virtual aiming device based on a relative distance determined based on the current position and the target scene position, and the auxiliary reference information.
[0189] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0190] in response to a switching instruction of the virtual shooting prop, determining a switched virtual shooting prop;
[0191] if a second magnification adjustment range of a virtual aiming device equipped by the switched virtual shooting prop meets a preset similarity condition with a first magnification adjustment range of a virtual aiming device of the unswitched virtual shooting prop, a target magnification of the virtual aiming device of the switched virtual shooting prop follows a target magnification corresponding to the unswitched virtual shooting prop;
[0192] if the second magnification adjustment range of the virtual aiming device equipped by the switched virtual shooting prop does not meet the preset similarity condition with the first magnification adjustment range of the virtual aiming device of the unswitched virtual shooting prop, a specified magnification in the second magnification adjustment range is taken as the target magnification of the virtual aiming device of the switched virtual shooting prop.
[0193] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0194] if the aiming device type of the virtual aiming device equipped by the virtual shooting prop is a specified aiming device type, canceling an operation of determining a magnification used by the controlled virtual object when the virtual aiming device is opened based on the current position and the target scene position, and not displaying the magnification prompt control on the graphical user interface.
[0195] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0196] If the virtual shooting prop is not equipped with a virtual zoom lens, cancel the operation of determining the magnification used by the controlled virtual object when the virtual shooting prop is aimed at the target scene according to the current position and the position of the target scene, and do not display the magnification prompt control on the graphical user interface.
[0197] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0198] In response to the type of the virtual aiming device being a preset aiming device type, control the controlled virtual object to enter a preset magnification adjustment mode, wherein the preset magnification adjustment mode is the first magnification adjustment mode or the second magnification adjustment mode.
[0199] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0200] When in the first magnification adjustment mode, in response to a triggering operation on the mode switching control, the first magnification adjustment mode is switched to the second magnification adjustment mode, and the operable magnification adjustment control is provided in the second magnification adjustment mode.
[0201] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0202] When in the second magnification adjustment mode, in response to a triggering operation on the mode switching control, the second magnification adjustment mode is switched to the first magnification adjustment mode, and the magnification adjustment control is inoperable or not displayed in the first magnification adjustment mode.
[0203] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0204] When in the second magnification adjustment mode, in response to an adjustment operation on the magnification adjustment control, a target magnification is determined based on the adjustment operation.
[0205] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0206] In response to a sliding operation on the magnification adjustment control, a target magnification is determined based on magnification information indicated in the magnification adjustment control at the end of the sliding operation.
[0207] In some embodiments, the game interaction apparatus comprises a processing subunit configured to perform:
[0208] In response to a sliding operation on the setting area, a target display position in the setting area at the end of the sliding operation is determined;
[0209] A target magnification is determined based on magnification information corresponding to the target display position.
[0210] The embodiment of the present disclosure discloses a game interaction device, which comprises a first determination unit 201, a obtaining unit 202 and a second determination unit 203. The first determination unit 201 determines a target scene position in a virtual scene according to a foresight of a controlled virtual object in the virtual scene. The obtaining unit 202 obtains a current position of the controlled virtual object in the virtual scene. The second determination unit 203 determines a magnification used by the controlled virtual object when opening a scene according to the current position and the target scene position. The embodiment of the present disclosure can provide a method for intelligently adjusting the opening scene magnification to the player, quickly perform the adjustment operation of the opening scene magnification according to the actual battle situation of the player, intelligently adjust the opening scene magnification according to the actual game operation demand of the player, improve the shooting experience of the player, ensure the smoothness of the battle experience of the player in the game match, thereby improving the game interaction efficiency; at the same time, reduce the response frequency of the hardware device, which is helpful to save the computing resources of the hardware device.
[0211] Correspondingly, the embodiment of the present disclosure also provides an electronic device, which can be a terminal, such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA) and the like. Alternatively, the electronic device can be a server.
[0212] As shown in FIG. 10, FIG. 10 is a structural schematic diagram of an electronic device provided by the embodiment of the present disclosure. The electronic device 300 comprises a processor 301 having one or more than one processing core, a memory 302 having one or more than one computer readable storage medium, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected with the memory 302. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and can comprise more or fewer components than the figure, or combine certain components, or different component arrangements.
[0213] The processor 301 is the control center of the electronic device 300, connects all parts of the electronic device 300 through various interfaces and lines, executes various functions of the electronic device 300 and processes data by running or loading software programs and / or units stored in the memory 302 and calling data stored in the memory 302, thereby monitoring the whole electronic device 300. The processor 301 can be a central processing unit CPU, a graphics processing unit GPU, a network processor NP, etc., and can implement or execute various methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure.
[0214] In the embodiments of the present disclosure, the processor 301 in the electronic device 300 loads the instructions corresponding to the processes of one or more application programs into the memory 302, and runs the application programs stored in the memory 302 by the processor 301, so as to realize various functions, for example:
[0215] determining a target scene position in the virtual scene according to a sight of the controlled virtual object;
[0216] obtaining a current position of the controlled virtual object in the virtual scene;
[0217] determining a magnification used by the controlled virtual object when opening a sight according to the current position and the target scene position.
[0218] In an embodiment, the determining a target scene position in the virtual scene according to a sight of the controlled virtual object comprises:
[0219] in response to an equipment operation instruction for a virtual shooting prop, controlling the controlled virtual object to equip the virtual shooting prop, and determining a scene position aimed at by a sight of the virtual shooting prop as the target scene position.
[0220] In an embodiment, after controlling the controlled virtual object to equip the virtual shooting prop, further comprising:
[0221] in response to an equipment operation instruction for a virtual sight, controlling the virtual shooting prop to equip the virtual sight;
[0222] the determining a magnification used by the controlled virtual object when opening a sight according to the current position and the target scene position comprises:
[0223] determining a target magnification in a magnification range provided by the virtual sight based on the current position and the target scene position, and setting the virtual sight to use the target magnification.
[0224] In an embodiment, after determining a target magnification in the magnification range provided by the virtual scope based on the current position and the target scene position, and setting the virtual scope to use the target magnification, the method further comprises:
[0225] in response to an open scope instruction for the virtual scope, controlling the virtual scope to open at the target magnification, to present a field of view picture observed by the virtual scope at the target magnification for the target scene position.
[0226] In an embodiment, the determining a target scene position in the virtual scene according to the aiming point of the controlled virtual object comprises:
[0227] in response to an open scope instruction for the virtual scope, determining a target scene position in the virtual scene according to the aiming point of the controlled virtual object.
[0228] In an embodiment, the determining a magnification used by the controlled virtual object when opening the scope based on the current position and the target scene position comprises:
[0229] obtaining a current position of a virtual shooting prop equipped by the controlled virtual object;
[0230] determining a magnification used by the controlled virtual object when opening the scope based on the virtual shooting prop and the target scene position.
[0231] In an embodiment, after controlling the virtual scope to open at the target magnification in response to an open scope instruction for the virtual scope, the method further comprises:
[0232] in response to a change in relative position information between the current position and the target scene position, and the changed relative position information satisfying a preset magnification adjustment condition, determining a new target magnification in the magnification range provided by the virtual scope according to the changed relative position information, and setting the new target magnification as the magnification used by the controlled virtual object when opening the scope.
[0233] In an embodiment, after controlling the virtual scope to open at the target magnification in response to an open scope instruction for the virtual scope, the method further comprises:
[0234] in response to a virtual object of a preset type existing in the target scene position, obtaining relative orientation information of the virtual object and the virtual scope;
[0235] based on the relative orientation information of the virtual object and the virtual scope, adjusting the target magnification, and setting the virtual scope to use the adjusted target magnification, to present a field of view picture observed by the virtual scope at the adjusted target magnification for the target scene position.
[0236] In an embodiment, the graphical user interface further comprises a magnification prompt control, the magnification prompt control being configured to prompt a magnification used by the virtual aiming device when the virtual aiming device is opened, before the virtual aiming device is opened;
[0237] After determining a target magnification in a magnification range provided by the virtual aiming device based on the current position and the target scene position, and setting the virtual aiming device to use the target magnification, the method further comprises:
[0238] updating the magnification displayed by the magnification prompt control to the target magnification, to prompt the controlled virtual object to use the target magnification when the virtual aiming device is opened.
[0239] In an embodiment, the magnification prompt control further displays a first magnification and a second magnification, wherein the first magnification and the second magnification are respectively a maximum magnification and a minimum magnification in the magnification range provided by the virtual aiming device.
[0240] In an embodiment, the determining a target magnification in a magnification range provided by the virtual aiming device based on the current position and the target scene position comprises:
[0241] obtaining a magnification range of the virtual aiming device, and a corresponding preset distance range;
[0242] if a relative distance between the current position and the target scene position is within the preset distance range, determining a target magnification from the magnification range based on the relative distance and magnification determination logic;
[0243] if the relative distance is greater than a maximum value of the preset distance range, determining a maximum magnification of the magnification range as the target magnification;
[0244] if the relative distance is less than a minimum value of the preset distance range, determining a minimum magnification of the magnification range as the target magnification.
[0245] In an embodiment, the determining a scene position aimed at by a foresight of the virtual shooting prop as the target scene position comprises:
[0246] determining a scene position of a target virtual object aimed at by the foresight of the virtual shooting prop as the target scene position.
[0247] In an embodiment, the method further comprises:
[0248] when it is detected that there is at least one virtual object within a preset range corresponding to the controlled virtual object in the virtual scene, determining a target virtual object based on a current orientation of the virtual shooting prop, and / or relative distances between the virtual objects and the controlled virtual object.
[0249] obtaining a target scene position of the target virtual object.
[0250] In an embodiment, the determining the target magnification in the magnification range provided by the virtual sight based on the current position and the target scene position comprises:
[0251] obtaining at least one auxiliary reference information, wherein the auxiliary reference information comprises an object attribute of the target virtual object and / or a scene attribute of the virtual scene;
[0252] determining the target magnification in the magnification range provided by the virtual sight based on the relative distance determined based on the current position and the target scene position and the auxiliary reference information.
[0253] In an embodiment, after the determining the target magnification in the magnification range provided by the virtual sight based on the current position and the target scene position, the method further comprises:
[0254] determining a switched virtual shooting prop in response to a switching instruction of the virtual shooting prop;
[0255] if a second magnification adjustment range of a virtual sight of the switched virtual shooting prop and a first magnification adjustment range of a virtual sight of the unswitched virtual shooting prop satisfy a preset similarity condition, a target magnification of the virtual sight of the switched virtual shooting prop is the same as a target magnification corresponding to the unswitched virtual shooting prop;
[0256] if the second magnification adjustment range of the virtual sight of the switched virtual shooting prop and the first magnification adjustment range of the virtual sight of the unswitched virtual shooting prop do not satisfy the preset similarity condition, a specified magnification in the second magnification adjustment range is taken as the target magnification of the virtual sight of the switched virtual shooting prop.
[0257] In an embodiment, the method further comprises:
[0258] if the sight type of the virtual sight equipped by the virtual shooting prop is a specified sight type, the operation of determining the magnification used by the controlled virtual object when the virtual sight is opened based on the current position and the target scene position is cancelled, and the magnification prompt control is not displayed on the graphical user interface.
[0259] In an embodiment, the method further comprises:
[0260] If the virtual shooting prop is not equipped with a virtual zoom lens, cancel the operation of determining the magnification used by the controlled virtual object when opening the lens according to the current position and the target scene position, and do not display the magnification prompt control on the graphical user interface.
[0261] In an embodiment, the graphical user interface further includes a mode switching control configured to switch between at least a first magnification adjustment mode and a second magnification adjustment mode;
[0262] In the first magnification adjustment mode, the graphical user interface includes an opening lens control for receiving a trigger operation to control the virtual sight to open at a first target magnification, and a magnification prompt control, the first target magnification being a magnification determined based on the current position and the target scene position in a magnification range provided by the virtual sight;
[0263] In the second magnification adjustment mode, the graphical user interface includes an opening lens control, a magnification prompt control, and a magnification adjustment control for receiving an adjustment operation to determine a second target magnification, the opening lens control for receiving a trigger operation to control the virtual sight to open at the second target magnification;
[0264] Before determining the target scene position in the virtual scene that the controlled virtual object is interested in, the method further includes:
[0265] In response to the sight type of the virtual sight being a preset sight type, controlling the controlled virtual object to enter a preset magnification adjustment mode, wherein the preset magnification adjustment mode is the first magnification adjustment mode or the second magnification adjustment mode.
[0266] In an embodiment, the preset magnification adjustment mode is the first magnification adjustment mode;
[0267] After controlling the controlled virtual object to enter the preset magnification adjustment mode, the method further includes:
[0268] When in the first magnification adjustment mode, in response to a trigger operation on the mode switching control, switching the first magnification adjustment mode to the second magnification adjustment mode and providing an operable magnification adjustment control in the second magnification adjustment mode.
[0269] In an embodiment, the preset magnification adjustment mode is the second magnification adjustment mode;
[0270] After controlling the controlled virtual object to enter the preset magnification adjustment mode, the method further includes:
[0271] In response to a triggering operation on the mode switching control while in the second magnification adjustment mode, the second magnification adjustment mode is switched to the first magnification adjustment mode in which the magnification adjustment control is inoperable or not displayed.
[0272] In an embodiment, in the first magnification adjustment mode and the second magnification adjustment mode, the display style of the lens opening control is different, wherein the lens opening control displays mode prompt information for prompting that the controlled virtual object is in the first magnification adjustment mode or the second magnification adjustment mode.
[0273] In an embodiment, the method further comprises:
[0274] In response to an adjustment operation on the magnification adjustment control while in the second magnification adjustment mode, a target magnification is determined based on the adjustment operation.
[0275] In an embodiment, the response to the adjustment operation on the magnification adjustment control, the target magnification is determined based on the adjustment operation, comprises:
[0276] In response to a sliding operation on the magnification adjustment control, a target magnification is determined based on magnification information indicated in the magnification adjustment control at the end of the sliding operation.
[0277] In an embodiment, the magnification adjustment control provides a setting area.
[0278] The response to the sliding operation on the magnification adjustment control, the target magnification is determined based on magnification information indicated in the magnification adjustment control at the end of the sliding operation, comprises:
[0279] In response to a sliding operation on the setting area, a target display position in the setting area at the end of the sliding operation is determined.
[0280] A target magnification is determined based on magnification information corresponding to the target display position.
[0281] In an embodiment, the setting area is a sliding track, and a sliding block is displayed on the sliding track, wherein a position of the sliding block on the sliding track is used to indicate a target magnification of the virtual sight.
[0282] In an embodiment, during a sliding operation performed on the magnification adjustment control, a magnification prompt mark corresponding to the magnification adjustment control is further displayed, wherein the magnification prompt mark is used to indicate a numerical value of a magnification selected in real time during the process.
[0283] In an embodiment, different virtual sights correspond to different magnification ranges, and the display style of the magnification adjustment control is determined based on the magnification ranges.
[0284] In an embodiment, a first magnification identifier and a second magnification identifier are further displayed near the magnification adjustment control, and the first magnification identifier and the second magnification identifier are used to indicate two range end values of the magnification range.
[0285] The electronic device provided by the embodiments of the present disclosure can determine a target scene position in the virtual scene according to the foresight of the controlled virtual object, then acquire a current position of the controlled virtual object in the virtual scene, and finally determine a magnification used by the controlled virtual object when the foresight is opened according to the current position and the target scene position. The embodiments of the present disclosure can provide a method for intelligently adjusting the opening magnification to the player, quickly perform the adjustment operation of the opening magnification according to the actual combat situation of the player, intelligently adjust the opening magnification according to the actual game operation demand of the player, improve the shooting experience of the player, ensure the smoothness of the combat experience of the player in the game match, and thus improve the game interaction efficiency; at the same time, the response frequency of the hardware device is reduced, which is helpful to save the computing resources of the hardware device.
[0286] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here.
[0287] Optionally, as shown in FIG. 10, the electronic device 300 further includes a touch display screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected with the touch display screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device, and can include more or fewer components than the illustration, or combine certain components, or different component arrangements.
[0288] The touch display screen 303 can be used to display a graphical user interface and receive operation instructions generated by user acting on the graphical user interface. The touch display screen 303 can include a display panel and a touch panel. The display panel can be used to display information input by the user or provided to the user and various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can be used to collect touch operations (such as operations of the user using a finger, a stylus or any suitable object or accessory on or near the touch panel) of the user on or near the touch panel and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of the user and detects the signals generated by the touch operation and transmits the signals to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch coordinates and sends it to the processor 301, and can also receive commands from the processor 301 and execute them. The touch panel can cover the display panel, and when the touch panel detects a touch operation on or near it, it transmits to the processor 301 to determine the type of touch event, and then the processor 301 provides corresponding visual output on the display panel according to the type of touch event. In the embodiments of the present disclosure, the touch panel and the display panel can be integrated into the touch display screen 303 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can realize the input and output functions as two independent components. That is, the touch display screen 303 can also realize the input function as part of the input unit 306.
[0289] The radio frequency circuit 304 can be used to transceive radio frequency signals to establish wireless communication with network devices or other electronic devices.
[0290] The audio circuit 305 can be used to provide an audio interface between the user and the electronic device through the speaker and the microphone. The audio circuit 305 can convert the received audio data into an electrical signal and transmit it to the speaker, which converts it into a sound signal output; on the other hand, the microphone collects the sound signal and converts it into an electrical signal, which is received by the audio circuit 305 and converted into audio data, and then the audio data is output to the processor 301 for processing, and then transmitted to another electronic device through the radio frequency circuit 304, or output to the memory 302 for further processing. The audio circuit 305 can also include an earphone jack to provide communication between the external earphone and the electronic device.
[0291] The input unit 306 can be configured to receive inputted digital, character information or user feature information (e.g. fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0292] The power supply 307 is configured to supply power to various components of the electronic device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so as to realize functions such as management of charging, discharging and power consumption management through the power management system. The power supply 307 can also include one or more than one direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power state indicator and any other components.
[0293] Although not shown in FIG. 10, the electronic device 300 can also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described herein.
[0294] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0295] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by related hardware controlled by the instructions, which can be stored in a computer readable storage medium and loaded and executed by a processor.
[0296] To this end, the embodiment of the disclosure provides a computer readable storage medium, which stores a plurality of computer programs. The computer programs can be loaded by a processor to execute any one of the game interaction methods provided by the embodiment of the disclosure. The computer program can execute the steps of the following game interaction method:
[0297] determining a target scene position in the virtual scene according to a crosshair of the controlled virtual object;
[0298] obtaining a current position of the controlled virtual object in the virtual scene;
[0299] determining a magnification used by the controlled virtual object when opening the scene according to the current position and the target scene position.
[0300] According to the computer program stored in the storage medium, a target scene position is determined in the virtual scene according to a crosshair of the controlled virtual object; then, a current position of the controlled virtual object in the virtual scene is acquired; and finally, a magnification used by the controlled virtual object when opening the scope is determined according to the current position and the target scene position. The embodiment of the disclosure can provide a method for intelligently adjusting the opening scope magnification for the player, quickly perform the opening scope magnification adjustment operation according to the actual battle situation of the player, intelligently adjust the opening scope magnification according to the actual game operation demand of the player, improve the shooting experience of the player, ensure the smoothness of the battle experience of the player in the game match, and thus improve the game interaction efficiency; meanwhile, the response frequency of the hardware device is reduced, which is helpful to save the computing resources of the hardware device.
[0301] The specific implementation of each operation can refer to the foregoing embodiments, and will not be described herein.
[0302] The computer readable storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0303] According to the computer program stored in the storage medium, any one of the game interaction methods provided by the embodiments of the disclosure can be executed, and thus the beneficial effects of any one of the game interaction methods provided by the embodiments of the disclosure can be achieved. Details can be referred to the foregoing embodiments, and will not be described herein.
[0304] According to an aspect of the disclosure, a computer program product or a computer program is also provided, which includes computer instructions stored in a computer readable storage medium. A processor of an electronic device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method provided in various optional implementations in the foregoing embodiments.
[0305] In the foregoing game interaction device, computer readable storage medium, electronic device, and computer program product embodiments, the description of each embodiment focuses on different aspects, and the parts not described in detail in an embodiment can be referred to the related description of other embodiments. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the game interaction device, computer readable storage medium, computer program product, electronic device, and corresponding units thereof described above and the beneficial effects brought by the same can be referred to the description of the game interaction method in the foregoing embodiments, and will not be described herein.
[0306] The game interaction method, device, electronic device, computer readable storage medium and computer program product provided by the embodiments of the present disclosure are described in detail above, the principles and implementation manners of the present disclosure are described by applying specific examples in this paper, and the above embodiment description is only used to help understand the method and core idea of the present disclosure; meanwhile, for those skilled in the art, according to the idea of the present disclosure, the specific implementation manners and application ranges will be changed, and the above description should not be understood as a limitation of the present disclosure.
Claims
1. A game interaction method, providing a graphical user interface by a terminal device, the graphical user interface comprising at least a partial virtual scene and a controlled virtual object in the virtual scene, the controlled virtual object being controlled by the terminal device, the method comprising: determining a target scene position in the virtual scene according to a sight of the controlled virtual object; obtaining a current position of the controlled virtual object in the virtual scene; and determining a magnification used by the controlled virtual object when a virtual scope is opened according to the current position and the target scene position. The determining a target scene position in the virtual scene according to a sight of the controlled virtual object comprises: in response to an equipment operation instruction for a virtual shooting prop, controlling the controlled virtual object to equip the virtual shooting prop, and determining a scene position aimed at by a sight of the virtual shooting prop as the target scene position. After controlling the controlled virtual object to equip the virtual shooting prop, the method further comprises: in response to an equipment operation instruction for a virtual scope, controlling the virtual shooting prop to equip the virtual scope. The determining a magnification used by the controlled virtual object when a virtual scope is opened according to the current position and the target scene position comprises: determining a target magnification in a magnification range provided by the virtual scope based on the current position and the target scene position, and setting the virtual scope to use the target magnification.
2. The method of claim 1, wherein, After determining a target magnification in a magnification range provided by the virtual scope based on the current position and the target scene position, and setting the virtual scope to use the target magnification, the method further comprises: in response to an opening instruction for the virtual scope, controlling the virtual scope to open at the target magnification, so as to present a field of view picture observed by the virtual scope at the target magnification for the target scene position. The determining a target scene position in the virtual scene according to a sight of the controlled virtual object comprises: in response to an opening instruction for the virtual scope, determining a target scene position in the virtual scene according to a sight of the controlled virtual object.
3. The method of claim 2, wherein, The determining a magnification used by the controlled virtual object when a virtual scope is opened according to the current position and the target scene position comprises: obtaining a current position of a virtual shooting prop equipped by the controlled virtual object; and determining a magnification used by the controlled virtual object when the virtual scope is opened based on the virtual shooting prop and the target scene position. After controlling the virtual scope to open at the target magnification in response to the opening instruction for the virtual scope, the method further comprises: in response to a change in relative position information between the current position and the target scene position, and in response to the changed relative position information satisfying a preset magnification adjustment condition, determining a new target magnification in the magnification range provided by the virtual scope according to the changed relative position information, and setting the new target magnification as the magnification used by the controlled virtual object when the virtual scope is opened. After controlling the virtual scope to open at the target magnification in response to the opening instruction for the virtual scope, the method further comprises: 4. The method of claim 3, wherein, 5. The method of claim 3, wherein, 6. The method of claim 2, wherein, 7. The method of claim 4, wherein, 8. The method of claim 4, wherein, in response to the presence of a preset type of virtual object in the target scene position, obtaining relative position information of the virtual object and the virtual sight; based on the relative position information of the virtual object and the virtual sight, adjusting the target magnification, and setting the virtual sight to use the adjusted target magnification, so as to present a field of view picture observed by the virtual sight at the adjusted target magnification for the target scene position.
9. The method of claim 3, wherein, The graphical user interface further comprises a magnification prompt control, which is used at least to prompt the magnification used by the virtual sight when the virtual sight is opened; after determining the target magnification in the magnification range provided by the virtual sight based on the current position and the target scene position, and setting the virtual sight to use the target magnification, the method further comprises: updating the magnification displayed by the magnification prompt control to the target magnification, so as to prompt the magnification used by the controlled virtual object when the virtual sight is opened to be the target magnification.
10. The method of claim 9, wherein, The magnification prompt control further displays a first magnification and a second magnification, wherein the first magnification and the second magnification are respectively the maximum magnification and the minimum magnification of the magnification range provided by the virtual sight.
11. The method of claim 3, wherein, The determination of the target magnification in the magnification range provided by the virtual sight based on the current position and the target scene position comprises: obtaining the magnification range of the virtual sight, and a corresponding preset distance range; if the relative distance between the current position and the target scene position is within the preset distance range, determining the target magnification from the magnification range based on the relative distance and magnification determination logic; if the relative distance is greater than the maximum value of the preset distance range, determining the maximum magnification of the magnification range as the target magnification; if the relative distance is less than the minimum value of the preset distance range, determining the minimum magnification of the magnification range as the target magnification.
12. The method of claim 3, wherein, The determination of the target scene position where the foresight of the virtual shooting prop is aimed at comprises: determining the target scene position where the target virtual object aimed at by the foresight of the virtual shooting prop.
13. The method of claim 3, wherein, The method further comprises: when it is detected that there is at least one virtual object within the preset range corresponding to the controlled virtual object in the virtual scene, determining a target virtual object based on the current orientation of the virtual shooting prop, and / or the relative distance between each virtual object and the controlled virtual object; determining the target scene position of the target virtual object as the target scene position.
14. The method of any one of claims 12 or 13, wherein, The determination of the target magnification in the magnification range provided by the virtual sight based on the current position and the target scene position comprises: obtaining at least one kind of auxiliary reference information, wherein the auxiliary reference information comprises the object attribute of the target virtual object and / or the scene attribute of the virtual scene; determining the target magnification in the magnification range provided by the virtual sight based on the relative distance determined based on the current position and the target scene position, and the auxiliary reference information.
15. The method of claim 3, wherein, after determining the target magnification in the magnification range provided by the virtual sight based on the current position and the target scene position, the method further comprises: In response to the switching instruction of the virtual shooting prop, a switched virtual shooting prop is determined; if the second magnification adjustment range of the virtual sighting device equipped by the switched virtual shooting prop and the first magnification adjustment range of the virtual sighting device of the unswitched virtual shooting prop satisfy a preset similarity condition, a target magnification of the virtual sighting device of the switched virtual shooting prop is the target magnification corresponding to the unswitched virtual shooting prop; if the second magnification adjustment range of the virtual sighting device equipped by the switched virtual shooting prop and the first magnification adjustment range of the virtual sighting device of the unswitched virtual shooting prop do not satisfy the preset similarity condition, a specified magnification in the second magnification adjustment range is taken as the target magnification of the virtual sighting device of the switched virtual shooting prop.
16. The method of claim 9, wherein, The method further comprises: if the sighting device type of the virtual sighting device equipped by the virtual shooting prop is a specified sighting device type, the operation of determining the magnification used by the controlled virtual object when the virtual sighting device is opened according to the current position and the target scene position is cancelled, and the magnification prompt control is not displayed on the graphical user interface.
17. The method of claim 9, wherein, The method further comprises: if the virtual shooting prop is not equipped with a virtual magnifying lens, the operation of determining the magnification used by the controlled virtual object when the virtual sighting device is opened according to the current position and the target scene position is cancelled, and the magnification prompt control is not displayed on the graphical user interface.
18. The method of claim 3, wherein, The graphical user interface further comprises a mode switching control configured to switch at least in a first magnification adjustment mode and a second magnification adjustment mode; in the first magnification adjustment mode, the graphical user interface comprises an opening control and a magnification prompt control, the opening control is used to control the virtual sighting device to open at a first target magnification after receiving a trigger operation, the first target magnification is a magnification determined in a magnification range provided by the virtual sighting device based on the current position and the target scene position; in the second magnification adjustment mode, the graphical user interface comprises an opening control, a magnification prompt control and a magnification adjustment control, the magnification adjustment control is used to determine a second target magnification after receiving an adjustment operation, the opening control is used to control the virtual sighting device to open at the second target magnification after receiving a trigger operation; before determining the target scene position in the virtual scene which the controlled virtual object focuses on, the method further comprises: in response to the sighting device type of the virtual sighting device being a preset sighting device type, controlling the controlled virtual object to enter a preset magnification adjustment mode, wherein the preset magnification adjustment mode is the first magnification adjustment mode or the second magnification adjustment mode.
19. The method of claim 18, wherein, The preset magnification adjustment mode is the first magnification adjustment mode; after controlling the controlled virtual object to enter the preset magnification adjustment mode, the method further comprises: when in the first magnification adjustment mode, in response to a trigger operation on the mode switching control, the first magnification adjustment mode is switched to the second magnification adjustment mode, and an operable magnification adjustment control is provided in the second magnification adjustment mode.
20. The method of claim 18, wherein, The preset magnification adjustment mode is the second magnification adjustment mode; After the controlled virtual object is controlled to enter the preset zoom adjustment mode, the method further includes: When in the second zoom adjustment mode, in response to a triggering operation on the mode switching control, the second zoom adjustment mode is switched to the first zoom adjustment mode, in which the zoom adjustment control is inoperable or not displayed.
21. The method of claim 18, wherein, In the first zoom adjustment mode and the second zoom adjustment mode, the display style of the scope opening control is different, wherein the scope opening control displays mode prompt information, which is used to prompt that the controlled virtual object is in the first zoom adjustment mode or the second zoom adjustment mode.
22. The method of claim 18, wherein, The method further includes: When in the second zoom adjustment mode, in response to an adjustment operation on the zoom adjustment control, a target zoom is determined based on the adjustment operation.
23. The method of claim 22, wherein, The response to the adjustment operation on the zoom adjustment control includes: In response to a sliding operation on the zoom adjustment control, a target zoom is determined based on zoom information indicated in the zoom adjustment control at the end of the sliding operation.
24. The method of claim 23, wherein, The zoom adjustment control provides a setting area. The response to the sliding operation on the zoom adjustment control includes: In response to a sliding operation on the setting area, a target display position in the setting area at the end of the sliding operation is determined; A target zoom is determined based on zoom information corresponding to the target display position.
25. The method of claim 24, wherein, The setting area is a sliding track, and a slider is displayed on the sliding track, wherein the position of the slider on the sliding track is used to indicate a target zoom of the virtual sight.
26. The method of any one of claims 23 to 25, wherein, During the sliding operation on the zoom adjustment control, a zoom prompt mark corresponding to the zoom adjustment control is also displayed, which is used to indicate the numerical value of the zoom selected in real time in the process.
27. The method of claim 26, wherein, Different virtual sights correspond to different zoom ranges, and the display style of the zoom adjustment control is determined based on the zoom ranges.
28. The method of claim 27, wherein, A first zoom mark and a second zoom mark are also displayed near the zoom adjustment control, which are used to indicate two range end values of the zoom ranges.
29. A game interaction device, which provides a graphical user interface through a terminal device, the graphical user interface including at least part of a virtual scene and a controlled virtual object in the virtual scene controlled by the terminal device, the device comprising: a first determination unit configured to determine a target scene position in the virtual scene according to a foresight of the controlled virtual object; an acquisition unit configured to acquire a current position of the controlled virtual object in the virtual scene; a second determination unit configured to determine a zoom used by the controlled virtual object when opening a scope according to the current position and the target scene position.
30. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loading the instructions from the memory to perform the steps of the game interaction method of any one of claims 1-28.
31. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the game interaction method of any one of claims 1-28.
Citation Information
Patent Citations
Virtual scene displaying method and device, electronic device and storage medium
CN108579083A
Game aiming method and device, storage medium, and electronic device
CN109224439A
Movement control method and device in virtual scene, equipment and storage medium
CN111013136A
Information processing method and device, electronic equipment and storage medium
CN115671732A
Shooting control method and device in game, electronic equipment and storage medium
CN116370958A