CN113941143A - Virtual card processing method, nonvolatile storage medium and electronic device - Google Patents

Virtual card processing method, nonvolatile storage medium and electronic device Download PDF

Info

Publication number
CN113941143A
CN113941143A CN202111183673.1A CN202111183673A CN113941143A CN 113941143 A CN113941143 A CN 113941143A CN 202111183673 A CN202111183673 A CN 202111183673A CN 113941143 A CN113941143 A CN 113941143A
Authority
CN
China
Prior art keywords
virtual
target
virtual card
touch operation
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111183673.1A
Other languages
Chinese (zh)
Inventor
张炫宜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202111183673.1A priority Critical patent/CN113941143A/en
Publication of CN113941143A publication Critical patent/CN113941143A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8029Fighting without shooting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a virtual card processing method, a nonvolatile storage medium and an electronic device. The method comprises the following steps: responding to a first touch operation executed on a first touch area, and determining a target virtual card, wherein the first touch area is used for providing a plurality of virtual cards to be selected; responding to a second touch operation executed on the target virtual card, and controlling the target virtual card to move according to the second touch operation; responding to the fact that the target virtual cards move out of the first touch area, and generating a virtual rocker on a graphical user interface, wherein the virtual rocker is used for controlling and releasing target skills corresponding to the target virtual cards in a game scene; responding to a third touch operation executed on the virtual rocker, and determining a release position of the target skill; releasing the target skill at the release location. The invention solves the technical problems of complicated touch operation and poor game operation experience of card releasing skill in the card games provided by the related technology.

Description

