Interaction method and device for virtual card game, electronic equipment and storage medium

文档序号:557449 发布日期:2021-05-18 浏览:30次 中文

阅读说明:本技术 虚拟卡牌游戏的交互方法、装置、电子设备及存储介质 (Interaction method and device for virtual card game, electronic equipment and storage medium ) 是由 王翌希 于 2021-02-03 设计创作,主要内容包括:本申请提供了一种虚拟卡牌游戏的交互方法、装置、电子设备及存储介质,其中,通过一终端设备提供一图形用户界面,图形用户界面中显示的内容至少部分地包含虚拟卡牌游戏的游戏界面,其中,游戏界面显示有通过终端设备控制的游戏角色当前持有的虚拟卡牌堆,虚拟卡牌堆用于按序叠放游戏角色当前持有的若干张虚拟卡牌。该方法包括:根据虚拟卡牌堆,在所述游戏界面展示预设种类的虚拟卡牌对应的显示控件;响应作用于目标种类的虚拟卡牌对应的显示控件的触控操作,从所述虚拟卡牌堆中突出显示所述目标种类的虚拟卡牌的牌面信息。本申请实施例可以通过触发不同种类的虚拟卡牌对应的显示控件快速获知自己当前卡牌构成,提高玩家在对局中定制策略的效率。(The application provides an interaction method, an interaction device, electronic equipment and a storage medium of a virtual card game, wherein a terminal device provides a graphical user interface, and the content displayed in the graphical user interface at least partially comprises a game interface of the virtual card game, wherein the game interface displays a virtual card stack currently held by a game role controlled by the terminal device, and the virtual card stack is used for sequentially stacking a plurality of virtual cards currently held by the game role. The method comprises the following steps: displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile; and responding to the touch operation of the display control corresponding to the target type of virtual cards, and prominently displaying the card face information of the target type of virtual cards from the virtual card pile. According to the embodiment of the application, the current card composition can be rapidly known by triggering the display controls corresponding to different types of virtual cards, and the efficiency of customizing strategies by players in the game is improved.)

1. An interaction method for a virtual card game, wherein a graphical user interface is provided through a terminal device, and content displayed in the graphical user interface at least partially includes a game interface of the virtual card game, wherein the game interface displays a virtual card pile currently held by a game character controlled by the terminal device, and the virtual card pile is used for sequentially stacking a plurality of virtual cards currently held by the game character, the method comprising:

displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile;

responding to touch operation of a display control corresponding to a target type of virtual cards, and prominently displaying the card face information of the target type of virtual cards from the virtual card pile; the target type of virtual cards are determined types of virtual cards selected from the preset types of virtual cards.

2. The method of claim 1, wherein displaying a display control corresponding to a predetermined type of virtual card on the game interface according to the virtual card pile comprises:

counting the number of virtual cards in the virtual card pile;

judging whether the number of the virtual cards in the virtual card pile exceeds a first preset number or not;

and if the number of the virtual cards in the virtual card pile exceeds a first preset number, displaying a display control corresponding to a preset type of virtual cards on the game interface.

3. The method of claim 1, wherein displaying a display control corresponding to a predetermined type of virtual card on the game interface according to the virtual card pile comprises:

acquiring an image of a virtual card of the virtual card pile;

identifying the pattern identification of the upper left corner of the card in the image;

and if the number of the pattern identifications of the upper left corner of the card is lower than a second preset number, displaying a display control corresponding to a virtual card of a preset type on the game interface.

4. The method of claim 1, wherein the display control corresponding to the preset category of virtual cards comprises any one of:

displaying controls corresponding to the virtual cards classified according to the card functions;

the display control corresponding to the virtual cards classified according to the colors of the cards;

and displaying controls corresponding to the virtual cards classified according to the sizes of the cards.

5. The method of claim 1, wherein displaying a display control corresponding to a predetermined type of virtual card on the game interface according to the virtual card pile comprises:

correspondingly displaying different display controls on the game interface according to different types of virtual cards in the virtual card pile;

and aiming at the type of the virtual cards which do not belong to the virtual card pile, setting the display control corresponding to the virtual cards of the type to be invisible or grey marking inoperable.

