Method and device for processing information in game, electronic equipment and storage medium

文档序号:248440 发布日期:2021-11-16 浏览:6次 中文

阅读说明:本技术 游戏中处理信息的方法、装置、电子设备及存储介质 (Method and device for processing information in game, electronic equipment and storage medium ) 是由 梁煜鋆 于 2021-08-18 设计创作,主要内容包括:本申请提供一种游戏中处理信息的方法、装置、电子设备及存储介质,涉及游戏技术领域。该方法包括:响应于玩家的信息查看指令,在第一游戏界面的预设区域上以第一透明度显示第二游戏界面,其中第一游戏界面用于显示玩家控制的虚拟角色以及虚拟角色所处的游戏场景,第二游戏界面用于提供与信息查看指令相对应的信息;响应于玩家在第二游戏界面上的第一滑动操作,以第二透明度显示第二游戏界面并且控制虚拟角色执行与第一滑动操作相对应的动作,其中第一滑动操作的起点位于第二游戏界面的目标区域。本方法在第一游戏界面中控制虚拟角色执行游戏的同时,还可在第二游戏界面中执行与滑动操作对应的动作,可提高游戏操作的并行能力,提升游戏体验。(The application provides a method and a device for processing information in a game, electronic equipment and a storage medium, and relates to the technical field of games. The method comprises the following steps: responding to an information viewing instruction of a player, displaying a second game interface with first transparency on a preset area of the first game interface, wherein the first game interface is used for displaying a virtual character controlled by the player and a game scene where the virtual character is located, and the second game interface is used for providing information corresponding to the information viewing instruction; in response to a first sliding operation of a player on a second game interface, the second game interface is displayed with a second transparency and the virtual character is controlled to execute an action corresponding to the first sliding operation, wherein a starting point of the first sliding operation is located in a target area of the second game interface. The method can control the virtual character to execute the game in the first game interface, and can execute the action corresponding to the sliding operation in the second game interface, thereby improving the parallel capability of the game operation and the game experience.)

1. A method of processing information in a game, the method comprising:

responding to an information viewing instruction of a player, displaying a second game interface with first transparency on a preset area of a first game interface, wherein the first game interface is used for displaying a virtual character controlled by the player and a game scene where the virtual character is located, and the second game interface is used for providing information corresponding to the information viewing instruction;

in response to a first sliding operation of the player on the second game interface, displaying the second game interface with a second transparency and controlling the virtual character to execute an action corresponding to the first sliding operation, wherein a starting point of the first sliding operation is located in a target area of the second game interface.

2. The method of claim 1, wherein the action corresponding to the first sliding operation comprises: the virtual character controls the operation.

3. The method of claim 2, wherein if the second game interface covers a virtual character movement operation control in the first game interface, the action corresponding to the first sliding operation includes controlling the virtual character to move;

if the second game interface covers the virtual character view adjusting control in the first game interface, the action corresponding to the first sliding operation comprises adjusting the virtual character view.

4. The method of claim 2, wherein the displaying the second game interface at a second transparency and controlling the virtual character to perform an action corresponding to the first swipe operation in response to the first swipe operation by the player on the second game interface comprises:

and responding to the sliding operation of the player in the target area on the second game interface along a first preset direction, and executing the virtual character control operation.

5. The method of claim 4, wherein the performing the virtual character control operation in response to a sliding operation of the player in a first preset direction in the target area on the second game interface comprises:

adjusting a current perspective of the virtual character in response to a sliding operation of the player in a first orientation in the first preset direction in the target area, wherein the first orientation is within a first preset angle range;

and adjusting the current visual angle of the virtual character in response to the sliding operation of the player in a second direction opposite to the first direction in the first preset direction in the target area, wherein the second direction is in a second preset angle range, and the first preset angle range and the second preset angle range are arranged in a mirror image mode.

6. The method of claim 1, further comprising:

in response to a second sliding operation of the player on the second game interface, displaying the second game interface with the first transparency and executing an action corresponding to the second sliding operation, wherein a starting point of the second sliding operation is located in a target area of the second game interface.

7. The method of claim 6, wherein the second game interface comprises a chat interface, and wherein the action corresponding to the second sliding operation comprises: and (5) chatting and checking operation.

8. The method of claim 7, wherein the displaying the second game interface at the first transparency and performing an action corresponding to a second swipe operation in response to the second swipe operation by the player on the second game interface comprises:

and responding to the sliding operation of the player in a second preset direction in the target area on the second game interface, and executing the chat viewing operation.

9. The method of claim 8, wherein performing the chat viewing operation in response to a sliding operation by the player in a second preset direction in the target area on the second game interface comprises:

responding to sliding operation of the player in a third direction in the second preset direction in the target area, and sequentially displaying historical chat contents by taking current chat contents in the chat interface displayed on the second game interface as a starting point, wherein the third direction is in a third preset angle range;

