Disclosure of Invention
The embodiment of the application provides a game function interface control method, a game function interface control device, electronic equipment and a game function interface control medium, so that the game function interface can be displayed quickly in the game process.
In a first aspect, an embodiment of the present application provides a game function interface control method, including:
determining current gesture track information of a preset trigger area acting on a terminal display screen in the terminal game process;
displaying a matched game function interface on the terminal display screen by identifying and analyzing the current gesture track information; wherein different gesture track information generates control signals of different game functions.
Optionally, a gesture point array is deployed in the preset trigger area, and the gesture point array includes gesture points for triggering selection to form a gesture track.
Optionally, determining current gesture trajectory information acting on a preset trigger area on a terminal display screen includes:
determining at least two trigger gesture points which are continuously triggered and selected from a starting trigger gesture point to an ending trigger gesture point in a preset trigger area and a directional connection relation between the at least two trigger gesture points; the at least two trigger gesture points at least comprise a gesture point when the trigger is started and a gesture point when the trigger is finished;
and generating current gesture track information acting on a preset trigger area on a terminal display screen according to at least two trigger gesture points selected by continuous triggering and the directional connection relation between the at least two trigger gesture points.
Optionally, before determining current gesture trajectory information acting on a preset trigger area on a display screen of the terminal, the method further includes:
responding to a game function display request event of a user, and displaying a pre-configured gesture point array in a preset trigger area on a terminal display screen; the gesture dot matrix is an input window with preset transparency.
Optionally, by performing recognition analysis on the current gesture track information, displaying a matched game function interface on the terminal display screen, including:
matching the current gesture track information with a gesture track information set stored in a pre-configuration mode; one piece of gesture track information in the preset and stored gesture track information set is associated with a unique game function;
and if the current gesture track information is matched in the preset and stored gesture track information set, displaying a game function interface associated with the matched gesture track information on the terminal display screen.
In a second aspect, an embodiment of the present application further provides a game function interface control device, including:
the gesture track determining module is used for determining current gesture track information acting on a preset trigger area on a terminal display screen in the terminal game process;
the game function display module is used for displaying a matched game function interface on the terminal display screen by identifying and analyzing the current gesture track information; wherein different gesture track information generates control signals of different game functions.
Optionally, a gesture point array is deployed in the preset trigger area, and the gesture point array includes gesture points for triggering selection to form a gesture track.
The gesture track determination module may include:
determining at least two trigger gesture points which are continuously triggered and selected from a starting trigger gesture point to an ending trigger gesture point in a preset trigger area and a directional connection relation between the at least two trigger gesture points; the at least two trigger gesture points at least comprise a gesture point when the trigger is started and a gesture point when the trigger is finished;
and generating current gesture track information acting on a preset trigger area on a terminal display screen according to at least two trigger gesture points selected by continuous triggering and the directional connection relation between the at least two trigger gesture points.
Optionally, the apparatus further comprises:
before current gesture track information acting on a preset trigger area on a terminal display screen is determined, responding to a game function display request event of a user, and displaying a preset gesture point array in the preset trigger area on the terminal display screen; the gesture dot matrix is an input window with preset transparency.
Optionally, the game function display module includes:
matching the current gesture track information with a gesture track information set stored in a pre-configuration mode; one piece of gesture track information in the preset and stored gesture track information set is associated with a unique game function;
and if the current gesture track information is matched in the preset and stored gesture track information set, displaying a game function interface associated with the matched gesture track information on the terminal display screen.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a game function interface control method as provided in any of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a game function interface control method as provided in any of the embodiments of the present application.
The embodiment of the application provides a game function interface control method, which comprises the steps of determining current gesture track information acting on a preset trigger area on a terminal display screen in the terminal game process, and displaying a matched game function interface on the terminal display screen by identifying and analyzing the current gesture track information; wherein different gesture track information generates control signals of different game functions. By adopting the scheme, in the terminal game process, the game player does not need to spend too much time to select the proper function buttons and other complex operations from various game function buttons, and only needs to switch and display the function interface through a simple gesture track without using a physical shortcut key or a shortcut control, so that the game function interface is more convenient to use, more time is saved for the game player, and the game experience of the game player is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented in accordance with the content of the description so as to make the technical means of the present application more clearly understood, and the detailed description of the present application will be given below in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations (or steps) can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a game function interface control method provided in an embodiment of the present application. The method and the device for displaying the game function interface are applicable to the situation that the game player performs game function interface display in the game process. The method can be executed by a game function interface control device, the device can be realized by adopting a software and/or hardware mode, and the device can be configured in electronic equipment with a network communication function, such as terminal equipment provided with a game function interface switching game application. As shown in fig. 1, the game function interface control method provided in the embodiment of the present application may include the following steps:
s110, in the terminal game process, determining current gesture track information of a preset trigger area acting on a terminal display screen.
The existing game interfaces are various in levels and the number of game functions and buttons are various, if a game player wants to open an interface of a specified game function, the game function interface can be displayed by selecting a proper control from a plurality of controls and then performing punishment operations such as clicking, pressing and dragging on the control, so that a lot of precious game time is wasted, the game experience of the game player is influenced, and the service life of a game is influenced. Therefore, a preset trigger area can be configured in advance for the terminal display screen, in the terminal game process, a game player can input a corresponding gesture track in the preset trigger area according to the game function requirement of the game player, and the preset trigger area on the terminal display screen can acquire the current gesture track information acting on the preset trigger area.
As an alternative, the preset trigger area may be a gesture sliding area, and a game player may perform gesture touch sliding operation at any position in the gesture sliding area during a game process, so that gesture track information formed at any position in the preset trigger area may be obtained, and at this time, a gesture track acting on the preset trigger area forms a continuous irregular or regular gesture track line.
By adopting the optional mode, the game player can input the gesture tracks in any form, so that enough gesture tracks can be ensured to be matched with different game functions.
As another alternative, referring to fig. 2, a gesture point array is disposed in the preset trigger area, a gesture point array for inputting and forming a gesture track is disposed in the preset trigger area, and the gesture point array includes a gesture point for triggering selection to form the gesture track. In the game process, a game player can perform gesture touch sliding operation on each gesture point of the gesture point array, so that gesture track information formed by acting on each gesture point in the preset trigger area can be acquired, and at the moment, a regular gesture track line formed by a plurality of gesture points is formed by acting on the gesture track in the preset trigger area.
By adopting the optional mode, the game player can input regular gesture tracks formed by a plurality of gesture points in the limited gesture point array, so that more types of gesture track lines can be matched with different game functions, and meanwhile, the gesture tracks are regulated through the gesture points, so that the situation that the gesture track lines formed at any position are similar to each other to cause misjudgment to be the same, and the game function matching error is caused is avoided.
In an alternative of this embodiment, determining the current gesture trajectory information acting on the preset trigger area on the terminal display screen may include steps a1-a 2:
step A1, determining at least two trigger gesture points which are continuously triggered and selected from a starting trigger gesture point to an ending trigger gesture point in a preset trigger area of a terminal display screen at present and a directional connection relation between the at least two trigger gesture points.
The at least two trigger gesture points at least comprise a gesture point when the trigger is started and a gesture point when the trigger is finished.
Referring to fig. 2 and 3, when the user performs touch sliding in the preset trigger area of the terminal display screen, a plurality of gesture points of the gesture point array continuously applied to the preset trigger area during the touch sliding operation performed by the user may be recorded, for example, a plurality of trigger gesture points between a first gesture point at which touch triggering is started and a last gesture point at which touch triggering is ended may be determined. Optionally, when a preset trigger area of the terminal display screen senses that a gesture point in the gesture point array is triggered by a trigger pressure, indicating that the execution of the gesture point trigger operation in the preset trigger area is started; when the trigger pressure in the trigger gesture point array leaves the preset trigger area for more than the preset time, the gesture point trigger operation executed in the preset trigger area is indicated to be finished.
Referring to fig. 3, when the preset trigger area continuously triggers the gesture point, the plurality of continuously triggered trigger gesture points at least include a gesture point when the trigger slide starts and a gesture point when the trigger slide ends. In addition to the gesture point when the sliding is triggered at the beginning and the gesture point when the sliding is triggered at the end, at least two trigger gesture points which are continuously triggered and selected from the gesture point when the sliding is triggered at the beginning to the gesture point when the sliding is triggered at the end can also comprise an intermediate trigger gesture point involved in a sliding track formed by the trigger gesture points.
And step A2, generating current gesture track information acting on a preset trigger area on a terminal display screen according to at least two trigger gesture points selected by continuous triggering and the directional connection relation between the at least two trigger gesture points.
Referring to fig. 3, different gesture point identifiers are preconfigured in each gesture point in the gesture point array of the preset trigger area, so that when a gesture track is formed by a plurality of continuously triggered gesture points, the gesture point trigger sequence needs to be considered, so that a directed connection relationship between the plurality of continuously triggered gesture points is formed. For example, 9 gesture points may be set in a pre-created gesture point array, which are sequentially named as 1, 2.
Optionally, in the process of determining each trigger gesture point selected by continuous trigger, a linerender line renderer may be used to perform real-time line drawing on each trigger gesture point selected by continuous trigger based on a directional connection relationship between each trigger gesture point selected by trigger, so as to form a gesture trajectory line connected end to end on the gesture dot array based on each trigger gesture point. When drawing a gesture trajectory line, setting the z-axis of the trigger gesture point corresponding to the starting position and the z-axis of the trigger gesture point of the ending position to be 0. Optionally, after the current gesture trajectory line is drawn, corresponding gesture trajectory information may be formed based on the drawn gesture drawing line, and meanwhile, a line segment of the gesture trajectory line formed by using the linerender line renderer may be cleared.
In an alternative of this embodiment, before determining the current gesture trajectory information acting on the preset trigger area on the terminal display screen, the method may further include the following steps:
responding to a game function display request event of a user, and displaying a pre-configured gesture point array in a preset trigger area on a terminal display screen; the gesture dot matrix is an input window with preset transparency.
In the terminal game process, a skill is triggered to perform game control operation by performing touch operation on a terminal screen, and if a gesture point array in a preset trigger area is continuously displayed and does not disappear, misoperation is likely to occur during skill selection. Therefore, the configurable gesture point array is dynamically displayed in the preset trigger area, the displayed gesture point array is hidden after the preset time is continued, and the pre-configured gesture point array is displayed in the preset trigger area on the terminal display screen after a game function display request event of the user is received again.
Referring to fig. 3, after displaying the gesture point array, detecting whether a gesture point trigger operation exists in a preset trigger area on a terminal display screen within a preset time period. And if not, hiding the displayed gesture point array, otherwise, continuously displaying the gesture array, and entering a next detection stage to continuously detect whether the gesture point triggering operation exists in a preset triggering area on a terminal display screen in a preset time period. Optionally, the gesture point array in the preset trigger area on the terminal display screen performs floating display according to a preset transparency, where the preset transparency may be a transparent or semi-transparent state.
By adopting the alternative scheme, the situation that the gesture point array is always displayed on the terminal display screen to influence the triggering of game skills in the game process and the gesture points are easily triggered by mistake in the game process can be avoided.
S120, displaying a matched game function interface on a terminal display screen by identifying and analyzing the current gesture track information; wherein different gesture track information generates control signals of different game functions.
In an alternative of this embodiment, displaying a matching game function interface on the terminal display screen by performing recognition analysis on the current gesture track information may include steps B1-B2:
step B1, matching the current gesture track information with a gesture track information set stored in a pre-configuration mode; one piece of gesture track information in the preset and stored gesture track information set is associated with a unique game function.
And step B2, if the current gesture track information is matched in the preset and stored gesture track information set, displaying a game function interface associated with the matched gesture track information on a terminal display screen.
Referring to fig. 2 and fig. 3, a gesture track recognition and definition shortcut interface mechanism is preset, and before starting a function interface using a gesture track, a gesture track corresponding to each game function interface may be drawn and formed in a gesture dot array in advance, and each gesture track input in advance and a game function associated with each gesture track are stored in advance. When a game function interface needs to be started, matching query is carried out by inputting corresponding gesture track information and pre-configuring a stored gesture track information set. If the current gesture track information is inquired in the preset and stored gesture track information set, the game function interface related to the inquired gesture track information is loaded and displayed on the terminal display screen, the game function interface can be opened by inputting the appointed gesture in the game process only by storing the simple gesture and the game function interface in one-to-one correspondence, the game function interface is started without selecting a button control, and the time cost of a player is saved.
Fig. 4 is a block diagram of a game function interface control device provided in an embodiment of the present application. The method and the device for displaying the game function interface are applicable to the situation that the game player performs game function interface display in the game process. The device can be implemented in software and/or hardware, and can be configured in an electronic device with a network communication function, for example, a terminal device that needs game function interface switching. As shown in fig. 4, the game function interface control device provided in the embodiment of the present application may include a gesture trajectory determination module 410 and a game function display module 420. Wherein:
and a gesture track determining module 410, configured to determine current gesture track information acting on a preset trigger area on a terminal display screen during a terminal game.
A game function display module 420, configured to display a matching game function interface on the terminal display screen by performing recognition analysis on the current gesture trajectory information; wherein different gesture track information generates control signals of different game functions.
On the basis of the foregoing embodiment, optionally, a gesture point array is deployed in the preset trigger area, where the gesture point array includes gesture points for triggering selection to form a gesture track.
On the basis of the foregoing embodiment, optionally, determining current gesture trajectory information acting on a preset trigger area on a terminal display screen includes:
determining at least two trigger gesture points which are continuously triggered and selected from a starting trigger gesture point to an ending trigger gesture point in a preset trigger area and a directional connection relation between the at least two trigger gesture points; the at least two trigger gesture points at least comprise a gesture point when the trigger is started and a gesture point when the trigger is finished;
and generating current gesture track information acting on a preset trigger area on a terminal display screen according to at least two trigger gesture points selected by continuous triggering and the directional connection relation between the at least two trigger gesture points.
On the basis of the foregoing embodiment, optionally, before determining current gesture trajectory information acting on a preset trigger area on a display screen of the terminal, the apparatus further includes:
responding to a game function display request event of a user, and displaying a pre-configured gesture point array in a preset trigger area on a terminal display screen; the gesture dot matrix is an input window with preset transparency.
On the basis of the foregoing embodiment, optionally, by performing recognition analysis on the current gesture trajectory information, displaying a matching game function interface on the terminal display screen, includes:
matching the current gesture track information with a gesture track information set stored in a pre-configuration mode; one piece of gesture track information in the preset and stored gesture track information set is associated with a unique game function;
and if the current gesture track information is matched in the preset and stored gesture track information set, displaying a game function interface associated with the matched gesture track information on the terminal display screen.
The game function interface control device provided in the embodiments of the present application may execute the game function interface control method provided in any embodiments of the present application, and has corresponding functions and advantages for executing the game function interface control method.
Fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As shown in fig. 5, the electronic device provided in the embodiment of the present application includes: one or more processors 510 and storage 520; the processor 510 in the electronic device may be one or more, and fig. 5 illustrates one processor 510 as an example; storage 520 is used to store one or more programs; the one or more programs are executed by the one or more processors 510, such that the one or more processors 510 implement the game function interface control method as described in any of the embodiments of the present application.
The electronic device may further include: an input device 530 and an output device 540.
The processor 510, the storage device 520, the input device 530 and the output device 540 in the electronic apparatus may be connected by a bus or other means, and fig. 5 illustrates an example of connection by a bus.
The storage device 520 in the electronic device is used as a computer-readable storage medium, and can be used to store one or more programs, which may be software programs, computer-executable programs, and modules, and the program instruction/module processor 510 corresponding to the game function interface control method provided in the embodiment of the present application executes various function applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the storage device 520, so as to implement the game function interface control method in the above-described method embodiment.
The storage device 520 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the storage 520 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 520 may further include memory located remotely from the processor 510, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 540 may include a display device such as a display screen.
And, when the one or more programs included in the electronic device are executed by the one or more processors 510, the programs perform the following operations:
determining current gesture track information of a preset trigger area acting on a terminal display screen in the terminal game process;
displaying a matched game function interface on the terminal display screen by identifying and analyzing the current gesture track information; wherein different gesture track information generates control signals of different game functions.
Of course, it can be understood by those skilled in the art that when one or more programs included in the electronic device are executed by the one or more processors 510, the programs may also perform related operations in the game function interface control method provided in any embodiment of the present application.
One embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program for executing a game function interface control method when executed by a processor, the method comprising:
determining current gesture track information of a preset trigger area acting on a terminal display screen in the terminal game process;
displaying a matched game function interface on the terminal display screen by identifying and analyzing the current gesture track information; wherein different gesture track information generates control signals of different game functions.
Optionally, the program may be further configured to perform a game function interface control method provided in any embodiment of the present application when executed by the processor.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. A computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.