6. The method of claim 1, wherein face information for the target category of virtual cards is highlighted from the virtual card pile in any one or more of the following highlighting manners:

amplifying and displaying the virtual cards of the target types according to a preset proportion;

displaying the virtual cards of the target types according to a preset dynamic effect;

moving the virtual card of the target category upward.

7. The method of claim 1, wherein highlighting the face information of the virtual card of the target category from the stack of virtual cards in response to a touch operation applied to a display control corresponding to the virtual card of the target category comprises:

and responding to the long-time pressing operation of the display control corresponding to the virtual cards of the target types, and displaying the face information of all the virtual cards of the target types in a highlighted mode from the virtual card pile.

8. The method of claim 1, wherein highlighting the face information of the virtual card of the target category from the stack of virtual cards in response to a touch operation applied to a display control corresponding to the virtual card of the target category comprises:

responding to the single click operation of a display control corresponding to the target type of virtual cards, and highlighting and displaying the card face information of one virtual card of the target type meeting a preset rule from the virtual card pile;

and responding to continuous clicking operation of a display control corresponding to the target type of virtual cards, and sequentially and prominently displaying the card face information of other target type of virtual cards meeting a preset rule from the virtual card pile until the highlighting of the card face information of the virtual cards is cancelled.

9. An interactive apparatus for a virtual card game, wherein a graphical user interface is provided through a terminal device, and content displayed in the graphical user interface at least partially includes a game interface of the virtual card game, wherein the game interface displays a virtual card stack currently held by a game character controlled by the terminal device, and the virtual card stack is used for sequentially stacking a plurality of virtual cards currently held by the game character, the apparatus comprising:

the display module is used for displaying display controls corresponding to virtual cards of preset types on the game interface according to the virtual card piles;

the response module is used for responding to the touch operation of the display control corresponding to the target type of virtual cards and prominently displaying the card face information of the target type of virtual cards from the virtual card pile; the target type of virtual cards are determined types of virtual cards selected from the preset types of virtual cards.

10. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 8.

Technical Field

The present application relates to the field of card games, and in particular, to an interaction method and apparatus for a virtual card game, an electronic device, and a storage medium.

Background

In card games (e.g., UNO) that can add cards indefinitely, it is difficult for a player to quickly browse all cards when there are too many hands, find a card he wants to find, and specify a strategy based on the hands.

In the prior art, as shown in fig. 1, a player clicks a card pile, and a display area is enlarged for a card at a clicked position, so that a local card surface is seen clearly.

The applicant finds in research that in the prior art, when hands are more, only partial faces can be seen at one time, efficiency is low, the content of the own hands cannot be mastered quickly, and strategy exertion of players is influenced.

Disclosure of Invention

In view of this, an object of the present application is to provide an interaction method, an interaction device, an electronic device, and a storage medium for a virtual card game, so as to quickly obtain the current card composition of the player by triggering display controls corresponding to different types of virtual cards, thereby improving the efficiency of customizing a strategy in a game by the player.

In a first aspect, an embodiment of the present application provides an interaction method for a virtual card game, in which a terminal device provides a graphical user interface, and a content displayed in the graphical user interface at least partially includes a game interface of the virtual card game, where the game interface displays a virtual card stack currently held by a game character controlled by the terminal device, and the virtual card stack is used to stack a plurality of virtual cards currently held by the game character in sequence, the method including:

displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile;

responding to touch operation of a display control corresponding to a target type of virtual cards, and prominently displaying the card face information of the target type of virtual cards from the virtual card pile; the target type of virtual cards are determined types of virtual cards selected from the preset types of virtual cards.

In one possible embodiment, displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile comprises:

counting the number of virtual cards in the virtual card pile;

judging whether the number of the virtual cards in the virtual card pile exceeds a first preset number or not;

and if the number of the virtual cards in the virtual card pile exceeds a first preset number, displaying a display control corresponding to a preset type of virtual cards on the game interface.

In one possible embodiment, displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile comprises:

acquiring an image of a virtual card of the virtual card pile;

identifying the pattern identification of the upper left corner of the card in the image;