responding to a sliding operation of the player in a fourth direction opposite to the third direction in the second preset direction in the target area, and sequentially displaying the historical chat contents of the chat interface to the current chat contents; the fourth orientation is within a fourth preset angle range, and the third preset angle range and the fourth preset angle range are arranged in a mirror image mode.

10. The method of claim 1, wherein the second game interface overlaps the first game interface and the second game interface overlies the first game interface.

11. The method of claim 1, wherein the second transparency is greater than the first transparency.

12. The method of claim 1, wherein after the displaying the second game interface at a second transparency and controlling the virtual character to perform an action corresponding to the first swipe operation in response to the first swipe operation by the player on the second game interface, the method further comprises:

and responding to the ending operation of the first sliding operation, and controlling the second game interface to be switched from the second transparency to the first transparency.

13. An apparatus for processing information in a game, the apparatus comprising: a display module and an execution module;

the display module is used for responding to an information viewing instruction of a player and displaying a second game interface with first transparency on a preset area of a first game interface, wherein the first game interface is used for displaying a virtual character controlled by the player and a game scene where the virtual character is located, and the second game interface is used for providing information corresponding to the information viewing instruction;

the execution module is used for responding to a first sliding operation of the player on the second game interface, displaying the second game interface with a second transparency and controlling the virtual character to execute an action corresponding to the first sliding operation, wherein the starting point of the first sliding operation is located in the target area of the second game interface.

14. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the program instructions to perform the steps of the method according to any one of claims 1 to 12 when executed.

15. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 12.

Technical Field

The present application relates to the field of game technologies, and in particular, to a method and an apparatus for processing information in a game, an electronic device, and a storage medium.

Background

At present, most games are provided with various game functions such as map viewing, chatting, equipment purchasing and the like, so that the richness of the games is improved, and the game experience of players is improved.

In the prior art, the set game functions are usually deployed on a game main interface in the form of a pop-up window or a half-screen game auxiliary interface, and when a player executes some game functions on the game auxiliary interface, a game picture or a game operation control on the game main interface is shielded, which affects the normal execution of the game.

The method leads the player to be incapable of executing the game in real time in the process of executing other game functions, and leads to the interruption of the game, thereby influencing the game experience of the player.

Disclosure of Invention

An object of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for processing information in a game, so as to solve the problem in the prior art that a player cannot execute a game in real time during executing other game functions, which results in poor game experience of the player.

In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:

in a first aspect, an embodiment of the present application provides a method for processing information in a game, where the method includes:

responding to an information viewing instruction of a player, displaying a second game interface with first transparency on a preset area of a first game interface, wherein the first game interface is used for displaying a virtual character controlled by the player and a game scene where the virtual character is located, and the second game interface is used for providing information corresponding to the information viewing instruction;

in response to a first sliding operation of the player on the second game interface, displaying the second game interface with a second transparency and controlling the virtual character to execute an action corresponding to the first sliding operation, wherein a starting point of the first sliding operation is located in a target area of the second game interface.

Optionally, the action corresponding to the first sliding operation includes: the virtual character controls the operation.

Optionally, if the second game interface covers the virtual character movement operation control in the first game interface, the action corresponding to the first sliding operation includes controlling the virtual character to move;

if the second game interface covers the virtual character view adjusting control in the first game interface, the action corresponding to the first sliding operation comprises adjusting the virtual character view.

Optionally, the displaying the second game interface with a second transparency and controlling the virtual character to perform an action corresponding to the first sliding operation in response to the first sliding operation by the player on the second game interface includes:

and responding to the sliding operation of the player in the target area on the second game interface along a first preset direction, and executing the virtual character control operation.

Optionally, the executing the virtual character control operation in response to the sliding operation of the player in the target area on the second game interface along a first preset direction includes:

adjusting a current perspective of the virtual character in response to a sliding operation of the player in a first orientation in the first preset direction in the target area, wherein the first orientation is within a first preset angle range;

and adjusting the current visual angle of the virtual character in response to the sliding operation of the player in a second direction opposite to the first direction in the first preset direction in the target area, wherein the second direction is in a second preset angle range, and the first preset angle range and the second preset angle range are arranged in a mirror image mode.

Optionally, the method further comprises:

in response to a second sliding operation of the player on the second game interface, displaying the second game interface with the first transparency and executing an action corresponding to the second sliding operation, wherein a starting point of the second sliding operation is located in a target area of the second game interface.

Optionally, the second game interface includes a chat interface, and the action corresponding to the second sliding operation includes: and (5) chatting and checking operation.

Optionally, the displaying the second game interface with the first transparency and performing an action corresponding to a second sliding operation on the second game interface in response to the second sliding operation by the player includes:

and responding to the sliding operation of the player in a second preset direction in the target area on the second game interface, and executing the chat viewing operation.

