Interface display method and device, computer equipment and storage medium
By displaying virtual scenes in the chess and card game interface and displaying scene special effects in response to target events, the problem of insufficient display effect of the existing interface is solved, and the interface display effect and fun are improved.
Patent Information
- Application Number
- CN202311763689.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2025-06-20
AI Technical Summary
The existing chess and card game interface is insufficient when displaying animations, resulting in low visual fatigue and low interest.
Display the virtual scene in the chess and card game interface, and display matching scene effects in the virtual scene in response to the target event to enhance the interface display effect.
It improves the interface display effect, avoids visual fatigue caused by the fixed virtual scene, and increases the fun of chess and card games.
Smart Images

Figure CN120168955A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of computer technology, and particularly to an interface display method, apparatus, computer device, and storage medium. Background Art
[0002] Online chess and card games are a type of game deeply loved by the public. In a chess and card game session, each user holds a certain number of chess and card objects, such as playing cards, gobang, etc. Multiple users take turns to play out the chess and card objects until a certain user wins and the chess and card game session ends.
[0003] The chess and card game session interface displays the chess and card game session screen, through which the current situation of the chess and card game session can be shown. Moreover, to enhance the fun, when a certain user plays out a chess and card object in the chess and card game session, an animation is played on the chess and card game session interface. However, just playing the animation on the chess and card game session interface, the interface display effect is still insufficient. Summary of the Invention
[0004] Embodiments of the present application provide an interface display method, apparatus, computer device, and storage medium, which improve the interface display effect, avoid visual fatigue caused by the fixed virtual scene, and enhance the fun of the chess and card game session. The technical solutions are as follows:
[0005] On the one hand, an interface display method is provided, and the method includes:
[0006] Display a chess and card game session interface, where the chess and card game session interface displays a chess and card game session screen and a first virtual scene;
[0007] In response to a target event in the chess and card game session, display a scene special effect matching the target event in the first virtual scene;
[0008] Wherein, the chess and card game session screen is used to show the situation of the chess and card game session.
[0009] On the other hand, an interface display apparatus is provided, and the apparatus includes:
[0010] A first display module, configured to display a chess and card game session interface, where the chess and card game session interface displays a chess and card game session screen and a first virtual scene;
[0011] A second display module, configured to, in response to a target event in the chess and card game session, display a scene special effect matching the target event in the first virtual scene;
[0012] Wherein, the chess and card game session screen is used to show the situation of the chess and card game session.
[0013] Optionally, the second display module includes at least one of the following:
[0014] A first display unit, configured to add scene elements matching the target event to the first virtual scene;
[0015] A second display unit, configured to dynamically display the scene elements matching the target event in the first virtual scene;
[0016] A third display unit, configured to add light effects to the scene elements matching the target event in the first virtual scene.
[0017] Optionally, the second display module includes:
[0018] A fourth display unit, configured to, in response to an event of a chess and card object being issued in the chess and card game, display a scene special effect matching the chess and card object in the first virtual scene.
[0019] Optionally, the fourth display unit is configured to:
[0020] In response to an event of at least two chess and card objects being issued in the chess and card game, based on the combination mode of the at least two chess and card objects, display a scene special effect matching the combination mode in the first virtual scene.
[0021] Optionally, the fourth display unit is configured to:
[0022] In response to an event of at least two chess and card objects being issued in the chess and card game, determine the combination mode of the at least two chess and card objects;
[0023] Query a scene special effect matching the combination mode from the first configuration information;
[0024] Display the queried scene special effect in the first virtual scene.
[0025] Optionally, the second display module is configured to:
[0026] In response to the target event in the chess and card game, play an animation matching the target event in the chess and card game interface;
[0027] After the animation is played, display the scene special effect matching the target event in the first virtual scene.
[0028] Optionally, the device further includes:
[0029] A playback module, configured to, in response to the target event in the chess and card game, play a scene sound effect corresponding to the scene special effect.
[0030] Optionally, the device further includes:
[0031] A weight recording module, configured to record the weights of the displayed scene special effects.
[0032] A scene switching module, configured to switch the first virtual scene to a second virtual scene when the total recorded weight is not less than a target weight.
[0033] Optionally, the scene switching module is configured to:
[0034] When the total recorded weight is not less than the target weight, switch the first virtual scene to the second virtual scene corresponding to the scene special effect displayed most recently.
[0035] Optionally, the scene switching module is configured to:
[0036] When the total recorded weight is not less than the target weight, query from the second configuration information the second virtual scene corresponding to the scene special effect displayed most recently;
[0037] Switch the first virtual scene to the second virtual scene.
[0038] Optionally, the scene switching module is configured to:
[0039] When the total recorded weight is not less than the target weight, display a transition special effect in the chess and card game interface;
[0040] After the transition special effect is displayed, display the chess and card game screen and the second virtual scene in the chess and card game interface.
[0041] Optionally, the device further includes:
[0042] A third display module, configured to, in response to a touch operation on the first virtual scene, display a scene special effect matching the touch operation in the first virtual scene.
[0043] Optionally, the third display module is configured to perform at least one of the following:
[0044] In response to the touch operation, display a scene special effect matching the scene area where the touch operation is located in the first virtual scene;
[0045] In response to the touch operation, display a scene special effect matching the temperature of the finger performing the touch operation in the first virtual scene;
[0046] In response to the touch operation, display a scene special effect matching the operation type of the touch operation in the first virtual scene;
[0047] In response to the touch operation, display a scene special effect in the first virtual scene that matches the operation time of the touch operation.
[0048] Optionally, the third display module is configured to:
[0049] If the scene area is a snow scene area, in response to the touch operation, display a special effect of snow melting in the first virtual scene; or,
[0050] If the scene area is a rain scene area, in response to the touch operation, display a special effect of raindrops splashing in the first virtual scene.
[0051] On the other hand, a computer device is provided. The computer device includes a processor and a memory. At least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the interface display method described in the above aspects.
[0052] On the other hand, a computer-readable storage medium is provided. At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the operations performed by the interface display method described in the above aspects.
[0053] On the other hand, a computer program product is provided, including a computer program. The computer program is loaded and executed by a processor to implement the operations performed by the interface display method described in the above aspects.
[0054] The solution of the embodiment of the present application not only displays the chess and card game picture in the chess and card game interface, but also displays a virtual scene. And in response to a target event in the chess and card game, display a scene special effect matching the target event in the virtual scene, presenting an effect of playing a chess and card game in a virtual scene and the virtual scene changing according to the target event in the chess and card game, improving the interface display effect, avoiding visual fatigue caused by the fixed virtual scene, and enhancing the interest of the chess and card game. Description of the Drawings
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0056] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0057] Figure 2 It is a flowchart of an interface display method provided by an embodiment of the present application;
[0058] Figure 3 It is a schematic diagram of a chess and card game interface provided by an embodiment of the present application;
[0059] Figure 4 It is a schematic diagram of a scene special effect provided by an embodiment of the present application;
[0060] Figure 5 It is a flowchart of another interface display method provided by an embodiment of the present application;
[0061] Figure 6 It is a flowchart of another interface display method provided by an embodiment of the present application;
[0062] Figure 7 It is a schematic diagram of emitting a chess and card object provided by an embodiment of the present application;
[0063] Figure 8 It is a schematic diagram of playing an animation provided by an embodiment of the present application;
[0064] Figure 9 It is a flowchart of playing an animation provided by an embodiment of the present application;
[0065] Figure 10 It is a flowchart of displaying a scene special effect provided by an embodiment of the present application;
[0066] Figure 11 It is a flowchart of another method for displaying a scene special effect provided by an embodiment of the present application;
[0067] Figure 12 It is a flowchart of another interface display method provided by an embodiment of the present application;
[0068] Figure 13 It is a flowchart of switching a virtual scene provided by an embodiment of the present application;
[0069] Figure 14 It is a schematic diagram of another chess and card game interface provided by an embodiment of the present application;
[0070] Figure 15 It is a schematic diagram of a transition special effect provided by an embodiment of the present application;
[0071] Figure 16 It is a schematic diagram of a chess and card game interface after switching a virtual scene provided by an embodiment of the present application;
[0072] Figure 17 It is a schematic diagram of the operation process of an interface display method provided by an embodiment of the present application;
[0073] Figure 18 It is a flowchart of another interface display method provided by an embodiment of the present application;
[0074] Figure 19 It is a flowchart of controlling the melting of snow scenes provided by an embodiment of the present application;
[0075] Figure 20 It is a schematic structural diagram of an interface display device provided by an embodiment of the present application;
[0076] Figure 21 It is a schematic structural diagram of another interface display device provided by an embodiment of the present application;
[0077] Figure 22 It is a schematic structural diagram of a terminal provided by an embodiment of the present application;
[0078] Figure 23 It is a schematic structural diagram of a server provided by an embodiment of the present application. Detailed implementation manners
[0079] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0080] It can be understood that the terms "first", "second", etc. used in the present application may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the present application, the first virtual scene may be referred to as the second virtual scene, and similarly, the second virtual scene may be referred to as the first virtual scene.
[0081] Among them, at least two means two or more. For example, at least two virtual scenes may be two virtual scenes, three virtual scenes, etc., any integer greater than or equal to two virtual scenes. Each refers to each of the at least two. For example, each virtual scene refers to each of the at least two virtual scenes. If the at least two virtual scenes are 3 virtual scenes, then each virtual scene refers to each of the 3 virtual scenes.
[0082] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in the present application are all fully authorized by users or relevant parties, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions.
[0083] Artificial Intelligence (AI) is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a way similar to human intelligence. Artificial intelligence also studies the design principles and implementation methods of various intelligent machines, enabling machines to have the functions of perception, reasoning, and decision-making.
[0084] Artificial intelligence technology is an interdisciplinary subject with a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, pre-trained model technology, operation / interaction systems, mechatronics, etc. Among them, the pre-trained model, also known as the large model or the foundation model, can be widely applied to downstream tasks in various directions of artificial intelligence after fine-tuning. The software technologies of artificial intelligence mainly include several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning, autonomous driving, and intelligent transportation.
[0085] Computer Vision (CV) is a science that studies how to enable machines to "see". More specifically, it refers to machine vision that uses cameras and computers to replace human eyes for target recognition and measurement, and further performs graphic processing to make the computer-processed images more suitable for human eyes to observe or be transmitted to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish artificial intelligence systems that can obtain information from images or multi-dimensional data. Large model technologies have brought important changes to the development of computer vision technologies. Pretrained models in the field of vision, such as Swin-Transformer (a neural network model), ViT (Vision Transformer, a vision Transformer model), V-MOE (Vision Mixture of Experts, a vision-mixed expert model), MAE (Masked Auto Encoders), etc., can be quickly and widely applied to downstream specific tasks after fine-tuning. Computer vision technologies usually include image processing, image recognition, image semantic understanding, image retrieval, optical character recognition (OCR), video processing, video semantic understanding, video content / behavior recognition, 3D object reconstruction, 3D technologies, virtual reality, augmented reality, simultaneous localization and mapping, etc. technologies, and also include common biometric recognition technologies such as face recognition and fingerprint recognition.
[0086] With the research and progress of artificial intelligence technologies, artificial intelligence technologies are being studied and applied in multiple fields. For example, common ones include smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, driverless, autonomous driving, drones, digital twins, virtual humans, robots, artificial intelligence-generated content (AIGC), conversational interactions, intelligent healthcare, intelligent customer service, game AI, etc. It is believed that with the development of technologies, artificial intelligence technologies will be applied in more fields and play an increasingly important role.
[0087] The solution provided in the embodiments of this application relates to technologies such as computer vision of artificial intelligence, and is specifically described through the following embodiments:
[0088] First, the concepts involved in the embodiments of this application are explained as follows:
[0089] 1. Board and card games: Board games and card games are collectively referred to as board and card games, which include card games, chess games, gobang games, flight chess games, go games, checkers games, mahjong games, etc.
[0090] Board game objects are virtual objects for users to interact with in board games, including playing cards, Chinese chess, gobang, snakes and ladders, Go, draughts, mahjong tiles, etc.
[0091] In a board game match, multiple users participate. Each user holds a certain number of board game objects, and multiple users take turns to play out the board game objects until a certain user wins and the board game match ends.
[0092] 2. Virtual scene: The virtual scene is used to simulate a virtual space and is displayed when showing the board game match screen, giving users a feeling of playing a board game in the virtual scene.
[0093] For example, the virtual scene can include scene elements such as sky, land, and sea. The land can include environmental elements such as deserts and cities. Of course, virtual items, virtual characters, virtual animals, etc. can also be included in the virtual scene. The virtual scene can also be used to simulate the environment under different weathers, such as sunny, rainy, foggy, or night weather. All kinds of scene elements enhance the diversity and authenticity of the virtual scene.
[0094] The scene elements in the virtual scene can be displayed statically or dynamically. For example, scene elements such as the sky and land are displayed statically, while the birds flying in the sky and the rain falling from the sky are displayed dynamically.
[0095] Here, only the above virtual scene is used as an example for illustration, and the embodiments of the present application do not make specific limitations in this regard.
[0096] The interface display method provided by the embodiments of the present application is applied to a computer device, which is a terminal or a server.
[0097] Optionally, the terminal is a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a smart game console, a smart TV, etc., but is not limited thereto. The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, intelligent transportation, assisted driving, etc.
[0098] Optionally, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0099] In a possible implementation, the computer program involved in the embodiments of the present application can be deployed to be executed on a computer device, or on multiple computer devices located at one place, or on multiple computer devices distributed at multiple places and interconnected through a communication network. The multiple computer devices distributed at multiple places and interconnected through a communication network can form a blockchain system.
[0100] In a possible implementation, the computer device in the embodiments of the present application is a node in the blockchain system. This node can store the data of the chess and card game in the blockchain. After that, this node or the corresponding nodes of other devices in the blockchain can query the data of the chess and card game by accessing the blockchain.
[0101] Figure 1 It is a schematic diagram of an implementation environment provided by the embodiments of the present application. Refer to Figure 1 , this implementation environment includes multiple terminals 101 ( Figure 1 taking 2 as an example in the figure) and a server 102. The multiple terminals 101 and the server 102 are connected through a wireless or wired network.
[0102] The server 102 provides a game environment for the multiple terminals 101. The multiple terminals 101 conduct a chess and card game based on the logged-in accounts. Each terminal 101 displays a chess and card game interface, and the chess and card game interface displays a chess and card game screen and a virtual scene. In the chess and card game screen, the chess and card objects held by the terminal 101 and the chess and card objects sent by other terminals 101 are displayed, etc. When a target event occurs in the chess and card game, a scene special effect matching the target event is displayed in the virtual scene.
[0103] Optionally, each terminal 101 installs a target application provided with services by the server 102, and the multiple terminals 101 can conduct a chess and card game through this target application. For example, the target application is a chess and card game application. In this chess and card game application, a chess and card game room can be opened, and a chess and card game is conducted in this chess and card game room. Of course, this game application also has other functions, such as a shopping function, a chatting function, etc. Optionally, the server 102 is the background server of this target application or a cloud server that provides cloud computing and cloud storage services for this target application.
[0104] The method provided by the embodiments of the present application can be used in multiple scenarios.
[0105] For example, in the scenario of a poker game:
[0106] The terminal is installed with a poker game application. Log in to the poker game application based on an account and enter a virtual room. In the virtual room, this account plays poker against other accounts in the virtual room. At the beginning of the game, the server distributes a certain number of poker cards to each account. According to the rules of the poker game, multiple accounts take turns playing the poker cards they hold. Moreover, during the game process, the terminal will use the method provided in the embodiments of the present application to display the chess and card game interface. When any account has played all the poker cards it holds, that account wins and the poker game ends.
[0107] For another example, in the context of Go:
[0108] The terminal is installed with a Go game application. Log in to the Go game application based on an account and enter a virtual room. In the virtual room, this account plays Go against another account. At the beginning of the game, the server distributes a certain number of Go pieces to each account, and the colors of the pieces of the two accounts are different. According to the rules of the Go game, the two accounts take turns playing the pieces they hold. Moreover, during the game process, the terminal will use the method provided in the embodiments of the present application to display the chess and card game interface. When the layout of the pieces on the chessboard meets the winning conditions, the winning account is determined and the Go game ends.
[0109] Figure 2 It is a flowchart of an interface display method provided by the embodiments of the present application. The embodiments of the present application are executed by a computer device. Refer to Figure 2 and the method includes:
[0110] 201. The computer device displays a chess and card game interface, and the chess and card game interface displays a chess and card game screen and a first virtual scene.
[0111] Among them, the chess and card game screen is used to display the situation of the chess and card game. For example, in the poker game, the chess and card game screen includes the poker cards held by the account logged in to the computer device and the poker cards played by this account or other accounts. In the Go game, the chess and card game screen includes the chessboard and the pieces on the chessboard, as well as the remaining pieces in the chess box of the account logged in to the computer device.
[0112] In addition, the first virtual scene is used to simulate the scene where the chess and card game is located, and can create a feeling for the user of playing the chess and card game in this virtual scene. The first virtual scene is the default virtual scene of the computer device, or the virtual scene selected by the user before the start of the chess and card game, or the virtual scene displayed before the end of the previous chess and card game. The embodiments of the present application do not make any limitations in this regard.
[0113] Optionally, in the chess and card game interface, the chess and card game screen is displayed on top of the first virtual scene, and the chess and card game screen partially overlaps with the first virtual scene, making it easier to present the effect that the chess and card game is in the first virtual scene. For example, the chess and card game screen includes the area where the display elements are located and a blank area, and this blank area is a transparent area through which the first virtual scene located below the chess and card game screen can be displayed.
[0114] For example, as Figure 3 shown, in the poker game interface, there are a poker game screen 301 and a first virtual scene 302 displayed. The poker game screen 301 shows the poker cards held by account 1 and the poker cards issued by account 2. The first virtual scene 302 is displayed below the poker game screen 301, and there are many mountains in the first virtual scene 302.
[0115] 202. The computer device, in response to a target event in the chess and card game, displays a scene special effect matching the target event in the first virtual scene.
[0116] Among them, the target event is any event that can occur in the chess and card game, such as the start event of the chess and card game, the event that any account issues a chess and card object, the event that any account's issuance of a chess and card object times out, the end event of the chess and card game, etc.
[0117] In addition, the scene special effect is used to change the first virtual scene. By displaying the scene special effect in the first virtual scene, the change of the first virtual scene can be controlled, so that the user of the computer device can view the change of the first virtual scene, avoiding the boredom caused by the fixed first virtual scene and enhancing the interest of the chess and card game.
[0118] Optionally, multiple available scene special effects are set for the first virtual scene. In the case of a target event occurring in the chess and card game, a scene special effect matching the target event is selected from the multiple scene special effects and displayed in the first virtual scene. Among them, the scene special effect matching any event can be set by default by the computer device or set by the user. The same event can match multiple different scene special effects, and different events can also match the same scene special effect. The embodiments of the present application do not make any limitations on this.
[0119] For example, as Figure 3 and Figure 4 shown, there were originally many mountains displayed in the first virtual scene 302. In the case of a target event occurring in the chess and card game, a scene special effect 303 is displayed in the first virtual scene 302, and the scene special effect 303 is the special effect of a bird flying between these mountains.
[0120] Optionally, when the computer device logs in to an account, the displayed scene special effects correspond to the level of the account, that is, different levels of the account allow different displayed scene special effects. The user can upgrade the level of the account by means of recharging, performing tasks, etc., so as to display higher-level scene special effects and improve the display effect of the chess and card game interface. Alternatively, the computer device provides a variety of scene special effects, and if the user purchases the display permission of any one or more scene special effects, the scene special effects with the purchased display permission can be displayed in the chess and card game interface.
[0121] In the solution of the embodiment of the present application, not only the chess and card game screen is displayed in the chess and card game interface, but also a virtual scene is displayed. And in response to a target event in the chess and card game, a scene special effect matching the target event is displayed in the virtual scene, presenting an effect of playing a chess and card game in a virtual scene and the virtual scene changing according to the target event in the chess and card game, improving the interface display effect, avoiding visual fatigue caused by the fixed virtual scene, and enhancing the interest of the chess and card game.
[0122] Based on the above Figure 2 shown embodiment, the embodiment of the present application further provides another interface display method. Figure 5 FIG. is a flowchart of another interface display method provided by the embodiment of the present application. The embodiment of the present application is executed by a computer device. Refer to Figure 5 , and the method includes:
[0123] 501. The computer device displays a chess and card game interface, and the chess and card game interface displays a chess and card game screen and a first virtual scene.
[0124] Among them, the chess and card game screen is used to display the situation of the chess and card game.
[0125] The process of step 501 is the same as that of step 201 above, and the embodiment of the present application will not elaborate here.
[0126] 502. The computer device responds to a target event in the chess and card game, plays an animation matching the target event in the chess and card game interface, and executes steps 503 and 504.
[0127] Among them, the animation matching the target event is used to indicate that a target event has occurred in the chess and card game. The difference between the animation and the scene special effect is that the animation is played for the chess and card game screen, is not displayed in the first virtual scene, and will not affect the first virtual scene, while the scene special effect is displayed in the first virtual scene and will change the first virtual scene.
[0128] Optionally, the computer device responds to a target event in the chess and card game, and plays the animation on the upper layer of the display area where the chess and card game screen is located, or plays the animation in the chess and card game screen.
[0129] Optionally, the animation is set with a target playing duration. After the duration of playing the animation in the chess and card game interface reaches the target playing duration, the animation stops playing and disappears from the chess and card game interface. During the process of playing the animation, the first virtual scene remains unchanged.
[0130] Optionally, no display duration is set for the scene special effect. The scene special effect will always be displayed in the first virtual scene until the end of the chess and card game, or until another scene special effect with the opposite effect of the scene special effect is displayed in the first virtual scene. By adopting this setting method, the difference between the animation and the scene special effect can be ensured, that is, the animation has no persistence and will no longer appear after playing, while the scene special effect has persistence and will have a continuous impact on the first virtual scene. Of course, a display duration can also be set for the scene special effect. The scene special effect is displayed within the display duration and no longer displayed after reaching the display duration. Or, the scene special effect is displayed in the first virtual scene in the form of a bullet screen and disappears after sliding from one side of the first virtual scene to the other side. The specific display method of the scene special effect in the embodiments of the present application is not limited.
[0131] 503. After the animation is played, a scene special effect matching the target event is displayed in the first virtual scene.
[0132] The process of step 503 is the same as that of step 202 above, and the embodiments of the present application will not elaborate here.
[0133] Optionally, displaying a scene special effect matching the target event in the first virtual scene includes at least one of the following:
[0134] 1. Adding scene elements matching the target event in the first virtual scene.
[0135] The scene elements matching the target event can include various types of elements such as sky, land, ocean, virtual items, virtual characters, virtual animals, snow scenes, rain scenes, and night scenes. And, the scene elements matching the target event can be statically displayed scene elements or dynamically displayed scene elements.
[0136] Different target events can match the same scene elements, and the same target event can also match different scene elements. Optionally, when a target event occurs in the chess and card game, the added scene elements not only match the target event but also are scene elements that have not been added to the first virtual scene in this chess and card game, avoiding the repetition of scene elements.
[0137] By adding scene elements when a target event occurs in a chess and card game, the number of scene elements in the first virtual scene can be increased, forming a more complex and rich virtual scene. It can also guide users to actively trigger the target event to view more diverse scene elements.
[0138] 2. Dynamically display the scene elements in the first virtual scene that match the target event.
[0139] In the first virtual scene, the scene elements that match the target event are statically displayed. After the target event occurs in the chess and card game, the scene elements are dynamically displayed, enhancing the agility and realism of the first virtual scene and guiding users to actively trigger the target event.
[0140] 3. Add light effects to the scene elements in the first virtual scene that match the target event.
[0141] By adding light effects to the scene elements that match the target event, the effect of emphasizing the scene elements can be achieved, enhancing the display effect of the first virtual scene.
[0142] The above three ways of displaying scene special effects can be combined in any way, and the embodiments of the present application do not limit the combination method. For example, there is a scene element 1 in the first virtual scene that matches the target event. When the target event occurs for the first time in the chess and card game, the scene element 1 is dynamically displayed. When the same target event occurs for the second time in the chess and card game, another scene element 2 that matches the target event is added to the first virtual scene. When the same target event occurs for the third time in the chess and card game, light effects are added to the scene element 2. In addition, other ways of displaying scene special effects can also be adopted, and the embodiments of the present application do not limit this.
[0143] It should be added that the target event in the embodiments of the present application is an event that can trigger the display of scene special effects. The embodiments of the present application take the execution of steps 502 and 503 as an example for illustration, that is, the target event is an event that can trigger both the playback of the animation and the display of scene special effects. In this case, the computer device first plays the animation, and then after the animation playback is completed, the scene special effects are displayed, avoiding the occlusion of the first virtual scene by the played animation to ensure that the user can see the changes in the first virtual scene when the scene special effects are displayed.
[0144] In another embodiment, the target event that triggers the playback of the animation and the target event that triggers the display of the scene special effect may be exactly the same, or may not be exactly the same. For example, in a chess and card game, a certain target event occurs. If it is determined that the target event can trigger the playback of the animation but cannot trigger the display of the scene special effect, the computer device will play the animation matching the target event on the chess and card game interface, instead of displaying the scene special effect matching the target event in the first virtual scene. Or, in a chess and card game, a certain target event occurs. If it is determined that the target event cannot trigger the playback of the animation but can trigger the display of the scene special effect, the computer device will not play the animation matching the target event on the chess and card game interface, but display the scene special effect matching the target event in the first virtual scene.
[0145] In addition, there are multiple accounts in the chess and card game, and each account may trigger a target event in the chess and card game. The computer device can play the animation matching the target event and display the scene special effect matching the target event in response to the target event triggered by any account. Or, if the computer device only responds to the target events triggered by the locally logged-in account and no longer responds to the target events triggered by other accounts, during the chess and card game, different accounts trigger different events, and the displayed scene special effects are also different. This can better guide users to enrich their personalized virtual scenes by triggering more target events and improve user enthusiasm.
[0146] 504. After the animation playback is completed, the computer device plays the scene sound corresponding to the scene special effect.
[0147] While displaying the scene special effect, the computer device plays the scene sound corresponding to the scene special effect. The cooperation between the scene special effect and the scene sound not only gives the user a visual feeling of seeing the change of the first virtual scene, but also gives the user an auditory feeling of hearing the change of the first virtual scene, enhancing the sense of reality and making it easier for the user to immerse in the first virtual scene, thus improving the user experience.
[0148] Optionally, the computer device sets the corresponding scene sound for at least one scene special effect, queries the scene special effect matching the target event in the chess and card game, and queries the scene sound corresponding to the scene special effect. If the scene sound corresponding to the scene special effect is queried, the scene sound will be played. If the scene sound corresponding to the scene special effect is not queried, it means that no corresponding scene sound is set for this scene special effect, and the scene sound will not be played.
[0149] Optionally, the display duration of the scene special effect is the same as the playing duration of the scene sound effect. When the scene special effect is displayed in the first virtual scene, the scene sound effect will be played synchronously. Alternatively, the display duration of the scene special effect is greater than the playing duration of the scene sound effect. When the scene special effect is displayed in the first virtual scene, the scene sound effect is played. When the playing duration of the scene sound effect is reached, the playing of the scene sound effect is stopped while maintaining the display of the scene special effect, or the playing of the scene sound effect is restarted while maintaining the display of the scene special effect.
[0150] It should be noted that in another embodiment, if the computer device does not play the animation matching the target event, the computer device responds to the target event in the chess and card game and displays the scene special effect matching the target event in the first virtual scene, and plays the scene sound effect corresponding to the scene special effect. Moreover, step 504 is an optional step. When displaying the scene special effect matching the target event in the first virtual scene, the scene sound effect corresponding to the scene special effect may not be played.
[0151] The solution of the embodiment of the present application not only displays the chess and card game screen in the chess and card game interface, but also displays the virtual scene, and responds to the target event in the chess and card game, and displays the scene special effect matching the target event in the virtual scene, presenting an effect of playing the chess and card game in the virtual scene and the virtual scene changing according to the target event in the chess and card game, improving the interface display effect, avoiding visual fatigue caused by the fixed virtual scene, and enhancing the interest of the chess and card game.
[0152] In addition, in response to the target event in the chess and card game, the animation matching the target event is played first. After the animation is played, the scene special effect matching the target event is displayed in the first virtual scene. Playing the animation can provide an immediate feedback on the event triggered by the user in the chess and card game, enhancing the user's sense of achievement. The animation will not affect the first virtual scene, while the scene special effect will change the first virtual scene, enriching the display style of the chess and card game interface, improving the interface display effect, avoiding visual fatigue caused by the fixed virtual scene, and enhancing the interest of the chess and card game.
[0153] In addition, when the scene special effect matching the target event is displayed in the first virtual scene and the scene sound effect matching the target event is played, the scene special effect and the scene sound effect cooperate with each other, not only giving the user a visual feeling of seeing the change of the first virtual scene, but also giving the user an auditory feeling of hearing the change of the first virtual scene, enhancing the sense of reality and improving the user experience.
[0154] The embodiment of the present application also provides another interface display method, taking the event of emitting a chess and card object as the target event as an example. Figure 6It is a flowchart of another interface display method provided by an embodiment of the present application, which is executed by a computer device. Refer to Figure 6 , the method includes:
[0155] 601. The computer device displays a chess and card game interface, and the chess and card game interface displays a chess and card game screen and a first virtual scene.
[0156] Among them, the chess and card game screen is used to display the situation of the chess and card game.
[0157] The process of step 601 is the same as that of step 201, and will not be elaborated here.
[0158] 602. The computer device responds to an event of a chess and card object issued during the chess and card game, and plays an animation matching the chess and card object in the chess and card game interface.
[0159] For example, as Figure 3 , Figure 7 and Figure 8 shown, in the chess and card game interface, the user performs an operation of issuing a chess and card object 701. The computer device detects the event of issuing the chess and card object 601, and in response to this event, plays an animation 801.
[0160] Optionally, as Figure 9 shown, step 602 includes: during the chess and card game, the player issues a chess and card object. The computer device responds to the event of issuing the chess and card object during the chess and card game, detects the combination mode of the chess and card object, determines whether to play an animation. If so, plays an animation matching the combination mode. If not, does not play an animation. The condition for determining whether to play an animation can be set by the computer device or by the player. The judgment condition can include whether the currently logged-in account is the account that issued the chess and card object, whether the combination mode of the issued chess and card object has a matching animation, whether the game duration exceeds a preset duration, etc. The embodiment of the present application does not limit the condition for determining whether to play an animation.
[0161] In a possible implementation manner, match the animation according to the issued event, that is, without paying attention to which specific chess and card object the issued chess and card object is, the computer device only needs to play an animation matching the issued event.
[0162] In another possible implementation manner, the target event is the event of issuing a chess and card object, and the animation matching the target event is the animation matching the issued chess and card object. The computer device needs to consider which specific chess and card objects the issued chess and card objects are, and play an animation matching these chess and card objects. For example, in a poker game, the Ace of Hearts and the 2 of Hearts match different animations.
[0163] In another possible implementation, in a board game session, when at least two board game objects are combined in a certain combination, at least two board game objects can be issued at once. Then, animations can be matched according to the combination method, that is, the computer device does not care which specific board game objects are issued, but needs to consider which combination method these board game objects use. In response to the event of issuing at least two board game objects in a board game session, the computer device plays an animation that matches the combination method based on the combination method of the at least two board game objects.
[0164] Optionally, in response to the event of issuing at least two board game objects in a board game session, the computer device determines the combination method of the at least two board game objects, queries the animation that matches the combination method from the configuration information, and plays the queried animation. Among them, the configuration information includes at least one combination method and the animation that matches each combination method, which can be set by the computer device or by the player. For example, the configuration information is shown in Table 1 below.
[0165] Table 1
[0166] Combination method Animation A pair Animation 1 Three with one Animation 2 Straight flush Animation 3 Bomb Animation 4
[0167] 603. After the animation is played, the computer device displays the scene special effects that match the board game objects in the first virtual scene.
[0168] In one possible implementation, the scene special effects are matched according to the issuing event, that is, the computer device does not care which specific board game objects are issued, and it only needs to display the scene special effects that match the issuing event.
[0169] In another possible implementation, the target event is the event of issuing board game objects, and the scene special effects that match the target event are the scene special effects that match the issued board game objects. The computer device needs to consider which specific board game objects are issued and display the scene special effects that match these board game objects. For example, in a poker game, the Ace of Hearts and the 2 of Hearts match different scene special effects.
[0170] In another possible implementation, in a board game session, when at least two board game objects are combined in a certain combination, at least two board game objects can be issued at once. Then, the scene special effects can be matched according to the combination method, that is, the computer device does not care which specific board game objects are issued, but needs to consider which combination method these board game objects use. In response to the event of issuing at least two board game objects in a board game session, the computer device displays the scene special effects that match the combination method in the first virtual scene based on the combination method of the at least two board game objects.
[0171] Optionally, in response to an event in which at least two chess and card objects are issued in a chess and card game, the computer device determines a combination of at least two chess and card objects, queries a scene effect matching the combination from the first configuration information, and displays the queried scene effect in the first virtual scene. The first configuration information includes at least one combination and a scene effect matching each combination, which can be set by the computer device or by the player. For example, the first configuration information is shown in Table 2 below.
[0172] Table 2
[0173] Combination method Scene special effects A pair Scene windy Three with one Scene rainy Straight flush Leaves falling, buildings glowing Bomb Scene snowy
[0174] Alternatively, if Figure 10 As shown, step 603 includes: after the animation is played, the computer device detects the combination of chess and card objects again to determine whether to display scene special effects. If so, the scene special effects matching the combination are queried from the first configuration information, and the scene special effects matching the combination are displayed in the first virtual scene. If not, the scene special effects are not displayed. The conditions for determining whether to display scene special effects can be set by the computer device or by the player. The judgment conditions may include whether the currently logged in account is the account that issued the chess and card objects, whether the combination of chess and card objects issued has matching scene special effects, whether the game duration exceeds the preset duration, etc. The embodiment of the present application does not limit the conditions for determining whether to display scene special effects.
[0175] In the embodiment of the present application, the computer device can use real-time rendering technology to display scene special effects. Real-time rendering technology is an instant rendering technology that can display while calculating the picture, and can complete the display in less than one second. It has the characteristics of real-time control and real-time interaction, and can process three-dimensional scene images at a very high speed to achieve realistic display effects. Compared with static image rendering tools, real-time rendering technology is measured in frames per second (fps). The range used by the computer device in the embodiment of the present application is 24fps to 60fps. When the target event occurs in the chess and card game, the virtual scene is rendered in real time to achieve an effect close to the real scene.
[0176] like Figure 11 As shown, taking a poker game as an example, a player deals cards, and a computer device detects that the card pattern matches an instruction for snowing, and then initiates a snowing instruction. The scene special effect for the card pattern matching is a snowing special effect, and a snowing scene in the first virtual scene is rendered in real time.
[0177] The solution of the embodiment of the present application not only displays the chess and card game interface, but also displays a virtual scene in the chess and card game interface. And in response to a target event in the chess and card game, a scene special effect matching the target event is displayed in the virtual scene, presenting an effect of playing a chess and card game in a virtual scene and the virtual scene changing according to the target event in the chess and card game, improving the interface display effect, avoiding visual fatigue caused by the fixed virtual scene, and enhancing the interest of the chess and card game.
[0178] In addition, displaying a scene special effect for an event of issuing a chess and card object can guide the user to actively issue a chess and card object in the chess and card game, improving the user's enthusiasm.
[0179] In addition, for an event of issuing a chess and card object, displaying a scene special effect matching the combination method of the chess and card object can guide the user to actively issue a chess and card object that conforms to the corresponding combination method in the chess and card game, increasing the complexity of the chess and card game, and further improving the user's enthusiasm.
[0180] The embodiment of the present application also provides another interface display method. Figure 12 It is a flowchart of another interface display method provided by the embodiment of the present application, which is executed by a computer device. Refer to Figure 12 and this method includes:
[0181] 1201. The computer device displays a chess and card game interface, and the chess and card game interface displays a chess and card game screen and a first virtual scene.
[0182] Among them, the chess and card game screen is used to display the situation of the chess and card game.
[0183] 1202. The computer device, in response to a target event in the chess and card game, displays a scene special effect matching the target event in the first virtual scene.
[0184] The processes of steps 1201-1202 are the same as the processes of steps 201-202 and steps 501-503 above, and will not be elaborated here.
[0185] 1203. The computer device records the weight of the displayed scene special effect.
[0186] The computer device determines the weight of the scene special effect and records the weight of the scene special effect each time the scene special effect is displayed. Among them, the computer device can record the weight of each displayed scene special effect separately, obtain the total weight by calculating the sum of the recorded weights, or each time add the weight of the currently displayed scene special effect to the recorded total weight to obtain the updated total weight. As the number of times the computer device displays the scene special effect increases, the recorded total weight gradually increases.
[0187] Optionally, the weight of each scene special effect can be set by default by the computer device or in other ways. In a chess and card game, the weight of a scene special effect can remain fixed, or it can change accordingly as the duration of the game increases. Alternatively, different levels can be set for each scene special effect, with different levels corresponding to different weights. Thus, the weights of scene special effects at the same level are the same, while the weights of scene special effects at different levels are different.
[0188] Optionally, the computer device queries from the first configuration information the scene special effects that match the combination method of the issued chess and card objects and the weights of these scene special effects, displays the queried scene special effects in the first virtual scene, and records the weights of these scene special effects. Here, the first configuration information includes at least one combination method, the scene special effects that match each combination method, and the weights of these scene special effects, which can be set by the computer device or by the player. For example, the first configuration information is shown in Table 3 below.
[0189] Table 3
[0190] Combination method Scene special effects Weight A pair Scene windy 1 Three with one Scene rainy 1 Straight flush Leaves falling, buildings glowing 2 Bomb Scene snowy 2
[0191] 1204. When the total weight recorded by the computer device is not less than the target weight, the computer device switches the first virtual scene to the second virtual scene.
[0192] When the total weight recorded is not less than the target weight, it means that sufficient scene special effects have been displayed in the first virtual scene during this chess and card game, and the first virtual scene is already rich and diverse enough. In this case, to avoid causing visual fatigue to the user, the first virtual scene is switched to the second virtual scene to enhance the sense of freshness by changing the virtual scene.
[0193] Here, the second virtual scene is any virtual scene different from the first virtual scene. For example, if the computer device sets the display order of multiple virtual scenes, the second virtual scene is the virtual scene located after the first virtual scene. Or the second virtual scene is the virtual scene selected by the user. Alternatively, if different account levels have the permission to display virtual scenes at different levels, the first virtual scene and the second virtual scene are any virtual scenes corresponding to the level of the account logged in to the computer device.
[0194] Optionally, each time the computer device displays a scene special effect, it records the weight of this scene special effect and determines whether the total weight recorded is not less than the target weight to decide whether to change the virtual scene.
[0195] Optionally, considering that the most recent scene special effect has just been displayed in the first virtual scene when the total recorded weight is not less than the target weight, in order to ensure the continuity of the virtual scene, the first virtual scene is switched to a second virtual scene corresponding to the most recent scene special effect. The second virtual scene corresponding to the most recent scene special effect means that the second virtual scene is a virtual scene that can be associated with the most recent scene special effect. Displaying the second virtual scene after the most recent scene special effect can ensure natural scene transition and avoid abrupt scene switching.
[0196] Optionally, when the total recorded weight is not less than the target weight, query the second virtual scene corresponding to the most recent scene special effect from the second configuration information, and switch the first virtual scene to the second virtual scene. The second configuration information includes at least one scene special effect and the virtual scene corresponding to the scene special effect, which can be set by the computer device or by the player. For example, the second configuration information is shown in Table 4 below.
[0197] Table 4
[0198] Scene special effects Virtual scene Scene windy Spring tree theme scene Scene rainy Summer mountain forest theme scene Leaves falling, buildings glowing Urban scenic spot theme scene Scene snowy Urban block theme scene
[0199] Optionally, as Figure 13 shown, steps 1203 and 1204 include: the computer device records the weight of the displayed scene special effect, detects whether the total weight is not less than the target weight, if so, queries the second virtual scene corresponding to the most recent scene special effect from the second configuration information, and switches the first virtual scene to the second virtual scene, if not, does not switch the virtual scene.
[0200] Optionally, when the total recorded weight is not less than the target weight, a transition special effect is displayed in the chess and card game interface. After the transition special effect is displayed, the chess and card game screen and the second virtual scene are displayed in the chess and card game interface. Optionally, the transition special effect is displayed on top of the first virtual scene, covering the first virtual scene.
[0201] For example, as Figure 14 shown, the chess and card game screen and the first virtual scene 1401 are displayed in the chess and card game interface. When the total recorded weight is not less than the target weight, a transition special effect 1402 is displayed in the chess and card game interface as Figure 15 shown. After the transition special effect 1402 is displayed, the chess and card game screen and the second virtual scene 1403 are displayed in the chess and card game interface as Figure 16 shown, where the second virtual scene 1403 includes many buildings.
[0202] Since the process of switching from the first virtual scene to the second virtual scene takes some time, to avoid affecting the interface display effect during the switching process, the computer device can display a transition special effect in the chess and card game interface to attract the user's attention with the transition special effect, so as to complete the virtual scene switching process in the background. In this way, after the transition special effect is displayed, the switched second virtual scene can be displayed, making the virtual scene switching smooth and natural.
[0203] The embodiments of the present application can be combined with the foregoing embodiments in any manner. For example, taking the target event as an event of emitting a chess and card object, the operation process of the embodiments of the present application is as Figure 17 shown. In a chess and card game, the player emits a chess and card object, and the computer device displays a scene special effect matching the chess and card object in the first virtual scene and records the weight of the scene special effect. It detects whether the total weight is not less than the target weight. If so, it initiates a scene switching request. In response to the scene switching request, it reads the scene special effect displayed most recently, queries the second virtual scene corresponding to the scene special effect displayed most recently, and switches the first virtual scene to the second virtual scene. If not, it does not switch the virtual scene.
[0204] The solution of the embodiments of the present application not only displays the chess and card game screen in the chess and card game interface, but also displays the virtual scene, and in response to the target event in the chess and card game, it displays the scene special effect matching the target event in the virtual scene, presenting an effect of playing a chess and card game in a virtual scene and the virtual scene changing according to the target event in the chess and card game, improving the interface display effect, avoiding visual fatigue caused by the fixed virtual scene, and enhancing the interest of the chess and card game.
[0205] In addition, by continuously triggering the scene special effect, the first virtual scene will become richer and richer. When the total weight of the scene special effects displayed in the first virtual scene is not less than the target weight, the first virtual scene is switched to the second virtual scene. By changing the virtual scene, it avoids bringing visual fatigue to the user, improves the freshness, and enhances the stage sense of achievement of the chess and card game.
[0206] In addition, the second virtual scene is a virtual scene that can be associated with the scene special effect displayed most recently in the first virtual scene. Displaying the second virtual scene after the scene special effect displayed most recently can ensure natural scene transition and avoid the situation of abrupt scene switching.
[0207] In addition, first display a transition effect in the chess and card game interface. After the transition effect is displayed, display the chess and card game screen and the second virtual scene in the chess and card game interface. Use the transition effect to attract the user's attention, so as to complete the switching process of the virtual scene in the background. In this way, the switched second virtual scene can be displayed after the transition effect is displayed, making the switching of the virtual scene smooth and natural, and avoiding affecting the interface display effect during the switching process.
[0208] The embodiment of the present application also provides another interface display method. Figure 18 It is a flowchart of another interface display method provided by the embodiment of the present application. The embodiment of the present application is executed by a computer device. Refer to Figure 18 and this method includes:
[0209] 1801. The computer device displays a chess and card game interface, and the chess and card game interface displays a chess and card game screen and a first virtual scene.
[0210] Among them, the chess and card game screen is used to display the situation of the chess and card game.
[0211] The process of step 1801 is the same as that of step 201 above, and the embodiment of the present application will not elaborate here.
[0212] 1802. The computer device responds to a touch operation on the first virtual scene and displays a scene effect matching the touch operation in the first virtual scene.
[0213] In the embodiment of the present application, in order to enhance the interactivity, an example of displaying a scene effect by touching the virtual scene is also provided. Taking the display of the first virtual scene as an example, when the user performs a touch operation on the first virtual scene, the computer device can be triggered to display a scene effect matching the touch operation in the first virtual scene, creating an effect that the first virtual scene changes after the user touches it, simulating the interaction between the user and the first virtual scene.
[0214] For example, in a chess and card game, while the user is waiting for other accounts to send chess and card objects, the user can perform a touch operation on the first virtual scene and enjoy the scene effect displayed in the first virtual scene.
[0215] Among them, the touch operation may include a click operation, a long press operation, a swipe operation, etc. The manner of displaying the scene effect in response to the touch operation is the same as that in the foregoing embodiment for displaying the scene effect, and the embodiment of the present application will not elaborate on the manner of displaying the scene effect.
[0216] Optionally, step 1802 includes at least one of the following:
[0217] 1. The computer device responds to the touch operation and displays a scene effect matching the scene area where the touch operation is located in the first virtual scene.
[0218] The scene area where the touch operation is located can be any area or a qualified area in the first virtual scene, etc. Matching scene special effects can be set separately for different scene areas in the first virtual scene. Among them, the scene area can be divided according to its position in the first virtual scene or according to the type of displayed scene elements.
[0219] For example, if the scene area where the touch operation is located is a snow scene area, in response to the touch operation, the computer device displays special effects of snow melting in the first virtual scene, which can create an effect that the snow melts after the user touches the snow scene.
[0220] Or, if the scene area where the touch operation is located is a rain scene area, in response to the touch operation, the computer device displays special effects of raindrops splashing in the first virtual scene, which can create an effect that raindrops splash after the user touches the rain scene.
[0221] 2. In response to the touch operation, the computer device displays scene special effects that match the temperature of the finger performing the touch operation in the first virtual scene.
[0222] The computer device can be configured with a temperature sensor to detect the temperature of the user's finger through the temperature sensor. The temperature of the user's finger can represent the temperature of the environment where the user is located. Then, displaying scene special effects that match the temperature of the user's finger can make the user have a more immersive feeling.
[0223] 3. In response to the touch operation, the computer device displays scene special effects that match the type of the touch operation in the first virtual scene.
[0224] There are various types of touch operations that can be performed in the first virtual scene, such as click operations, long - press operations, swipe operations, etc. The user performs different types of touch operations in the first virtual scene, and thus different scene special effects are displayed in the first virtual scene, which can attract the user to interact with the first virtual scene more.
[0225] 4. In response to the touch operation, the computer device displays scene special effects that match the operation time of the touch operation in the first virtual scene.
[0226] The operation time of the touch operation can be the time of the computer device when the touch operation is performed, or the duration of the chess or card game when the touch operation is performed. As the chess or card game progresses, the operation time of the performed touch operation will also change. Displaying scene special effects that match the operation time of the touch operation can ensure that the displayed scene special effects match the current duration of the chess or card game.
[0227] It should be noted that the above several ways of displaying scene special effects can be combined in any form. For example,Figure 19 As shown, the player performs a touch operation on the snow scene area in the first virtual scene. The computer device detects the temperature of the player's finger through a temperature sensor, converts the temperature into information T (where T represents the finger temperature or the temperature range to which the finger temperature belongs, etc.), records the area R touched by the player, and transmits the values of T and R to the chess and card game application. The chess and card game application determines that the scene special effect is the melting snow scene special effect based on the values of T and R, and then renders the melting snow area in real time. The player can then see the effect of the snow scene melting in the area touched by the finger.
[0228] Figure 20 It is a schematic structural diagram of an interface display device provided by an embodiment of the present application. Refer to Figure 20 This device includes:
[0229] The first display module 2001 is used to display the chess and card game interface, and the chess and card game interface displays the chess and card game screen and the first virtual scene;
[0230] The second display module 2002 is used to display the scene special effect matching the target event in the first virtual scene in response to the target event in the chess and card game;
[0231] Among them, the chess and card game screen is used to display the situation of the chess and card game.
[0232] The solution of the embodiment of the present application not only displays the chess and card game screen in the chess and card game interface, but also displays the virtual scene, and in response to the target event in the chess and card game, displays the scene special effect matching the target event in the virtual scene, presenting an effect of playing the chess and card game in the virtual scene and the virtual scene changing according to the target event in the chess and card game, improving the interface display effect, avoiding visual fatigue caused by the fixed virtual scene, and enhancing the interest of the chess and card game.
[0233] Optionally, refer to Figure 21 The second display module 2002 includes at least one of the following:
[0234] The first display unit 2012 is used to add scene elements matching the target event in the first virtual scene;
[0235] The second display unit 2022 is used to dynamically display the scene elements matching the target event in the first virtual scene;
[0236] The third display unit 2032 is used to add light effects to the scene elements matching the target event in the first virtual scene.
[0237] Optionally, refer to Figure 21 The second display module 2002 includes:
[0238] The fourth display unit 2042 is configured to, in response to an event of a board game object being issued during a board game, display a scene special effect matching the board game object in the first virtual scene.
[0239] Optionally, the fourth display unit 2042 is configured to:
[0240] In response to an event of at least two board game objects being issued during a board game, based on the combination mode of the at least two board game objects, display a scene special effect matching the combination mode in the first virtual scene.
[0241] Optionally, the fourth display unit 2042 is configured to:
[0242] In response to an event of at least two board game objects being issued during a board game, determine the combination mode of the at least two board game objects;
[0243] Query a scene special effect matching the combination mode from the first configuration information;
[0244] Display the queried scene special effect in the first virtual scene.
[0245] Optionally, the second display module 2002 is configured to:
[0246] In response to a target event during a board game, play an animation matching the target event in the board game interface;
[0247] After the animation is played, display a scene special effect matching the target event in the first virtual scene.
[0248] Optionally, the device further includes:
[0249] The playback module 2003 is configured to, in response to a target event during a board game, play a scene sound effect corresponding to the scene special effect.
[0250] Optionally, the device further includes:
[0251] The weight recording module 2004 is configured to record the weight of the displayed scene special effect;
[0252] The scene switching module 2005 is configured to, when the total recorded weight is not less than the target weight, switch the first virtual scene to the second virtual scene.
[0253] Optionally, the scene switching module 2005 is configured to:
[0254] When the total recorded weight is not less than the target weight, switch the first virtual scene to the second virtual scene corresponding to the most recently displayed scene special effect.
[0255] Optionally, the scene switching module 2005 is configured to:
[0256] When the total recorded weight is not less than the target weight, query, from the second configuration information, a second virtual scene corresponding to the most recently displayed scene special effect;
[0257] Switch the first virtual scene to the second virtual scene.
[0258] Optionally, the scene switching module 2005 is configured to:
[0259] When the total recorded weight is not less than the target weight, display a transition special effect in the chess and card game interface;
[0260] After the transition special effect is displayed, display the chess and card game screen and the second virtual scene in the chess and card game interface.
[0261] Optionally, the device further includes:
[0262] A third display module 2006, configured to, in response to a touch operation on the first virtual scene, display a scene special effect matching the touch operation in the first virtual scene.
[0263] Optionally, the third display module 2006 is configured to perform at least one of the following:
[0264] In response to the touch operation, display a scene special effect matching the scene area where the touch operation is located in the first virtual scene;
[0265] In response to the touch operation, display a scene special effect matching the temperature of the finger performing the touch operation in the first virtual scene;
[0266] In response to the touch operation, display a scene special effect matching the operation type of the touch operation in the first virtual scene;
[0267] In response to the touch operation, display a scene special effect matching the operation time of the touch operation in the first virtual scene.
[0268] Optionally, the third display module 2006 is configured to:
[0269] When the scene area is a snow scene area, in response to the touch operation, display a special effect of snow melting in the first virtual scene; or,
[0270] When the scene area is a rain scene area, in response to the touch operation, display a special effect of raindrops splashing in the first virtual scene.
[0271] It should be noted that: The interface display device provided in the above embodiments is only illustrated by the division of the above functional modules. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the interface display device provided in the above embodiments and the interface display method embodiments belong to the same concept. For the specific implementation process, please refer to the method embodiments and will not be elaborated here.
[0272] An embodiment of the present application also provides a computer device, which includes a processor and a memory. At least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the interface display method of the above embodiments.
[0273] Optionally, the computer device is provided as a terminal. Figure 22 The structural schematic diagram of a terminal 2200 provided by an exemplary embodiment of the present application is shown.
[0274] The terminal 2200 includes: a processor 2201 and a memory 2202.
[0275] The processor 2201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 2201 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 2201 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2201 may also include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.
[0276] The memory 2202 may include one or more computer-readable storage media, which may be non-transitory. The memory 2202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 2202 is used to store at least one computer program, and the at least one computer program is used to be possessed by the processor 2201 to implement the interface display method provided in the method embodiments of this application.
[0277] In some embodiments, the terminal 2200 may further optionally include: a peripheral device interface 2203 and at least one peripheral device. The processor 2201, the memory 2202, and the peripheral device interface 2203 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 2203 through a bus, signal lines, or a circuit board. Optionally, the peripheral device includes at least one of a radio frequency circuit 2204, a display screen 2205, a camera assembly 2206, and a power supply 2207.
[0278] The peripheral device interface 2203 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 2201 and the memory 2202. In some embodiments, the processor 2201, the memory 2202, and the peripheral device interface 2203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2201, the memory 2202, and the peripheral device interface 2203 may be implemented on a separate chip or circuit board, and this embodiment does not limit this.
[0279] The radio frequency circuit 2204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 2204 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 2204 converts an electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 2204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so on. The radio frequency circuit 2204 may communicate with other devices through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: a metropolitan area network, each generation of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 2204 may further include a circuit related to NFC (Near Field Communication), and this application does not limit this.
[0280] The display screen 2205 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 2205 is a touch display screen, the display screen 2205 also has the ability to collect touch signals on or above the surface of the display screen 2205. The touch signal can be input to the processor 2201 as a control signal for processing. At this time, the display screen 2205 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 2205, which is disposed on the front panel of the terminal 2200; in other embodiments, there may be at least two display screens 2205, which are respectively disposed on different surfaces of the terminal 2200 or are in a folding design; in other embodiments, the display screen 2205 may be a flexible display screen, which is disposed on the curved surface or the folding surface of the terminal 2200. Even, the display screen 2205 can also be set to an irregular non-rectangular shape, that is, a special-shaped screen. The display screen 2205 can be prepared using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0281] The camera module 2206 is used to collect images or videos. Optionally, the camera module 2206 includes a front camera and a rear camera. The front camera is disposed on the front panel of the terminal 2200, and the rear camera is disposed on the back of the terminal 2200. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth camera, a wide-angle camera, and a telephoto camera, so as to implement the function of background blurring by fusing the main camera and the depth camera, panoramic shooting by fusing the main camera and the wide-angle camera, and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera module 2206 may further include a flash. The flash can be a single-color temperature flash or a two-color temperature flash. The two-color temperature flash refers to the combination of a warm light flash and a cold light flash, and can be used for light compensation under different color temperatures.
[0282] The power supply 2207 is used to supply power to each component in the terminal 2200. The power supply 2207 can be alternating current, direct current, a disposable battery, or a rechargeable battery. When the power supply 2207 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0283] Those skilled in the art can understand, Figure 22The structure shown does not constitute a limitation on the terminal 2200, and may include more or fewer components than shown, or combine certain components, or adopt a different component arrangement.
[0284] Optionally, the computer device is provided as a server. Figure 23 It is a schematic structural diagram of a server provided by an embodiment of the present application. The server 2300 may vary greatly due to different configurations or performances, and may include one or more processors (Central Processing Units, CPUs) 2301 and one or more memories 2302. Among them, at least one computer program is stored in the memory 2302, and the at least one computer program is loaded and executed by the processor 2301 to implement the methods provided by the above various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input and output. The server may also include other components for implementing the functions of the device, which will not be elaborated here.
[0285] The embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the interface display method in the above embodiment.
[0286] The embodiment of the present application also provides a computer program product, including a computer program, and the computer program is loaded and executed by the processor to implement the operations performed by the interface display method in the above embodiment.
[0287] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiment can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk, an optical disc, etc.
[0288] The above are only optional embodiments of the embodiments of the present application, and are not intended to limit the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the embodiments of the present application shall be included in the protection scope of the present application.
Claims
1. An interface display method, characterized in that, The method includes: Displaying a chess and card game interface, which shows a chess and card game screen and a first virtual scene; In response to a target event in the chess and card game, displaying a scene special effect matching the target event in the first virtual scene; Wherein, the chess and card game screen is used to display the situation of the chess and card game.
2. The method according to claim 1, characterized in that, The displaying a scene special effect matching the target event in the first virtual scene includes at least one of the following: Adding a scene element matching the target event to the first virtual scene; Dynamically displaying the scene elements in the first virtual scene that match the target event; Adding a light effect to the scene elements in the first virtual scene that match the target event.
3. The method according to claim 1, characterized in that, The responding to a target event in the chess and card game and displaying a scene special effect matching the target event in the first virtual scene includes: In response to an event of a chess and card object being issued in the chess and card game, displaying a scene special effect matching the chess and card object in the first virtual scene.
4. The method according to claim 3, characterized in that, The responding to an event of a chess and card object being issued in the chess and card game and displaying a scene special effect matching the chess and card object in the first virtual scene includes: In response to an event of at least two chess and card objects being issued in the chess and card game, based on the combination mode of the at least two chess and card objects, displaying a scene special effect matching the combination mode in the first virtual scene.
5. The method according to claim 4, characterized in that, The responding to an event of at least two chess and card objects being issued in the chess and card game, based on the combination mode of the at least two chess and card objects, and displaying a scene special effect matching the combination mode in the first virtual scene includes: In response to an event of at least two chess and card objects being issued in the chess and card game, determining the combination mode of the at least two chess and card objects; Querying a scene special effect matching the combination mode from the first configuration information; Displaying the queried scene special effect in the first virtual scene.
6. The method according to claim 1, characterized in that, The responding to a target event in the chess and card game and displaying a scene special effect matching the target event in the first virtual scene includes: In response to the target event in the chess and card game, playing an animation matching the target event in the chess and card game interface; After the animation is played, displaying the scene special effect matching the target event in the first virtual scene.
7. The method according to claim 1, characterized in that, The method further includes: In response to the target event in the chess and card game, playing a scene sound effect corresponding to the scene special effect.
8. The method according to claim 1, characterized in that, The method further includes: Recording the weight of the displayed scene special effect; When the total recorded weight is not less than the target weight, switching the first virtual scene to a second virtual scene.
9. The method according to claim 8, characterized in that, The switching the first virtual scene to a second virtual scene when the total recorded weight is not less than the target weight includes: When the total recorded weight is not less than the target weight, switching the first virtual scene to the second virtual scene corresponding to the most recently displayed scene special effect.
10. The method according to claim 9, characterized in that, When the total recorded weight is not less than the target weight, switching the first virtual scene to the second virtual scene corresponding to the scene special effect displayed most recently includes: When the total recorded weight is not less than the target weight, querying the second virtual scene corresponding to the scene special effect displayed most recently from the second configuration information; Switching the first virtual scene to the second virtual scene.
11. The method according to claim 9, characterized in that, When the total recorded weight is not less than the target weight, switching the first virtual scene to the second virtual scene corresponding to the scene special effect displayed most recently includes: When the total recorded weight is not less than the target weight, displaying a transition special effect in the chess and card game interface; After the transition special effect is displayed, displaying the chess and card game screen and the second virtual scene in the chess and card game interface.
12. The method according to any one of claims 1-11, characterized in that, The method further includes: In response to a touch operation on the first virtual scene, displaying a scene special effect matching the touch operation in the first virtual scene.
13. The method according to claim 12, characterized in that, The step of, in response to a touch operation on the first virtual scene, displaying a scene special effect matching the touch operation in the first virtual scene includes at least one of the following: In response to the touch operation, displaying a scene special effect matching the scene area where the touch operation is located in the first virtual scene; In response to the touch operation, displaying a scene special effect matching the temperature of the finger performing the touch operation in the first virtual scene; In response to the touch operation, displaying a scene special effect matching the operation type of the touch operation in the first virtual scene; In response to the touch operation, displaying a scene special effect matching the operation time of the touch operation in the first virtual scene.
14. The method according to claim 13, characterized in that, The step of, in response to the touch operation, displaying a scene special effect matching the scene area where the touch operation is located in the first virtual scene includes: When the scene area is a snow scene area, in response to the touch operation, displaying a special effect of snow melting in the first virtual scene; or, When the scene area is a rain scene area, in response to the touch operation, displaying a special effect of raindrops splashing in the first virtual scene.
15. An interface display device, characterized in that, The device includes: A first display module for displaying a chess and card game interface, where the chess and card game interface displays a chess and card game screen and a first virtual scene; A second display module for, in response to a target event in the chess and card game, displaying a scene special effect matching the target event in the first virtual scene; Wherein, the chess and card game screen is used to display the situation of the chess and card game.
16. A computer device, characterized in that, The computer device includes a processor and a memory, and at least one computer program is stored in the memory. The at least one computer program is loaded and executed by the processor to implement the operations performed by the interface display method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that, At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the operations performed by the interface display method according to any one of claims 1 to 14.
18. A computer program product, comprising a computer program, characterized in that, The computer program is loaded and executed by a processor to implement the operations performed by the interface display method according to any one of claims 1 to 14.