and if the number of the pattern identifications of the upper left corner of the card is lower than a second preset number, displaying a display control corresponding to a virtual card of a preset type on the game interface.

In a possible implementation manner, the display control corresponding to the virtual card of the preset kind includes any one of the following:

displaying controls corresponding to the virtual cards classified according to the card functions;

the display control corresponding to the virtual cards classified according to the colors of the cards;

and displaying controls corresponding to the virtual cards classified according to the sizes of the cards.

In one possible embodiment, displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile comprises:

correspondingly displaying different display controls on the game interface according to different types of virtual cards in the virtual card pile;

and aiming at the type of the virtual cards which do not belong to the virtual card pile, setting the display control corresponding to the virtual cards of the type to be invisible or grey marking inoperable.

In one possible implementation, the face information of the virtual card of the target category is highlighted from the virtual card pile in any one or more of the following highlighting manners:

amplifying and displaying the virtual cards of the target types according to a preset proportion;

displaying the virtual cards of the target types according to a preset dynamic effect;

moving the virtual card of the target category upward.

In one possible implementation, in response to a touch operation applied to a display control corresponding to a virtual card of a target category, highlighting card face information of the virtual card of the target category from the virtual card pile includes:

and responding to the long-time pressing operation of the display control corresponding to the virtual cards of the target types, and displaying the face information of all the virtual cards of the target types in a highlighted mode from the virtual card pile.

In one possible implementation, in response to a touch operation applied to a display control corresponding to a virtual card of a target category, highlighting card face information of the virtual card of the target category from the virtual card pile includes:

responding to the single click operation of a display control corresponding to the target type of virtual cards, and highlighting and displaying the card face information of one virtual card of the target type meeting a preset rule from the virtual card pile;

and responding to continuous clicking operation of a display control corresponding to the target type of virtual cards, and sequentially and prominently displaying the card face information of other target type of virtual cards meeting a preset rule from the virtual card pile until the highlighting of the card face information of the virtual cards is cancelled.

In a second aspect, an embodiment of the present application further provides an interaction apparatus for a virtual card game, in which a terminal device provides a graphical user interface, and a content displayed in the graphical user interface at least partially includes a game interface of the virtual card game, where the game interface displays a virtual card stack currently held by a game character controlled by the terminal device, and the virtual card stack is used to stack a plurality of virtual cards currently held by the game character in sequence, the apparatus includes:

the display module is used for displaying display controls corresponding to virtual cards of preset types on the game interface according to the virtual card piles;

the response module is used for responding to the touch operation of the display control corresponding to the target type of virtual cards and prominently displaying the card face information of the target type of virtual cards from the virtual card pile; the target type of virtual cards are determined types of virtual cards selected from the preset types of virtual cards.

In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.

In a fourth aspect, this application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.

An interaction method, an interaction device, an electronic device, and a storage medium for a virtual card game are provided in an embodiment of the present application, where a terminal device provides a graphical user interface, and a content displayed in the graphical user interface at least partially includes a game interface of the virtual card game, where the game interface displays a virtual card stack currently held by a game character controlled by the terminal device, and the virtual card stack is used to stack a plurality of virtual cards currently held by the game character in sequence, where the method includes: displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile; and responding to the touch operation of the display control corresponding to the target type of virtual cards, and prominently displaying the card face information of the target type of virtual cards from the virtual card pile. Compared with the prior art that when hands are more, only partial cards can be seen at one time, the efficiency is low, the hand content owned by the player cannot be mastered quickly, and the strategy performance of the player is influenced.

In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.

Drawings

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

FIG. 1 shows a schematic diagram of a prior art "people find cards" scheme;

FIG. 2 is a flow chart illustrating an interactive method of a virtual card game provided by an embodiment of the present application;

FIG. 3 illustrates a schematic view of a discard interface when the virtual card is stacked;

FIG. 4 shows a schematic diagram of a "card change" scheme provided by an embodiment of the present application;

FIG. 5 is a schematic structural diagram of an interaction device of a virtual card game provided by an embodiment of the application;

fig. 6 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.

Detailed Description

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

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

To enable those skilled in the art to use the present disclosure, the following embodiments are given in conjunction with a specific application scenario "interaction of unlimited card game (e.g., UNO)". It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the present application is described primarily in the context of "interaction for unlimited card-like games (e.g., UNO)," it should be understood that this is merely one exemplary embodiment.

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

In a card game (such as UNO) capable of adding cards indefinitely, if too many hands of players exist, all cards cannot be browsed quickly, cards which the players want to find are difficult, and strategies are difficult to be assigned according to the hands. In the prior art, a player clicks a card pile, and the display area of a card at the clicked position is enlarged, so that a local card surface is clearly seen. When the number of hands is large, only partial card faces can be seen at one time, the efficiency is low, the content of the own hands cannot be mastered quickly, and the strategy exertion of players is influenced. Based on this, the embodiments of the present application provide an interaction method and apparatus for a virtual card game, an electronic device, and a storage medium, which are described below by way of embodiments.

The interaction method of the virtual card game in one embodiment disclosed in the application can be operated on a terminal device or a server. The terminal device may be a local terminal device. When the interface display control method is operated on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and a 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 interaction method of the virtual card game 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; however, the terminal device performing the information processing is a cloud game server in the 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 alternative embodiment, the terminal device may be a local terminal device. 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 an interaction method for a virtual card game, in which a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device, and may also be a client device in the aforementioned cloud interaction system.

To facilitate understanding of the present embodiment, a detailed description will be given of an interaction method of a virtual card game disclosed in the embodiments of the present application.

Referring to fig. 2, fig. 2 is a flowchart illustrating an interaction method of a virtual card game according to an embodiment of the present disclosure. The method comprises the steps that a terminal device provides a graphical user interface, and content displayed in the graphical user interface at least partially comprises a game interface of a virtual card game, wherein the game interface displays a virtual card pile currently held by a game role controlled by the terminal device, and the virtual card pile is used for sequentially stacking a plurality of virtual cards currently held by the game role. As shown in fig. 2, the method includes:

s201, displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile;

s202, responding to touch operation of a display control corresponding to a target type of virtual cards, and prominently displaying the card face information of the target type of virtual cards from the virtual card pile; the target type of virtual cards are determined types of virtual cards selected from the preset types of virtual cards.

An application scenario of the present embodiment will be explained first.

The virtual card game can be a poker game, taro, UNO, sanguo, and the like. In this embodiment, a UNO card is taken as an example, a virtual card pile currently held by a game character controlled by a terminal device is displayed on a game interface of the UNO card, the virtual card pile is used for sequentially stacking a plurality of virtual cards currently held by the game character, the virtual cards include at least one of digital cards, functional cards and universal cards, and a card surface is displayed in front. The game interface of the UNO cards also displays a virtual card pile currently held by other game opponents, the virtual card pile is used for sequentially stacking a plurality of virtual cards currently held by the game opponents, the virtual cards comprise at least one of digital cards, functional cards and universal cards, and the back of the card surface is displayed.

Various virtual cards of the UNO card are described below:

number Card (Number Card): the card is composed of 4 colors of red, yellow, blue and green, and each color has a number of 0-9. The number cards have 19 cards per color, 2 cards per color of 1-9 number cards, and 1 card per color of 0 number card.

Function Card (Action Card): it is also composed of 4 colors of red, yellow, blue and green, and the left upper corner of the card is printed with patterns. Their names are "+ 2", "same color all out", "" +4 "," inhibit ", and" reverse ", respectively. And the +2 functional cards are all highlighted after being clicked, and other cards are overlapped. The full-play cards with the same color are all highlighted in the clicked card pile, and other cards are overlapped. And the +4 functional cards are all highlighted after being clicked, and other cards are overlapped. And the forbidden cards in the card pile after being clicked are all highlighted, and other cards are overlapped. And (4) reversing the function cards, wherein all the reversed cards in the card pile are highlighted after clicking, and other cards are overlapped.

Omnipotence Card (Wild Card): it has a very important position in the UNO game. Their faces are black, with names of discoloration (Wild) and +4(Wild Draw Four, Plus 4), 4 each. And Wild: after playing the color-changing card, you can freely designate the color of the next playing card (1 out of 4 colors). +4: after +4 cards are played, you can freely specify the color of the cards played at the next house, and at the same time, the next house needs to punish 4 cards from the card pile and cannot play the cards.