Optionally, the performing the chat viewing operation in response to the sliding operation of the player in the target area on the second game interface along a second preset direction includes:

responding to sliding operation of the player in a third direction in the second preset direction in the target area, and sequentially displaying historical chat contents by taking current chat contents in the chat interface displayed on the second game interface as a starting point, wherein the third direction is in a third preset angle range;

responding to a sliding operation of the player in a fourth direction opposite to the third direction in the second preset direction in the target area, and sequentially displaying the historical chat contents of the chat interface to the current chat contents; the fourth orientation is within a fourth preset angle range, and the third preset angle range and the fourth preset angle range are arranged in a mirror image mode.

Optionally, the second game interface overlaps the first game interface, and the second game interface is overlaid on the first game interface.

Optionally, the second transparency is greater than the first transparency.

Optionally, after the responding to the first sliding operation of the player on the second game interface, displaying the second game interface with a second transparency and controlling the virtual character to execute the action corresponding to the first sliding operation, the method further comprises:

and responding to the ending operation of the first sliding operation, and controlling the second game interface to be switched from the second transparency to the first transparency.

In a second aspect, an embodiment of the present application further provides an apparatus for processing information in a game, where the apparatus includes: a display module and an execution module;

the display module is used for responding to an information viewing instruction of a player and displaying a second game interface with first transparency on a preset area of a first game interface, wherein the first game interface is used for displaying a virtual character controlled by the player and a game scene where the virtual character is located, and the second game interface is used for providing information corresponding to the information viewing instruction;

the execution module is used for responding to a first sliding operation of the player on the second game interface, displaying the second game interface with a second transparency and controlling the virtual character to execute an action corresponding to the first sliding operation, wherein the starting point of the first sliding operation is located in the target area of the second game interface.

Optionally, the action corresponding to the first sliding operation includes: the virtual character controls the operation.

Optionally, if the second game interface covers the virtual character movement operation control in the first game interface, the action corresponding to the first sliding operation includes controlling the virtual character to move;

if the second game interface covers the virtual character view adjusting control in the first game interface, the action corresponding to the first sliding operation comprises adjusting the virtual character view.

Optionally, the executing module is specifically configured to execute the virtual character control operation in response to a sliding operation of the player in the target area on the second game interface along a first preset direction.

Optionally, the executing module is specifically configured to adjust a current perspective of the virtual character in response to a sliding operation of the player in a first direction of the first preset directions in the target area, where the first direction is within a first preset angle range;

and adjusting the current visual angle of the virtual character in response to the sliding operation of the player in a second direction opposite to the first direction in the first preset direction in the target area, wherein the second direction is in a second preset angle range, and the first preset angle range and the second preset angle range are arranged in a mirror image mode.

Optionally, the executing module is further configured to, in response to a second sliding operation of the player on the second game interface, display the second game interface at the first transparency and execute an action corresponding to the second sliding operation, where a starting point of the second sliding operation is located in a target area of the second game interface.

Optionally, the second game interface includes a chat interface, and the action corresponding to the second sliding operation includes: and (5) chatting and checking operation.

Optionally, the executing module is specifically configured to execute the chat viewing operation in response to a sliding operation of the player in a second preset direction in the target area on the second game interface.

Optionally, the executing module is specifically configured to, in response to a sliding operation of the player in a third direction in the second preset direction in the target area, sequentially display historical chat contents with a current chat content in a chat interface displayed on the second game interface as a starting point, where the third direction is within a third preset angle range;

responding to a sliding operation of the player in a fourth direction opposite to the third direction in the second preset direction in the target area, and sequentially displaying the historical chat contents of the chat interface to the current chat contents; the fourth orientation is within a fourth preset angle range, and the third preset angle range and the fourth preset angle range are arranged in a mirror image mode.

Optionally, the second game interface overlaps the first game interface, and the second game interface is overlaid on the first game interface.

Optionally, the second transparency is greater than the first transparency.

Optionally, the apparatus further comprises: a switching module;

the switching module is used for responding to the ending operation of the first sliding operation and controlling the second game interface to be switched from the second transparency to the first transparency.

In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operated, the processor executing the machine-readable instructions to perform the steps of the method as provided in the first aspect when executed.

In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps of the method as provided in the first aspect.

The beneficial effect of this application is:

the application provides a method, a device, an electronic device and a storage medium for processing information in a game, wherein the method comprises the following steps: responding to an information viewing instruction of a player, displaying a second game interface with first transparency on a preset area of the first game interface, wherein the first game interface is used for displaying a virtual character controlled by the player and a game scene where the virtual character is located, and the second game interface is used for providing information corresponding to the information viewing instruction; in response to a first sliding operation of a player on a second game interface, the second game interface is displayed with a second transparency and the virtual character is controlled to execute an action corresponding to the first sliding operation, wherein a starting point of the first sliding operation is located in a target area of the second game interface. In the method, based on the information viewing instruction of the player, a second game interface corresponding to the instruction can be displayed in the first game interface showing the game scene, and the action corresponding to the sliding operation can be executed in response to the sliding operation in the second game interface. By displaying the second game interface in the first game interface, the virtual character is controlled in the first game interface to execute the game, and simultaneously, the action corresponding to the sliding operation can be executed in the second game interface, so that the game operation in the first game interface can not interfere with the operation in the second game interface, the parallel capability of the game operation can be improved, and the game experience can be improved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.

FIG. 1 is a first flowchart illustrating a method for processing information in a game according to an embodiment of the present disclosure;

FIG. 2 is a schematic diagram of a graphical user interface provided by an embodiment of the present application;

FIG. 3 is a schematic diagram of another graphical user interface provided by an embodiment of the present application;

FIG. 4 is a second flowchart illustrating a method for processing information in a game according to an embodiment of the present disclosure;

FIG. 5 is a schematic diagram of another graphical user interface provided by an embodiment of the present application;

FIG. 6 is a third flowchart illustrating a method for processing information in a game according to an embodiment of the present disclosure;

FIG. 7 is a schematic diagram of yet another graphical user interface provided by an embodiment of the present application;

FIG. 8 is a diagram illustrating an apparatus for processing information in a game according to an embodiment of the present disclosure;

fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

Detailed Description

In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.

In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.

It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.

FIG. 1 is a first flowchart illustrating a method for processing information in a game according to an embodiment of the present disclosure; the execution subject of the method can be a terminal, a server, a computer and other equipment. As shown in fig. 1, the method may include:

s101, responding to an information viewing instruction of a player, and displaying a second game interface with a first transparency on a preset area of a first game interface, wherein the first game interface is used for displaying a virtual character controlled by the player and a game scene where the virtual character is located, and the second game interface is used for providing information corresponding to the information viewing instruction.

Optionally, a first game interface may be displayed on a graphical user interface of the terminal, the first game interface may display a game scene, and in response to an information viewing instruction of the player, a second game interface may be displayed on a preset area in the first game interface, where the player may input the information viewing instruction through a preset control on the first game interface, or may also input the information viewing instruction through a physical button on the terminal, such as a sound key, or may also input the information viewing instruction through voice input, such as a voice control manner.

The input information viewing instruction can be used for instructing to display a second game interface on the first game interface, wherein the second game interface can be a chat interface, a game map, a game equipment purchasing interface, a game setting page and the like, and the information displayed on the second game interface corresponds to the information viewing instruction.

In some embodiments, the second game interface may be displayed at a first transparency, where the first transparency may be the same transparency as the first game interface.

And S102, responding to a first sliding operation of a player on a second game interface, displaying the second game interface with a second transparency and controlling the virtual character to execute an action corresponding to the first sliding operation, wherein the starting point of the first sliding operation is positioned in the target area of the second game interface.

Optionally, the player may input a first sliding operation on the second game interface, where the first sliding operation may be a touch operation or a hover operation, and when the first sliding operation is a touch operation, the first sliding operation may be input by a finger of the player or a stylus, and a starting point of the input may be located at any position within the second game interface. When the floating operation is performed, the input starting point can be positioned right above the second game interface and does not exceed the boundary of the second game interface.

In some embodiments, based on the first sliding operation input by the player, the second game interface can be displayed with a second transparency, wherein the second transparency can be distinguished from the first transparency, so that the second game interface can be displayed differently from the first game interface, thereby facilitating the player to perform operations in the game interface more clearly and conveniently.

Optionally, based on the input first sliding operation, an action corresponding to the first sliding operation may be performed, thereby implementing a corresponding function. The first sliding operation and the corresponding action thereof can be configured in advance in game development, and different input operations can be set according to requirements to execute different actions.

And for other operations, such as clicking operation, pressing operation and the like, which are input on the second game interface by the player and are not the first sliding operation, the conventional operation of the second game interface, such as replying information in the chat interface, marking the position in the map, replacing the purchase of equipment, changing the setting of the game interface and the like, can be correspondingly executed.

In addition, the player can also control the virtual character to execute a corresponding game task in the first game interface through the game scene displayed in the first game interface and the corresponding game space. Operations in the first game interface do not affect the display of the second game interface at all.

To sum up, the method for processing information in a game provided by this embodiment includes: responding to an information viewing instruction of a player, displaying a second game interface with first transparency on a preset area of the first game interface, wherein the first game interface is used for displaying a virtual character controlled by the player and a game scene where the virtual character is located, and the second game interface is used for providing information corresponding to the information viewing instruction; in response to a first sliding operation of a player on a second game interface, the second game interface is displayed with a second transparency and the virtual character is controlled to execute an action corresponding to the first sliding operation, wherein a starting point of the first sliding operation is located in a target area of the second game interface. In the method, based on the information viewing instruction of the player, a second game interface corresponding to the instruction can be displayed in the first game interface showing the game scene, and the action corresponding to the sliding operation can be executed in response to the sliding operation in the second game interface. By displaying the second game interface in the first game interface, the virtual character is controlled in the first game interface to execute the game, and simultaneously, the action corresponding to the sliding operation can be executed in the second game interface, so that the game operation in the first game interface can not interfere with the operation in the second game interface, the parallel capability of the game operation can be improved, and the game experience can be improved.

Optionally, the action corresponding to the first sliding operation includes: the virtual character controls the operation.

In some embodiments, the action corresponding to the first sliding operation may be a virtual character control operation, and the virtual character is a game object controlled by the player in the game. Generally, the control operation of the virtual character by the player in the game can be realized by the game control arranged on the game interface, however, in some cases, the game control can be blocked, and when the game control is blocked, the operation of the player can be affected, and optionally, the virtual character control operation can be executed based on the first sliding operation in the second game interface so as to ensure the uninterrupted execution of the game of the player. Of course, in the case that the original game control is not occluded, the virtual character control operation can also be executed through the first sliding operation in the second game interface, so as to bring different game experiences to the player.

Optionally, if the second game interface covers the virtual character movement operation control in the first game interface, the action corresponding to the first sliding operation includes controlling the virtual character to move.

Generally, the virtual character movement operation control in the first game interface is usually arranged in the left half part of the interface, and when the displayed second game interface covers the operation control for controlling the virtual character movement in the first game interface, that is, the second game interface is displayed in the left half screen of the first game interface, at this time, the action corresponding to the first sliding operation may be to control the virtual character movement.

Fig. 2 is a schematic diagram of a graphical user interface provided in an embodiment of the present application, and as shown in fig. 2, the left half of the first game interface is provided with a character movement control, and may also include some control panels, or skill release controls, and the like. In this embodiment, when the second game interface is displayed on the left half portion of the first game interface, the character movement control in the first game interface may be blocked, and in this case, the player may input the first sliding operation in the displayed second game interface, and may perform movement adjustment on the current position of the virtual character according to a relative position relationship between the first sliding operation and a movement distance of the virtual character, which is configured in advance.

If the first sliding operation is configured to slide horizontally to the right, the corresponding virtual character moves to the right side of the game scene, if the first sliding operation is configured to slide horizontally to the left, the corresponding virtual character moves to the left side of the game scene, if the first sliding operation is configured to slide vertically upwards, the corresponding virtual character moves to the front side of the game scene, and if the first sliding operation is configured to slide vertically downwards, the corresponding virtual character moves to the rear side of the game scene. Meanwhile, the actual moving distance of the virtual character in the game scene can be controlled according to the mapping relation between the distance of the first sliding operation and the moving distance of the virtual character, so that the moving control of the virtual character is realized.

If the second game interface covers the virtual character view adjusting control in the first game interface, the action corresponding to the first sliding operation comprises adjusting the virtual character view.

The control for adjusting the view of the virtual character in the first game interface is usually disposed in the right half of the interface, and when the displayed second game interface covers the control for controlling the adjustment of the view of the virtual character in the first game interface, that is, the second game interface is displayed in the right half of the first game interface, at this time, the action corresponding to the first sliding operation may be to adjust the view of the virtual character, and preferably, the direction of the virtual character may be changed while the view of the virtual character is adjusted.

Certainly, the above is only an example, and in practical applications, no matter whether the second game interface covers the operation control of the virtual character in the first game interface, the virtual character control operation may also be executed by inputting the first sliding operation in the second game interface, so as to provide more virtual character control modes for the player, and facilitate the flexible game of the player.

Fig. 3 is a schematic diagram of another graphical user interface provided in the embodiment of the present application, and optionally, in step S102, in response to a first sliding operation of a player on a second game interface, displaying the second game interface with a second transparency and controlling a virtual character to perform an action corresponding to the first sliding operation, the method may include: and executing the virtual character control operation in response to the sliding operation of the player in the first preset direction in the target area on the second game interface.

As shown in fig. 3, a second game interface may be displayed in the first game interface on the graphical user interface, and optionally, the second game interface may overlap with the first game interface, that is, the second game interface is included in the first game interface, and the second game interface is overlaid on the first game interface. Of course, the coverage here is only a representation of a level relationship, and is not a physical coverage, but a coverage between levels of different scenes of the game.

As shown in fig. 3, the first predetermined direction may be a horizontal direction or a vertical direction as shown by arrows in the figure, and of course, the setting of the horizontal direction or the vertical direction is only for easy recognition, and in practical applications, the first predetermined direction may not be a horizontal direction or a vertical direction with great precision, and a certain error may be allowed.

