Virtual card processing method, non-transitory storage medium, and electronic device
By generating a virtual joystick in card games to control card release, the problem of cumbersome virtual card operation is solved, and the game operation experience is improved.
Patent Information
- Application Number
- CN202111183673.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-11
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2041-10-11
AI Technical Summary
In card games, the release of virtual cards is cumbersome, resulting in a poor gaming experience, especially when you need to frequently move your finger to the far end of the screen.
The release of virtual cards is controlled by generating a virtual joystick on the graphical user interface. Cards are selected using the first touch area, moved using the second touch operation, generated using the third touch operation, and the release position is determined by the fourth touch operation, thus realizing convenient release of card skills.
The complexity of card release operations has been reduced, improving the comfort and experience of game operation, and ensuring that players can conveniently release card skills within a comfortable area.
Smart Images

Figure CN113941143B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of computers, and in particular, to a virtual card processing method, a nonvolatile storage medium and an electronic device. BACKGROUND
[0002] At present, in the card game provided by the related art, the interactive operation of the virtual card is usually to directly drag the virtual card to the game scene to release the card skill in the manner of a pointer. Figure 1 is a schematic diagram of releasing a card skill in a card game according to the related art, as shown in Figure 1 There are three virtual cards, card 1, card 2 and card 3, in the virtual card selection area, and the game player selects card 1 as the to-be-released card from card 1, card 2 and card 3. Then, the game player directly drags card 1 to the game scene to release the card skill in the manner of a pointer. However, the obvious defect of this processing manner is that if the game player wants to release the virtual card at a specific position in the game scene, the game player needs to move the finger to the specific position. Thus, when the enemy virtual character continuously appears at a position far away from the home base, the game player needs to frequently move the finger to the far end of the screen, thereby causing tedious touch operation and poor game operation experience.
[0003] At present, there is no effective solution to the above problems. SUMMARY
[0004] The present application at least partially provides a virtual card processing method, a nonvolatile storage medium and an electronic device to at least solve the technical problem of tedious touch operation and poor game operation experience in releasing a card skill in the card game provided by the related art.
[0005] According to one embodiment of the present application, a virtual card processing method is provided, a graphical user interface is provided by a terminal device, the content displayed by the graphical user interface includes a first touch control area, and the virtual card processing method includes:
[0006] In response to a first touch control operation performed on the first touch control area, a target virtual card is determined, wherein the first touch control area is used to provide a plurality of to-be-selected virtual cards; in response to a second touch control operation performed on the target virtual card, the target virtual card is controlled to move according to the second touch control operation; in response to the target virtual card moving out of the first touch control area, a virtual joystick is generated on the graphical user interface, wherein the virtual joystick is used to control the release of a target skill corresponding to the target virtual card in a game scene; in response to a third touch control operation performed on the virtual joystick, a release position of the target skill is determined; and the target skill is released at the release position.
[0007] Optionally, in response to the second touch operation performed on the target virtual card, the generating the virtual joystick on the graphical user interface comprises: obtaining a current touch position of the second touch operation on the graphical user interface and a stay duration at the current touch position; and generating the virtual joystick at the current touch position when the stay duration exceeds a preset duration.
[0008] Optionally, the virtual card processing method further comprises: based on a coordinate position of the virtual joystick in a screen space, generating a first indicator and a second indicator in a world space of the game scene, the first indicator being used to indicate a skill release position, and the second indicator being used to determine a movement range of the first indicator.
[0009] Optionally, in response to the third touch operation performed on the virtual joystick, the determining the release position of the target skill comprises: in response to the third touch operation performed on the virtual joystick, controlling the first indicator to follow the virtual joystick to move in the game scene; and based on a current position of the first indicator, determining the release position when it is detected that the third touch operation ends.
[0010] Optionally, after the virtual joystick is generated on the graphical user interface, the virtual card processing method further comprises: setting the remaining virtual cards except the target virtual card in the plurality of virtual cards to be selected in the first touch area to be in a non-selectable state.
[0011] Optionally, after the virtual joystick is generated on the graphical user interface, the virtual card processing method further comprises: setting the first touch area as a skill cancel release area; and in response to a fourth touch operation performed on the target virtual card, moving the target virtual card into the skill cancel release area to cancel the release of the target skill, wherein the fourth touch operation and the second touch operation are continuous touch operations.
[0012] Optionally, after the virtual joystick is generated on the graphical user interface, the virtual card processing method further comprises: configuring a control parameter in the joystick setting interface, wherein the control parameter comprises at least one of the following: a size parameter of the virtual joystick, a moving speed of moving the target virtual card out of the first touch area, and a generation speed of the virtual joystick.
[0013] Optionally, a joystick map of the virtual joystick displays identification information of a virtual character corresponding to the target virtual card.
[0014] According to an embodiment of the present application, a virtual card processing device is provided, which provides a graphical user interface through a terminal device, and the content displayed by the graphical user interface comprises a first touch area. The virtual card processing device comprises:
[0015] The first determining module is configured to determine a target virtual card in response to a first touch operation performed on a first touch area, wherein the first touch area is configured to provide a plurality of virtual cards to be selected; the first processing module is configured to control the target virtual card to move in response to a second touch operation performed on the target virtual card; the second processing module is configured to generate a virtual joystick on the graphical user interface in response to the target virtual card moving out of the first touch area, wherein the virtual joystick is configured to control a target skill corresponding to the target virtual card to be released in a game scene; the second determining module is configured to determine a release position of the target skill in response to a third touch operation performed on the virtual joystick; and the third processing module is configured to release the target skill at the release position.
[0016] Optionally, the first processing module is configured to acquire a current touch position of the second touch operation on the graphical user interface and a stay duration at the current touch position; and generate the virtual joystick at the current touch position when the stay duration exceeds a preset duration.
[0017] Optionally, the virtual card processing apparatus further includes a fourth processing module configured to generate a first indicator and a second indicator in a world space of the game scene based on a coordinate position of the virtual joystick in a screen space, wherein the first indicator is configured to indicate the release position, and the second indicator is configured to determine a moving range of the first indicator.
[0018] Optionally, the second determining module is configured to control the first indicator to move following the virtual joystick in the game scene in response to the third touch operation performed on the virtual joystick; and determine the release position based on a current position of the first indicator when it is detected that the third touch operation ends.
[0019] Optionally, the virtual card processing apparatus further includes a fifth processing module configured to set the remaining virtual cards except the target virtual card among the plurality of virtual cards to be selected in the first touch area to an unselectable state.
[0020] Optionally, the virtual card processing apparatus further includes a sixth processing module configured to set the first touch area as a skill cancel release area; and move the target virtual card into the skill cancel release area in response to a fourth touch operation performed on the target virtual card, so as to cancel releasing the target skill, wherein the fourth touch operation and the second touch operation are continuous touch operations.
[0021] Optionally, the virtual card processing apparatus further includes a configuration module configured to configure a control parameter in a joystick setting interface, wherein the control parameter includes at least one of the following: a size parameter of the virtual joystick, a moving-out speed of moving the target virtual card out of the first touch area, and a generation speed of the virtual joystick.
[0022] Optionally, the rocker map of the virtual rocker displays identification information of the virtual character corresponding to the target virtual card.
[0023] According to one of the embodiments of the present application, a nonvolatile storage medium is provided, and the nonvolatile storage medium stores a computer program. The computer program is configured to execute the virtual card processing method in any of the above embodiments when the computer program is run.
[0024] According to one of the embodiments of the present application, a processor is provided, and the processor is configured to run a program. The program is configured to execute the virtual card processing method in any of the above embodiments when the program is run.
[0025] According to one of the embodiments of the present application, an electronic device is provided, and the electronic device includes a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to execute the virtual card processing method in any of the above embodiments.
[0026] In at least some embodiments of the present application, a target virtual card is determined in response to a first touch operation performed on a first touch area, the first touch area is used to provide a plurality of virtual cards to be selected, a second touch operation performed on the target virtual card is responded to, and the target virtual card is controlled to move according to the second touch operation; a virtual rocker is generated on the graphical user interface in response to the target virtual card moving out of the first touch area, the virtual rocker is used to control a manner of releasing a target skill corresponding to the target virtual card in a game scene, a third touch operation performed on the virtual rocker is responded to, a release position of the target skill is determined, and the target skill is released at the release position. The purpose of releasing a card skill through a virtual rocker in a card instant battle game is achieved, so as to ensure that a game player releases a card skill in a comfortable operation area with a convenient operation posture, reduce the complexity of touch operations, and improve the experience of game operations. Thus, the technical problems of complicated touch operations for releasing a card skill and poor experience of game operations in a card game provided by the related art are solved. BRIEF DESCRIPTION OF DRAWINGS
[0027] The accompanying drawings, which are included to provide a further understanding of the present application and are incorporated in and constitute a part of this application, illustrate embodiments of the present application and serve to explain the present application. In the drawings:
[0028] Figure 1 is a schematic diagram of releasing a card skill in a card game according to the related art;
[0029] Figure 2 is a hardware structure block diagram of a mobile terminal of a virtual card processing method according to an embodiment of the present application;
[0030] Figure 3is a flow chart of a virtual card processing method according to one embodiment of the present application;
[0031] Figure 4 is a schematic diagram of a virtual card skill release according to one optional embodiment of the present application;
[0032] Figure 5 is a schematic diagram of a joystick setting interface according to one optional embodiment of the present application;
[0033] Figure 6 is a structural block diagram of a virtual card processing device according to one embodiment of the present application;
[0034] Figure 7 is a structural block diagram of a virtual card processing device according to one optional embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the personnel in the art better understand the present application scheme, the technical scheme in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the scope of protection of the present application.
[0036] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] According to one embodiment of the present application, an embodiment of a virtual card processing method is provided. It should be noted that the steps shown in the flow chart of the drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flow chart, in some cases, the steps shown or described herein can be executed in an order different from that shown herein.
[0038] This method embodiment can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smartphone (such as an Android phone, iOS phone, etc.), tablet computer, PDA, mobile Internet Device (MID), PAD, game console, and other terminal devices. Figure 2 This is a hardware structure block diagram of a mobile terminal for a virtual card processing method according to an embodiment of the present invention. Figure 2 As shown, a mobile terminal may include one or more ( Figure 2 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a central processing unit (CPU), graphics processing unit (GPU), digital signal processing (DSP) chip, microprocessor (MCU), programmable logic device (FPGA), neural network processor (NPU), tensor processor (TPU), artificial intelligence (AI) type processor, etc.) and a memory 104 for storing data are also shown. Optionally, the mobile terminal may further include a transmission device 106 for communication functions, an input / output device 108, and a display device 110. Those skilled in the art will understand that... Figure 2 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 2 The more or fewer components shown, or having the same Figure 2 The different configurations shown.
[0039] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the virtual card processing method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the aforementioned 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 instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0040] The transmission device 106 is configured to receive or send data via a network. The network can include a wireless network provided by a communication provider of the mobile terminal. In one embodiment, the transmission device 106 includes a network interface controller (NIC) that is configured to connect to other network devices via a base station to communicate with the Internet. In one embodiment, the transmission device 106 can be a radio frequency (RF) module that is configured to communicate with the Internet via a wireless network.
[0041] The input of the input / output device 108 can be from a plurality of human interface devices (HIDs). For example, a keyboard and a mouse, a gamepad, other special game controllers (e.g., a steering wheel, a fishing rod, a dance pad, a remote controller, etc.). Some human interface devices can provide both input and output functions. For example, a force feedback and vibration of a gamepad, an audio output of a controller, etc.
[0042] The display device 110 can be, for example, a heads-up display (HUD), a touch screen liquid crystal display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display can 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) that a user can interact with through finger contacts and / or gestures on the touch-sensitive surface. The human-machine interaction can optionally include the following interactions: creating webpages, drawing, word processing, creating electronic documents, gaming, video conferencing, instant messaging, sending / receiving e-mails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. Executable instructions for performing the above human-machine interactions are configured / stored in one or more computer program products or readable storage media that are executable by the processor.
[0043] The virtual card processing method in one embodiment of the present disclosure can 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 includes a server and a client device.
[0044] In an optional embodiment, various cloud applications can be run under the cloud interaction system, for example, cloud gaming. Taking cloud gaming as an example, cloud gaming refers to a game mode based on cloud computing. In the running mode of cloud gaming, the running subject of the game program and the presentation subject of the game picture are separated, and the storage and running of the virtual card processing method are completed on the cloud gaming server. 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 close to the user side with data transmission function, such as a mobile terminal, a television, a computer, a palm computer, etc. However, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation instructions to the cloud gaming server, the cloud gaming server runs the game according to the operation instructions, encodes and compresses the game picture and other data, returns the data to the client device through the network, and finally decodes and outputs the game picture through the client device.
[0045] In an optional embodiment, taking a game as an example, the local terminal device stores a game program and is used for presenting a game picture. The local terminal device is used for interacting with the player through a graphical user interface, that is, a conventional game program is downloaded and installed on an electronic device and is run. The way in which the local terminal device provides the graphical user interface to the player can include various ways, for example, the graphical user interface can be rendered and displayed on the display screen of the terminal, or the graphical user interface can be provided to the player through holographic projection. For example, the local terminal device can include a display screen used for presenting a graphical user interface including a game picture, and a processor used for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
[0046] In a possible embodiment, the embodiment of the present application provides a virtual card processing method, which provides a graphical user interface through a terminal device. The terminal device can be the local terminal device mentioned above or the client device in the cloud interaction system mentioned above.
[0047] Figure 3 is a flowchart of a virtual card processing method according to an embodiment of the present application, which provides a graphical user interface through a terminal device. The content displayed by the graphical user interface includes a first touch control area, as shown in Figure 3 The method includes the following steps:
[0048] Step S30, in response to a first touch operation performed on the first touch control area, determining a target virtual card, wherein the first touch control area is used to provide a plurality of virtual cards to be selected;
[0049] The first touch operation can include but is not limited to a click operation, a sliding operation, a double-click operation, and a long-press operation. The first touch region is a card region, which is used to provide a plurality of virtual cards to be selected. A touch region in the graphical user interface other than the first touch region can be regarded as a second touch region. The display content of each virtual card to be selected can include but is not limited to identification information of a virtual character (for example, an avatar of a hero) and card skill identification information (for example, a pattern of a bow and arrow of an arrow-throwing skill). By performing the first touch operation on the first touch region, a target virtual card can be determined from the plurality of virtual cards to be selected.
[0050] Figure 4 is a schematic diagram of a virtual card skill release according to an optional embodiment of the present application. As shown in Figure 4 The first touch region is a card region, which is used to provide card 1, card 2, and card 3. The display content of card 1 can include but is not limited to an avatar of virtual character 1 and a pattern of card skill 1. The display content of card 2 can include but is not limited to an avatar of virtual character 2 and a pattern of card skill 2. The display content of card 3 can include but is not limited to an avatar of virtual character 3 and a pattern of card skill 3. By performing a click operation on the first touch region, card 1 can be determined as the target virtual card from card 1, card 2, and card 3.
[0051] In step S31, in response to a second touch operation performed on the target virtual card, the target virtual card is controlled to move according to the second touch operation;
[0052] In step S32, in response to the target virtual card moving out of the first touch region, a virtual joystick is generated on the graphical user interface, wherein the virtual joystick is used to control the release of a target skill corresponding to the target virtual card in a game scene.
[0053] The second touch operation can include but is not limited to a click operation, a sliding operation, a double-click operation, and a long-press operation. The virtual joystick is used to release the target skill corresponding to the target virtual card in the game scene. By performing the second touch operation on the target virtual card, the target virtual card can be controlled to move. After the target virtual card moves out of the first touch region, the target virtual card no longer appears in the form of a virtual card on the graphical user interface, but a corresponding virtual joystick is generated on the graphical user interface. In an optional embodiment, a joystick map of the virtual joystick displays identification information of a virtual character corresponding to the target virtual card (for example, an avatar of a hero).
[0054] It should be noted that the second touch operation and the first touch operation can be continuous operations or independent operations.
[0055] Still as Figure 4As shown, by performing a sliding operation on the card 1, the card 1 is moved out of the first touch area. After the card 1 is moved out of the first touch area, the card 1 no longer appears in the form of a virtual card on the graphical user interface, but a corresponding virtual joystick is generated on the graphical user interface, and the joystick map of the virtual joystick displays the avatar of the virtual character 1 corresponding to the card 1.
[0056] Step S33, in response to a third touch operation performed on the virtual joystick, determining the release position of the target skill;
[0057] The third touch operation can include but is not limited to a click operation, a sliding operation, a double-click operation, and a long-press operation. By performing the third touch operation on the virtual joystick in the screen space, the release position of the target skill in the world space of the game scene can be determined. Still as shown in FIG. 4, by performing a sliding operation on the virtual joystick in the screen space, the release position of the skill corresponding to the card 1 in the world space can be determined. Figure 4
[0058] Step S34, releasing the target skill at the release position.
[0059] Unlike the interactive operation of the virtual card provided in the related art, which is to directly drag the virtual card to the game scene to directly release the card skill in the form of a pointer, the embodiment of the present application converts the target virtual card into a virtual joystick, and synchronously controls the release position of the target skill in the world space through the virtual joystick generated in the screen space, thereby reducing the complexity of the virtual card skill release operation and improving the comfort of the virtual card skill release operation.
[0060] Through the above steps, the target virtual card can be determined in response to a first touch operation performed on a first touch area for providing a plurality of virtual cards to be selected, the target virtual card is moved in response to a second touch operation performed on the target virtual card, the virtual joystick is generated on the graphical user interface in response to the target virtual card moving out of the first touch area, the virtual joystick is used to control the manner of releasing the target skill corresponding to the target virtual card in the game scene, the release position of the target skill is determined in response to a third touch operation performed on the virtual joystick, and the target skill is released at the release position. The purpose of releasing the card skill through the virtual joystick in the card instant battle game is achieved, so as to ensure that the game player releases the card skill in a comfortable operation area with a convenient operation posture, reduce the complexity of the touch operation, improve the game operation experience, and solve the technical problems of the card game provided in the related art, such as the complexity of the touch operation for releasing the card skill and the poor game operation experience.
[0061] Optionally, in step S32, in response to the second touch operation performed on the target virtual card, generating the virtual joystick on the graphical user interface can include the following steps:
[0062] Step S320, obtaining the current touch position of the second touch operation on the graphical user interface and the dwell time at the current touch position;
[0063] Step S321, when the dwell time exceeds the preset time, generating the virtual joystick at the current touch position.
[0064] 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, the corresponding dwell time needs to be set for the current touch position. Therefore, according to the comparison result of the dwell time of the current touch position of the second touch operation on the graphical user interface and the preset time, it is determined whether to generate the virtual joystick. When the dwell time exceeds the preset time, the virtual joystick will be generated at the current touch position.
[0065] In an optional embodiment, the above-mentioned preset time is set to 0.8 seconds. Of course, the preset time can be flexibly set according to the game type and the individual needs of the game player. For example: the above-mentioned preset time can also be set to 1 second.
[0066] Optionally, the above-mentioned virtual card processing method can also include the following steps:
[0067] Step S35, based on the coordinate position of the virtual joystick in the screen space, generating a first indicator and a second indicator in the world space of the game scene, the first indicator is used to indicate the skill release position, and the second indicator is used to determine the movement range of the first indicator.
[0068] The world space is a three-dimensional space, which can be used to describe absolute positions, i.e. positions in a world coordinate system. In general, the origin of the world space is located at the center of the game space. The camera space is a three-dimensional space. In the camera space, the virtual camera is usually located at the origin of the camera space, and the selection of the coordinate axes can 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. In the default view of the virtual camera shooting the three-dimensional game scene, the representations of the three coordinate axes of the camera space in the world space can be calculated, and then a transformation matrix from the camera space to the world space is constructed, and the inverse of the transformation matrix is obtained to obtain a transformation matrix from the world space to the camera space. The screen space is a two-dimensional space. The coordinate point in the camera space can be first converted from the camera space to the clipping space by using a projection matrix, and then the coordinate point is projected from the clipping space to the screen space to generate the 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 joystick in the screen space by using the inverse transformation from the screen space to the clipping space to the camera space to the world space. The first indicator is used to indicate the skill release position, and the second indicator is used to determine the movement range of the first indicator.
[0069] In an optional embodiment, the shape of the first indicator and the second indicator is determined by the virtual joystick. As shown in Figure 4 , the shape of the first indicator and the second indicator is circular. Moreover, the size of the first indicator and the second indicator can be enlarged according to the skill attribute (e.g. skill application range, skill application distance, skill application object, etc.) according to a preset ratio.
[0070] Optionally, in step S33, in response to the third touch operation performed on the virtual joystick, determining the release position of the target skill can include the following execution steps:
[0071] Step S330, in response to the third touch operation performed on the virtual joystick, controlling the first indicator to move following the virtual joystick in the game scene;
[0072] Step S331, when it is detected that the third touch operation is ended, determining the release position based on the current position of the first indicator.
[0073] The third touch operation can include but is not limited to: click operation, sliding operation, double-click operation, long-press operation. By performing the third touch operation on the virtual joystick, the first indicator can be controlled to move following the virtual joystick in the game scene. As shown in Figure 4As shown, by performing a sliding operation on the virtual joystick, the virtual joystick is caused to slide in the screen space from the center position of the virtual joystick to the upper right position, thereby controlling the first indicator to slide in the world space from the center region of the second indicator to the right front region in the game scene. When the third touch operation is detected to end (i.e., the finger of the game player leaves the virtual joystick), the current position of the first indicator can be determined as the release position of the target skill.
[0074] Optionally, after the virtual joystick is generated on the graphical user interface, the virtual card processing method can further include the following execution steps:
[0075] Step S36, setting the rest of the virtual cards in the first touch region, except the target virtual card, to be in the unselectable state.
[0076] The initial state of the plurality of virtual cards to be selected provided in the first touch region is the drag-releasable state. After the target virtual card is determined and the target virtual card is moved out of the first touch region, the current state of the rest of the virtual cards in the first touch region, except the target virtual card, will be switched to the unselectable cancel-release state.
[0077] Optionally, after the virtual joystick is generated on the graphical user interface, the virtual card processing method can further include the following execution steps:
[0078] Step S37, setting the first touch region as a skill cancel-release region; in response to the fourth touch operation performed on the target virtual card, moving the target virtual card into the skill cancel-release region to cancel the release of the target skill, wherein the fourth touch operation is a continuous touch operation with the second touch operation.
[0079] The fourth touch operation can include but is not limited to a click operation, a sliding operation, a double-click operation, and a long-press operation. The fourth touch operation is a continuous touch operation with the second touch operation. By setting the first touch region as a skill cancel-release region and in response to the fourth touch operation performed on the target virtual card, the target virtual card can be moved back into the skill cancel-release region to cancel the release of the target skill. At this time, the current state of the plurality of virtual cards to be selected will be switched to the drag-releasable state.
[0080] Still as Figure 4 As shown, the card region provides card 1, card 2, and card 3. After card 1 is moved out of the card region, the current state of card 2 and card 3 will be switched to the unselectable cancel-release state. When card 1 is moved back into the card region, the skill corresponding to card 1 is canceled, and the current state of card 1, card 2, and card 3 will be switched to the drag-releasable state.
[0081] Optionally, after the virtual joystick is generated on the graphical user interface, the virtual card processing method can further include the following execution steps:
[0082] Step S38, configuring the control parameters in the joystick setting interface, wherein the control parameters include at least one of the following: size parameter of the virtual joystick, moving-out speed of moving the target virtual card out of the first touch control area, and generation speed of the virtual joystick.
[0083] The joystick setting interface can be provided in the graphical user interface. The control parameters can be configured in the joystick setting interface. The control parameters can include, but are not limited to, at least one of the following: size parameter of the virtual joystick, moving-out speed of moving the target virtual card out of the first touch control area, and generation speed of the virtual joystick.
[0084] Figure 5 is a schematic diagram of a joystick setting interface according to an optional embodiment of the present application, as shown in Figure 5 The joystick setting interface has three control parameters: size parameter of the virtual joystick, moving-out speed of moving the target virtual card out of the first touch control area, and generation speed of the virtual joystick. The three control parameters are all divided into three levels: small, medium, and large, and the system default settings are all medium (i.e., recommended settings). Of course, the game players can completely customize the configurations according to their own operation habits and preferences.
[0085] From 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 means of software and a general hardware platform, and of course, it can also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, or optical disk) and includes a plurality of instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device) to execute the method described in the embodiments of the present application.
[0086] In the present embodiment, a virtual card processing device is also provided, which is used to implement the above embodiments and preferred embodiments, and has been described above. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware or a combination of software and hardware is also possible and is contemplated.
[0087] Figure 6is a structural block diagram of a virtual card processing apparatus according to an embodiment of the present application, a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes a first touch control area, as shown in Figure 6 The apparatus includes: a first determination module 10, configured to determine a target virtual card in response to a first touch control operation performed on the first touch control area, wherein the first touch control area is used to provide a plurality of virtual cards to be selected; a first processing module 20, configured to control the target virtual card to move according to a second touch control operation performed on the target virtual card; a second processing module 30, configured to generate a virtual joystick on the graphical user interface in response to the target virtual card moving out of the first touch control area, wherein the virtual joystick is used to control the release of a target skill corresponding to the target virtual card in a game scene; a second determination module 40, configured to determine a release position of the target skill in response to a third touch control operation performed on the virtual joystick; and a third processing module 50, configured to release the target skill at the release position.
[0088] Optionally, the first processing module 20 is configured to acquire a current touch control position of the second touch control operation on the graphical user interface and a stay duration at the current touch control position; and generate the virtual joystick at the current touch control position when the stay duration exceeds a preset duration.
[0089] Optionally, Figure 7 is a structural block diagram of a virtual card processing apparatus according to an optional embodiment of the present application, as shown in Figure 7 The apparatus includes all the modules shown in Figure 6 In addition to the above-mentioned virtual card processing apparatus, the apparatus further includes: a fourth processing module 60, configured to generate a first indicator and a second indicator in a world space of the game scene based on a coordinate position of the virtual joystick in a screen space, wherein the first indicator is used to indicate the skill release position, and the second indicator is used to determine a moving range of the first indicator.
[0090] Optionally, the second determination module 40 is configured to control the first indicator to move following the virtual joystick in the game scene in response to the third touch control operation performed on the virtual joystick; and determine the release position based on a current position of the first indicator when it is detected that the third touch control operation ends.
[0091] Optionally, as shown in Figure 7 The apparatus includes all the modules shown in Figure 6 In addition to the above-mentioned virtual card processing apparatus, the apparatus further includes: a fifth processing module 70, configured to set the remaining virtual cards except the target virtual card among the plurality of virtual cards to be selected in the first touch control area to an unselectable state.
[0092] Optionally, as shown in Figure 7 The apparatus includes all the modules shown in Figure 6In addition to all the modules shown, the virtual card processing apparatus further comprises a sixth processing module 80 configured to set the first touch area as a skill cancel release area; and in response to a fourth touch operation performed on the target virtual card, move the target virtual card into the skill cancel release area to cancel the release of the target skill, wherein the fourth touch operation and the second touch operation are continuous touch operations.
[0093] Optionally, as shown in the figure, in addition to all the modules shown, the virtual card processing apparatus further comprises a configuration module 90 configured to configure control parameters in the joystick setting interface, wherein the control parameters comprise at least one of the following: a size parameter of the virtual joystick, a moving speed of the target virtual card moving out of the first touch area, and a generation speed of the virtual joystick. Figure 7 Figure 6 In addition to all the modules shown, the virtual card processing apparatus further comprises a configuration module 90 configured to configure control parameters in the joystick setting interface, wherein the control parameters comprise at least one of the following: a size parameter of the virtual joystick, a moving speed of the target virtual card moving out of the first touch area, and a generation speed of the virtual joystick.
[0094] Optionally, the joystick map of the virtual joystick displays identification information of a virtual character corresponding to the target virtual card.
[0095] It should be noted that the above-mentioned various modules can be realized by software or hardware, and for the latter, the following implementation manners can be used, but are not limited thereto: all the modules are located in the same processor; or the various modules are located in different processors in any combination.
[0096] Embodiments of the present application also provide a non-volatile storage medium having a computer program stored therein, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0097] Optionally, in the present embodiment, the non-volatile storage medium can be configured to store a computer program for executing the following steps:
[0098] S1, in response to a first touch operation performed on the first touch area, determining a target virtual card, wherein the first touch area is used to provide a plurality of virtual cards to be selected;
[0099] S2, in response to a second touch operation performed on the target virtual card, moving the target virtual card according to the second touch operation;
[0100] S3, in response to the target virtual card moving out of the first touch area, generating a virtual joystick on the graphical user interface, wherein the virtual joystick is used to control the release of a target skill corresponding to the target virtual card in a game scene;
[0101] S4, in response to a third touch operation performed on the virtual joystick, determining a release position of the target skill;
[0102] S5, releasing the target skill at the release position.
[0103] Optionally, in the embodiment, the non-volatile storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.
[0104] The embodiment of the application further provides an electronic device including a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the method embodiments.
[0105] Optionally, the electronic device can further include a transmission device and an input / output device, wherein the transmission device is connected with the processor, and the input / output device is connected with the processor.
[0106] Optionally, in the embodiment, the processor can be configured to perform the following steps through the computer program:
[0107] S1, in response to a first touch operation performed on a first touch area, determining a target virtual card, wherein the first touch area is used to provide a plurality of virtual cards to be selected;
[0108] S2, in response to a second touch operation performed on the target virtual card, controlling the target virtual card to move according to the second touch operation;
[0109] S3, in response to the target virtual card moving out of the first touch area, generating a virtual joystick on the graphical user interface, wherein the virtual joystick is used to control the release of a target skill corresponding to the target virtual card in a game scene;
[0110] S4, in response to a third touch operation performed on the virtual joystick, determining a release position of the target skill;
[0111] S5, releasing the target skill at the release position.
[0112] Optionally, the specific examples in the embodiment can refer to the examples described in the above embodiments and optional implementation manners, and the embodiment will not be described here.
[0113] The serial numbers of the above embodiments of the application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0114] In the above embodiments of the application, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0115] In several embodiments provided in the present application, it should be understood that the disclosed technology can be implemented by other means. Among them, the above-mentioned device embodiments are only schematic, for example, the division of the units can be a logical function division, and actual implementation can have another division mode, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be through some interface, indirect coupling or communication connection between units or modules, which can be electrical or other forms.
[0116] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed to multiple units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0117] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0118] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.
[0119] The above is only the preferred embodiment of the present application. It should be noted that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which should be considered as the protection scope of the present application.
Claims
1. A virtual card processing method, characterized by, A graphical user interface is provided through a terminal device, the content displayed by the graphical user interface including a first touch area, and the virtual card processing method includes: In response to a first touch operation performed on the first touch area, a target virtual card is determined, wherein the first touch area is used to provide multiple virtual cards to be selected; In response to a second touch operation performed on the target virtual card, the target virtual card is controlled to move according to the second touch operation; In response to the target virtual card moving out of the first touch area, a virtual joystick is generated on the graphical user interface, wherein the virtual joystick is used to control the release of the target skill corresponding to the target virtual card in the game scene; Based on the coordinate position of the virtual joystick in the screen space, a first indicator and a second indicator are generated in the world space of the game scene. The first indicator is used to indicate the skill release position, and the second indicator is used to determine the movement range of the first indicator. The screen space is a two-dimensional space, and the world space is a three-dimensional space. In response to a third touch operation on the virtual joystick within the screen space, the first indicator is controlled to move in the game scene following the virtual joystick; When the third touch operation is detected to have ended, the release location of the target skill in the world space is determined based on the current position of the first indicator; Release the target skill at the specified release location.
2. The virtual card processing method of claim 1, wherein, Responding to the second touch operation performed on the target virtual card, generating the virtual joystick on the graphical user interface includes: The current touch position of the second touch operation on the graphical user interface and the duration of dwell at the current touch position are obtained; When the dwell time exceeds the preset time, the virtual joystick is generated at the current touch position.
3. The virtual card processing method of claim 1, wherein, After generating the virtual joystick on the graphical user interface, the virtual card processing method further includes: Within the first touch area, the remaining virtual cards among the multiple virtual cards to be selected, except for the target virtual card, are set to an unselectable state.
4. The virtual card processing method of claim 1, wherein, After generating a virtual joystick on the graphical user interface, the virtual card processing method further includes: Set the first touch area as the skill cancellation area; In response to a fourth touch operation performed on the target virtual card, the target virtual card is moved into the skill cancellation release area to cancel the release of the target skill, wherein the fourth touch operation and the second touch operation are consecutive touch operations.
5. The virtual card processing method of claim 1, wherein, The virtual card processing method also includes: The control parameters are configured in the joystick settings interface, wherein the control parameters include at least one of the following: the size parameter of the virtual joystick, the speed at which the target virtual card is moved out of the first touch area, and the generation speed of the virtual joystick.
6. The virtual card processing method of claim 1, wherein, The joystick texture displays the identifier information of the virtual character corresponding to the target virtual card.
7. A virtual card processing apparatus characterized by comprising: A graphical user interface is provided through a terminal device, the content displayed by the graphical user interface including a first touch area, and the virtual card processing device includes: The first determining module is used to respond to a first touch operation performed on the first touch area and determine a target virtual card, wherein the first touch area is used to provide multiple virtual cards to be selected; The first processing module 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 is used to generate a virtual joystick on the graphical user interface in response to the target virtual card moving out of the first touch area, wherein the virtual joystick is used to control the release of the target skill corresponding to the target virtual card in the game scene; The fourth processing module is used 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. The first indicator is used to indicate the skill release position, and the second indicator is used to determine the movement range of the first indicator. The screen space is a two-dimensional space, and the world space is a three-dimensional space. The second determining module is used to respond to a third touch operation on the virtual joystick within the screen space, control the first indicator to move with the virtual joystick in the game scene, and when the third touch operation is detected to end, determine the release position of the target skill in the world space based on the current position of the first indicator. The third processing module is used to release the target skill at the release location.
8. A non-volatile storage medium, comprising: The storage medium stores a computer program, wherein the computer program is configured to execute the virtual card processing method according to any one of claims 1 to 6 when it runs.
9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the virtual card processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Construction method for electronic screen virtual rocker
CN104636063A
Virtual item switching method, skill switching method and virtual object switching method
CN113398572A