Based on the application scenario of the embodiment, the interaction method of the virtual card game of the embodiment is described in detail.

In step S201, whether a display control corresponding to a preset type of virtual cards is displayed on the game interface may be determined according to the number of virtual cards in the virtual card pile. In specific implementation, whether the display control corresponding to the virtual card of the preset type is displayed on the game interface may be determined in other manners, for example, whether the display control corresponding to the virtual card of the preset type is displayed on the game interface may be determined according to a recognition result of the virtual card image in the virtual card pile, and the like.

In one possible embodiment, displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile comprises: counting the number of virtual cards in the virtual card pile; judging whether the number of the virtual cards in the virtual card pile exceeds a first preset number or not; and if the number of the virtual cards in the virtual card pile exceeds a first preset number, displaying a display control corresponding to a preset type of virtual cards on the game interface. Specifically, as shown in fig. 3, the card game UNO capable of adding cards indefinitely counts the number of virtual cards in the virtual card pile, and if the number of virtual cards in the virtual card pile exceeds a first preset number, it indicates that the number of cards is already superimposed to an invisible card face, as shown in fig. 4, the game interface displays display controls corresponding to functional cards of various categories, for example: the display control corresponding to the function card of "+ 2", "the display control corresponding to the function card of" same color all out "," the display control corresponding to the function card of "+ 4", "the display control corresponding to the function card of" forbidding ", and" the display control corresponding to the function card of "reversing".

In another possible implementation, displaying, on the game interface, a display control corresponding to a virtual card of a preset type according to the virtual card pile includes: acquiring an image of a virtual card of the virtual card pile; identifying the pattern identification of the upper left corner of the card in the image; and if the number of the pattern identifications of the upper left corner of the card is lower than a second preset number, displaying a display control corresponding to a virtual card of a preset type on the game interface. Specifically, as shown in fig. 3, the card game UNO capable of adding cards indefinitely acquires an image of a virtual card in the virtual card pile, identifies pattern identifiers at the upper left corner of the card in the image, where the pattern identifiers at the upper left corner of the card include pattern identifiers printed at the upper left corner of the virtual card, and if the number of the identified pattern identifiers at the upper left corner of the card is lower than a second preset number, it indicates that the number of the cards has been superimposed to the pattern identifiers at the upper left corner of the card, so that the card face cannot be seen, as shown in fig. 4, the game interface displays display controls corresponding to functional cards of various categories, for example: the display control corresponding to the function card of "+ 2", "the display control corresponding to the function card of" same color all out "," the display control corresponding to the function card of "+ 4", "the display control corresponding to the function card of" forbidding ", and" the display control corresponding to the function card of "reversing".

In step S201, the display mode of the display control may be determined according to the type of the virtual card.

In a possible implementation manner, the display control corresponding to the virtual card of the preset type may be determined according to the card function classification, the card color classification, or the card size classification. For example: the display control corresponding to the preset type of virtual cards is determined according to the card function classification, the card function classification comprises +2, homochromatic full-out, +4, forbidding and reversing, correspondingly, the display control corresponding to the preset type of virtual cards comprises a display control corresponding to the +2 functional cards, a display control corresponding to the homochromatic full-out functional cards, a display control corresponding to the +4 functional cards, a display control corresponding to the forbidding functional cards and a display control corresponding to the reversing functional cards. The display control corresponding to the virtual cards of the preset types is determined according to the card color classification, the card color classification comprises four colors of red, yellow, blue and green, correspondingly, the display control corresponding to the virtual cards of the preset types comprises a display control corresponding to the virtual cards of the red, a display control corresponding to the virtual cards of the yellow, a display control corresponding to the virtual cards of the blue and a display control corresponding to the virtual cards of the green. And determining the display control corresponding to the virtual cards of the preset types according to the size classification of the cards, wherein the principle is similar to the two schemes, and the details are not repeated here. It should be noted that the display control corresponding to the virtual cards of the preset types is determined according to the card function classification, the card color classification, or the card size classification, which is only used to teach those skilled in the art how to implement the present invention, but the present invention is not limited thereto, and the display control corresponding to the virtual cards of the preset types may also be determined according to other classifications of the cards, for example, the display control corresponding to the virtual cards of the preset types is determined according to the card classification of the digital cards, the functional cards, and the universal cards.