The starting point of the first sliding operation can be located in a target area on the second game interface, and the target area can be a range with a certain distance from the boundary of the second game interface, so that misoperation at the boundary is avoided, and the first sliding operation can be accurately identified. The region within the dashed box shown in fig. 3 is the target region.

FIG. 4 is a second flowchart illustrating a method for processing information in a game according to an embodiment of the present disclosure;

fig. 5 is a schematic diagram of another graphical user interface provided in an embodiment of the present application. Optionally, in the foregoing step, in response to a sliding operation of the player in the first preset direction in the target area on the second game interface, executing a virtual character control operation may include:

s301, responding to sliding operation of a player in a first direction in a first preset direction in the target area, and adjusting the current visual angle of the virtual character, wherein the first direction is in a first preset angle range.

Assuming that the first predetermined direction is a horizontal direction, the first orientation may be left or right, and assuming that the first predetermined direction is a vertical direction, the first orientation may be up or down.

In this embodiment, taking the first preset direction shown in fig. 5 as a horizontal direction as an example, the current angle of view of the virtual character may be adjusted in response to a sliding operation of the player in the first direction input in the first preset direction, where the sliding operation may be a finger sliding, that is, in a case where the finger does not leave the screen, the sliding operation is performed in the first direction with an arbitrary point in the target area on the second game interface as a starting point, so as to adjust the angle of view of the virtual character from the current angle of view to the target angle of view.

In an implementation manner, the current angle of view of the virtual character may be adjusted to the preset direction under the sliding operation in the first direction according to the mapping relationship between the angle of view adjustment direction of the virtual character and the sliding direction, and the current angle of view of the virtual character may be adjusted to the preset direction by the preset angle according to the sliding distance of the sliding operation and the size of the angle of view adjustment range. As shown in fig. 5, it may be assumed in the present embodiment that the first orientation is toward the right, and the sliding operation in the corresponding first orientation is used to adjust the current perspective of the virtual character toward the right side of the game scene.

S302, responding to sliding operation of a player in a second direction opposite to the first direction in the first preset direction in the target area, and adjusting the current visual angle of the virtual character, wherein the second direction is in a second preset angle range, and the first preset angle range and the second preset angle range are arranged in a mirror image mode.

In contrast to the above, when the first orientation in the first preset direction is to adjust the current perspective of the virtual character to the right side of the game scene, then, based on the sliding operation of the player in the second orientation in the first preset direction, the current perspective of the virtual character may be adjusted to the opposite direction, that is, to the left side of the game scene, and the specific adjustment manner is the same as that described above.

Optionally, after a leftward or rightward sliding operation input by a target point in the target area on the second game interface is performed, the virtual character view angle adjustment mode may be triggered to enter, and on the premise that the finger does not leave the screen, when an upward or downward sliding operation is continuously input, the upward or downward viewing angle of the virtual character may be adjusted.

Optionally, the first orientation is within a first preset role range, and the second orientation is within a second preset role range.

As shown in fig. 5, an angle range may be correspondingly set for the second game interface, and when the first orientation of the player in the first preset direction falls within the first preset angle range in the drawing, the sliding operation of the first orientation may be considered as being input by the player, so that the first orientation is prevented from being limited to be higher than right, that is, the implementation range of the sliding operation of the first orientation may be expanded, and the usability of the second game interface may be improved.

Accordingly, when the second orientation of the player in the first preset direction falls within the second preset angle range in the figure, the player can be considered to input the sliding operation in the second orientation. It can be seen that the first preset role range and the second preset angle range are arranged in a mirror image manner.

Optionally, the method of the present application may further include: in response to a second sliding operation of the player on the second game interface, the second game interface is displayed with the first transparency and an action corresponding to the second sliding operation is executed, wherein the starting point of the second sliding operation is located in the target area of the second game interface.

In some embodiments, in addition to the virtual character control operation performed through the first sliding operation in the second game interface, in this embodiment, an action corresponding to the second sliding operation may be performed through the second sliding operation. Similarly to the first sliding operation, the starting point of the second sliding operation is also a target area in the second game interface, and may be any point in the target area.

And when responding to the second sliding operation, displaying the second game interface with the first transparency, wherein the first transparency can be the same as or smaller than that of the first game interface, so as to highlight the second game interface.

Optionally, the second game interface may include a chat interface, and the action corresponding to the second sliding operation includes: and (5) chatting and checking operation.

Generally, a player needs to communicate with other players through chatting in the game process, and game fun is improved. In this embodiment, the second game interface may be a chat interface, that is, in response to the information viewing instruction of the player, the game chat interface may be opened in the first game interface, and in response to the second sliding operation of the player, the chat content in the chat interface may be viewed, and meanwhile, the chat input may also be performed in real time.

Optionally, in the above step, in response to a second sliding operation of the player on the second game interface, displaying the second game interface with the first transparency and performing an action corresponding to the second sliding operation, may include: and responding to the sliding operation of the player in the second preset direction in the target area on the second game interface, and executing the chat viewing operation.

