Information prompting method and device in virtual scene, equipment and storage medium
Patent Information
- Application Number
- CN202210991597.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-18
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2042-08-18
AI Technical Summary
[0003]在虚拟场景运行过程中,存在多种类型的提示信息,以对玩家在虚拟场景中的交互进行提示,在需要显示多种类型的提示信息时,相关技术中,要么在界面中相同位置处同时显示多种类型的提示信息,要么逐个显示,然而,前者信息重叠导致提示信息的可读性较差,后者逐个显示使得部分提示信息的显示不及时,使得提示效率较低
[0036] By applying the embodiments of this application, since the virtual scene interface includes multiple display areas, different display areas are used to display different types of prompt information. For example, a first type of first prompt information is displayed in the first display area, and a second type of second prompt information is displayed in the second display area. In this way, different types of prompt information are displayed in their respective display areas, avoiding information overlap and improving the readability of the prompt information. Moreover, different types of prompt information can be displayed simultaneously in their respective display areas, improving the efficiency of information prompting. In addition, when displaying the second type of second prompt information, if there is a correlation between the second prompt information and the first prompt information, the second prompt information is immediately displayed in the second display area when the display timing of the second prompt information is determined according to the correlation, ensuring the timeliness of the display of the second prompt information and improving the user experience.
Smart Images