In another possible implementation manner, different display controls are correspondingly displayed on the game interface according to different types of virtual cards of the virtual card pile; and aiming at the type of the virtual cards which do not belong to the virtual card pile, setting the display control corresponding to the virtual cards of the type to be invisible or grey marking inoperable. For example, for the types "red", "yellow" and "blue" of the current virtual cards belonging to the virtual card pile, a display control corresponding to the "red" virtual card, a display control corresponding to the "yellow" virtual card, and a display control corresponding to the "blue" virtual card are displayed on the game interface; and aiming at the type green of the virtual cards which do not belong to the virtual card pile, setting the display control corresponding to the green virtual cards as invisible or grey marking inoperable.

In step S202, the target type of virtual cards is a certain type of virtual cards selected from the preset types of virtual cards. After a player triggers the display control corresponding to the target type of virtual cards, responding to touch operation acting on the display control corresponding to the target type of virtual cards, and displaying face information of the target type of virtual cards in a highlighted mode from the virtual card pile, so that the idea of finding the cards by people is converted into the idea of finding people by people.

In one possible implementation manner, in response to a touch operation applied to a display control corresponding to a target type of virtual cards, the face information of the target type of virtual cards is highlighted from the virtual card pile according to any one or more of the following highlighting manners: amplifying and displaying the virtual cards of the target types according to a preset proportion; displaying the virtual cards of the target types according to a preset dynamic effect; moving the virtual card of the target category upward. The present embodiment is not limited to this, and other highlighting methods may be adopted.

In another possible implementation, in response to a touch operation applied to a display control corresponding to a virtual card of a target category, highlighting card face information of the virtual card of the target category from the virtual card pile includes: and responding to the long-time pressing operation of the display control corresponding to the virtual cards of the target types, and displaying the face information of all the virtual cards of the target types in a highlighted mode from the virtual card pile. For example, the target category is "same color all out", and the face information of all the "same color all out" function cards is highlighted from the virtual card pile in response to a long-press operation applied to the display control corresponding to the "same color all out" function cards.

In another possible implementation, the highlighting of the face information of the virtual card of the target category from the virtual card pile in response to a touch operation applied to a display control corresponding to the virtual card of the target category includes: responding to the single click operation of a display control corresponding to the target type of virtual cards, and highlighting and displaying the card face information of one virtual card of the target type meeting a preset rule from the virtual card pile; and responding to continuous clicking operation of a display control corresponding to the target type of virtual cards, and sequentially and prominently displaying the card face information of other target type of virtual cards meeting a preset rule from the virtual card pile until the highlighting of the card face information of the virtual cards is cancelled. For example, the target type is 'same-color full-out', and the face information of the first 'same-color full-out' function card is highlighted from the virtual card pile in response to the single-click operation of the display control corresponding to the 'same-color full-out' function card; and responding to continuous clicking operation acted on a display control corresponding to the 'same-color all-out' function card, and sequentially and prominently displaying the card face information of a second 'same-color all-out' function card and the card face information of a third 'same-color all-out' function card in the virtual card pile until the highlighted card face information of the virtual card is cancelled.

It should be noted that the three possible embodiments of the step S202 are only used for teaching the skilled person how to implement the present invention. In particular implementations, the invention is not so limited and other possible implementations may be used to display the face information for the target category of virtual cards.

An interaction method of a virtual card game provided by an embodiment of the present application, wherein a terminal device provides a graphical user interface, and a content displayed in the graphical user interface at least partially includes a game interface of the virtual card game, wherein the game interface displays a virtual card stack currently held by a game character controlled by the terminal device, and the virtual card stack is used for sequentially stacking a plurality of virtual cards currently held by the game character, the method includes: displaying a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile; and responding to the touch operation of the display control corresponding to the target type of virtual cards, and prominently displaying the card face information of the target type of virtual cards from the virtual card pile. Compared with the prior art that when hands are more, only partial cards can be seen at one time, the efficiency is low, the hand content owned by the player cannot be mastered quickly, and the strategy performance of the player is influenced.