In contrast to the sliding operation of the player in the first preset direction on the target area on the second game interface, in this embodiment, the chat viewing operation can be performed in response to the sliding operation in the second preset direction, where the second preset direction may be a vertical direction when the first preset direction is a horizontal direction, and the second preset direction may be a horizontal direction when the first preset direction is a vertical direction. So as to effectively distinguish the control operation of the virtual role from the chat viewing operation.

FIG. 6 is a third flowchart illustrating a method for processing information in a game according to an embodiment of the present disclosure; fig. 7 is a schematic diagram of another graphical user interface provided in the embodiment of the present application. Optionally, in the above step, in response to a sliding operation of the player in a second preset direction in the target area on the second game interface, performing a chat viewing operation may include:

s501, responding to sliding operation of a player in a third direction in the second preset direction in the target area, and sequentially displaying historical chat contents by taking the current chat contents in the chat interface displayed on the second game interface as a starting point, wherein the third direction is in a third preset angle range.

As mentioned above, the first preset direction is a horizontal direction, the second preset direction may be a vertical direction, in this case, the third direction may be upward or downward, the second game interface currently displays a chat interface, and if the third direction is upward, in response to a sliding operation of the player in the vertical direction, the chat content in the chat interface displayed in the current second game interface may be scrolled upward, that is, the currently displayed chat content is used as a starting point, and the history chat content is sequentially scrolled and displayed, that is, the history chat record is viewed.

S502, responding to sliding operation of a player in a fourth direction opposite to the third direction in the second preset direction in the target area, and sequentially displaying the historical chat content on the chat interface to the current chat content; the fourth orientation is within a fourth preset angle range, and the third preset angle range and the fourth preset angle range are arranged in a mirror image mode.

Conversely, the third orientation is upward, and the fourth orientation is downward. In response to the sliding operation along the fourth direction in the second preset direction, the viewed historical chat content can be scrolled back to the current latest chat content, so that the viewing of the chat content at any time is realized through the second sliding operation.

Of course, after the chat interface is displayed in response to the information viewing instruction of the player, the second sliding operation may not be executed, and the chat operation may be executed in response to the information input operation of the player in the information input box of the chat interface, so as to implement the real-time chat function of the player.

Similarly to fig. 5, the second game interface in fig. 7 may also be provided with an angle range, and when the third orientation of the player in the second preset direction falls within the third preset angle range in the figure, the player may be considered to input the sliding operation in the third orientation.

Accordingly, when the fourth orientation of the player in the second preset direction falls within the fourth preset angle range in the figure, the player can be considered to input the sliding operation in the fourth orientation. It can be seen that the third preset role range and the fourth preset angle range are arranged in a mirror image manner.

Optionally, the second transparency is greater than the first transparency.

It should be noted that the greater the transparency, that is, the more transparent, when the virtual character control operation is executed on the second game interface, the greater the transparency of the second game interface can be set, that is, the greater the second transparency is set, the content of the second game interface does not need to be clearly displayed, and the virtual character can be controlled.

When the chat viewing operation is executed on the second game interface, the transparency of the second game interface needs to be set to be smaller, that is, the first transparency is set to be smaller, so that the chat interface in the second game interface can be clearly displayed, and a player can clearly view chat contents.

Of course, the transparency of the second game interface may remain unchanged at all times, may be displayed at the same transparency as the first game interface at all times, or may be displayed at a different transparency from the first game interface.

Optionally, in the above steps, after responding to a first sliding operation of the player on the second game interface, displaying the second game interface with a second transparency and controlling the virtual character to perform an action corresponding to the first sliding operation, the method of the present application may further include: and responding to the ending operation of the first sliding operation, and controlling the second game interface to be switched from the second transparency to the first transparency.

In some embodiments, when the first sliding operation, that is, the virtual character control operation, is performed in the second game interface, the second game interface is displayed with a greater transparency, that is, a second transparency, and after the first sliding operation is finished, that is, the virtual character control operation is finished, the second game interface may be switched from the second transparency to the first transparency to recover the normal display of the second game interface, so that a player can clearly distinguish the currently performed operation, and game experience is improved.

In summary, the method for processing information in a game provided by this embodiment includes: responding to an information viewing instruction of a player, displaying a second game interface with first transparency on a preset area of the first game interface, wherein the first game interface is used for displaying a virtual character controlled by the player and a game scene where the virtual character is located, and the second game interface is used for providing information corresponding to the information viewing instruction; in response to a first sliding operation of a player on a second game interface, the second game interface is displayed with a second transparency and the virtual character is controlled to execute an action corresponding to the first sliding operation, wherein a starting point of the first sliding operation is located in a target area of the second game interface. In the method, based on the information viewing instruction of the player, a second game interface corresponding to the instruction can be displayed in the first game interface showing the game scene, and the action corresponding to the sliding operation can be executed in response to the sliding operation in the second game interface. By displaying the second game interface in the first game interface, the virtual character is controlled in the first game interface to execute the game, and simultaneously, the action corresponding to the sliding operation can be executed in the second game interface, so that the game operation in the first game interface can not interfere with the operation in the second game interface, the parallel capability of the game operation can be improved, and the game experience can be improved.