Figure CN117618886B_ABST
Abstract
Description
Technical Field
[0001] This application relates to human-computer interaction technology, and more particularly to an information prompting method, device, equipment, and storage medium in a virtual scene. Background Technology
[0002] Human-computer interaction technology based on virtual scenes using graphics processing hardware can realize diverse interactions between virtual objects controlled by users or artificial intelligence, according to actual application needs, and has broad practical value. For example, in the virtual scene application of games, it can simulate the real combat process between virtual objects. Taking shooting games as an example, virtual objects in different groups fight against each other in the game.
[0003] During the operation of a virtual scene, there are various types of prompts to guide the player's interactions within the virtual scene. When multiple types of prompts need to be displayed, related technologies either display multiple types of prompts simultaneously in the same location on the interface, or display them one by one. However, the former results in overlapping information, leading to poor readability of the prompts, while the latter results in some prompts not being displayed in a timely manner, making the prompting efficiency low. Summary of the Invention
[0004] This application provides an information prompting method, apparatus, device, computer-readable storage medium, and computer program product in a virtual scene, which can improve the readability and efficiency of prompting information.
[0005] The technical solution of this application embodiment is implemented as follows:
[0006] This application provides an information prompting method in a virtual scene, including:
[0007] The interface displays a virtual scene comprising at least two display areas, with different display areas used to display different types of prompts;
[0008] In response to a display instruction for a first prompt message of a first type, the first prompt message is displayed in a first display area corresponding to the first type;
[0009] During the display of the first prompt information, in response to the existence of a second type of second prompt information in the virtual scene, and the second prompt information being associated with the first prompt information.
[0010] When the timing for displaying the second prompt information is determined based on the association relationship, the second prompt information is displayed in the second display area corresponding to the second type.
[0011] This application provides an information prompting device in a virtual scene, including:
[0012] The first display module is used to display the interface of a virtual scene including at least two display areas, with different display areas used to display different types of prompt information;
[0013] The second display module is configured to respond to a display instruction for a first prompt message of the first type and display the first prompt message in a first display area corresponding to the first type;
[0014] The third display module is used, during the process of displaying the first prompt information, to respond to the existence of a second type of second prompt information in the virtual scene, and the second prompt information being associated with the first prompt information.
[0015] When the timing for displaying the second prompt information is determined based on the association relationship, the second prompt information is displayed in the second display area corresponding to the second type.
[0016] In the above scheme, before the virtual scene interface, which includes at least two display areas, is displayed, the device further includes: an interface division module, used to divide the interface of the virtual scene into the target number of display areas when the number of types of prompt information in the virtual scene is a target number, with each display area corresponding to one type of prompt information; and to establish a correspondence between each display area and the corresponding type of prompt information based on the distribution of the display areas and the type of prompt information.
[0017] In the above scheme, the device further includes: an association establishment module, used to obtain the running progress of the virtual scene and the display progress of the first prompt information during the display of the first prompt information; generate the second prompt information according to the running progress and the display progress; and establish an association relationship between the first prompt information and the second prompt information.
[0018] In the above scheme, before displaying the second prompt information in the second display area corresponding to the second type, the device further includes: a timing determination module, used to detect the display progress of the first prompt information during the display of the first prompt information when the association indicates that the display progress of the first prompt information should start when the display progress of the first prompt information reaches the target progress; and to determine that the display timing of the second prompt information has arrived when the display progress of the first prompt information reaches the target progress.
[0019] In the above scheme, the device further includes: a fourth display module, used to detect whether the second display area is displaying the third prompt information of the second type in response to the fact that the second prompt information and the first prompt information are not associated; and to display the second prompt information in the second display area in response to the fact that the third prompt information is not displayed in the second display area.
[0020] In the above scheme, the device further includes: a fifth display module, used to display the second prompt information in the second display area in response to the second display area displaying the third prompt information; wherein the display positions of the second prompt information and the third prompt information in the second display area are different.
[0021] In the above scheme, the device further includes: a sixth display module, configured to, in response to the second display area displaying the third prompt information, store the second prompt information in an information queue corresponding to the second display area, wherein the information queue also stores at least one fourth prompt information; obtain the prompt priorities corresponding to the second prompt information and the at least one fourth prompt information respectively, and sort the second prompt information and the at least one fourth prompt information in descending order of the prompt priorities; and, in response to the completion of the display of the third prompt information, display the prompt information ranked first in the information queue in the second display area.
[0022] In the above scheme, the device further includes: a priority determination module, used to obtain priority parameters of each prompt information in the second prompt information and the at least one fourth prompt information; wherein, the priority parameters include at least one of the following: the generation time of the prompt information generated by the virtual scene, and the prompt weight set for the prompt information; and to determine the prompt priority of the prompt information based on the prompt priority parameters.
[0023] In the above scheme, the sixth display module is further configured to, in response to the second display area displaying the third prompt information, compare the prompt priorities of the third prompt information and the second prompt information; and, in response to the prompt priority of the third prompt information being higher than the prompt priority of the second prompt information, store the second prompt information in the information queue corresponding to the second display area.
[0024] In the above scheme, the device further includes: a sixth and seventh display module, used to stop displaying the third prompt information in the second display area and display the second prompt information in the second display area in response to the prompt priority of the third prompt information being lower than that of the second prompt information; and to continue displaying the third prompt information in the second display area in response to the completion of the display of the second prompt information.
[0025] In the above scheme, the device further includes: an eighth display module, configured to display a fifth prompt message of the second type in the second display area during the display of the first prompt message; correspondingly, the third display module is further configured to, during the display of the fifth prompt message, when the display timing of the second prompt message is determined according to the association relationship, stop displaying the fifth prompt message in the second display area and display the second prompt message; the eighth display module is further configured to, in response to the completion of displaying the second prompt message, continue displaying the fifth prompt message in the second display area.
[0026] In the above scheme, the device further includes: a ninth display module, used to display the sixth type of prompt information in the first sub-area of the second display area during the display of the first prompt information; correspondingly, the third display module is also used to display the second prompt information in the second sub-area of the second display area, which is different from the first sub-area, when the display timing of the second prompt information is determined according to the association relationship during the display of the sixth prompt information.
[0027] In the above scheme, the ninth display module is further configured to display the sixth prompt information of the second type in the first sub-area of the second display area using a first display method; correspondingly, the third display module is further configured to display the second prompt information in the second sub-area of the second display area using a second display method; wherein, the first display method is different from the second display method.
[0028] In the above scheme, the third display module is further configured to determine the virtual object in the virtual scene that matches the second prompt information, and to use the area where the virtual object is located as the second display area corresponding to the second type; and to display the second prompt information in the second display area.
[0029] In the above scheme, the second display module is further configured to display the first prompt information in the first display area corresponding to the first type at a first display speed; correspondingly, the third display module is further configured to display the second prompt information in the second display area corresponding to the second type at a second display speed; wherein, the first display speed corresponds to the first type, and the second display speed corresponds to the second type.
[0030] This application provides a terminal device, including:
[0031] Memory, used to store executable instructions;
[0032] The processor, when executing executable instructions stored in the memory, implements the information prompting method in the virtual scene provided in the embodiments of this application.
[0033] This application provides a computer-readable storage medium storing executable instructions, which, when executed by a processor, implement the information prompting method in a virtual scene provided in this application.
[0034] This application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the information prompting method in a virtual scene provided in this application.
[0035] The embodiments of this application have the following beneficial effects:
[0036] By applying the embodiments of this application, since the virtual scene interface includes multiple display areas, different display areas are used to display different types of prompt information. For example, a first type of first prompt information is displayed in the first display area, and a second type of second prompt information is displayed in the second display area. In this way, different types of prompt information are displayed in their respective display areas, avoiding information overlap and improving the readability of the prompt information. Moreover, different types of prompt information can be displayed simultaneously in their respective display areas, improving the efficiency of information prompting. In addition, when displaying the second type of second prompt information, if there is a correlation between the second prompt information and the first prompt information, the second prompt information is immediately displayed in the second display area when the display timing of the second prompt information is determined according to the correlation, ensuring the timeliness of the display of the second prompt information and improving the user experience. Attached Figure Description
[0037] Figure 1A-1B This is a schematic diagram illustrating the display of prompt information in a virtual scene provided in an embodiment of this application;
[0038] Figure 2A A schematic diagram illustrating the application mode of the information prompting method in a virtual scene provided in the embodiments of this application;
[0039] Figure 2B A schematic diagram illustrating the application mode of the information prompting method in a virtual scene provided in the embodiments of this application;
[0040] Figure 3 This is a schematic diagram of the structure of the terminal device 400 provided in the embodiments of this application;
[0041] Figure 4 A flowchart illustrating the information prompting method in a virtual scene provided in this application embodiment;
[0042] Figure 5 This is a schematic diagram illustrating the division of the display area provided in an embodiment of this application;
[0043] Figure 6 This is a schematic diagram illustrating the division of the display area provided in an embodiment of this application;
[0044] Figure 7 This is a schematic diagram illustrating the display control of prompt information provided in an embodiment of this application;
[0045] Figure 8 This is a schematic diagram illustrating the display control of prompt information provided in an embodiment of this application;
[0046] Figure 9 This is a schematic diagram illustrating the display control of prompt information provided in an embodiment of this application;
[0047] Figure 10 This is a schematic diagram illustrating the display control of prompt information provided in an embodiment of this application;
[0048] Figure 11 This is a flowchart illustrating the information prompting method in a virtual scene provided in an embodiment of this application. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0050] It is understood that in the embodiments of this application, data related to user information (such as user feedback or preferences on prompts) is involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0051] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0052] In the following description, the terms “first, second…” are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that “first, second…” may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0054] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0055] 1) Client: An application that runs on a terminal and provides various services, such as a video playback client or a game client.
[0056] 2) In response, used to indicate the conditions or states on which the operation performed depends. When the conditions or states on which it depends are met, one or more operations performed may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.
[0057] 3) A virtual scene is a virtual scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of a two-dimensional, 2.5-dimensional, or three-dimensional virtual scene; this application does not limit the dimension of the virtual scene. For example, the virtual scene may include sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. Users can control virtual objects to move within the virtual scene.
[0058] 4) Virtual objects: These are interactive images of people and things within a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual characters, virtual animals, anime characters, etc., such as people and animals displayed in a virtual scene. A virtual object can be a virtual avatar representing the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the virtual scene's space. Virtual objects can be game characters controlled by the user (or player), meaning they are controlled by the real user and will move in response to the real user's actions on controllers (including touchscreens, voice-activated switches, keyboards, mice, and joysticks). For example, when the real user moves the joystick to the left, the virtual object will move to the left in the virtual scene. It can also remain stationary, jump, and use various functions (such as skills and items).
[0059] See Figure 1A-1B , Figure 1A-1B This is a schematic diagram illustrating the display of prompt information in a virtual scene provided in an embodiment of this application. The inventors discovered that when different types of prompt information need to be displayed, Figure 1A Displaying multiple prompts in the same location results in overlapping messages on the game interface, making the messages difficult to read. Figure 1B The method of displaying each prompt message one by one in the same position, that is, displaying one prompt message after another, results in a long waiting time for prompt messages, causing some prompt messages to be displayed untimely, resulting in low prompt efficiency.
[0060] Therefore, embodiments of this application provide a method, apparatus, terminal device, computer-readable storage medium, and computer program product for providing information prompts in virtual scenes, which can improve the readability and efficiency of prompts. To facilitate a clearer understanding of the information prompting method in virtual scenes provided in this application, exemplary implementation scenarios of the method are first described. The virtual scene in the information prompting method provided in this application can be entirely based on terminal device output, or based on collaborative output from the terminal device and a server. In some embodiments, the virtual scene can be an environment for game characters to interact, such as a virtual scene for game characters to engage in combat. By controlling the actions of the game characters, interaction can occur between the two parties in the virtual scene, allowing users to relieve life stress during gameplay.
[0061] In one implementation scenario, see Figure 2A , Figure 2AThis diagram illustrates an application mode of the information prompting method in a virtual scene provided in this application embodiment. It is applicable to application modes where the computational power of the graphics processing hardware of the terminal device 400 is sufficient to complete the relevant data calculations for the virtual scene 100. Examples include standalone / offline games, where the output of the virtual scene is completed through various types of terminal devices 400 such as smartphones, tablets, and virtual reality / augmented reality devices. As an example, the types of graphics processing hardware include central processing units (CPUs) and graphics processing units (GPUs).
[0062] When visual perception of virtual scene 100 is formed, terminal device 400 calculates the data required for display through graphics computing hardware, and completes the loading, parsing and rendering of display data. The graphics output hardware outputs video frames that can form visual perception of virtual scene. For example, two-dimensional video frames are presented on the display screen of a smartphone, or video frames that achieve three-dimensional display effect are projected on the lenses of augmented reality / virtual reality glasses. In addition, in order to enrich the perception effect, terminal device 400 can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0063] As an example, a client 410 (e.g., a standalone game application) runs on the terminal device 400. During the operation of the client 410, the output includes a role-playing virtual scene 100. The virtual scene 100 can be an environment for virtual objects (game characters) to interact with, such as a plain, street, valley, etc., for game characters to fight. The virtual scene 100 can also include prompt information (displayed in the display area) to prompt the virtual objects to interact in the virtual scene, such as prompting what the virtual objects can and cannot do at appropriate locations and times, providing feedback after performing some operations, and how to solve problems when they are encountered.
[0064] As an example, the terminal device displays an interface of a virtual scene including at least two display areas, with different display areas used to display different types of prompt information. In response to a display instruction for a first type of prompt information, the first prompt information is displayed in the first display area corresponding to the first type. During the display of the first prompt information, in response to the existence of a second type of prompt information in the virtual scene and a correlation between the second prompt information and the first prompt information, the display timing for the second prompt information is determined based on the correlation, and the second prompt information is displayed in the second display area corresponding to the second type. Thus, while displaying the first type of prompt information in the first display area, when displaying the second type of prompt information, the display timing for the second prompt information is determined based on the correlation between the second and first prompt information, ensuring the timely display of the second prompt information, and allowing different types of prompt information to be displayed independently and simultaneously in different display areas, avoiding information overlap and improving the readability and efficiency of the prompt information.
[0065] In another implementation scenario, see Figure 2B , Figure 2B This is a schematic diagram illustrating the application mode of the information prompting method in a virtual scene provided in this application embodiment. It is applied to a terminal device 400 and a server 200, and is suitable for application modes that rely on the computing power of the server 200 to complete virtual scene calculations and output the virtual scene to the terminal device 400. Taking the visual perception of forming a virtual scene 100 as an example, the server 200 calculates relevant display data (e.g., scene data) for the virtual scene and sends it to the terminal device 400 via the network 300. The terminal device 400 relies on graphics computing hardware to load, parse, and render the calculated display data, and relies on graphics output hardware to output the virtual scene to form visual perception. For example, it can present two-dimensional video frames on the display screen of a smartphone, or project video frames to achieve a three-dimensional display effect onto the lenses of augmented reality / virtual reality glasses. Regarding the perception of the form of the virtual scene, it can be understood that it can be achieved through the corresponding hardware output of the terminal device 400, such as using a microphone to form auditory perception, using a vibrator to form tactile perception, etc.
[0066] As an example, a client 410 (e.g., a standalone game application) runs on the terminal device 400. During the operation of the client 410, the output includes a role-playing virtual scene 100. The virtual scene 100 can be an environment for game characters to interact with, such as a plain, street, valley, etc., for game characters to fight. The virtual scene 100 can also include prompts to prompt the interaction of virtual objects in the virtual scene, such as prompting what virtual objects can and cannot do at appropriate locations and times, providing feedback after performing some operations, and how to solve problems when they are encountered.
[0067] As an example, the terminal device displays an interface of a virtual scene including at least two display areas, with different display areas used to display different types of prompt information. In response to a display instruction for a first type of prompt information, the first prompt information is displayed in the first display area corresponding to the first type. During the display of the first prompt information, in response to the existence of a second type of prompt information in the virtual scene and a correlation between the second prompt information and the first prompt information, the display timing for the second prompt information is determined based on the correlation, and the second prompt information is displayed in the second display area corresponding to the second type. Thus, while displaying the first type of prompt information in the first display area, when displaying the second type of prompt information, the display timing for the second prompt information is determined based on the correlation between the second and first prompt information, ensuring the timely display of the second prompt information, and allowing different types of prompt information to be displayed independently and simultaneously in different display areas, avoiding information overlap and improving the readability and efficiency of the prompt information.
[0068] In some embodiments, the terminal device 400 can implement the information prompting method in the virtual scene provided in this application embodiment by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as a shooting game APP (i.e., the client 410 mentioned above); it can also be a mini-program, that is, a program that only needs to be downloaded into the browser environment to run; or it can be a game mini-program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of application, module or plugin.
[0069] Taking a computer program as an example, in actual implementation, the terminal device 400 has an application that supports virtual scenes installed and running. This application can be any of the following: a first-person shooter (FPS) game, a third-person shooter game, a virtual reality application, a 3D map program, a simulation program, or a multiplayer shooting survival game. Users use the terminal device 400 to manipulate virtual objects located in the virtual scene, and these activities include, but are not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up items, shooting, attacking, throwing, and constructing virtual buildings—at least one of these. Illustratively, the virtual object can be a virtual character, such as a realistic or anime character.
[0070] In other embodiments, the embodiments of this application can also be implemented using cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology applied based on the cloud computing business model. It can form resource pools, be used on demand, and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources.
[0071] Example, Figure 2B The server 200 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal device 400 can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal device 400 and the server 200 can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment.
[0072] The following is about Figure 2A The structure of the terminal device 400 shown in the diagram will be described. See also... Figure 3 , Figure 3 This is a schematic diagram of the structure of the terminal device 400 provided in the embodiments of this application. Figure 3The terminal device 400 shown includes at least one processor 420, a memory 460, at least one network interface 430, and a user interface 440. The various components in the terminal device 400 are coupled together via a bus system 450. It is understood that the bus system 450 is used to implement communication between these components. In addition to a data bus, the bus system 450 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 3 The general labeled all buses as Bus System 450.
[0073] Processor 420 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0074] User interface 440 includes one or more output devices 441 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 440 also includes one or more input devices 442, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0075] The memory 460 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 460 may optionally include one or more storage devices physically located away from the processor 420.
[0076] The memory 460 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 460 described in this application embodiment is intended to include any suitable type of memory.
[0077] In some embodiments, memory 460 is capable of storing data to support various operations. Examples of such data include programs, modules, and data structures, or subsets or supersets thereof, as illustrated below. Operating system 461 includes system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, core library layer, driver layer, etc., for implementing various basic services and handling hardware-based tasks; network communication module 462 is used to reach other computing devices via one or more (wired or wireless) network interfaces 430, exemplary network interfaces 430 including Bluetooth, WiFi, and Universal Serial Bus (USB); presentation module 463 is used to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 441 associated with user interface 440 (e.g., a display screen, a speaker, etc.); input processing module 464 is used to detect and translate one or more user inputs or interactions from one or more input devices 442.
[0078] In some embodiments, the information prompting device in the virtual scene provided in this application can be implemented in software. Figure 3 An information prompting device 465 for a virtual scene stored in memory 460 is shown. It can be software in the form of programs and plug-ins, including the following software modules: a first display module 4651, a second display module 4652, and a third display module 4653. These modules are logical and can therefore be arbitrarily combined or further divided according to the functions they implement. The functions of each module will be described below.
[0079] In other embodiments, the information prompting device in the virtual scene provided in this application can be implemented in hardware. As an example, the information prompting device in the virtual scene provided in this application can be a processor in the form of a hardware decoding processor, which is programmed to execute the information prompting method in the virtual scene provided in this application. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0080] The information prompting method in a virtual scene provided in this application embodiment will be described in detail below with reference to the accompanying drawings. The information prompting method in a virtual scene provided in this application embodiment can be... Figure 2A The terminal device 400 can be executed independently, or it can be... Figure 2B The terminal device 400 and server 200 work together to execute the command. Next, the command will be executed by… Figure 2A The following description uses the example of a terminal device 400 executing the information prompting method in a virtual scene provided in this embodiment of the application. (See also...) Figure 4 , Figure 4 This is a flowchart illustrating the information prompting method in a virtual scene provided in an embodiment of this application, which will be combined with... Figure 4 The steps shown are explained.
[0081] It should be noted that, Figure 4 The method shown can be executed by various forms of computer programs running on the terminal device 400, and is not limited to the client 410 described above. It can also be the operating system 461, software modules and scripts described above. Therefore, the client should not be regarded as a limitation on the embodiments of this application.
[0082] Step 101: The terminal device displays an interface of a virtual scene that includes at least two display areas, with different display areas used to display different types of prompts.
[0083] In practical applications, a client that supports virtual scenes is installed on the terminal device (for example, when the virtual scene is a game, the corresponding client can be a shooting game APP). When the user opens the client installed on the terminal device and the terminal device runs the client, the interface of the virtual scene can be displayed in the client. This interface can display a variety of information related to the virtual scene, such as a view of the virtual scene from the perspective of the target virtual object (the virtual object of the currently logged-in account in the virtual scene), or prompts pushed as the virtual scene progresses, etc.
[0084] The prompts can include at least one of the following elements: sound, text, color, graphics, motion sensing, and time. These prompts are used to guide the target's interaction with virtual objects within the virtual scene, such as indicating what the virtual object can and cannot do at appropriate locations and times, providing feedback after actions, indicating upcoming problems, and how to solve them. In practical applications, the types of prompts can be varied, including interaction prompts between virtual objects, announcements, system or gameplay prompts, shortcut key usage prompts, and dialogue prompts. To provide players with logically laid out and highly readable prompts, the virtual scene interface can be divided into multiple display areas, each displaying a specific type of prompt.
[0085] In some embodiments, before displaying the interface of a virtual scene including at least two display areas, the terminal device may divide the interface of the virtual scene into regions in the following manner: when the number of types of prompt information in the virtual scene is a target number, the interface of the virtual scene is divided into a target number of display areas, each display area corresponding to a type of prompt information; based on the distribution of each display area and the attribute characteristics of each type of prompt information, a correspondence between each display area and the corresponding type of prompt information is established.
[0086] Here, when dividing the interface of the virtual scene, the interface can be divided into a corresponding number of display areas (either evenly or unevenly) according to the number of types of prompts. For example, if there are 5 types of prompts in the virtual scene, the interface can be divided into 5 display areas. In addition, a correspondence between each display area and a certain type of prompt can be established based on the attribute characteristics of each type of prompt (such as frequency of occurrence, quantity, importance, whether there is interaction, information length, etc.) and the layout of each display area (such as position, size, etc.). This ensures that the prompts displayed in each display area have high readability and achieve the effectiveness of the prompts.
[0087] For example, if the first type of prompt is very important, a correspondence is established between the first type of prompt and the first display area in a prominent position on the interface. This means displaying the very important prompt in the prominent area improves the readability of the important prompt and facilitates its effective communication. Similarly, if the second type of prompt appears frequently, a correspondence is established between the second type of prompt and the second display area at the edge of the interface. This means displaying the frequently appearing prompt in the edge area without obstructing the player's view effectively conveys the prompt while avoiding excessive interference. Furthermore, if the third type of prompt is long (with a lot of content) and the third display area is large, a correspondence is established between the third type of prompt and the third display area. This allows for the full display of the content-rich prompt in a larger area, improving readability and facilitating its effective communication.
[0088] Step 102: In response to the display instruction for the first prompt information of the first type, display the first prompt information in the first display area corresponding to the first type.
[0089] Here, when the terminal device receives a display instruction for the first type of first prompt information, in response to the display instruction, it first determines the first display area corresponding to the first type, so as to display the first prompt information in the first display area. The first prompt information can be displayed in the first display area in various ways, such as including but not limited to: bubbles, pop-ups, tables, etc.
[0090] Step 103: During the process of displaying the first prompt information, in response to the existence of a second type of second prompt information in the virtual scene and the correlation between the second prompt information and the first prompt information, when the timing for displaying the second prompt information is determined based on the correlation, the second prompt information is displayed in the second display area corresponding to the second type.
[0091] In general, when a terminal device controls the display of different types of prompts in different display areas, if each type of prompt is independent, the display in each area is also controlled independently. That is, different display areas do not interfere with each other when displaying the corresponding type of prompt, and each displays the corresponding type of prompt according to its own display logic. However, in practical applications, if different types of prompts have a relationship (such as a sequential relationship, a causal relationship, etc.), the terminal device needs to coordinate the control of the corresponding display areas.
[0092] In some embodiments, during the process of displaying the first prompt information, the terminal device obtains the running progress of the virtual scene and the display progress of the first prompt information; generates the second prompt information based on the running progress and the display progress, and establishes the association between the first prompt information and the second prompt information.
[0093] Here, typically, the generation of one of the related prompts is related to the running progress of the virtual scene and the display progress of the other prompt. For example, when the target virtual object's level is 1, the first prompt is displayed in the first display area. As the target virtual object's level gradually increases, such as to level 2, the terminal device will generate a second type of prompt based on the first prompt, establishing a relationship between the first and second prompts. Thus, during the display of the first prompt in the first display area, the terminal device determines whether there is a second type of prompt related to the first prompt in the virtual scene based on the display progress of the first prompt. For example, it determines whether there is a second type of prompt generated based on the display progress of the first prompt (at this time, the second prompt can be considered as information derived from the first prompt, and the two have a successor relationship). When it is determined that the second prompt exists, it further determines whether the display timing of the second prompt has arrived based on the relationship between the two. When it is determined that the display timing of the second prompt has arrived, the second display area corresponding to the second type is obtained, and the second prompt is displayed in the second display area.
[0094] In some embodiments, before the terminal device displays the second prompt information in the second display area corresponding to the second type, when the association indicates that the display progress of the first prompt information will start when the display progress of the first prompt information reaches the target progress, the display progress of the first prompt information is detected during the display of the first prompt information; when the display progress of the first prompt information reaches the target progress, the timing for displaying the second prompt information is determined.
[0095] Here, for the first and second prompt messages that have a correlation, the correlation is used to indicate the display timing of the second prompt message (i.e., when the second prompt message is displayed relative to the display progress of the first prompt message). For example, if the correlation indicates that the second prompt message will start to be displayed when the first prompt message has been displayed up to the 5th second, then the terminal device will detect in real time whether the 5th second of the first prompt message has been displayed during the display of the first prompt message. When it is determined that the content of the 5th second of the first prompt message has been displayed, the display timing of the second prompt message can be determined, and the second prompt message will be displayed in the second display area.
[0096] Through the above methods, different types of prompts are displayed separately in their respective display areas, avoiding information overlap and improving the readability of the prompts. Furthermore, different types of prompts can be displayed simultaneously in their respective display areas, improving the efficiency of information prompts. In addition, the terminal device establishes a correlation between different types of prompts in different display areas. While displaying one type of prompt, when the time comes for another type of prompt to be displayed, it will immediately be displayed in its corresponding display area, ensuring the timeliness of the prompts and improving the user experience.
[0097] In some embodiments, the terminal device detects whether a second type of third prompt information is being displayed in the second display area in response to the fact that the second prompt information and the first prompt information are not associated; and displays the second prompt information in the second display area in response to the fact that the second display area is not displaying the third prompt information.
[0098] In practical applications, since the terminal device maintains an information queue in each display area, and there is at least one prompt message to be displayed in the information queue, the terminal device displays each prompt message in the display area in order of its display priority from high to low.
[0099] When the terminal device determines that the second prompt information is not associated with the first prompt information, it detects whether other prompt information of the second type (such as the third prompt information) is being displayed in the second display area. When the detection result indicates that the third prompt information is not being displayed in the second display area, the second prompt information can be displayed in the second display area. In this way, while the first prompt information is displayed in the first display area, the second prompt information is displayed in the second display area. The two are displayed independently, avoiding information overlap and improving the readability and efficiency of the prompt information.
[0100] In some embodiments, in response to the second display area displaying a third prompt message, the terminal device displays a second prompt message in the second display area during the display of the third prompt message; wherein the second prompt message and the third prompt message are displayed in different positions in the second display area.
[0101] Here, when the terminal device determines that the second prompt information is not related to the first prompt information and the second display area is currently displaying the third prompt information, the second prompt information is displayed in a different position in the second display area than the third prompt information. In this way, while the first prompt information is displayed in the first display area, the second and third prompt information are displayed simultaneously in the second display area. Since the second and third prompt information are displayed in different positions in the second display area, information overlap is avoided, and the readability and efficiency of the prompt information are improved.
[0102] In some embodiments, in response to the second display area displaying the third prompt information, the terminal device stores the second prompt information in the information queue corresponding to the second display area, wherein the information queue also stores at least one fourth prompt information; obtains the prompt priority corresponding to the second prompt information and the at least one fourth prompt information respectively, and sorts the second prompt information and the at least one fourth prompt information in descending order of prompt priority; in response to the third prompt information being displayed, displays the prompt information that is ranked first in the information queue in the second display area.
[0103] Here, when the terminal device determines that the second prompt information is not related to the first prompt information and the second display area is currently displaying the third prompt information, the second prompt information can be directly placed into the information queue corresponding to the second display area. In the information queue, the second prompt information and at least one other prompt information to be displayed (such as the fourth prompt information) can be reordered, such as sorting them according to the prompt priority of the second prompt information and the fourth prompt information from high to low. After the third prompt information is displayed, the prompt information that is first in the sorted order is displayed in the second display area.
[0104] In some embodiments, the terminal device may determine the prompt priority of the prompt information by: obtaining priority parameters of each prompt information in the second prompt information and at least one fourth prompt information; wherein the priority parameters include at least one of the following: the generation time of the virtual scene to generate the prompt information, and the prompt weight set for the prompt information; and determining the prompt priority of the prompt information based on the prompt priority parameters.
[0105] Here, when determining the priority of each prompt message in the information queue, the terminal device determines the priority of the corresponding prompt message based on priority parameters such as the generation time of the prompt message generated in the virtual scene and the prompt weight set when the prompt message is generated. For example, the higher the prompt weight is set, the higher the corresponding prompt priority, or the earlier the generation time is, the higher the corresponding prompt priority. When there are at least two prompt messages with the same prompt weight, the prompt priority of each prompt message is determined according to the generation time.
[0106] In some embodiments, the terminal device may store the second prompt information in the information queue corresponding to the second display area in the following manner: in response to the second display area displaying the third prompt information, comparing the prompt priorities of the third prompt information and the second prompt information; in response to the prompt priority of the third prompt information being higher than the prompt priority of the second prompt information, storing the second prompt information in the information queue corresponding to the second display area.
[0107] Here, when the terminal device determines that the second prompt information and the first prompt information are not related, and the second display area is currently displaying the third prompt information, it can first compare the prompt priorities of the third prompt information and the second prompt information. When the prompt priority of the third prompt information is lower than that of the second prompt information, the terminal stops displaying the third prompt information in the second display area and displays the second prompt information in the second display area (that is, switches the third prompt information displayed in the second display area to display the second prompt information). After the second prompt information is finished being displayed, the third prompt information continues to be displayed in the second display area. When the prompt priority of the third prompt information is higher than that of the second prompt information, the third prompt information continues to be displayed in the second display area, and the second prompt information is stored in the information queue corresponding to the second display area. The second prompt information and at least one fourth prompt information to be displayed are then reordered in the information queue, such as sorting them in descending order of their prompt priorities, so that after the third prompt information is finished being displayed, the prompt information that appears first in the order is displayed in the second display area.
[0108] In some embodiments, while displaying the first prompt information, the terminal device displays a fifth prompt information of the second type in the second display area; correspondingly, the terminal device can determine the timing for displaying the second prompt information according to the association relationship in the following manner, and then display the second prompt information in the second display area corresponding to the second type: while displaying the fifth prompt information, when the timing for displaying the second prompt information is determined according to the association relationship, the display of the fifth prompt information is stopped in the second display area, and the second prompt information is displayed; in response to the completion of the display of the second prompt information, the fifth prompt information continues to be displayed in the second display area.
[0109] Here, during the process of the terminal device displaying the first prompt information in the first display area, before displaying the second type of second prompt information in the second display area, if the terminal device displays the second type of fifth prompt information in the second display area (i.e., the terminal device simultaneously displays the first prompt information in the first display area and the fifth prompt information in the second display area), in this case, upon receiving a display instruction for the second prompt information that is related to the first prompt information (i.e., the time for displaying the second prompt information has arrived), the display of the fifth prompt information in the second display area is stopped, and the second prompt information is displayed in the second display area (i.e., the fifth prompt information displayed in the second display area is switched to the second prompt information). After the second prompt information is finished being displayed, the fifth prompt information is displayed in the second display area again. In this way, by establishing the association between the first and second prompt information, the display priority of the second prompt information is set to the highest, thereby improving the timeliness and flexibility of information prompts.
[0110] In some embodiments, during the display of the first prompt information, the terminal device displays a sixth prompt information of the second type in a first sub-region of the second display area; correspondingly, the terminal device can determine the timing of the display of the second prompt information according to the association relationship in the following manner, and display the second prompt information in the second display area corresponding to the second type: during the display of the sixth prompt information, when the timing of the display of the second prompt information is determined according to the association relationship, the second prompt information is displayed in a second sub-region of the second display area that is different from the first sub-region.
[0111] Here, during the process of the terminal device displaying the first prompt information in the first display area, before displaying the second type of second prompt information in the second display area, if the terminal device displays the sixth type of second prompt information in the second display area (i.e., the terminal device simultaneously displays the first prompt information in the first display area and the sixth prompt information in the second display area), in this case, upon receiving a display instruction for the second prompt information that is related to the first prompt information (i.e., the time for displaying the second prompt information has arrived), the terminal device continues to display the sixth prompt information in the second display area. At the same time, the terminal device displays the second prompt information at a different position in the second display area than the sixth prompt information. Thus, while the terminal device displays the first prompt information in the first display area, the terminal device simultaneously displays the second and sixth prompt information in the second display area. Since the second and sixth prompt information are displayed at different positions in the second display area, information overlap is avoided, and the readability and efficiency of the prompt information are improved.
[0112] In some embodiments, the terminal device may display a sixth prompt message of the second type in a first sub-area of the second display area in the following manner: the sixth prompt message of the second type is displayed in a first display mode in the first sub-area of the second display area; correspondingly, the terminal device may display a second prompt message in a second sub-area of the second display area in the following manner: the second prompt message is displayed in a second display mode in the second sub-area of the second display area; wherein, the first display mode is different from the second display mode.
[0113] Here, when displaying different prompts of the same type in the same display area, different display methods can be used to display each prompt. That is, in the first sub-area of the second display area, the sixth prompt of the second type is displayed using the first display method, and in the second sub-area of the second display area, the second prompt is displayed using a second display method different from the first display method. For example, different colors, different fonts, whether to add special effects elements (such as flashing), highlighting or grayscale, etc., are used to display different prompts of the same type to give players significant prompts and improve the effectiveness of information prompts.
[0114] In some embodiments, the terminal device may display the second prompt information in the second display area corresponding to the second type in the following manner: determine the virtual object in the virtual scene that matches the second prompt information, and take the area where the virtual object is located as the second display area corresponding to the second type; display the second prompt information in the second display area.
[0115] Here, when displaying the second type of second prompt information in the second display area, a virtual object matching the second prompt information can be obtained in the virtual scene based on the attribute characteristics (such as content, type, etc.) of the second prompt information. The area where the virtual object is located is used as the second display area corresponding to the second type. That is, the second prompt information is output through the virtual object. For example, if the type of the second prompt information is an announcement, a bulletin board in the virtual scene is obtained, and the second prompt information is displayed on the bulletin board. Or, if the type of the second prompt information is audio, a virtual speaker device (such as a loudspeaker, speaker, etc.) in the virtual scene is obtained, and the second prompt information is played through the virtual speaker device. In this way, the prompt information is output through virtual objects in the virtual scene. Since the virtual objects in the virtual scene can make players more immersed in the overall scene atmosphere and feel a more realistic game world, the prompts are more natural, thereby improving the sense of immersion or engagement of the prompt information.
[0116] In some embodiments, the terminal device may display a first prompt message in a first display area corresponding to a first type in the following manner: displaying the first prompt message in the first display area corresponding to the first type at a first display speed; correspondingly, the terminal device may display a second prompt message in a second display area corresponding to a second type in the following manner: displaying the second prompt message in the second display area corresponding to the second type at a second display speed; wherein, the first display speed corresponds to the first type, and the second display speed corresponds to the second type.
[0117] Here, when displaying corresponding types of prompts in different display areas, different display speeds can be used for each prompt. Furthermore, depending on the different types of the first and second prompts, when displaying the first and second prompts simultaneously, the first prompt can be processed to make the display of the second prompt more effective in conveying its message.
[0118] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario. Taking a virtual game as an example, in the game, the game interface is first divided into regions, see... Figure 5 , Figure 5 This is a schematic diagram illustrating the division of the display area provided in an embodiment of this application. In practical applications, a certain division tool can be used to divide the game interface into a corresponding number of display areas based on the type and quantity of prompt information, such as... Figure 6 As shown, Figure 6This is a schematic diagram of the display area division provided in the embodiment of this application. There are 7 types of prompt information, and the game interface is divided into 7 display areas. Each display area is used to display one type of prompt information. In addition, a correspondence between each display area and a certain type of prompt information can be established based on the attribute characteristics of each type of prompt information (such as frequency of occurrence, quantity, importance, information length, type, etc.) and the layout of each divided display area (such as position, size, etc.), so that the prompt information displayed in each display area has high readability and realizes the effectiveness of the prompt information.
[0119] After establishing the correspondence between each display area and the type of prompt information, each display area maintains an information queue. If each type of prompt information is independent of the others, the terminal device also controls the prompt information in each display area independently. That is, when displaying the corresponding type of prompt information in different display areas, they do not interfere with each other, and each displays the corresponding type of prompt information according to its own display logic. For example, see... Figure 7 , Figure 7 This is a schematic diagram of the display control of prompt information provided in the embodiment of this application. It is assumed that the target display area maintains an information queue 2. The prompt information in the information queue 2 is sorted in descending order of prompt priority. When displaying prompt information in the target display area, each prompt information is displayed in sequence according to the sorting in the information queue 2. For example, if the sorting of the prompt information in the information queue 2 is: prompt information A, prompt information B, prompt information C, then prompt information A, prompt information B, and prompt information C are displayed in sequence according to this order.
[0120] The above method of displaying each prompt message sequentially according to its order is a serial mechanism. In practical applications, when displaying different prompt messages of the same type in the same display area, a parallel mechanism can also be used. For example, see [link to example]. Figure 8 , Figure 8 The diagram below illustrates the display control of prompt information provided in the embodiments of this application. In (a), under the serial mechanism, prompt information A, prompt information B, and prompt information C in the same display area are displayed independently in sequence without overlapping, that is, one prompt information is displayed in the same display area at a time; in (b), under the parallel mechanism, prompt information A, prompt information B, and prompt information C in the same display area may be displayed overlapping, that is, multiple prompt information can be displayed simultaneously in the same display area.
[0121] For different prompts in the same information queue, the prompts are sorted in descending order of their prompt priority. The prompt priority is determined by the prompt's generation time and the prompt weight set for it. For example, for a certain prompt, the higher the prompt weight, the higher its corresponding prompt priority, or the earlier the generation time, the higher its corresponding prompt priority. When there are multiple prompts with the same prompt weight, the prompt priority of each prompt is determined by its generation time.
[0122] In practical applications, the priority of prompts can be adjusted by changing the prompt weights, thereby reordering the prompts in the message queue. For example, see [link to relevant documentation]. Figure 9 , Figure 9 This is a schematic diagram of the display control of prompt information provided in the embodiment of this application. Before adjusting the sorting of prompt information in the information queue 2, the prompt information is sorted according to the prompt weight from lowest to highest as follows: Information 01, Information 02 (weight 5), Information 03 (weight 4), Information 04 (weight 3), and Information 05 (weight 2). The prompt weight of Information 05 is adjusted, for example, the prompt weight is adjusted from 2 to 10. Then the prompt information in the information queue 2 is re-sorted as follows: Information 01, Information 05 (weight 10), Information 02 (weight 5), Information 03 (weight 4), and Information 04 (weight 3). In this way, the prompt information can be displayed in the target display area in sequence according to the new sorting.
[0123] The relationships between the different types of prompts mentioned above are typically established during the prompt generation phase. Generally, the generation of one prompt is related to the game progress and the display progress of the other. For example, when the target virtual object's level is 1, the first prompt is displayed in the first display area. As the target virtual object's level gradually increases, such as to level 2, the terminal device will generate a second type of prompt based on the first prompt, establishing a relationship between the first and second prompts.
[0124] For first and second prompt messages that are related, the relationship indicates when the second prompt message is displayed (i.e., when the second prompt message is displayed relative to the display progress of the first prompt message). For example, see... Figure 10 , Figure 10This is a schematic diagram of the display control of prompt information provided in an embodiment of this application. Prompt information A in the information queue 4 corresponding to the first display area is associated with prompt information B in the information queue 2 corresponding to the second display area. This association indicates that when prompt information A is finished being displayed in the first display area, prompt information B will begin to be displayed in the second display area. During the display of prompt information A, the terminal device detects whether the disappearance time of prompt information A has been reached. When the disappearance time of prompt information A has been reached, it determines that the display timing of prompt information B has arrived. At this time, the display of prompt information A in the first display area is canceled, and the display of prompt information B in the second display area begins. In this way, prompt information B can be displayed in a timely manner, ensuring the timeliness of the display of prompt information and improving the user experience.
[0125] The following description continues with the information prompting method in the virtual scene provided in the embodiments of this application. See [link to relevant documentation]. Figure 11 , Figure 11 This is a flowchart illustrating an information prompting method in a virtual scene provided in an embodiment of this application. The method includes:
[0126] Step 201: The terminal device obtains the second type of second prompt information generated by the game.
[0127] Step 202: Determine whether there is a first prompt message associated with the second prompt message.
[0128] The first and second prompt messages are of different types, with the first prompt message being of type 1. When a first prompt message associated with the second prompt message exists, step 203 is executed; when no first prompt message associated with the second prompt message exists, step 205 is executed.
[0129] Step 203: Determine whether the timing for displaying the second prompt message has arrived.
[0130] As described above, for the first and second prompt messages that have a relationship, the relationship is used to indicate the timing of the display of the second prompt message. When it is determined from the relationship that the timing of the display of the second prompt message has arrived, step 208 is executed; when it is determined from the relationship that the timing of the display of the second prompt message has not arrived, step 204 is executed.
[0131] Step 204: Display the first prompt message in the first display area.
[0132] It should be noted that before the terminal device receives the second prompt information, the first prompt information may have already been displayed in the first display area. When it is determined, based on the association, that the timing for displaying the second prompt information has not yet arrived, the prompt information displayed in the first display area and the second display area (corresponding to the second type) are independent of each other. For example, if the first prompt information has not been fully displayed, it can continue to be displayed in the first display area. After the first prompt information has been fully displayed, other prompt information of the same type can continue to be displayed in the first display area. The second display area also displays the corresponding type of prompt information according to its own display logic.
[0133] Step 205: Determine whether the second display area corresponding to the second type is displaying the third prompt information.
[0134] The second display area is used to display the second type of prompt information. The third prompt information is of the same type as the second prompt information, both being of the second type. When the second display area is displaying the same type of third prompt information, step 206 is executed; otherwise, step 206 is executed.
[0135] Step 206: Store the second prompt information in the information queue corresponding to the second display area and sort it.
[0136] There may be other prompts to be displayed in the information queue. After the second prompt is placed in the information queue, the second prompt and other prompts to be displayed need to be reordered, such as sorting them in descending order of their priority.
[0137] Step 207: Determine whether the timing for displaying the second prompt message has been met.
[0138] Here, when the third prompt message in the first display area is finished, each prompt message is displayed in the second display area in sequence, starting from the one at the beginning of the list. When it is the turn of the second prompt message, it is determined that the time for the second prompt message to be displayed has arrived, and step 208 is executed; otherwise, step 206 is executed.
[0139] Step 208: Display the second prompt message in the second display area.
[0140] By dividing the game interface into multiple display areas using the above method, different types of prompts are displayed in different areas, avoiding information overlap and improving readability. Furthermore, different types of prompts can be displayed simultaneously in their respective areas, increasing efficiency. The display order of prompts can be adjusted by changing their weight, enhancing flexibility. Additionally, by establishing relationships between different types of prompts in different display areas, when one type is being displayed, another type is immediately displayed in its corresponding area, ensuring timeliness and improving user experience.
[0141] The following description continues to illustrate the exemplary structure of the information prompting device 465 in the virtual scene provided in the embodiments of this application as a software module. In some embodiments, it is stored in... Figure 3 The software modules in the information prompting device 465 in the virtual scene of the memory 460 may include: a first display module 4651, used to display the interface of the virtual scene including at least two display areas, with different display areas used to display different types of prompt information; a second display module 4652, used to display the first prompt information in the first display area corresponding to the first type in response to a display instruction for the first prompt information of the first type; and a third display module 4653, used to display the second prompt information in the second display area corresponding to the second type when, during the process of displaying the first prompt information, a second prompt information of the second type exists in the virtual scene and the second prompt information is associated with the first prompt information, and the display timing of the second prompt information is determined according to the association relationship.
[0142] In some embodiments, before displaying the interface of a virtual scene comprising at least two display areas, the device further comprises: an interface division module, configured to divide the interface of the virtual scene into the target number of display areas when the number of types of prompt information in the virtual scene is a target number, wherein each display area corresponds to a type of prompt information; and to establish a correspondence between each display area and the corresponding type of prompt information based on the distribution of the display areas and the type of prompt information.
[0143] In some embodiments, the apparatus further includes: an association establishment module, configured to, during the display of the first prompt information, acquire the running progress of the virtual scene and the display progress of the first prompt information; generate the second prompt information based on the running progress and the display progress; and establish an association relationship between the first prompt information and the second prompt information.
[0144] In some embodiments, before displaying the second prompt information in the second display area corresponding to the second type, the device further includes: a timing determination module, configured to detect the display progress of the first prompt information during the display of the first prompt information when the association indicates that the display progress of the first prompt information should start when the display progress of the first prompt information reaches the target progress; and determine that the display timing of the second prompt information has arrived when the display progress of the first prompt information reaches the target progress.
[0145] In some embodiments, the device further includes: a fourth display module, configured to detect whether the second display area is displaying the third prompt information of the second type in response to the second prompt information not being associated with the first prompt information; and to display the second prompt information in the second display area in response to the second display area not displaying the third prompt information.
[0146] In some embodiments, the device further includes: a fifth display module, configured to display the second prompt information in the second display area in response to the second display area displaying the third prompt information; wherein the second prompt information and the third prompt information are displayed at different positions in the second display area.
[0147] In some embodiments, the device further includes: a sixth display module, configured to, in response to the second display area displaying the third prompt information, store the second prompt information in an information queue corresponding to the second display area, wherein the information queue also stores at least one fourth prompt information; obtain the prompt priorities corresponding to the second prompt information and the at least one fourth prompt information respectively, and sort the second prompt information and the at least one fourth prompt information in descending order of the prompt priorities; and, in response to the completion of the display of the third prompt information, display the prompt information that is ranked first in the information queue in the second display area.
[0148] In some embodiments, the apparatus further includes: a priority determination module, configured to acquire priority parameters for each of the second prompt information and the at least one fourth prompt information; wherein the priority parameters include at least one of the following: the generation time of the prompt information generated by the virtual scene, and the prompt weight set for the prompt information; and to determine the prompt priority of the prompt information based on the prompt priority parameters.
[0149] In some embodiments, the sixth display module is further configured to, in response to the second display area displaying the third prompt information, compare the prompt priorities of the third prompt information and the second prompt information; and, in response to the prompt priority of the third prompt information being higher than the prompt priority of the second prompt information, store the second prompt information in the information queue corresponding to the second display area.
[0150] In some embodiments, the device further includes: a sixth and seventh display module, configured to, in response to the third prompt information having a lower prompt priority than the second prompt information, stop displaying the third prompt information in the second display area and display the second prompt information in the second display area; and in response to the second prompt information being displayed completely, continue displaying the third prompt information in the second display area.
[0151] In some embodiments, the device further includes: an eighth display module, configured to display a fifth prompt message of the second type in the second display area during the display of the first prompt message; correspondingly, the third display module is further configured to, during the display of the fifth prompt message, when the display timing of the second prompt message is determined according to the association relationship, stop displaying the fifth prompt message in the second display area and display the second prompt message; the eighth display module is further configured to, in response to the completion of displaying the second prompt message, continue displaying the fifth prompt message in the second display area.
[0152] In some embodiments, the device further includes: a ninth display module, configured to display a sixth prompt message of the second type in a first sub-region of the second display area during the display of the first prompt message; correspondingly, the third display module is further configured to display the second prompt message in a second sub-region of the second display area, which is different from the first sub-region, when the display timing of the second prompt message is determined according to the association relationship during the display of the sixth prompt message.
[0153] In some embodiments, the ninth display module is further configured to display the sixth prompt information of the second type in the first sub-region of the second display area using a first display method; correspondingly, the third display module is further configured to display the second prompt information in the second sub-region of the second display area using a second display method; wherein, the first display method is different from the second display method.
[0154] In some embodiments, the third display module is further configured to determine a virtual object in the virtual scene that matches the second prompt information, and to use the area where the virtual object is located as the second display area corresponding to the second type; and to display the second prompt information in the second display area.
[0155] In some embodiments, the second display module is further configured to display the first prompt information in a first display area corresponding to the first type at a first display speed; correspondingly, the third display module is further configured to display the second prompt information in a second display area corresponding to the second type at a second display speed; wherein the first display speed corresponds to the first type and the second display speed corresponds to the second type.
[0156] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. A processor of a terminal device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the information prompting method described above in the simulated scenario of this application embodiment.
[0157] This application provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are executed by a processor, they cause the processor to execute the information prompting method provided in this application's simulated scenario. For example... Figure 4 The method shown.
[0158] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.
[0159] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
[0160] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).
[0161] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0162] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. It should be noted that the virtual scene information prompting method proposed in this application embodiment is described by displaying the prompt information in a display area. In practical applications, the output method of the prompt information can be expanded according to the type of prompt information. For example, when the prompt information is audio or video, it can be played in the display area, and the playback method can be adjusted during playback. For instance, taking both the first and second prompt information as audio, when playing the first and second prompt information simultaneously, the first prompt information can be muted, controlling the playback volume of the first prompt information to be reduced or even muted, while the playback volume of the second prompt information remains normal to highlight the second prompt information. This application embodiment does not limit the output method of the prompt information. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A method for providing information prompts in a virtual scene, characterized in that, The method includes: The interface displays a virtual scene comprising at least two display areas, each used to display different types of prompts, wherein the number of display areas is the same as the number of types of prompts to be displayed on the interface of the virtual scene. In response to a display instruction for a first prompt message of a first type, the first prompt message is displayed in a first display area corresponding to the first type; During the display of the first prompt information, for the second type of second prompt information existing in the virtual scene, the display progress of the first prompt information is used to detect whether there is a correlation between the second prompt information and the first prompt information. If the second prompt information is associated with the first prompt information, the display timing of the second prompt information is detected according to the association relationship, and when it is determined that the display timing of the second prompt information has arrived, the second prompt information is displayed in the second display area corresponding to the second type.
2. The method as described in claim 1, characterized in that, Before the display includes an interface of a virtual scene comprising at least two display areas, the method further includes: When the number of types of prompts in the virtual scene is the target number, the interface of the virtual scene is divided into the target number of display areas, and each display area corresponds to one type of prompt. Based on the distribution of each display area and the attribute characteristics of each type of prompt information, a correspondence between each display area and the corresponding type of prompt information is established.
3. The method as described in claim 1, characterized in that, Before detecting whether there is a correlation between the second type of second prompt information and the first prompt information based on the display progress of the first prompt information, the method further includes: During the display of the first prompt information, the running progress of the virtual scene and the display progress of the first prompt information are obtained; The second prompt information is generated based on the running progress and the display progress, and an association is established between the first prompt information and the second prompt information.
4. The method as described in claim 1, characterized in that, The step of detecting whether the timing for displaying the second prompt information has arrived based on the association relationship includes: When the association indicates that the second prompt information will be displayed when the display progress of the first prompt information reaches the target progress, the display progress of the first prompt information is detected during the display of the first prompt information; When the display progress of the first prompt message reaches the target progress, it is determined that the time for displaying the second prompt message has arrived.
5. The method as described in claim 1, characterized in that, The method further includes: In response to the fact that the second prompt information is not associated with the first prompt information, it is detected whether the second display area is displaying the third prompt information of the second type; In response to the fact that the third prompt message is not displayed in the second display area, the second prompt message is displayed in the second display area.
6. The method as described in claim 5, characterized in that, The method further includes: In response to the second display area displaying the third prompt information, the second prompt information is displayed in the second display area during the process of displaying the third prompt information; The second prompt message and the third prompt message are displayed in different positions in the second display area.
7. The method as described in claim 5, characterized in that, The method further includes: In response to the second display area displaying the third prompt information, the second prompt information is stored in the information queue corresponding to the second display area, and the information queue also stores at least one fourth prompt information; Obtain the prompt priority corresponding to the second prompt information and the at least one fourth prompt information respectively, and sort the second prompt information and the at least one fourth prompt information in descending order of the prompt priority; In response to the completion of the display of the third prompt message, the prompt message that appears first in the information queue is displayed in the second display area.
8. The method as described in claim 7, characterized in that, The method further includes: Obtain the priority parameters of each prompt message in the second prompt message and the at least one fourth prompt message; The priority parameter includes at least one of the following: the generation time of the prompt information generated by the virtual scene, and the prompt weight set for the prompt information; The prompt priority of the prompt information is determined based on the prompt priority parameter.
9. The method as described in claim 7, characterized in that, The step of storing the second prompt information into the information queue corresponding to the second display area includes: In response to the second display area displaying the third prompt information, the prompt priorities of the third prompt information and the second prompt information are compared; Since the third prompt has a higher priority than the second prompt, the second prompt is stored in the information queue corresponding to the second display area.
10. The method as described in claim 9, characterized in that, The method further includes: In response to the fact that the priority of the third prompt message is lower than that of the second prompt message, the third prompt message is stopped from being displayed in the second display area, and the second prompt message is displayed in the second display area. In response to the completion of the second prompt message display, the third prompt message continues to be displayed in the second display area.
11. The method as described in claim 1, characterized in that, The method further includes: During the display of the first prompt message, the fifth prompt message of the second type is displayed in the second display area; When the timing for displaying the second prompt information is determined, displaying the second prompt information in the second display area corresponding to the second type includes: During the display of the fifth prompt message, when the timing for displaying the second prompt message is determined based on the association relationship, the display of the fifth prompt message in the second display area is stopped, and the second prompt message is displayed. The method further includes: In response to the completion of the second prompt message display, the fifth prompt message continues to be displayed in the second display area.
12. The method as described in claim 1, characterized in that, The method further includes: During the display of the first prompt message, in the first sub-area of the second display area, the sixth prompt message of the second type is displayed; When the timing for displaying the second prompt information is determined, displaying the second prompt information in the second display area corresponding to the second type includes: During the display of the sixth prompt information, when the timing for displaying the second prompt information is determined based on the association relationship, the second prompt information is displayed in a second sub-region of the second display area that is different from the first sub-region.
13. The method as described in claim 12, characterized in that, The step of displaying the sixth prompt message of the second type in the first sub-area of the second display area includes: In the first sub-area of the second display area, the sixth prompt message of the second type is displayed using the first display method; Displaying the second prompt information in a second sub-region of the second display area includes: In the second sub-area of the second display area, the second prompt information is displayed using a second display method; The first display method is different from the second display method.
14. The method as described in claim 1, characterized in that, Displaying the second prompt information in the second display area corresponding to the second type includes: Identify the virtual object in the virtual scene that matches the second prompt information, and use the area where the virtual object is located as the second display area corresponding to the second type; The second prompt message is displayed in the second display area.
15. The method as described in claim 1, characterized in that, Displaying the first prompt information in the first display area corresponding to the first type includes: The first prompt information is displayed in the first display area corresponding to the first type at a first display speed; The step of displaying the second prompt information in the second display area corresponding to the second type includes: In the second display area corresponding to the second type, the second prompt information is displayed at the second display speed; Wherein, the first display speed corresponds to the first type, and the second display speed corresponds to the second type.
16. An information prompting device in a virtual scene, characterized in that, The device includes: The first display module is used to display an interface of a virtual scene including at least two display areas, where different display areas are used to display different types of prompt information, wherein the number of the at least two display areas is the same as the number of types of prompt information to be displayed on the interface of the virtual scene; The second display module is configured to respond to a display instruction for a first prompt message of the first type and display the first prompt message in a first display area corresponding to the first type; The third display module is used, during the process of displaying the first prompt information, to detect whether there is a correlation between the second type of second prompt information existing in the virtual scene and the first prompt information based on the display progress of the first prompt information; If the second prompt information is associated with the first prompt information, the display timing of the second prompt information is detected according to the association relationship, and when it is determined that the display timing of the second prompt information has arrived, the second prompt information is displayed in the second display area corresponding to the second type.
17. A terminal device, characterized in that, include: Memory is used to store executable instructions for a computer; A processor, when executing computer-executable instructions stored in the memory, implements the information prompting method in a virtual scene as described in any one of claims 1 to 15.
18. A computer-readable storage medium, characterized in that, The device stores computer-executable instructions, which, when executed by a processor, implement the information prompting method in a virtual scene as described in any one of claims 1 to 15.
19. A computer program product comprising a computer program or computer-executable instructions, characterized in that, When the computer program or computer-executable instructions are executed by the processor, they implement the information prompting method in the virtual scene as described in any one of claims 1 to 15.
Citation Information
Patent Citations
Virtual scene display method and device, storage medium, electronic device
CN108310768A