Based on the same technical concept, the embodiments of the present application further provide an interaction device, an electronic device, a computer storage medium, and the like for a virtual card game, which can be specifically referred to in the following embodiments.

Referring to fig. 5, fig. 5 is a schematic structural diagram of an interaction device of a virtual card game according to an embodiment of the present disclosure. The apparatus provides a graphical user interface through a terminal device, the content displayed in the graphical user interface at least partially includes a game interface of the virtual card game, wherein the game interface displays a virtual card pile currently held by a game character controlled by the terminal device, the virtual card pile is used for sequentially stacking a plurality of virtual cards currently held by the game character, and the apparatus comprises:

the display module 10 is configured to display a display control corresponding to a preset type of virtual cards on the game interface according to the virtual card pile;

the response module 20 is configured to respond to a touch operation applied to a display control corresponding to a target type of virtual cards, and to prominently display card face information of the target type of virtual cards from the virtual card pile; the target type of virtual cards are determined types of virtual cards selected from the preset types of virtual cards.

In a possible embodiment, the display module 10 is particularly intended for:

counting the number of virtual cards in the virtual card pile;

judging whether the number of the virtual cards in the virtual card pile exceeds a first preset number or not;

and if the number of the virtual cards in the virtual card pile exceeds a first preset number, displaying a display control corresponding to a preset type of virtual cards on the game interface.

In a possible embodiment, the display module 10 is particularly intended for:

acquiring an image of a virtual card of the virtual card pile;

identifying the pattern identification of the upper left corner of the card in the image;

and if the number of the pattern identifications of the upper left corner of the card is lower than a second preset number, displaying a display control corresponding to a virtual card of a preset type on the game interface.

In a possible implementation manner, the display control corresponding to the virtual card of the preset kind includes any one of the following:

displaying controls corresponding to the virtual cards classified according to the card functions;

the display control corresponding to the virtual cards classified according to the colors of the cards;

and displaying controls corresponding to the virtual cards classified according to the sizes of the cards.

In a possible embodiment, the display module 10 is particularly intended for:

correspondingly displaying different display controls on the game interface according to different types of virtual cards in the virtual card pile;

and aiming at the type of the virtual cards which do not belong to the virtual card pile, setting the display control corresponding to the virtual cards of the type to be invisible or grey marking inoperable.

In one possible embodiment, the response module 20 is specifically configured to highlight the face information of the virtual cards of the target category from the virtual card pile in any one or more of the following highlighting manners:

amplifying and displaying the virtual cards of the target types according to a preset proportion;

displaying the virtual cards of the target types according to a preset dynamic effect;

moving the virtual card of the target category upward.

In a possible implementation, the response module 20 is specifically configured to:

and responding to the long-time pressing operation of the display control corresponding to the virtual cards of the target types, and displaying the face information of all the virtual cards of the target types in a highlighted mode from the virtual card pile.

In a possible implementation, the response module 20 is specifically configured to:

responding to the single click operation of a display control corresponding to the target type of virtual cards, and highlighting and displaying the card face information of one virtual card of the target type meeting a preset rule from the virtual card pile;

and responding to continuous clicking operation of a display control corresponding to the target type of virtual cards, and sequentially and prominently displaying the card face information of other target type of virtual cards meeting a preset rule from the virtual card pile until the highlighting of the card face information of the virtual cards is cancelled.

An embodiment of the present application discloses an electronic device, as shown in fig. 6, including: a processor 601, a memory 602, and a bus 603, wherein the memory 602 stores machine-readable instructions executable by the processor 601, and when the electronic device is operated, the processor 601 and the memory 602 communicate via the bus 603. The machine readable instructions, when executed by the processor 601, perform the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.

The computer program product of the interaction method for the virtual card game provided in the embodiment of the present application includes a computer readable storage medium storing nonvolatile program code executable by the processor 601, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and will not be described herein again.

It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

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

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

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.

The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including 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 application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:模拟翼装飞行极限运动的展项装置

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类