The following describes an apparatus, an electronic device, a storage medium, and the like for executing the method for processing information in a game provided by the present application, and specific implementation processes and technical effects thereof are referred to above, and are not described again below.

Fig. 8 is a schematic diagram of an in-game information processing apparatus according to an embodiment of the present application, where functions implemented by the in-game information processing apparatus correspond to steps executed by the foregoing method. The apparatus may be understood as the above terminal or server, or the processor of the server, or may be understood as a component which is independent of the above server or processor and implements the functions of the present application under the control of the server, as shown in fig. 8, the apparatus may include: a display module 710, an execution module 720;

the display module 710 is configured to, in response to an information viewing instruction of a player, display a second game interface with a first transparency on a preset area of the first game interface, where the first game interface is configured to display a virtual character controlled by the player and a game scene in which the virtual character is located, and the second game interface is configured to provide information corresponding to the information viewing instruction;

and the executing module 720 is configured to, in response to a first sliding operation of the player on the second game interface, display the second game interface with a second transparency and control the virtual character to execute an action corresponding to the first sliding operation, where a starting point of the first sliding operation is located in a target area of the second game interface.

Optionally, the action corresponding to the first sliding operation includes: the virtual character controls the operation.

Optionally, if the second game interface covers the virtual character movement operation control in the first game interface, the action corresponding to the first sliding operation includes controlling the virtual character to move;

if the second game interface covers the virtual character view adjusting control in the first game interface, the action corresponding to the first sliding operation comprises adjusting the virtual character view.

Optionally, the executing module 720 is specifically configured to execute the virtual character control operation in response to a sliding operation of the player in the target area on the second game interface along the first preset direction.

Optionally, the executing module 720 is specifically configured to adjust the current angle of view of the virtual character in response to a sliding operation of the player in a first direction in a first preset direction in the target area, where the first direction is within a first preset angle range;

and adjusting the current visual angle of the virtual character in response to the sliding operation of the player in a second orientation opposite to the first orientation in the first preset direction in the target area, wherein the second orientation is in a second preset angle range, and the first preset angle range and the second preset angle range are arranged in a mirror image mode.

Optionally, the executing module 720 is further configured to, in response to a second sliding operation of the player on the second game interface, display the second game interface with the first transparency and execute an action corresponding to the second sliding operation, where a starting point of the second sliding operation is located in a target area of the second game interface.

Optionally, the second game interface includes a chat interface, and the action corresponding to the second sliding operation includes: and (5) chatting and checking operation.

Optionally, the executing module 720 is specifically configured to execute a chat viewing operation in response to a sliding operation of the player in a second preset direction in the target area on the second game interface.

Optionally, the executing module 720 is specifically configured to, in response to a sliding operation of the player in a third direction in the second preset direction in the target area, sequentially display the historical chat contents starting from the current chat content in the chat interface displayed on the second game interface, where the third direction is within a third preset angle range;

responding to sliding operation of the player in a fourth direction opposite to the third direction in the second preset direction in the target area, and sequentially displaying the historical chat contents to the current chat contents on the chat interface; the fourth orientation is within a fourth preset angle range, and the third preset angle range and the fourth preset angle range are arranged in a mirror image mode.

Optionally, the second game interface overlaps the first game interface, and the second game interface is overlaid on the first game interface.

Optionally, the second transparency is greater than the first transparency.

Optionally, the apparatus may further comprise: a switching module;

and the switching module is used for responding to the ending operation of the first sliding operation and controlling the second game interface to be switched from the second transparency to the first transparency.

The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.

These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

The modules may be connected or in communication with each other via a wired or wireless connection. The wired connection may include a metal cable, an optical cable, a hybrid cable, etc., or any combination thereof. The wireless connection may comprise a connection over a LAN, WAN, bluetooth, ZigBee, NFC, or the like, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application.

It should be noted that the above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, the modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).

Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device may include: a processor 801 and a memory 802.

The memory 802 is used for storing programs, and the processor 801 calls the programs stored in the memory 802 to execute the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.

Wherein the memory 802 stores program code that, when executed by the processor 801, causes the processor 801 to perform various steps in methods according to various exemplary embodiments of the present application described in the "exemplary methods" section above in this description.

The Processor 801 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware components, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.

Memory 802, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charged Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 802 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.

Optionally, the present application also provides a program product, such as a computer readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:实况直播的游戏装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类