Virtual card processing method, nonvolatile storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a virtual card processing method, a nonvolatile storage medium and an electronic device.
Background
Currently, in the card games provided in the related art, the interaction operation of the virtual cards is usually to drag the virtual cards directly to the game scene, and release the card skills in the form of indicators. Fig. 1 is a diagram illustrating a skill of releasing a card in a card game according to the related art, in which three virtual cards, card 1, card 2, and card 3, exist in a virtual card preparation area as shown in fig. 1, and a game player selects card 1 as a card to be released from among card 1, card 2, and card 3. Then, the game player drags the card 1 to the game scene directly, and the card skill is released in a mode of an indicator. However, the obvious drawbacks of this approach are: if a game player wishes to release a virtual card at a particular location within a game scene, the game player needs to move a finger to that particular location. Therefore, when the enemy virtual character continuously appears at a position far away from the main base of the enemy, the game player needs to frequently move the finger to the position far away from the screen, and therefore touch operation is complicated, and game operation experience is poor.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
At least some embodiments of the present invention provide a virtual card processing method, a non-volatile storage medium, and an electronic device, so as to at least solve the technical problems of complicated touch operation and poor game operation experience in the card game provided in the related art.
According to an embodiment of the present invention, a virtual card processing method is provided, in which a terminal device provides a graphical user interface, and content displayed on the graphical user interface includes a first touch area, and the virtual card processing method includes:
responding to a first touch operation executed on a first touch area, and determining a target virtual card, wherein the first touch area is used for providing a plurality of virtual cards to be selected; responding to a second touch operation executed on the target virtual card, and controlling the target virtual card to move according to the second touch operation; responding to the fact that the target virtual cards move out of the first touch area, and generating a virtual rocker on a graphical user interface, wherein the virtual rocker is used for controlling and releasing target skills corresponding to the target virtual cards in a game scene; responding to a third touch operation executed on the virtual rocker, and determining a release position of the target skill; releasing the target skill at the release location.
Optionally, the generating a virtual joystick on the graphical user interface in response to the second touch operation performed on the target virtual card comprises: acquiring the current touch position of a second touch operation on the graphical user interface and the stay time of the second touch operation at the current touch position; and when the stay time exceeds the preset time, generating a virtual rocker at the current touch position.
Optionally, the virtual card processing method further includes: and generating a first indicator and a second indicator in the world space of the game scene based on the coordinate position of the virtual rocker in the screen space, wherein the first indicator is used for indicating the skill release position, and the second indicator is used for determining the movement range of the first indicator.
Optionally, determining the release position of the target skill in response to a third touch operation performed on the virtual joystick comprises: responding to a third touch operation executed on the virtual rocker, and controlling a first indicator to move along with the virtual rocker in a game scene; when the end of the third touch operation is detected, a release position is determined based on the current position of the first indicator.
Optionally, after generating a virtual joystick on the graphical user interface, the virtual card processing method further includes: and setting the rest virtual cards except the target virtual card in the plurality of virtual cards to be selected as unselectable states in the first touch area.
Optionally, after generating a virtual joystick on the graphical user interface, the virtual card processing method further includes: setting the first touch area as a skill cancellation release area; and responding to a fourth touch operation executed on the target virtual card, and moving the target virtual card into the skill releasing cancellation area to cancel releasing the target skill, wherein the fourth touch operation and the second touch operation are continuous touch operations.
Optionally, after generating a virtual joystick on the graphical user interface, the virtual card processing method further includes: configuring control parameters within a rocker setting interface, wherein the control parameters include at least one of: the size parameter of the virtual rocker, the moving-out speed of the target virtual card out of the first touch area and the generation speed of the virtual rocker.
Optionally, a rocker map of the virtual rocker displays identification information of a virtual character corresponding to the target virtual card.
According to an embodiment of the present invention, there is also provided a virtual card processing apparatus, which provides a graphical user interface through a terminal device, where content displayed on the graphical user interface includes a first touch area, the virtual card processing apparatus including:
the first determining module is used for responding to a first touch operation executed on a first touch area and determining a target virtual card, wherein the first touch area is used for providing a plurality of virtual cards to be selected; the first processing module is used for responding to a second touch operation executed on the target virtual card and controlling the target virtual card to move according to the second touch operation; the second processing module is used for responding to the fact that the target virtual cards move out of the first touch area and generating a virtual rocker on the graphical user interface, wherein the virtual rocker is used for controlling and releasing target skills corresponding to the target virtual cards in a game scene; the second determining module is used for responding to a third touch operation executed on the virtual rocker and determining the release position of the target skill; and the third processing module is used for releasing the target skill at the release position.
Optionally, the first processing module is configured to obtain a current touch position of the second touch operation on the graphical user interface and a dwell time at the current touch position; and when the stay time exceeds the preset time, generating a virtual rocker at the current touch position.
Optionally, the virtual card processing apparatus further includes: and the fourth processing module is used for generating a first indicator and a second indicator in the world space of the game scene based on the coordinate position of the virtual rocker in the screen space, wherein the first indicator is used for indicating the skill release position, and the second indicator is used for determining the movement range of the first indicator.
Optionally, the second determining module is configured to control the first indicator to move along with the virtual joystick in the game scene in response to a third touch operation performed on the virtual joystick; when the end of the third touch operation is detected, a release position is determined based on the current position of the first indicator.
Optionally, the virtual card processing apparatus further includes: and the fifth processing module is used for setting the other virtual cards except the target virtual card in the plurality of virtual cards to be selected to be in an unselectable state in the first touch area.
Optionally, the virtual card processing apparatus further includes: the sixth processing module is used for setting the first touch area as a skill cancellation release area; and responding to a fourth touch operation executed on the target virtual card, and moving the target virtual card into the skill releasing cancellation area to cancel releasing the target skill, wherein the fourth touch operation and the second touch operation are continuous touch operations.
Optionally, the virtual card processing apparatus further includes: the configuration module is used for configuring control parameters in the rocker setting interface, wherein the control parameters comprise at least one of the following parameters: the size parameter of the virtual rocker, the moving-out speed of the target virtual card out of the first touch area and the generation speed of the virtual rocker.
Optionally, a rocker map of the virtual rocker displays identification information of a virtual character corresponding to the target virtual card.
According to an embodiment of the present invention, there is further provided a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to execute the virtual card processing method in any one of the above methods when running.
There is further provided, in accordance with an embodiment of the present invention, a processor for executing a program, wherein the program is configured to execute the virtual card processing method of any one of the above when executed.
There is also provided, in accordance with an embodiment of the present invention, an electronic apparatus including a memory and a processor, the memory having a computer program stored therein, the processor being configured to execute the computer program to perform the virtual card processing method of any one of the above.
In at least some embodiments of the present invention, a target virtual card is determined in response to a first touch operation performed on a first touch area, where the first touch area is used to provide a plurality of virtual cards to be selected, and the target virtual card is controlled to move according to a second touch operation performed on the target virtual card in response to the second touch operation; the method comprises the steps of responding to the fact that a target virtual card moves out of a first touch area, generating a virtual rocker on a graphical user interface, wherein the virtual rocker is used for controlling a mode of releasing target skills corresponding to the target virtual card in a game scene, determining a release position of the target skills and releasing the target skills at the release position through responding to third touch operation executed on the virtual rocker, and achieving the purpose of releasing the card skills through the virtual rocker in the card instant combat game, so that a game player is ensured to release the card skills in a convenient operation posture in a comfortable operation area, the touch operation complexity is reduced, the technical effect of game operation experience is improved, and the technical problems that touch operation for releasing the card skills in the card games provided in the related technology is complicated and the game operation experience is poor are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic illustration of a card release skill in a card-like game according to the related art;
fig. 2 is a block diagram of a hardware configuration of a mobile terminal of a virtual card processing method according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a virtual card processing method according to one embodiment of the invention;
FIG. 4 is a schematic illustration of release of virtual card skills in accordance with an alternative embodiment of the present invention;
FIG. 5 is a schematic view of a rocker setting interface according to an alternative embodiment of the invention;
FIG. 6 is a block diagram of a virtual card handling device according to one embodiment of the invention;
fig. 7 is a block diagram of a virtual card processing apparatus according to an alternative embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with one embodiment of the present invention, there is provided an embodiment of a virtual card processing method, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system, such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than presented herein.
The method embodiments may be performed in a mobile terminal, a computer terminal or a similar computing device. Taking the example of the Mobile terminal running on the Mobile terminal, the Mobile terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, a game console, etc. Fig. 2 is a block diagram of a hardware structure of a mobile terminal of a virtual card processing method according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal may include one or more (only one shown in fig. 2) processors 102 (the processors 102 may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may further include a transmission device 106, an input/output device 108, and a display device 110 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 2 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 2, or have a different configuration than shown in FIG. 2.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the virtual card processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the above-mentioned virtual card processing method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 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 transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The inputs in the input output Device 108 may come from a plurality of Human Interface Devices (HIDs). For example: keyboard and mouse, game pad, other special game controller (such as steering wheel, fishing rod, dance mat, remote controller, etc.). Some human interface devices may provide output functions in addition to input functions, such as: force feedback and vibration of the gamepad, audio output of the controller, etc.
The display device 110 may be, for example, a head-up display (HUD), a touch screen type Liquid Crystal Display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI) with which a user can interact by touching finger contacts and/or gestures on a touch-sensitive surface, where the human-machine interaction function optionally includes the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, emailing, call interfacing, playing digital video, playing digital music, and/or web browsing, etc., for performing the above-described human-computer interaction functions, are configured/stored in one or more processor-executable computer program products or readable storage media.
The virtual card processing method in one embodiment of the disclosure can be run on a local terminal device or a server. When the virtual card processing method runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and the operation of the virtual card processing method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
In an optional implementation manner, taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
In a possible implementation manner, an embodiment of the present invention provides a virtual card processing method, which provides a graphical user interface through a terminal device, where the terminal device may be the aforementioned local terminal device, or the aforementioned client device in a cloud interaction system.
Fig. 3 is a flowchart of a virtual card processing method according to an embodiment of the present invention, in which a terminal device provides a graphical user interface, and content displayed on the graphical user interface includes a first touch area, as shown in fig. 3, the method includes the following steps:
step S30, responding to a first touch operation executed on a first touch area, and determining a target virtual card, wherein the first touch area is used for providing a plurality of virtual cards to be selected;
the first touch operation may include, but is not limited to: click operation, slide operation, re-press operation and long-press operation. The first touch area is a card area for providing a plurality of virtual cards to be selected. The touch areas of the graphical user interface other than the first touch area may be regarded as the second touch area. The display content of each virtual card to be selected may include, but is not limited to: identification information of the virtual character (such as a hero head portrait) and identification information of the card skill (such as an arrow pattern of the arrow putting skill). By performing a first touch operation on the first touch area, a target virtual card may be determined from a plurality of virtual cards to be selected.
Fig. 4 is a schematic diagram of releasing a virtual card skill according to an alternative embodiment of the present invention, and as shown in fig. 4, the first touch area is a card area for providing a card 1, a card 2, and a card 3. The display content of the card 1 may include, but is not limited to: avatar of virtual character 1, pattern of card skill 1. The display content of the card 2 may include, but is not limited to: avatar of virtual character 2, pattern of card skill 2. The display content of the card 3 may include, but is not limited to: avatar of virtual character 3, pattern of card skills 3. By performing a click operation on the first touch area, it may be determined that the card 1 is the target virtual card from among the cards 1, 2, and 3.
Step S31, responding to a second touch operation executed on the target virtual card, and controlling the target virtual card to move according to the second touch operation;
step S32, responding to the fact that the target virtual cards move out of the first touch area, and generating a virtual rocker on the graphical user interface, wherein the virtual rocker is used for controlling and releasing target skills corresponding to the target virtual cards in a game scene;
the second touch operation may include, but is not limited to: click operation, slide operation, re-press operation and long-press operation. The virtual rocker is used for releasing the target skill corresponding to the target virtual card in the game scene. And the target virtual card can be controlled to move by executing a second touch operation on the target virtual card. After the target virtual card is moved out of the first touch area, the target virtual card does not appear on the graphical user interface in the form of a virtual card, but a corresponding virtual joystick is generated on the graphical user interface. In an alternative embodiment, the stick map of the virtual stick displays identification information (e.g., hero's head portrait) of the virtual character corresponding to the target virtual card.
The second touch operation and the first touch operation may be continuous operations or independent operations.
Still as shown in fig. 4, the card 1 is moved out of the first touch area by performing a sliding operation on the card 1. After the card 1 is moved out of the first touch area, the card 1 no longer appears on the graphical user interface in the form of a virtual card, but a corresponding virtual joystick is generated on the graphical user interface, and the joystick map of the virtual joystick displays the head portrait of the virtual character 1 corresponding to the card 1.
Step S33, responding to a third touch operation executed on the virtual rocker, and determining a release position of the target skill;
the third touch operation may include, but is not limited to: click operation, slide operation, re-press operation and long-press operation. The release position of the target skill under the world space of the game scene can be determined by performing a third touch operation on the virtual joystick in the screen space. As also shown in fig. 4, the release position of the skill corresponding to the card 1 in world space can be determined by performing a sliding operation on the virtual stick in the screen space.
Step S34, the target skill is released at the release location.
Different from the interactive operation of the virtual cards provided in the related technology, the interactive operation of the virtual cards is usually to directly drag the virtual cards to a game scene and directly release the card skills in a pointer mode.
Through the steps, a target virtual card can be determined in response to a first touch operation executed on a first touch area, the first touch area is used for providing a plurality of virtual cards to be selected, a second touch operation executed on the target virtual card is responded, and the target virtual card is controlled to move according to the second touch operation; the method comprises the steps of responding to the fact that a target virtual card moves out of a first touch area, generating a virtual rocker on a graphical user interface, wherein the virtual rocker is used for controlling a mode of releasing target skills corresponding to the target virtual card in a game scene, determining a release position of the target skills and releasing the target skills at the release position through responding to third touch operation executed on the virtual rocker, and achieving the purpose of releasing the card skills through the virtual rocker in the card instant combat game, so that a game player is ensured to release the card skills in a convenient operation posture in a comfortable operation area, the touch operation complexity is reduced, the technical effect of game operation experience is improved, and the technical problems that touch operation for releasing the card skills in the card games provided in the related technology is complicated and the game operation experience is poor are solved.
Optionally, in step S32, in response to the second touch operation being performed on the target virtual card, generating a virtual joystick on the graphical user interface may include performing the steps of:
step S320, acquiring a current touch position of the second touch operation on the gui and a staying time at the current touch position;
in step S321, when the staying time exceeds the preset time, a virtual joystick is generated at the current touch position.
In the process of generating the virtual joystick on the graphical user interface, the current touch position needs to be determined according to the movement of the touch point of the second touch operation on the graphical user interface. In order to avoid misoperation, a corresponding dwell time duration needs to be set for the current touch position, and therefore whether the virtual joystick is generated or not is determined according to a comparison result of the dwell time duration of the second touch operation on the current touch position on the graphical user interface and a preset time duration. When the staying time exceeds the preset time, a virtual rocker is generated at the current touch position.
In an alternative embodiment, the preset time period is set to 0.8 seconds. Of course, the preset time length can be flexibly set according to the game type and the personalized requirements of the game player. For example: the preset time period may also be set to 1 second.
Optionally, the virtual card processing method may further include the following steps:
and step S35, generating a first indicator and a second indicator in the world space of the game scene based on the coordinate position of the virtual rocker in the screen space, wherein the first indicator is used for indicating the skill release position, and the second indicator is used for determining the movement range of the first indicator.
World space is a three-dimensional space that can be used to describe absolute positions, i.e., positions in the world coordinate system. In a general case, the origin position of the world space is located at the center of the game space. The camera space is a three-dimensional space. In camera space, the virtual camera is usually located at the origin of the camera space, and the selection of its coordinate axes may be arbitrary. For example: the + x axis points to the right of the virtual camera, the + y axis points to the top of the virtual camera, and the + z axis points to the back of the virtual camera. Under the default view angle of the virtual camera for shooting the three-dimensional game scene, the representation of three coordinate axes of the camera space in the world space can be calculated, then a transformation matrix from the camera space to the world space is constructed, and then the transformation matrix is inverted to obtain the transformation matrix transformed from the world space to the camera space. The screen space is a two-dimensional space, and the coordinate points in the camera space can be converted from the camera space to the clipping space by using the projection matrix, and then the coordinate points are projected from the clipping space to the screen space to generate corresponding 2D coordinates. Conversely, on the premise that the coordinate position in the screen space is known, the first indicator and the second indicator can be generated in the world space of the game scene based on the coordinate position of the virtual rocker in the screen space in the inverse transformation manner of the screen space → the crop space → the camera space → the world space. The first indicator is used for indicating a skill release position, and the second indicator is used for determining a movement range of the first indicator.
In an alternative embodiment, the first indicator and the second indicator are contoured by a virtual rocker. As also shown in fig. 4, the first indicator and the second indicator are both circular in outline. Moreover, the size of the first indicator and the second indicator can be enlarged according to the skill attribute (such as skill application range, skill application distance, skill application object and the like) and according to the preset proportion.
Optionally, in step S33, in response to the third touch operation performed on the virtual joystick, determining the release position of the target skill may include performing the steps of:
step S330, responding to a third touch operation executed on the virtual rocker, and controlling a first indicator to move along with the virtual rocker in a game scene;
in step S331, when it is detected that the third touch operation is ended, the release position is determined based on the current position of the first indicator.
The third touch operation may include, but is not limited to: click operation, slide operation, re-press operation and long-press operation. By executing a third touch operation on the virtual joystick, the first indicator can be controlled to move along with the virtual joystick in a game scene. Still as shown in fig. 4, by performing a sliding operation on the virtual stick so that the virtual stick slides from the center position of the virtual stick to the upper right position in the screen space, it is possible to control the first pointer to slide from the center region of the second pointer to the front right region in the world space in the game scene. When the end of the third touch operation (namely the finger of the game player leaves the virtual rocker) is detected, the current position of the first indicator can be determined as the release position of the target skill.
Optionally, after generating the virtual joystick on the graphical user interface, the virtual card processing method may further include the following steps:
in step S36, the remaining virtual cards except the target virtual card among the plurality of virtual cards to be selected are set to be in the unselected state in the first touch area.
The initial states of the virtual cards to be selected provided in the first touch area are all dragging releasable states. After the target virtual card is determined and moved out of the first touch area, the current states of the remaining virtual cards except the target virtual card in the plurality of virtual cards to be selected in the first touch area are switched to the unselected release cancellation state.
Optionally, after generating the virtual joystick on the graphical user interface, the virtual card processing method may further include the following steps:
step S37, setting the first touch area as a skill cancellation release area; and responding to a fourth touch operation executed on the target virtual card, and moving the target virtual card into the skill releasing cancellation area to cancel releasing the target skill, wherein the fourth touch operation and the second touch operation are continuous touch operations.
The fourth touch operation may include, but is not limited to: click operation, slide operation, re-press operation and long-press operation. The fourth touch operation and the second touch operation are continuous touch operations. The target virtual card may be moved back into the skill release area to release the target skill in response to performing the fourth touch operation on the target virtual card by setting the first touch area as the skill release area. At this time, the current states of the virtual cards to be selected are switched to the drag releasable state.
As also shown in fig. 4, the card area is provided with cards 1, 2, and 3. After card 1 is moved out of the card area, the current state of cards 2 and 3 will be switched to the unselected, unreleased state. When the card 1 is moved into the card area again, the corresponding skill of releasing the card 1 is cancelled, and the current states of the card 1, the card 2 and the card 3 are switched to the dragging releasable state.
Optionally, after generating the virtual joystick on the graphical user interface, the virtual card processing method may further include the following steps:
step S38, configuring control parameters in the rocker setting interface, wherein the control parameters comprise at least one of the following parameters: the size parameter of the virtual rocker, the moving-out speed of the target virtual card out of the first touch area and the generation speed of the virtual rocker.
A rocker settings interface may be provided within the graphical user interface. The control parameters can be configured in the rocker setting interface. The control parameters may include, but are not limited to, at least one of: the size parameter of the virtual rocker, the moving-out speed of the target virtual card out of the first touch area and the generation speed of the virtual rocker.
Fig. 5 is a schematic diagram of a joystick setting interface according to an alternative embodiment of the present invention, as shown in fig. 5, the joystick setting interface has three control parameters, i.e., a size parameter of a virtual joystick, a moving-out speed of a target virtual card out of a first touch area, and a generation speed of the virtual joystick. The three control parameters are divided into three levels of small, medium and large, and the default settings of the system are all medium levels (namely recommended settings). Of course, the game player can carry out self-defined configuration according to own operation habits and own preferences.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a virtual card processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a virtual card processing apparatus according to an embodiment of the present invention, in which a terminal device provides a graphical user interface, and content displayed on the graphical user interface includes a first touch area, as shown in fig. 6, the apparatus includes: a first determining module 10, configured to determine a target virtual card in response to a first touch operation performed on a first touch area, where the first touch area is used to provide a plurality of virtual cards to be selected; the first processing module 20 is configured to respond to a second touch operation performed on the target virtual card, and control the target virtual card to move according to the second touch operation; the second processing module 30 is configured to generate a virtual rocker on the graphical user interface in response to the target virtual card moving out of the first touch area, where the virtual rocker is used to control release of a target skill corresponding to the target virtual card in a game scene; the second determining module 40 is configured to determine a release position of the target skill in response to a third touch operation performed on the virtual joystick; a third processing module 50 for releasing the target skill at the release location.
Optionally, the first processing module 20 is configured to obtain a current touch position of the second touch operation on the graphical user interface and a dwell time at the current touch position; and when the stay time exceeds the preset time, generating a virtual rocker at the current touch position.
Alternatively, fig. 7 is a block diagram of a virtual card processing apparatus according to an alternative embodiment of the present invention, and as shown in fig. 7, the apparatus includes, in addition to all the modules shown in fig. 6, the virtual card processing apparatus further includes: and a fourth processing module 60, configured to generate a first indicator and a second indicator in the world space of the game scene based on the coordinate position of the virtual joystick in the screen space, where the first indicator is used for indicating the skill release position, and the second indicator is used for determining the movement range of the first indicator.
Optionally, the second determining module 40 is configured to control the first indicator to move along with the virtual joystick in the game scene in response to a third touch operation performed on the virtual joystick; when the end of the third touch operation is detected, a release position is determined based on the current position of the first indicator.
Alternatively, as shown in fig. 7, the virtual card processing apparatus may further include, in addition to all the modules shown in fig. 6: the fifth processing module 70 is configured to set, in the first touch area, the remaining virtual cards, except the target virtual card, of the multiple virtual cards to be selected to be in an unselected state.
Alternatively, as shown in fig. 7, the virtual card processing apparatus may further include, in addition to all the modules shown in fig. 6: a sixth processing module 80, configured to set the first touch area as a skill cancellation release area; and responding to a fourth touch operation executed on the target virtual card, and moving the target virtual card into the skill releasing cancellation area to cancel releasing the target skill, wherein the fourth touch operation and the second touch operation are continuous touch operations.
Alternatively, as shown in fig. 7, the virtual card processing apparatus may further include, in addition to all the modules shown in fig. 6: a configuration module 90, configured to configure control parameters within the rocker setting interface, where the control parameters include at least one of: the size parameter of the virtual rocker, the moving-out speed of the target virtual card out of the first touch area and the generation speed of the virtual rocker.
Optionally, a rocker map of the virtual rocker displays identification information of a virtual character corresponding to the target virtual card.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned nonvolatile storage medium may be configured to store a computer program for executing the steps of:
s1, responding to a first touch operation executed on a first touch area, and determining a target virtual card, wherein the first touch area is used for providing a plurality of virtual cards to be selected;
s2, responding to a second touch operation executed on the target virtual card, and controlling the target virtual card to move according to the second touch operation;
s3, responding to the fact that the target virtual cards move out of the first touch area, and generating a virtual rocker on the graphical user interface, wherein the virtual rocker is used for controlling and releasing target skills corresponding to the target virtual cards in a game scene;
s4, responding to a third touch operation executed on the virtual rocker, and determining a release position of the target skill;
and S5, releasing the target skill at the release position.
Optionally, in this embodiment, the nonvolatile storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, responding to a first touch operation executed on a first touch area, and determining a target virtual card, wherein the first touch area is used for providing a plurality of virtual cards to be selected;
s2, responding to a second touch operation executed on the target virtual card, and controlling the target virtual card to move according to the second touch operation;
s3, responding to the fact that the target virtual cards move out of the first touch area, and generating a virtual rocker on the graphical user interface, wherein the virtual rocker is used for controlling and releasing target skills corresponding to the target virtual cards in a game scene;
s4, responding to a third touch operation executed on the virtual rocker, and determining a release position of the target skill;
and S5, releasing the target skill at the release position.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple 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, units or modules, and may be in an electrical 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 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 invention 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, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A virtual card processing method is characterized in that a graphical user interface is provided through a terminal device, the content displayed by the graphical user interface comprises a first touch area, and the virtual card processing method comprises the following steps:
responding to a first touch operation executed on the first touch area, and determining a target virtual card, wherein the first touch area is used for providing a plurality of virtual cards to be selected;
responding to a second touch operation executed on the target virtual card, and controlling the target virtual card to move according to the second touch operation;
responding to the movement of the target virtual card out of the first touch area, and generating a virtual rocker on the graphical user interface, wherein the virtual rocker is used for controlling the release of a target skill corresponding to the target virtual card in a game scene;
responding to a third touch operation executed on the virtual rocker, and determining a release position of the target skill;
releasing the target skill at the release location.
2. The virtual card handling method of claim 1, wherein generating the virtual jog dial on the graphical user interface in response to the second touch operation performed on the target virtual card comprises:
acquiring the current touch position of the second touch operation on the graphical user interface and the stay time of the second touch operation at the current touch position;
and when the stay time exceeds a preset time, generating the virtual rocker at the current touch position.
3. The virtual card processing method of claim 1, further comprising:
generating a first indicator and a second indicator in the world space of the game scene based on the coordinate position of the virtual rocker in the screen space, wherein the first indicator is used for indicating the skill release position, and the second indicator is used for determining the movement range of the first indicator.
4. The virtual card handling method of claim 3, wherein determining the release position of the target skill in response to the third touch operation of the virtual joystick comprises:
responding to the third touch operation of the virtual rocker, and controlling the first indicator to move along with the virtual rocker in the game scene;
when the third touch operation is detected to be finished, determining the release position based on the current position of the first indicator.
5. The virtual card handling method of claim 1, wherein after generating the virtual rocker on the graphical user interface, the virtual card handling method further comprises:
and setting the rest virtual cards except the target virtual card in the plurality of virtual cards to be selected to be in an unselectable state in the first touch area.
6. The virtual card handling method of claim 1, wherein after generating a virtual rocker on the graphical user interface, the virtual card handling method further comprises:
setting the first touch area as a skill cancellation release area;
and in response to a fourth touch operation performed on the target virtual card, moving the target virtual card into the skill cancellation release area to cancel release of the target skill, wherein the fourth touch operation and the second touch operation are continuous touch operations.
7. The virtual card processing method of claim 1, further comprising:
configuring control parameters within a rocker setting interface, wherein the control parameters include at least one of: the size parameter of the virtual rocker, the moving-out speed of the target virtual card out of the first touch area, and the generation speed of the virtual rocker.
8. The virtual card processing method of claim 1, wherein a rocker map of the virtual rocker displays identification information of a virtual character corresponding to the target virtual card.
9. A virtual card processing device is characterized in that a graphical user interface is provided through a terminal device, the content displayed by the graphical user interface comprises a first touch area, and the virtual card processing device comprises:
the first determining module is used for responding to a first touch operation executed on the first touch area and determining a target virtual card, wherein the first touch area is used for providing a plurality of virtual cards to be selected;
the first processing module is used for responding to a second touch operation executed on the target virtual card and controlling the target virtual card to move according to the second touch operation;
the second processing module is used for responding to the fact that the target virtual card moves out of the first touch area and generating a virtual rocker on the graphical user interface, wherein the virtual rocker is used for controlling and releasing a target skill corresponding to the target virtual card in a game scene;
the second determining module is used for responding to a third touch operation executed on the virtual rocker and determining the release position of the target skill;
a third processing module for releasing the target skill at the release location.
10. A non-volatile storage medium, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the virtual card handling method of any one of claims 1 to 8 when running.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is configured to execute the computer program to perform the virtual card handling method of any of claims 1 to 8.
CN202111183673.1A 2021-10-11 2021-10-11 Virtual card processing method, nonvolatile storage medium and electronic device Pending CN113941143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111183673.1A CN113941143A (en) 2021-10-11 2021-10-11 Virtual card processing method, nonvolatile storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111183673.1A CN113941143A (en) 2021-10-11 2021-10-11 Virtual card processing method, nonvolatile storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113941143A true CN113941143A (en) 2022-01-18

Family

ID=79329612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111183673.1A Pending CN113941143A (en) 2021-10-11 2021-10-11 Virtual card processing method, nonvolatile storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113941143A (en)

Similar Documents

Publication Publication Date Title
CN110354489B (en) Virtual object control method, device, terminal and storage medium
CN113908550A (en) Virtual character control method, nonvolatile storage medium, and electronic apparatus
CN108310768B (en) Virtual scene display method and device, storage medium and electronic device
CN113318434A (en) Game information processing method and device and storage medium
CN113440848B (en) In-game information marking method and device and electronic device
CN111389003B (en) Game role control method, device, equipment and computer readable storage medium
CN111475087A (en) Object selling method and device, storage medium and electronic device
WO2022247204A1 (en) Game display control method, non-volatile storage medium and electronic device
CN113262476B (en) Position adjusting method and device of operation control, terminal and storage medium
CN114653059A (en) Method and device for controlling virtual character in game and non-volatile storage medium
CN108543308B (en) Method and device for selecting virtual object in virtual scene
CN113262489A (en) Game route generation method, game route generation device, nonvolatile storage medium, and electronic device
WO2024007675A1 (en) Virtual object switching method and apparatus, storage medium, and electronic apparatus
WO2024001191A1 (en) Operation method and apparatus in game, nonvolatile storage medium, and electronic apparatus
CN114504808A (en) Information processing method, information processing apparatus, storage medium, processor, and electronic apparatus
CN113941143A (en) Virtual card processing method, nonvolatile storage medium and electronic device
CN113590013B (en) Virtual resource processing method, nonvolatile storage medium and electronic device
CN113440835A (en) Control method and device of virtual unit, processor and electronic device
CN115089959A (en) Direction prompting method and device in game and electronic terminal
CN113318430A (en) Virtual character posture adjusting method and device, processor and electronic device
CN114419211A (en) Method, device, storage medium and electronic device for controlling virtual character skeleton
CN113952725A (en) Method and device for controlling skill control in game and electronic device
CN112807688A (en) Method and device for setting expression in game, processor and electronic device
CN114307131A (en) Game control method and device
CN113986079B (en) Virtual button setting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination