Virtual scene interaction method and apparatus, electronic device, computer-readable storage medium, and computer program product
By introducing the linkage of skill selection and release controls in the virtual scene, the problem of low efficiency of skill switching is solved, the game experience is improved, resource expenditure is saved, and the operation steps are simplified.
Patent Information
- Application Number
- PCT/CN2024/083824
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2024-03-26
- Publication Date
- 2024-09-26
AI Technical Summary
The existing technology has low efficiency in skill switching in virtual scenes, which affects the player's gaming experience, and the operation steps are cumbersome, resulting in an increase in terminal equipment resource overhead.
By introducing the linkage between the skill selection control and the skill release control in the human-computer interaction interface, players are allowed to quickly switch and release multiple types of skills, simplify the operation steps, and select the target type of skill from multiple types through the skill selection control.
It improves the efficiency of skill switching in the virtual scene, improves the player's game experience, simplifies the operation steps, and saves the resource overhead of the terminal device.
Smart Images

Figure CN2024083824_26092024_PF_FP
Abstract
Description
Virtual scene interaction method, device, electronic device, computer-readable storage medium, and computer program product
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 2023103013746 and application date of March 17, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present application relates to the field of computer human-computer interaction technology, and in particular to a virtual scene interaction method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0004] Human-computer interaction technology in virtual scenes based on graphics processing hardware can achieve diverse interactions between virtual objects controlled by users or artificial intelligence, depending on actual application needs, and has broad practical value. For example, in virtual scenes such as games, it can simulate real-life combat between virtual objects.
[0005] Taking open-world games as an example, related technologies often utilize multiple character settings. Players need to frequently switch characters and use their abilities during combat or exploration. As can be seen, the solutions provided by related technologies are cumbersome when switching skills, resulting in low skill switching efficiency and, in turn, affecting the player's gaming experience.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a virtual scene interaction method, device, electronic device, computer-readable storage medium and computer program product, which can improve the efficiency of skill switching in the virtual scene, thereby improving the player's gaming experience and saving resource overhead of the terminal device.
[0008] The technical solution of the embodiment of the present application is implemented as follows:
[0009] The embodiment of the present application provides a virtual scene interaction method, which is executed by an electronic device and includes:
[0010] Displaying a virtual scene, a skill selection control, and a skill release control in a human-computer interaction interface, wherein the virtual scene includes a first virtual object, and the skill release control is in a first display style, wherein the first display style indicates that the skill release control is currently associated with the first skill;
[0011] In response to a trigger operation on the skill selection control, switching the skill release control from the first display style to a second display style, wherein the second display style indicates that the skill release control is currently associated with a second skill, the second skill includes multiple types, and the skill selection control is used to select a target type from the multiple types;
[0012] In response to a trigger operation on the skill release control, the first virtual object is controlled to release the second skill of the target type.
[0013] The embodiment of the present application provides an interactive device for a virtual scene, including:
[0014] A display module is configured to display a virtual scene, a skill selection control, and a skill release control in a human-computer interaction interface, wherein the virtual scene includes a first virtual object, and the skill release control is in a first display style, wherein the first display style indicates that the skill release control is currently associated with the first skill;
[0015] a switching module configured to, in response to a trigger operation on the skill selection control, switch the skill release control from the first display style to a second display style, wherein the second display style indicates that the skill release control is currently associated with a second skill, the second skill includes multiple types, and the skill selection control is used to select a target type from the multiple types;
[0016] The control module is configured to control the first virtual object to release the second skill of the target type in response to a trigger operation on the skill release control.
[0017] An embodiment of the present application provides an electronic device, including:
[0018] a memory for storing executable instructions;
[0019] The processor is used to implement the virtual scene interaction method provided in the embodiment of the present application when executing the executable instructions stored in the memory.
[0020] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for implementing the virtual scene interaction method provided in the embodiment of the present application when executed by a processor.
[0021] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions, which, when executed by a processor, implements the virtual scene interaction method provided in the embodiment of the present application.
[0022] The embodiments of the present application have the following beneficial effects:
[0023] Through the linkage between the skill selection control and the skill release control, players can quickly switch to the second skill that needs to be released, and can use the skill selection control to select the target type of second skill from a variety of second skills to release. In this way, the efficiency of skill switching in the virtual scene is improved. While improving the player's gaming experience, the operation steps are simplified compared to the solutions provided by related technologies, thereby saving resource overhead of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] FIG1 is a schematic diagram of the architecture of a virtual scene interaction system 100 provided in an embodiment of the present application;
[0025] FIG2 is a schematic structural diagram of an electronic device 500 provided in an embodiment of the present application;
[0026] FIG3 is a flow chart of a virtual scene interaction method provided in an embodiment of the present application;
[0027] FIG4 is a flow chart of a virtual scene interaction method provided in an embodiment of the present application;
[0028] FIG5 is a flow chart of a virtual scene interaction method provided in an embodiment of the present application;
[0029] 6A to 6E are schematic diagrams of application scenarios of the virtual scene interaction method provided in an embodiment of the present application;
[0030] 7 to 13 are schematic diagrams showing the principles of the virtual scene interaction method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to make the purpose, 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 limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0032] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be 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.
[0033] It is understandable that in the embodiments of the present application, when user information and other related data are involved (such as data of a game character controlled by a user), when the embodiments of the present application are applied to specific products or technologies, user permission or consent must be obtained, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0034] In the following description, the terms "first\second\..." are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first\second\..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0035] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0036] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as commonly understood by those skilled in the art of the present application. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the embodiments of the present application.
[0037] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0038] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0039] 2) Virtual scene: This is the scene displayed (or provided) when the application is running on a terminal device. This scene can be a simulation of the real world, a virtual environment that is semi-simulated and semi-fictitious, or a purely fictitious virtual environment. The virtual scene in the embodiments of the present application can be a three-dimensional virtual scene. For example, the virtual scene can include the sky, land, ocean, etc., and the land can include environmental elements such as deserts and cities. Users can control virtual objects to move within the virtual scene.
[0040] 3) Virtual Objects: These are the images of various people and objects that can interact in a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual people, virtual animals, animated characters, and so on, such as people or animals displayed within the virtual scene. A virtual object can be a virtual avatar that represents the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own unique shape and volume, occupying a portion of the space within the virtual scene.
[0041] 4) Scene data: This data represents the characteristics of the virtual scene, such as the area of the construction area in the virtual scene, the current architectural style of the virtual scene, etc.; it can also include the location of the virtual building in the virtual scene, and the area occupied by the virtual building, etc.
[0042] 5) Open World Game: Also known as Free Roam Game, it is a type of game level design in which players can freely roam in a virtual world and freely choose the time and method to complete game tasks.
[0043] 6) Activated state: This refers to the state where a virtual object's skill has been enabled and can be used normally. For example, a player can activate a skill by clicking a specific button in the game scene.
[0044] 7) Cloud Gaming: Also known as Gaming on Demand, this involves deploying a game program on a server and running an instance of the game program (referred to as a game instance). The game instance then sends the game data generated during operation to the browser page on the user's terminal. The page then calls the browser's media component to decode the game data and renders the real-time game screen based on the decoded results. When the page detects user actions on the game screen, it reports them to the game instance running on the server. Upon receiving the game data generated by the game instance in response to the action, the decoding and rendering process is repeated, presenting the game screen on the page in response to the user's actions.
[0045] In other words, cloud gaming is an online gaming technology based on cloud computing. Cloud gaming technology enables thin clients with relatively limited graphics and data processing capabilities to run high-quality games. In a cloud gaming scenario, the game is not played on the user terminal (e.g., the player's gaming terminal), but rather on a cloud server. The cloud server renders the game scene into an audio and video stream, which is transmitted to the user terminal over the network. This eliminates the need for powerful graphics and data processing capabilities, requiring only basic streaming media playback capabilities and the ability to receive player input and send it to the cloud server.
[0046] 8) Display style: refers to the appearance design of the skill control in the game scene, such as the icon, color, and size of the skill control. Different skill controls may have different display styles.
[0047] 9) Charging State: This refers to the preparation stage that the game character must go through in order to release special skills or perform powerful attacks. Players can accumulate energy or prepare conditions by entering specific commands or waiting for a period of time. Once the charging is completed, the game character can launch more powerful skills.
[0048] The embodiments of the present application provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for interacting with a virtual scene, which can improve the efficiency of skill switching in a virtual scene. To facilitate easier understanding of the method for interacting with a virtual scene provided by the embodiments of the present application, an exemplary implementation scenario of the method for interacting with a virtual scene provided by the embodiments of the present application is first described. The virtual scene in the method for interacting with a virtual scene provided by the embodiments of the present application can be completely output by a terminal device, or can be output by a terminal device and a server in collaboration.
[0049] For example, for a stand-alone game application, when forming a visual perception of a virtual scene, the terminal device calculates the data required for display through the graphics computing hardware, and completes the loading, parsing and rendering of the display data, and the graphics output hardware outputs video frames that can form a visual perception of the virtual scene. For example, two-dimensional video frames are presented on the display screen of a smartphone, or video frames that achieve a three-dimensional display effect are projected on the lenses of augmented reality / virtual reality glasses; in addition, in order to enrich the perceptual effect, the terminal device can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0050] For example, for online game applications, taking the formation of visual perception of virtual scenes as an example, the server calculates virtual scene-related display data (such as scene data) and sends it to the terminal device through the network. The terminal device relies on graphics computing hardware to complete the loading, parsing and rendering of the display data, and relies on graphics output hardware to output the virtual scene to form visual perception. For example, two-dimensional video frames can be presented on the display screen of a smartphone, or video frames with three-dimensional display effects can be projected on the lenses of augmented reality / virtual reality glasses. As for the perception of the form of the virtual scene, it can be understood that the corresponding hardware output of the terminal device can be used, such as using a microphone to form auditory perception, using a vibrator to form tactile perception, and so on.
[0051] The electronic device provided in the embodiment of the present application is described below. The electronic device provided in the embodiment of the present application can be implemented as a terminal device, or implemented by a terminal device and a server in collaboration. The following description is based on an example of a virtual scene interaction method provided in the embodiment of the present application being implemented in collaboration between a terminal device and a server.
[0052] Before introducing the architecture of the interactive system of the virtual scene provided by the embodiment of the present application, the game mode involved in the embodiment of the present application is first introduced. For the scheme of collaborative implementation of the terminal device and the server, it mainly involves two game modes, namely local game mode and cloud game mode, wherein the local game mode refers to the terminal device and the server collaboratively running the game processing logic, the operation instructions entered by the player in the terminal device, part of which is processed by the terminal device running the game logic, and the other part is processed by the server running the game logic, and the game logic processing run by the server is often more complicated and requires more computing power; the cloud game mode refers to the game logic processing run entirely by the server (such as a cloud server), and the cloud server renders the game scene data into an audio and video stream, which is then transmitted to the terminal device via the network for display. In other words, the terminal device only needs to have basic streaming media playback capabilities and the ability to obtain the player's operation instructions and send them to the server.
[0053] The architecture of the interactive system for the virtual scene provided in the embodiment of the present application is described below.
[0054] For example, see Figure 1, which is a schematic diagram of the architecture of the interactive system 100 for a virtual scene provided in an embodiment of the present application. In order to implement an application that supports improving the efficiency of skill switching in a virtual scene, as shown in Figure 1, the interactive system 100 for a virtual scene includes: a server 200, a network 300 and a terminal device 400, wherein the network 300 can be a local area network or a wide area network, or a combination of the two, the terminal device 400 is a terminal device associated with a player, and a client 410 runs on the terminal device 400. The client 410 can be an online version of a game application, such as an open world game, a shooting game, a virtual reality application, a three-dimensional map program, a card strategy game, a sports game, a three-dimensional game, or a multiplayer gun battle survival game.
[0055] In some embodiments, the server 200 calculates display data related to the virtual scene (e.g., scene data) and sends it to the terminal device 400 via the network 300, so that the terminal device 400 performs rendering based on the display data to display the virtual scene, skill selection control, and skill release control in the human-computer interaction interface of the client 410, wherein the virtual scene may include a first virtual object (e.g., a game character A controlled by a player), and the skill release control may be in a first display style, and the first display style indicates that the skill release control is currently associated with the first skill (e.g., a prop throwing skill); then, when the client 410 receives a trigger from the player for the skill selection control, When an operation is performed (such as a click operation or a press operation), the skill release control can be switched from the first display style to the second display style, wherein the second display style indicates that the skill release control is currently associated with the second skill (such as a magic skill), and the second skill can include multiple types (such as star magic and wind field magic, etc.), and the skill selection control can be used to select a target type from multiple types; then when the client 410 receives the player's trigger operation for the skill release control, it can control the first virtual object to release the second skill of the target type. In this way, through the linkage between the skill selection control and the skill release control, the efficiency of skill switching in the virtual scene is improved.
[0056] In other embodiments, the interactive method of the virtual scene provided by the embodiment of the present application can also be implemented by a terminal device alone. Taking the terminal device 400 shown in Figure 1 as an example, the terminal device 400 calculates the data required for display through graphics computing hardware, and completes the loading, parsing and rendering of the display data to display the virtual scene, skill selection control, and skill release control in the human-computer interaction interface of the client 410 (for example, a stand-alone game application), wherein the virtual scene may include a first virtual object (for example, a game character A controlled by a player), and the skill release control may be in a first display style, and the first display style indicates that the skill release control is currently associated with the first skill; then, when the client 410 receives the player's trigger operation for the skill selection control (for example, clicking When a player performs a trigger operation on the skill release control (operation or pressing operation), the skill release control can be switched from the first display style to the second display style, wherein the second display style represents that the skill release control is currently associated with the second skill (such as a magic skill), and the second skill can include multiple types (such as star magic and wind field magic, etc.), and the skill selection control can be used to select a target type from multiple types; then when the client 410 receives the player's trigger operation for the skill release control, it can control the first virtual object to release the second skill of the target type. In this way, the efficiency of skill switching in the virtual scene is improved through the linkage between the skill selection control and the skill release control.
[0057] In some embodiments, the terminal device 400 can also implement the interactive processing method of the virtual scene provided in the embodiments of the present application 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, APPlication), that is, a program that needs to be installed in the operating system to run, such as an open world game APP (i.e., the above-mentioned client 410); it can also be a small program, that is, a program that can be run only by downloading it into a browser environment; it can also be a game small program that can be embedded in any APP. In short, the above-mentioned computer program can be an application, module or plug-in in any form.
[0058] Taking a computer program as an application, in actual implementation, the terminal device 400 installs and runs an application that supports a virtual scene. The application can be any of an open-world game, a first-person shooter (FPS), a third-person shooter, a virtual reality application, a three-dimensional map program, a card strategy game, a sports game, a three-dimensional game, or a multiplayer shooter survival game. Players use the terminal device 400 to manipulate virtual objects in the virtual scene to perform activities, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and constructing virtual buildings. Illustratively, the virtual character can be a virtual person, such as a simulated human character or an anime character.
[0059] In other embodiments, the embodiments of the present application can also be implemented with the help of cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network within a wide area network or local area network to realize data calculation, storage, processing, and sharing.
[0060] Cloud technology is a general term for network, information, integration, management platform, and application technologies used in the cloud computing business model. It can form a resource pool that can be used flexibly and conveniently on demand. Cloud computing technology will become a key support. The backend services of technical network systems require a large amount of computing and storage resources.
[0061] For example, the server 200 in Figure 1 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDNs), and big data and artificial intelligence platforms. The terminal device 400 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, a virtual reality device, an augmented reality device, etc., but is not limited to this. The terminal device 400 and the server 200 can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0062] The structure of the electronic device provided by the embodiment of the present application will be described below. Taking the electronic device as a terminal device as an example, refer to Figure 2, which is a structural diagram of an electronic device 500 provided by an embodiment of the present application. The electronic device 500 shown in Figure 2 includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together through a bus system 540. It can be understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as bus system 540 in Figure 2.
[0063] The processor 510 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., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0064] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0065] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 550 may optionally include one or more storage devices that are physically remote from the processor 510.
[0066] The memory 550 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.
[0067] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.
[0068] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0069] A network communication module 552 for reaching other computing devices via one or more (wired or wireless) network interfaces 520 , exemplary network interfaces 520 including Bluetooth, WiFi, and USB;
[0070] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., a display screen, a speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripheral devices and displaying content and information);
[0071] The input processing module 554 is configured to detect one or more user inputs or interactions from one of the one or more input devices 532 and to translate the detected inputs or interactions.
[0072] In some embodiments, the device provided by the embodiments of the present application can be implemented in software. FIG2 shows an interactive device 555 for a virtual scene stored in a memory 550, which can be software in the form of programs and plug-ins, including the following software modules: a display module 5551, a switching module 5552, a control module 5553, a driving module 5554, a determination module 5555, and a shielding module 5556. These modules are logical and can therefore be arbitrarily combined or further split according to the functions implemented. It should be pointed out that in FIG2 , all the above modules are shown at once for the sake of convenience, but this should not be regarded as excluding the implementation of the interactive device 555 for the virtual scene that can only include the display module 5551, the switching module 5552, and the control module 5553. The functions of each module will be explained below.
[0073] The following will specifically describe the virtual scene interaction method provided in the embodiment of the present application in combination with the exemplary application and implementation of the terminal device provided in the embodiment of the present application.
[0074] Refer to Figure 3, which is a flow chart of the virtual scene interaction method provided in an embodiment of the present application, which will be explained in conjunction with the steps shown in Figure 3.
[0075] It should be noted that the method shown in FIG3 can be executed by various computer programs running on a terminal device, and is not limited to a client. For example, it can also be an operating system, software module, script, and applet as described above. Therefore, the example of a client below should not be considered a limitation of the embodiments of the present application. In addition, for the sake of convenience, the following description does not specifically distinguish between a terminal device and a client running on the terminal device.
[0076] In step 101, a virtual scene, a skill selection control, and a skill release control are displayed in a human-computer interaction interface.
[0077] Here, the virtual scene may include a first virtual object (e.g., game character A controlled by the current player), and the skill release control may be in a first display style by default, wherein the first display style indicates that the skill release control is currently associated with a first skill (e.g., a prop throwing skill).
[0078] It should be noted that in addition to the first virtual object controlled by the current player, the virtual scene can also display other virtual objects, for example, at least one second virtual object controlled by a robot program or other players, and the at least one second virtual object and the first virtual object can belong to the same virtual camp, or different virtual camps.
[0079] In some embodiments, a client that supports virtual scenes (such as an open world game APP) is installed on the terminal device. When the user opens the client installed on the terminal device (for example, the terminal device receives a click operation from the user on the icon corresponding to the open world game APP presented on the desktop) and the terminal device runs the client, a virtual scene, skill selection controls (such as a magic selection button), and skill release controls in a first display style (such as elves and prop throwing buttons) can be displayed in the human-computer interaction interface of the client. The virtual scene may include a first virtual object.
[0080] In other embodiments, the virtual scene may be displayed in the human-computer interaction interface of the client from a first-person perspective (for example, the user plays the virtual object in the game from his own perspective); or from a third-person perspective (for example, the user chases the virtual object in the game to play the game); or from a bird's-eye view perspective; wherein, the above-mentioned different perspectives can be switched arbitrarily.
[0081] As an example, the first virtual object can be controlled by the current user in the game. Of course, the virtual scene can also include other virtual objects, such as a second virtual object that can be controlled by another user or a bot. Virtual objects can be divided into any of multiple camps, and the camps can be in hostile or collaborative relationships. The camps in the virtual scene can include any or all of the aforementioned relationships.
[0082] Taking the first-person perspective as an example, displaying a virtual scene in a human-computer interaction interface can include determining the first virtual object's field of view based on its viewing position and field of view within the complete virtual scene, and presenting the portion of the virtual scene within the field of view within the complete virtual scene. Specifically, the displayed virtual scene can be a portion of the virtual scene relative to the panoramic virtual scene. Because the first-person perspective is the most impactful viewing angle for users, it enables an immersive user experience during operation.
[0083] Taking a bird's-eye view of a virtual scene as an example, displaying the virtual scene in the human-computer interaction interface can include: in response to a zoom operation on the panoramic virtual scene, presenting a portion of the virtual scene corresponding to the zoom operation in the human-computer interaction interface. In other words, the displayed virtual scene can be a portion of the virtual scene relative to the panoramic virtual scene. This can improve user operability during operation and thus enhance the efficiency of human-computer interaction.
[0084] In step 102, in response to a trigger operation on a skill selection control, the skill release control is switched from a first display style to a second display style.
[0085] Here, the second display style indicates that the skill release control is currently associated with a second skill (e.g., a magic skill, which is a special skill in the game. Players can control game characters to use magic skills to interact with the game world, such as using magic skills to interact with terrain and assets within the virtual scene to a certain extent, such as creating or changing terrain in the virtual scene, or creating a virtual wind field in the virtual scene). The second display style is different from the first display style. For example, when the skill release control is in the first display style, the skill release control may include materials corresponding to the first skill (e.g., the icon and name of the first skill). For example, the icon of the first skill may be used to represent the skill release control in the first display style to remind the player that the skill release control is currently used to release the first skill. When the skill release control is in the second display style, the skill release control may include materials corresponding to the second skill (e.g., the icon and name of the second skill). For example, the icon of the second skill may be used to represent the skill release control in the second display style to remind the player that the skill release control is currently used to release the second skill. In addition, the second skill may include multiple types (e.g., star magic and wind field magic), and the skill selection control may be used to select a target type from the multiple types.
[0086] In some embodiments, the skill selection control can be in a closed state (i.e., an unselected state) by default, wherein the closed state indicates that the second skill is in an inactive state (in this state, the first virtual object cannot release the second skill). Then, in response to a trigger operation on the skill selection control, the following processing can also be performed: the skill selection control is switched from a closed state to an open state, wherein the open state indicates that the second skill is in an activated state (i.e., a ready-to-use state, in this state, the first virtual object can release the second skill).
[0087] It should be noted that when the skill selection control is switched from the off state to the on state, the display mode of the skill selection control (such as the display effect parameters of the material) will change (but the type of material will not change). For example, when the skill selection control is switched from the off state to the on state, it can be displayed in a highlighted or flashing manner to distinguish it.
[0088] For example, taking the second skill as a magic skill as an example, see Figure 6A, which is a schematic diagram of an application scenario of the interactive method of the virtual scene provided in an embodiment of the present application. As shown in Figure 6A, a first virtual object 601 (for example, a game character A controlled by the current player), a skill selection control 602 in a closed state (for example, a magic selection button in an unselected state), and an elf and item throwing button 603 (that is, a skill release control in a first display style, at this time, the skill release control is associated with the item throwing skill) are displayed in a virtual scene 600 from a third-person perspective. When a player clicks on the skill selection control 602, the skill selection control 602 can be switched to an on state (for example, displayed in a highlighted manner to indicate that the skill selection control 602 is currently selected), and the elf and item throwing button 603 can be switched to a magic release button 604 (that is, a skill release control in a second display style, at this time, the skill release control is associated with a magic skill).
[0089] It should be noted that the skill selection control can be displayed in the human-computer interaction interface all the time, or it can be displayed in the human-computer interaction interface only for a period of time. For example, after the skill release control is switched from the first display style to the second display style, the skill selection control can be cancelled in the human-computer interaction interface. The embodiment of the present application does not specifically limit the display method of the skill selection control.
[0090] In some embodiments, the target type can be the first type selected by default among multiple types, and the default display style of the skill selection control is the third display style, wherein the third display style indicates that the skill selection control is currently associated with the second skill of the first type, and the first type includes one of the following: the type selected last time, the type selected the most times. For example, the material corresponding to the second skill of the first type (such as the icon, name, etc. corresponding to the second skill of the first type) can be used to represent the skill selection control in the third display style. For example, taking the second skill of the first type as star magic as an example, the icon of star magic can be used to represent the skill selection control in the third display style to indicate that the currently selected magic type is star magic. That is to say, when the selected magic type is star magic, the display style of the skill selection control can use the icon of star magic.
[0091] In other embodiments, the target type may also be a second type manually selected through the skill selection control. In this case, after the skill selection control is switched to the on state, the following processing may be performed: in response to a trigger operation (e.g., a click operation or a long press operation) on the skill selection control in the on state, multiple types of second skills are displayed; in response to the second type of the multiple types being selected, the skill selection control is switched to a fourth display style, wherein the fourth display style indicates that the skill selection control is currently associated with the second skill of the second type. For example, the skill selection control in the fourth display style may be represented by a material corresponding to the second skill of the second type (e.g., the icon, name, etc. of the second skill of the second type). For example, taking the second skill of the second type as wind magic, assuming that the previously selected magic type is star magic (i.e., the current icon of the skill selection control is the icon corresponding to star magic), the skill selection control may be switched from the icon corresponding to star magic to the icon corresponding to wind magic (i.e., the fourth display style) to indicate that the currently selected magic type is wind magic.
[0092] For example, taking the second skill as a magic skill as an example, see Figure 6B, which is a schematic diagram of the application scenario of the interactive method of the virtual scene provided by an embodiment of the present application. As shown in Figure 6B, when a long press operation of the player is received on the skill selection control 602 in the turned-on state (for example, the magic selection button in the selected state), a magic selection box 605 can be displayed, and a variety of magics are displayed in the magic selection box 605 for the player to choose. When a click operation of the player is received on the wind field magic 606 displayed in the magic selection box 605, the skill selection control 602 can be switched from the third display style (for example, the icon corresponding to the star magic) to the fourth display style (for example, the icon corresponding to the wind field magic), thereby facilitating the player to switch the magic type.
[0093] In step 103, in response to a trigger operation on a skill release control, the first virtual object is controlled to release a second skill of the target type.
[0094] Here, the second skill of the target type can have multiple effects, and the corresponding effects are applied according to the object with which the second skill of the target type interacts. That is, the effects applied by the second skill of the target type are different for different interactive objects.
[0095] In some embodiments, a second skill of a target type (e.g., star magic) can be used to drive a first virtual prop (e.g., a virtual star) to move autonomously in a set direction in a virtual scene, and exert a corresponding effect on an object colliding with the first virtual prop. The type of triggering operation may include a click operation, and the above-mentioned step 103 can be implemented in the following manner: in response to a click operation on a skill release control, the first virtual object is controlled to release the second skill of the target type in a first direction to drive the first virtual prop to move autonomously along the first direction, and exert a corresponding effect on an object colliding with the first virtual prop, wherein the first direction is the current orientation of the first virtual object.
[0096] For example, taking the target type's second skill as star magic, the corresponding first virtual prop can be a virtual star. Upon receiving a click operation from the player on the skill release control (such as a magic release button), the first virtual object can be controlled to release the star magic directly in the direction facing the player's screen (i.e., the current direction of the first virtual object), so as to drive the virtual star to move autonomously in that direction and exert corresponding effects on the object that the virtual star collides with.
[0097] In other embodiments, continuing with the above example, the type of trigger operation may also include a pressing operation, and step 103 shown in FIG. 3 may be implemented through steps 1031A to 1033A shown in FIG. 4 , which will be described in conjunction with the steps shown in FIG. 4 .
[0098] In step 1031A, in response to a pressing operation on the skill release control, while the pressing operation is not released, the virtual scene is switched to a zoom mode, and a virtual joystick and a crosshair corresponding to the direction of the first virtual object are displayed.
[0099] In some embodiments, taking the second skill of the target type as star magic as an example, when a player's long press operation on the skill release control (such as a magic release button) is received, the lens of the virtual camera in the virtual scene can be controlled to zoom in (that is, the virtual scene is switched to zoom mode to facilitate the player's aiming) to enter the "magic aiming" state, and a virtual joystick is displayed in the lower right corner of the screen, as well as a crosshair corresponding to the direction of the first virtual object (such as game character A). For example, the crosshair can be displayed in front of the direction of game character A.
[0100] In step 1032A, in response to a shaking operation on the virtual joystick, the crosshair is controlled to rotate synchronously.
[0101] In some embodiments, continuing with the above example, after a virtual joystick is displayed in the lower right corner of the screen, the player can rotate the screen using the displayed virtual joystick to perform magic aiming.
[0102] In step 1033A, in response to the pressing operation being released, the first virtual object is controlled to release the second skill of the target type in the second direction to drive the first virtual prop to move autonomously along the second direction and apply a corresponding action to the object collided with by the first virtual prop.
[0103] Here, the second direction is a direction corresponding to the rotated crosshair, that is, a direction from the first virtual object to the rotated crosshair.
[0104] In some embodiments, taking the second skill of the target type as star magic as an example, when it is detected that the player releases the skill release control (such as a magic release button), the first virtual object can be controlled to release the star magic in the direction corresponding to the rotated crosshair, so as to drive the virtual star to move autonomously in that direction and exert corresponding effects on the object that the virtual star collides with.
[0105] For example, the above-mentioned application of corresponding effects to the object collided with by the first virtual prop can be achieved in the following ways: performing at least one of the following processes: knocking down the collided second virtual object (for example, when a virtual star collides with a wild Pokémon in a virtual scene, the wild Pokémon can be knocked down and their actions interrupted); displaying a collision mark on the collided third virtual object to increase the probability of the first virtual object capturing the collided third virtual object (for example, a Pokémon hit by star magic will have a star mark on its head. In this state, the player's success rate in using Poké Balls to capture Pokémon will increase); destroying the collided virtual object (for example, when star magic collides with some loose rocks in the virtual scene, it may shatter them, making it easier for players to obtain props buried under the rocks); activating the level or mechanism associated with the specific interactive object collided with (for example, star magic can interact with certain customized interactive objects in the virtual scene, thereby activating the players associated with them). In other words, the effects exerted by the second skill of the target type are different for different objects.
[0106] In some embodiments, in response to a press operation on a skill release control, the following processing can also be performed: the second skill of the target type is controlled to enter a charging state, so that the prominence of the first virtual prop (such as a virtual star) and at least one of the influence range of the first virtual prop are enhanced as the charging level increases (for example, the volume of the virtual star is controlled to increase continuously, or the brightness of the virtual star is controlled to increase continuously, etc.), wherein the charging level is positively correlated with the duration of the pressing operation; in response to the pressing operation being released, the second skill of the target type is controlled to exit the charging state.
[0107] For example, if the second skill of a target type is Star Magic, Star Magic can be charged before being released. There are multiple charging levels, such as three. The longer the player presses the skill release control (i.e., the longer the charging time), the higher the final charging level. Correspondingly, the larger the virtual star will be (or the brightness of the virtual star will gradually increase), and the larger the explosion range of the virtual star after landing. For example, for some rocks in the virtual scene whose hardness exceeds the hardness threshold, the player needs to charge Star Magic in order for the released virtual star to break the rock. In other words, the virtual star released by the player by clicking will not be able to break such rocks due to insufficient energy.
[0108] In other embodiments, when the second skill of the target type is in a charging state, the state value of the first virtual object will continue to be consumed. When controlling the second skill of the target type to enter the charging state, the following processing can also be performed: displaying a status progress control (for example, including a status bar control or a status ring control, etc.) in the human-computer interaction interface, wherein the progress of the status progress control (for example, the length of the status bar control) continues to decrease with the increase in the duration of the pressing operation, wherein the progress of the status progress control can be used to represent the remaining state value of the first virtual object, that is, the smaller the progress of the status progress control, the smaller the remaining state value of the first virtual object.
[0109] For example, when the second skill of the target type enters the charging state, the state value (such as physical strength) of the first virtual object can be continuously consumed. When the remaining state value of the first virtual object is less than the state value threshold (such as insufficient physical strength of the player), the charging will be paused. For example, when the physical strength of the game character controlled by the player is insufficient, the second skill of the target type can automatically exit the charging state.
[0110] For example, taking the second skill of the target type as Star Magic as an example, see FIG6C , which is a schematic diagram of an application scenario of the interactive method of the virtual scene provided by an embodiment of the present application. As shown in FIG6C , when Star Magic is selected (at this time, the display style of the skill selection control 602 is the icon of Star Magic), when the player receives a long press operation on the skill release control 604 (e.g., the magic release button), a virtual joystick 607 and a magic crosshair 608 corresponding to the direction of the first virtual object 601 can be displayed in the lower right corner of the screen. At this time, the player can use the virtual joystick 607 to rotate the screen to aim the magic. When it is detected that the player releases the skill release control 607, the first virtual object 601 can be controlled to release the Star Magic in the direction of the magic crosshair 608. In addition, a status bar control (such as a stamina slot 609) of the first virtual object 601 can also be displayed in the virtual scene, and the length of the stamina bar in the stamina slot 609 will continue to shorten as the duration of the pressing operation increases, indicating that the stamina value of the game character controlled by the player is constantly decreasing, thereby making it easier for the player to understand the current stamina value of the game character.
[0111] In other embodiments, when driving the first virtual prop to move autonomously in the first direction or the second direction, the following processing can also be performed: driving the first virtual prop to bounce when it hits the ground or an obstacle, and being able to bounce a maximum of a set number of times (for example, 4 times), and explode at the last bounce.
[0112] For example, the above-mentioned driving of the first virtual prop to bounce when it hits the ground or an obstacle can be achieved in the following manner: when the first virtual prop hits the ground or an obstacle, performing the following processing: determining a bouncing direction of the first virtual prop that conforms to the physical rules of the real world, or restricting the movement of the first virtual prop to a plane (i.e., converting the movement of the first virtual prop from three dimensions to two dimensions, thereby making it more predictable), and the bouncing direction is forward or backward along the plane, where the plane is a plane formed by the throwing direction of the first virtual prop and the anti-gravity direction; determining the elevation angle and speed of the first virtual prop's bounce, where the elevation angle and speed are positively correlated with the charge level (i.e., the higher the charge level, the greater the elevation angle and speed); driving the first virtual prop to bounce according to the bouncing direction, elevation angle, and speed. In this way, the motion trajectory of the first virtual prop is ensured to be easier to predict, thereby improving the hit rate of the first virtual prop hitting the target object (e.g., wild elves, trees, rocks, etc.) in the virtual scene, thereby improving the efficiency of human-computer interaction.
[0113] In some embodiments, during the process of driving the first virtual prop to bounce, at least one of the following processes may be performed: multiplying the displacement of the first virtual prop in each frame by a set adjustment coefficient (for example, the multiplication result of the displacement and the adjustment coefficient may be used as the final displacement of the first virtual prop, thereby generally controlling the mobility of the first virtual prop) so that the height of the first virtual prop remains consistent during each bounce; obtaining a deceleration coefficient that conforms to the motion laws of the real world, and attenuating the flight speed of the first virtual prop in each frame based on the obtained deceleration coefficient. For example, the flight speed may be multiplied by the deceleration coefficient, and the multiplication result may be used as the final flight speed of the first virtual object to simulate the actual situation in reality, so that the motion trajectory of the first virtual prop is more consistent with the actual situation, and at the same time, it can also avoid the first virtual prop being too fast, causing the player to not be able to see the motion trajectory clearly.
[0114] In other embodiments, the second skill of the target type (such as wind field magic) can also be used to create a virtual wind field at a set position in the virtual scene, and apply corresponding effects to objects entering the virtual wind field. The type of triggering operation can include a click operation, and the above-mentioned step 103 can also be implemented in the following way: in response to a click operation on the skill release control, control the first virtual object to release the second skill of the target type at the first position to create a virtual wind field at the first position, and apply corresponding effects to objects entering the virtual wind field, wherein the first position is the position of the first virtual object.
[0115] For example, taking the second skill of the target type as wind field magic, when the player's click operation on the skill release control (such as the magic release button) is received, a virtual wind field can be created directly at the player's location (that is, the location of the first virtual object controlled by the player), and corresponding effects can be applied to objects entering the virtual wind field, such as increasing the height of the virtual vehicle entering the virtual wind field, so that the virtual vehicle can fly farther.
[0116] In other embodiments, continuing with the above example, the type of trigger operation may also be a pressing operation, and step 103 shown in FIG3 may be implemented through steps 1031B to 1033B shown in FIG5 , which will be explained in conjunction with the steps shown in FIG5 .
[0117] In step 1031B, in response to a pressing operation on the skill release control, while the pressing operation is not released, a virtual joystick and a wind field aiming circle corresponding to the direction of the first virtual object are displayed.
[0118] In some embodiments, taking the second skill of the target type as wind magic as an example, when a player's long press operation on the skill release control (such as the magic release button) is received, the aiming release state of the wind magic can be entered. At this time, a virtual joystick can be displayed in the lower right corner of the screen, and a wind field aiming circle corresponding to the direction of the first virtual object (such as game character A) can be displayed. For example, the wind field aiming circle can be displayed in front of the direction of game character A.
[0119] In step 1032B, in response to the shaking operation on the virtual joystick, the wind farm aiming circle is controlled to rotate synchronously.
[0120] In some embodiments, continuing with the above example, the player can rotate the screen using the virtual joystick displayed in the lower right corner of the screen to aim the wind magic.
[0121] In step 1033B, in response to the pressing operation being released, the first virtual object is controlled to release a second skill of the target type at the second location to create a virtual wind field at the second location and apply corresponding effects to objects entering the virtual wind field.
[0122] Here, the second position is the position of the wind farm aiming circle after rotation.
[0123] In some embodiments, when it is detected that the player has released the skill release control, a wind field aiming circle (i.e., the second position, indicating the position where the virtual wind field is about to be created) can be displayed in the virtual scene, and the first virtual object can be controlled to release wind field magic at the wind field aiming circle to create a virtual wind field at the wind field aiming circle and apply corresponding effects to objects entering the virtual wind field.
[0124] For example, taking the second skill of the target type as a magic skill as an example, see Figure 6D, which is a schematic diagram of an application scenario of the interactive method of the virtual scene provided by an embodiment of the present application. As shown in Figure 6D, when the wind field magic is selected (at this time, the display style of the skill selection control 602 is the wind field magic icon), when the player receives a long press operation on the skill release control 604 (e.g., the magic release button), a virtual joystick 610 and a wind field aiming circle 611 corresponding to the direction of the first virtual object (e.g., game character A) can be displayed in the lower right corner of the screen. The player can rotate the screen through the virtual joystick 610 to aim the wind field magic. When it is detected that the player releases the skill release control 604, a virtual wind field can be created at the rotated wind field aiming circle 611.
[0125] In other embodiments, the above-mentioned exertion of corresponding effects on objects entering the virtual wind field can be achieved by: performing at least one of the following processes: raising the height of the virtual vehicle entering the virtual wind field (for example, when the player uses a flying vehicle and enters the magic range of the wind field, it will be affected by the wind field and quickly rise in height); raising the height of the virtual throwing objects entering the virtual wind field (for example, when the player throws grunt balls, props or virtual stars released by star magic, etc., and when they pass through the virtual wind field during flight, they will also be affected by the virtual wind field and rise a certain distance, ultimately making them fly farther); activating the level or mechanism associated with the specific interactive object entering the virtual wind field (for example, the magic windmill can be blown by the virtual wind field to activate the mechanism associated with the magic windmill).
[0126] In some embodiments, before controlling the first virtual object to release a second skill of the target type at the second position, the second position (i.e., the creation point of the virtual wind field) can also be determined in the following manner: starting from the first virtual object (the position of the eyes), emitting detection rays along the direction of the first virtual object after rotation to obtain a collision point or a farthest point, and attaching the collision point or the farthest point to the terrain; constructing a spherical matrix with the collision point or the farthest point as the lower center of the spherical matrix; calculating the ray collision rate of the spherical matrix; when the collision rate is less than a collision rate threshold (for example, 60%), taking the collision point or the farthest point as the second position; when the collision rate is greater than or equal to the collision rate threshold, iteratively performing the following processing: obtaining a new point in the direction close to the first virtual object; constructing a spherical matrix with the new point as the lower center of the spherical matrix, and calculating the ray collision rate of the spherical matrix; when the collision rate is less than the collision rate threshold, taking the new point as the second position. In this way, it can be ensured that the virtual wind field is created in a relatively flat and open area in the virtual scene, thereby preventing the wind in the virtual wind field from being blocked by obstacles and being unable to exert corresponding effects on objects entering the virtual wind field.
[0127] In other embodiments, when the virtual wind farm is located on a slope in the virtual scene, the following processing can be performed before raising the height of the virtual vehicle or virtual projectile entering the virtual wind farm: the projection point of the virtual vehicle or virtual projectile on the plane close to the ground in the virtual wind farm is used as the detection starting point; the detection starting point is controlled to offset upward by a distance corresponding to the slope value of the slope, wherein the distance is positively correlated with the slope value; a detection ray is emitted from the offset detection starting point to the virtual vehicle or virtual projectile; when the detection result indicates that there is no obstruction, it is determined that the height of the virtual vehicle or virtual projectile entering the virtual scene will be raised; when the detection result indicates that there is an obstruction, it is determined that the height of the virtual vehicle or virtual projectile entering the virtual scene will not be raised. In this way, the wind-blocking logic of obstacles in the real world can be simulated, further improving the player's gaming experience.
[0128] In some embodiments, when there is a terrain object at the second location, after the virtual wind field is created at the second location, the following processing can also be performed: in the process of controlling the wind in the virtual wind field to move upward from the ground surface, the terrain object is shielded from blocking the wind in the virtual wind field. In this way, a virtual wind field can be formed on a slope, preventing the wind in the virtual wind field from being blocked by the terrain object and being unable to exert corresponding effects on objects entering the virtual wind field.
[0129] In other embodiments, when there is a non-terrain object at the second location, after the virtual wind farm is created at the second location, at least one of the following processes may be performed: when the non-terrain object is a wind-permeable object, in the process of controlling the upward movement from the ground surface in the virtual wind farm, the non-terrain object is shielded from blocking the wind in the virtual wind farm; when the non-terrain object is a non-wind-permeable object, in the process of controlling the upward movement from the ground surface in the virtual wind farm, it is determined that at least part of the wind in the virtual wind farm is blocked by the non-terrain object. In this way, the wind in the virtual wind farm can be blocked by obstacles in the virtual scene, thereby simulating the wind blocking logic in a real environment.
[0130] The interactive method of the virtual scene provided by the embodiment of the present application, on the one hand, through the linkage between the skill selection control and the skill release control, allows the player to quickly switch to the second skill that needs to be released, and can select the target type of second skill from a variety of types of second skills through the skill selection control to release, thereby improving the efficiency of skill switching in the virtual scene. On the other hand, by integrating multiple functions into the second skill, the second skill can have multiple functions. In this way, under the same operation method, the player can achieve different effects on different objects by changing the application strategy, thereby improving the efficiency of human-computer interaction in the virtual scene, and thus improving the player's gaming experience. At the same time, compared with the solution provided by the relevant technology, the operation steps are simplified, thereby saving the resource overhead of the terminal device.
[0131] Below, taking an open world game as an example, an exemplary application of the embodiment of the present application in an actual application scenario is described.
[0132] An embodiment of the present application provides an interactive method for a virtual scene, which is applied to open world games. Players can interact with the game world through magic skills (corresponding to the second skill mentioned above, hereinafter referred to as magic), and at the same time, the same magic can have multiple effects. For example, under the same operation method, players can achieve multiple effects such as scene interaction, enhanced mobility, and elf capture assistance by changing the application strategy.
[0133] The following is a detailed description of the virtual scene interaction method provided in the embodiments of the present application.
[0134] In some embodiments, referring to FIG6A , FIG6A is a schematic diagram of an application scenario of the interactive method of a virtual scene provided in an embodiment of the present application. As shown in FIG6A , a game character 601 (corresponding to the first virtual object mentioned above) controlled by the current player is displayed in the virtual scene 600. A magic selection button 602 (corresponding to the skill selection control mentioned above) and an elf and item throwing button 603 (corresponding to the skill release control in the first display style) are also displayed in the virtual scene 600. When a click operation of the player on the magic selection button 602 is received, the preparation state for magic release can be entered. At this time, the elf and item throwing button 603 in the lower right corner of the screen will be switched to a magic release button 604 (corresponding to the skill release control in the second display style).
[0135] It should be noted that when a player clicks on the magic selection button 602, the magic selection button 602 can be switched from an unselected state to a selected state. For example, when a player clicks on the magic selection button 602, the magic selection button 602 can be displayed in a highlighted manner to indicate that the magic selection button 602 is currently in a selected state.
[0136] In other embodiments, players can also switch between magic spells. For example, see FIG6B , which is a schematic diagram of an application scenario of the interactive method for a virtual scene provided in an embodiment of the present application. As shown in FIG6B , when a player performs a long press operation on a selected magic spell selection button 602, a magic spell selection box 605 may pop up, displaying a variety of magic spells for the player to select in the magic spell selection box 605. After the player selects the magic spell to be released in the magic spell selection box 605, the icon of the magic spell selection button 602 will also change to the style of the corresponding magic spell. For example, if the player selects the wind magic spell 606 in the magic spell selection box 605, the icon of the magic spell selection button 606 can be switched from the style corresponding to the star magic spell to the style corresponding to the wind magic spell.
[0137] In some embodiments, when the star magic is selected, the player quickly clicks the magic release button to release the star magic once directly in the direction the player's screen is facing. In addition, as shown in Figure 6C, when the player clicks the magic release button 604, the "magic aiming" state is entered. At this time, a virtual joystick 607 is displayed in the lower right corner of the screen. The player can use the virtual joystick 607 to rotate the screen to perform magic aiming. When it is detected that the player releases the magic release button 604, the game character 601 can be controlled to release the star magic in the direction of the magic crosshairs 608. In addition, a physical strength slot 609 can also be displayed in the virtual scene. When the player long presses the magic release button 604, the star magic can enter the charging state, and the physical strength of the game character 601 will continue to be consumed during the charging process.
[0138] In some embodiments, when the wind field magic is selected, a quick click of the magic release button will create a virtual wind field directly at the location of the player's game character. Furthermore, as shown in FIG6D , a long press of the magic release button 604 by the player will enter the wind field aiming release state. At this point, a white circle 611 (i.e., the wind field aiming circle) will appear on the ground, indicating the location where the virtual wind field will be created (corresponding to the second location described above).
[0139] The following continues to explain the functions and rules of star magic.
[0140] In some embodiments, star magic can be charged before being released, and the charging can have multiple stages (for example, 3 stages). The physical strength of the game character controlled by the player will continue to be consumed during the charging process. When the star magic is released quickly (for example, the player quickly clicks the magic release button), it will not be charged. Only when the player long presses the magic release button to enter the aiming and casting state will it start charging. The longer the time in this state, the higher the number of stages (or levels) accumulated. In addition, if the physical strength of the game character controlled by the player is insufficient during the charging process (for example, the physical strength value is less than the set physical strength value threshold), the charging will be paused. The higher the charging stage, the larger the volume of the star (the collision range will also increase accordingly), and the larger the explosion range after the star lands.
[0141] In addition, after the star magic is released, it will bounce when it hits the ground or obstacles. For example, it can bounce up to four times and explode on the last bounce.
[0142] In other embodiments, star magic can have multiple effects. For example, players can use star magic to knock down wild Pokémon in the game world and interrupt their movements. Of course, star magic can also be used to increase the probability of capturing Pokémon. For example, as shown in Figure 6E, a Pokémon 612 hit by star magic will have a star mark 613 above its head, significantly increasing the player's chance of capturing the Pokémon. Furthermore, when star magic strikes a tree, it can knock down fruit or Pokémon inhabiting it. However, it should be noted that when striking a larger tree, the player must first charge the star magic. Furthermore, when star magic strikes loose rocks in the game world, it may shatter them, making it easier for players to access items buried beneath them. However, for larger and harder rocks, the player must first charge the star magic. Of course, players can also use star magic to interact with custom interactive objects within the scene, activating their associated gameplay.
[0143] The following continues to explain the functions and rules of wind field magic.
[0144] In some embodiments, wind magic can affect the mobility of a player's vehicle. For example, when a player uses a flying vehicle and enters the range of a wind magic, it will be affected by the wind field and quickly rise in altitude. Different flying vehicles behave differently in the wind field. For example, a winter sparrow will rise at a constant speed in the wind field and eventually stay at the top of the wind field, while a dandelion will accelerate in the wind field and eventually be thrown out of the wind field due to inertia. In addition, wind magic can also affect the flight trajectory of projectiles. For example, when a player throws a ball, a virtual prop, or releases star magic, and these objects pass through the virtual wind field during flight, they will also be affected by the virtual wind field and rise a short distance, ultimately causing them to fly further. As shown in Figure 7, when a virtual star 702 passes through a virtual wind field 701 during flight, it will be affected by the virtual wind field 701 and rise a short distance, ultimately causing the virtual star 702 to fly further. In addition, wind field magic can also interact with magic components in the scene. Similar to star magic, the virtual wind field can also interact with certain customized interactive objects and activate their associated gameplay. For example, it can blow the magic windmill to activate the mechanism.
[0145] The following is an explanation of the bouncing logic of Star Magic.
[0146] In some embodiments, referring to FIG8 , FIG8 is a schematic diagram of the principles of the interactive method of the virtual scene provided in an embodiment of the present application. As shown in FIG8 , after the player controls the game character 801 to release the star magic, in order to make the movement of the virtual star easier to predict, the virtual star 802 needs to maintain a similar height in each bounce during multiple bounces, that is, each bounce can maintain a trajectory that is more in line with physical rules, but looks easier to predict, smoother and more regular.
[0147] In order to achieve the effect shown in FIG8 , the present application provides the following technical solutions:
[0148] In some embodiments, first, according to the real physical rebound logic, when encountering rough ground, the kinetic energy of the virtual star will decay rapidly, and the direction of the bounce is 360 degrees. It is easy for some small obstacles to cause the movement trajectory of the virtual star to become very chaotic.
[0149] In response to the above technical problems, the embodiments of the present application are based on the following two perspectives. The first is the problem of rebound direction. In order to enable the virtual star to move on the same plane, no matter what kind of terrain it encounters, the trajectory of the virtual star will be constrained to a plane composed of two lines, the throwing direction and the upward direction. Through such constraints, the motion trajectory of the virtual star can be changed from three-dimensional to two-dimensional, making it more predictable. Secondly, in response to the problem of rebound speed and angle, the technical solution provided by the embodiments of the present application is to project the direction calculated by the physical rebound onto the plane of the virtual star's movement after the virtual star lands, and then amplify the newly calculated exit speed, for example, to restore it to the same kinetic energy as the initial throwing speed, thereby ensuring that each bounce has enough initial velocity like the first bounce.
[0150] In other embodiments, the embodiments of the present application can also limit the angle range of the exit angle. For example, the angle range of the exit angle can be limited to between 30 degrees and 60 degrees. The exit angle outside this angle range can be rotated to this angle range and then emitted. In this way, the problem of the exit angle being too large or too small can be avoided, thereby achieving controllability of the rebound direction.
[0151] In some embodiments, when the initial velocity of a virtual star is relatively low, the starting point of the virtual star's trajectory is at the game character's hand, which appears normal. However, the starting point of the rebound is the ground. To achieve a trajectory similar to the first time, greater kinetic energy is required. From a physical perspective, this kinetic energy should come from gravitational potential energy. Therefore, the gravitational potential energy can be calculated by the height difference between the virtual star's starting point and the landing point. Then, a certain configured coefficient is used to convert the gravitational potential energy into kinetic energy at a certain ratio. This is added to the total kinetic energy of the virtual star's rebound, so that the virtual star bounces off the ground at the same height as the first time.
[0152] In other embodiments, in order to make the moving trajectory of the virtual star reach an elegant curve like |sin(x)|, the embodiments of the present application can also limit the horizontal speed by reducing the ratio of gravitational potential energy converted into kinetic energy, and then set a minimum vertical speed for each bounce. Based on the final calculated bounce speed, the vertical speed is increased to a level at least greater than the minimum vertical speed, thereby ensuring that there is a minimum guarantee for the height of each bounce, so that the star will not glide on the ground like skipping stones on water.
[0153] In other embodiments, in order to achieve the effect shown in Figure 8, the embodiments of the present application can also divide the kinetic energy into two parts, namely horizontal and vertical. As long as the horizontal and vertical kinetic energies are kept unchanged, the effect of each bounce can be kept at a relatively consistent level. The kinetic energy in the vertical direction can introduce gravitational potential energy and convert the gravitational potential energy into kinetic energy in the vertical direction according to a certain ratio, so that even when the initial velocity in the vertical direction is almost zero, a relatively stable height can be maintained, thereby obtaining the expected effect.
[0154] In addition, embodiments of the present application provide another technical solution in which physical rules are used only to calculate the horizontal direction of the bounce, or the movement of the virtual star is still restricted to a plane, with the bounce direction limited to only two directions, forward and backward, or even only one direction. Furthermore, if the virtual star encounters an obstacle and cannot move forward, it can directly explode on the spot. Then, the elevation angle and speed of the virtual star's bounce are determined based on the charge level. That is, the elevation angle and speed of the virtual star's bounce are only related to the charge level. This allows the virtual star's performance to be maintained within a predictable range and is not affected by the throwing angle and terrain, resulting in significant unpredictability. For example, this can avoid the problem of the virtual star's performance becoming strange in situations with large altitude changes. For example, when climbing a slope, the virtual star's calculated vertical momentum is downward, while when falling from a cliff, the virtual star's upward kinetic energy is very large, causing it to bounce very high, making the virtual star's landing point very unpredictable.
[0155] In other embodiments, the embodiments of the present application can also add some post-processing on the basis of physical calculations, so as to make the motion trajectory of the virtual star more magical and the player's hand feeling experience better. For example, the main adjustments are as follows: one is to multiply the displacement calculated for each frame of the virtual star by a coefficient, so as to control the mobility of the virtual star in general; the other is to simulate wind resistance, that is, based on the speed calculated for each frame, make an attenuation, and the amount of attenuation is the current frame speed * DeltaTime * deceleration coefficient, where DeltaTime represents the time value. For example, for the first frame, the value of DeltaTime can be 1, for the second frame, the value of DeltaTime can be 2, and so on. In other words, the flight speed of the virtual star can be reduced proportionally to simulate the actual situation in reality, and at the same time, it can also avoid the unclear motion trajectory due to the excessive speed of the virtual star.
[0156] Next, we will continue to explain the terrain blocking logic of the virtual wind farm.
[0157] In some embodiments, referring to FIG9 , FIG9 is a schematic diagram of the principle of the interactive method of the virtual scene provided in an embodiment of the present application. As shown in FIG9 , for a virtual object 902 entering a virtual wind field 901, the projection point of the virtual object 902 on the bottom plane of the virtual wind field 901 can be used as a detection starting point 903. Then, the detection starting point 903 can be offset upward by a certain distance according to the slope value of the slope 904, wherein the offset can be positively correlated with the slope value. Subsequently, ray detection can be performed from bottom to top between the offset detection starting point 903 and the virtual object 902. If there is an obstruction, it is determined that the virtual object 902 will not be affected by the virtual wind field 901; if there is no obstruction, it is determined that the virtual object 902 will be affected by the virtual wind field 901. For example, the virtual object 902 will rise a certain distance due to the influence of the virtual wind field 901. In this way, the wind in the virtual wind field can be blocked by obstacles in the virtual scene, thereby simulating the real wind blocking logic.
[0158] In other embodiments, refer to Figure 10, which is a schematic diagram of the principle of the interactive method of the virtual scene provided in the embodiment of the present application. As shown in Figure 10, when the virtual wind field 1002 is superimposed on the terrain object 1001, for the terrain object 1001, the single-sided collision can filter the collision from the bottom to the top, that is, the blocking of the wind in the virtual wind field 1002 by the superimposed part of the terrain object 1001 can be filtered, thereby obtaining the effect of forming a virtual wind field on the slope.
[0159] In some embodiments, for non-terrain objects, a collision channel can be used to filter objects that do not need to block the wind. In addition, as shown in Figure 11, for other wind-blocking objects 1102, if the bottom area of the object 1102 overlaps with the virtual wind field 1101, the wind field must still be blocked. Bidirectional rays can be used for detection here, for example, first detect from bottom to top, and then detect from top to bottom. If there is no collision, it is considered unobstructed. For example, the star 1103 shown in Figure 11 represents a virtual object entering the virtual wind field 1101, and point 1104 is the projection point of the star 1103. If point 1104 is inside the object 1102, it can be considered that part of the wind in the virtual wind field 1101 is blocked by the object 1102. At this time, the star 1103 will not be affected by the virtual wind field 1101. The collision here can be understood as a problem of the normal of a single-sided model, that is, there will be a collision on the side where the normal is facing, but not on the other side. The normal direction of object 1102 in Figure 11 is upward, so there is no collision from point 1104 to star 1103, and there is a collision from star 1103 to point 1104.
[0160] The following will continue to explain the point selection logic of the virtual wind farm.
[0161] In some embodiments, referring to FIG12 , FIG12 is a schematic diagram of the principle of the interactive method of the virtual scene provided in an embodiment of the present application. As shown in FIG12 , a detection ray is first emitted from the camera 1201 to obtain the terrain intersection 1202; then the ground intersection 1203 located above the terrain intersection 1202 is obtained, and then the horizontal distance between the collision point (for example, the ground intersection 1203) and the game character controlled by the player is detected to see whether it exceeds the maximum casting radius (i.e., the horizontal distance limit), and the slope value is checked to see whether it exceeds the specified slope value threshold (to filter steep terrain). If neither of the above two conditions is met, the detection range is narrowed, and the above process is repeated until the creation point of the virtual wind field is obtained; if both conditions are met, the collision point can be directly used as the creation point of the virtual wind field.
[0162] It should be noted that when the detection range is reduced to the minimum and no legal creation point is found, a corresponding prompt message can be displayed in the human-computer interaction interface to remind the player.
[0163] In other embodiments, the embodiments of the present application also provide another technical solution, which first emits a detection ray forward along the direction of the camera to obtain the collision point or the farthest point. In this way, the problem of being easily blocked by small components when detecting terrain intersections can be avoided, and the problem of large obstacles causing the collision point to be too high and out of the picture when obtaining ground intersections can also be avoided. As shown in Figure 13, taking the collision point as an example, the collision point can be attached to the terrain, and with the collision point 1301 as the lower center of the spherical matrix 1302, a spherical matrix 1302 is constructed to detect collisions forward, and then the ray collision rate of the spherical matrix 1302 is calculated (the shaded balls shown in Figure 13 represent balls that collide). If the collision rate is greater than the collision rate threshold (for example, 60%), it indicates that there is obstruction, otherwise, it indicates that there is no obstruction. If there is an obstruction, the distance is reduced along the direction of the game character controlled by the player, and the above process is repeated; if there is no obstruction, the collision point 1301 is directly used as the creation point of the virtual wind field. In this way, the player can release the wind field magic in an open and flat area as much as possible to avoid the wind in the virtual wind field being blocked by obstacles and failing to produce the corresponding effect.
[0164] In summary, the virtual scene interaction method provided in the embodiment of the present application has the following beneficial effects: on the one hand, a set of means is used to achieve the purpose of multiple gameplays, which not only simplifies the complexity of player operations, but also enhances the richness of a single system, thereby providing players with the possibility of exploring player space to achieve emergent gameplay; on the other hand, from the packaging level, it satisfies the players' imagination of magic gameplay, and in addition, provides good functional scalability.
[0165] The following continues to describe an exemplary structure of the virtual scene interaction device 555 provided in an embodiment of the present application implemented as a software module. In some embodiments, as shown in Figure 2, the software modules in the virtual scene interaction device 555 stored in the memory 550 may include: a display module 5551, a switching module 5552 and a control module 5553.
[0166] The display module 5551 is configured to display a virtual scene, a skill selection control and a skill release control in a human-computer interaction interface, wherein the virtual scene includes a first virtual object, the skill release control is in a first display style, and the first display style indicates that the skill release control is currently associated with the first skill; the switching module 5552 is configured to switch the skill release control from the first display style to the second display style in response to a trigger operation on the skill selection control, wherein the second display style indicates that the skill release control is currently associated with the second skill, the second skill includes multiple types, and the skill selection control is used to select a target type from the multiple types; the control module 5553 is configured to control the first virtual object to release the second skill of the target type in response to a trigger operation on the skill release control.
[0167] In some embodiments, the skill selection control is in a closed state by default, and the closed state indicates that the second skill is in an inactive state; the switching module 5552 is further configured to switch the skill selection control from a closed state to an open state in response to a trigger operation on the skill selection control, wherein the open state indicates that the second skill is in an active state.
[0168] In some embodiments, the target type is the first type selected by default among multiple types, and the default display style of the skill selection control is the third display style. The third display style indicates that the skill selection control is currently associated with the second skill of the first type. The first type includes one of the following: the type selected last time, and the type selected the most times.
[0169] In some embodiments, the target type is a second type manually selected through a skill selection control; the display module 5551 is further configured to display multiple types of second skills in response to a trigger operation on a skill selection control that is in an open state; the switching module 5552 is further configured to switch the skill selection control to a fourth display style in response to the second type among the multiple types being selected, wherein the fourth display style indicates that the skill selection control is currently associated with the second skill of the second type.
[0170] In some embodiments, the type of trigger operation includes a click operation; the control module 5553 is further configured to control the first virtual object to release a second skill of the target type in a first direction in response to a click operation on a skill release control, so as to drive the first virtual prop to move autonomously along the first direction and apply a corresponding action to the object colliding with the first virtual prop, where the first direction is the current direction of the first virtual object.
[0171] In some embodiments, the type of trigger operation includes a pressing operation; the display module 5551 is further configured to respond to a pressing operation on a skill release control, and during the period when the pressing operation is not released, switch the virtual scene to a zoom mode, and display a virtual joystick and a crosshair corresponding to the direction of the first virtual object; the control module 5553 is further configured to respond to a shaking operation on the virtual joystick, and control the crosshair to rotate synchronously; and is configured to respond to the pressing operation being released, control the first virtual object to release a second skill of the target type in a second direction, so as to drive the first virtual prop to move autonomously along the second direction, and apply a corresponding action to the object colliding with the first virtual prop, wherein the second direction is the direction corresponding to the rotated crosshair.
[0172] In some embodiments, the control module 5553 is further configured to, in response to a pressing operation on a skill release control, control the second skill of the target type to enter a charging state, so that at least one of the prominence of the first virtual prop and the influence range of the first virtual prop increases with the increase of the charging level, wherein the charging level is positively correlated with the duration of the pressing operation; and is configured to, in response to the pressing operation being released, control the second skill of the target type to exit the charging state.
[0173] In some embodiments, the display module 5551 is further configured to display a status bar control in the human-computer interaction interface when the control module 5553 controls the second skill of the target type to enter a charging state, wherein the length of the status bar control decreases continuously with the increase in the duration of the pressing operation, and the length of the status bar control is used to represent the remaining status value of the first virtual object.
[0174] In some embodiments, the control module 5553 is further configured to perform at least one of the following processes: knocking down the collided second virtual object; displaying a collision mark on the collided third virtual object to increase the capture probability of the first virtual object for the collided third virtual object; destroying the collided virtual object; activating a level or mechanism associated with the collided specific interactive object.
[0175] In some embodiments, the virtual scene interaction device 555 also includes a driving module 5554, which is configured to drive the first virtual prop to bounce when it hits the ground or an obstacle when driving the first virtual prop to move autonomously along the first direction or the second direction, and can bounce a maximum of a set number of times.
[0176] In some embodiments, the driving module 5554 is further configured to perform the following processing when the first virtual prop hits the ground or an obstacle: determining the bouncing direction of the first virtual prop that conforms to the physical rules of the real world, or limiting the movement of the first virtual prop within a plane, and the bouncing direction is forward or backward along the plane, wherein the plane is a plane composed of the throwing direction of the first virtual prop and the anti-gravity direction; determining the elevation angle and speed of the first virtual prop's bounce, wherein the elevation angle and speed are positively correlated with the power level; driving the first virtual prop to bounce according to the bouncing direction, elevation angle, and speed.
[0177] In some embodiments, the driving module 5554 is further configured to perform at least one of the following processes while driving the first virtual prop to bounce: multiplying the displacement of the first virtual prop in each frame by a set adjustment coefficient to keep the height of the first virtual prop consistent during each bounce; obtaining a deceleration coefficient that conforms to the motion laws of the real world, and attenuating the flight speed of the first virtual prop in each frame based on the deceleration coefficient.
[0178] In some embodiments, the type of trigger operation includes a click operation; the control module 5553 is also configured to control the first virtual object to release a second skill of the target type at the first position in response to a click operation on the skill release control, so as to create a virtual wind field at the first position and apply corresponding effects to objects entering the virtual wind field, wherein the first position is the position where the first virtual object is located.
[0179] In some embodiments, the type of trigger operation includes a pressing operation; the display module 5551 is further configured to respond to a pressing operation on a skill release control, and display a virtual joystick and a wind field aiming circle corresponding to the direction of the first virtual object during the period when the pressing operation is not released; the control module 5553 is further configured to respond to a shaking operation on the virtual joystick, and control the wind field aiming circle to rotate synchronously; and is configured to respond to the pressing operation being released, and control the first virtual object to release a second skill of the target type at a second position to create a virtual wind field at the second position, and apply corresponding action to the object entering the virtual wind field, wherein the second position is the position of the wind field aiming circle after rotation.
[0180] In some embodiments, the interaction device 555 of the virtual scene also includes a determination module 5555, which is configured to determine the second position in the following manner before the control module 5553 controls the first virtual object to release the second skill of the target type at the second position: taking the first virtual object as the starting point, emitting detection rays along the direction after the first virtual object is rotated to obtain the collision point or the farthest point, and pasting the collision point or the farthest point on the terrain; constructing a spherical matrix with the collision point or the farthest point as the lower center of the spherical matrix; calculating the ray collision rate of the spherical matrix; when the collision rate is less than the collision rate threshold, taking the collision point or the farthest point as the second position; when the collision rate is greater than or equal to the collision rate threshold, iteratively performing the following processing: obtaining a new point in the direction close to the first virtual object; constructing a spherical matrix with the new point as the lower center of the spherical matrix, and calculating the ray collision rate of the spherical matrix; when the collision rate is less than the collision rate threshold, taking the new point as the second position.
[0181] In some embodiments, the control module 5553 is further configured to perform at least one of the following processes: increasing the height of the virtual vehicle entering the virtual wind farm; increasing the height of the virtual throwing object entering the virtual wind farm; activating a level or mechanism associated with a specific interactive object entering the virtual wind farm.
[0182] In some embodiments, when the virtual wind farm is located on a slope in the virtual scene, the determination module 5555 is further configured to use the projection point of the virtual vehicle or virtual projectile on the plane close to the ground in the virtual wind farm as the detection starting point before the control module 5553 raises the height of the virtual vehicle or virtual projectile entering the virtual wind farm; the control module 5553 is further configured to control the detection starting point to offset upward by a distance corresponding to the slope value of the slope, wherein the distance is positively correlated with the slope value; and to emit a detection ray from the offset detection starting point to the virtual vehicle or virtual projectile; the determination module 5555 is further configured to determine the height to which the virtual vehicle or virtual projectile entering the virtual scene will be raised when the detection result indicates that there is no obstruction; and to determine that the height of the virtual vehicle or virtual projectile entering the virtual scene will not be raised when the detection result indicates that there is an obstruction.
[0183] In some embodiments, the interactive device 555 of the virtual scene also includes a shielding module 5556, which is configured to, when there is a terrain object at the second location, shield the terrain object from blocking the wind in the virtual wind field while controlling the wind in the virtual wind field to move upward from the ground after the virtual wind field is created at the second location.
[0184] In some embodiments, when there is a non-terrain object at the second location, after the virtual wind farm is created at the second location, the shielding module 5556 is further configured to, when the non-terrain object is a wind-permeable object, shield the non-terrain object from blocking the wind in the virtual wind farm during the process of controlling the upward movement from the ground in the virtual wind farm; the determination module 5555 is further configured to, when the non-terrain object is a non-wind-permeable object, determine that at least part of the wind in the virtual wind farm is blocked by the non-terrain object during the process of controlling the upward movement from the ground in the virtual wind farm.
[0185] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment described above, and has similar beneficial effects as the method embodiment, so it will not be repeated here. For the technical details not fully described in the interactive device for the virtual scene provided in the embodiment of the present application, they can be understood based on the description of any of Figures 3, 4, or 5.
[0186] The present invention provides a computer program product comprising a computer program or computer-executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the computer device to perform the virtual scene interaction method described in the present invention.
[0187] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will execute the virtual scene interaction method provided by the embodiment of the present application, for example, the virtual scene interaction method shown in Figure 3, Figure 4, or Figure 5.
[0188] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or various devices including one or any combination of the above memories.
[0189] In some embodiments, executable instructions may be in the form of a program, software, software module, script, 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 a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0190] As an example, executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed across multiple sites and interconnected by a communication network.
[0191] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. A virtual scene interaction method, performed by an electronic device, comprising: Displaying a virtual scene, a skill selection control, and a skill release control in a human-computer interaction interface, wherein the virtual scene includes a first virtual object, and the skill release control is in a first display style, and the first display style indicates that the skill release control is currently associated with a first skill; In response to a trigger operation on the skill selection control, switching the skill release control from the first display style to a second display style, wherein the second display style indicates that the skill release control is currently associated with a second skill, the second skill includes multiple types, and the skill selection control is used to select a target type from the multiple types; In response to a trigger operation on the skill release control, the first virtual object is controlled to release the second skill of the target type.
2. The method according to claim 1, wherein: The skill selection control is in a closed state by default, and the closed state indicates that the second skill is in an inactive state; In response to a trigger operation on the skill selection control, the method further includes: The skill selection control is switched from the closed state to an open state, wherein the open state indicates that the second skill is in an activated state.
3. The method according to claim 2, wherein: The target type is the first type selected by default among the multiple types, the default display style of the skill selection control is the third display style, the third display style represents that the skill selection control is currently associated with the second skill of the first type, and the first type includes one of the following: the type selected last time, and the type selected the most times.
4. The method according to claim 2, wherein: The target type is a second type manually selected by the skill selection control; The method further comprises: In response to a trigger operation on the skill selection control in the turned-on state, displaying a plurality of types of the second skills; In response to the second type of the multiple types being selected, the skill selection control is switched to a fourth display style, wherein the fourth display style indicates that the skill selection control is currently associated with the second skill of the second type.
5. The method according to claim 1, wherein: The type of the trigger operation includes a click operation; In response to the triggering operation on the skill release control, controlling the first virtual object to release the second skill of the target type includes: In response to the click operation on the skill release control, the first virtual object is controlled to release the second skill of the target type in a first direction, so as to drive the first virtual prop to move autonomously along the first direction and exert a corresponding action on the object collided with by the first virtual prop, wherein the first direction is the current orientation of the first virtual object.
6. The method according to claim 1, wherein: The type of the trigger operation includes a pressing operation; In response to the triggering operation on the skill release control, controlling the first virtual object to release the second skill of the target type includes: In response to the pressing operation on the skill release control, while the pressing operation is not released, switching the virtual scene to a zoomed-in mode, and displaying a virtual joystick and a crosshair corresponding to the orientation of the first virtual object; In response to a shaking operation on the virtual joystick, controlling the crosshair to rotate synchronously; In response to the pressing operation being released, the first virtual object is controlled to release the second skill of the target type in a second direction to drive the first virtual prop to move autonomously along the second direction and exert a corresponding action on the object collided with by the first virtual prop, wherein the second direction is a direction corresponding to the rotated crosshair.
7. The method according to claim 6, wherein: In response to the pressing operation on the skill release control, the method further includes: Controlling the second skill of the target type to enter a charging state, so that at least one of the prominence of the first virtual item and the influence range of the first virtual item increases with the increase of the charging level, wherein the charging level is positively correlated with the duration of the pressing operation; In response to the pressing operation being released, the second skill of the target type is controlled to exit the charging state.
8. The method according to claim 7, wherein: When controlling the second skill of the target type to enter a charging state, the method further includes: A state progress control is displayed in the human-computer interaction interface, wherein the progress of the state progress control decreases continuously as the duration of the pressing operation increases, and the progress of the state progress control is used to represent the remaining state value of the first virtual object.
9. The method according to claim 5 or 6, wherein: The applying a corresponding action to the object that the first virtual prop collides with includes at least one of the following: knocking down the collided second virtual object; Displaying a collision mark on the collided third virtual object to increase the probability of the first virtual object capturing the third virtual object; Destroy the virtual objects that collide with; Activates the level or mechanism associated with the specific interactive object that was collided.
10. The method according to claim 5 or 6, wherein: When driving the first virtual prop to move autonomously along the first direction or the second direction, the method further includes: The first virtual prop is driven to bounce when it hits the ground or an obstacle, and can bounce a set number of times at most.
11. The method according to claim 10, wherein: After driving the first virtual prop to bounce a set number of times, the method further includes: The first virtual prop is cancelled from being displayed in the virtual scene, or the first virtual prop is controlled to explode, so as to destroy the virtual object collided with by the first virtual prop for the last time.
12. The method according to claim 10, wherein: The driving the first virtual prop to bounce when hitting the ground or an obstacle includes: When the first virtual prop hits the ground or an obstacle, the following processing is performed: Determine a bouncing direction of the first virtual prop that complies with the physical rules of the real world, or restrict the movement of the first virtual prop within a plane, and the bouncing direction is forward or backward along the plane, wherein the plane is a plane formed by the throwing direction of the first virtual prop and the anti-gravity direction; Determining the elevation angle and speed of the first virtual prop's bounce, wherein the elevation angle and the speed are positively correlated with the power level; The first virtual prop is driven to bounce according to the bouncing direction, the elevation angle, and the speed.
13. The method according to claim 10, wherein: In the process of driving the first virtual prop to bounce, the method further includes: Perform at least one of the following: multiplying the displacement of the first virtual prop in each frame by a set adjustment coefficient so that the height of the first virtual prop remains consistent during each bounce; A deceleration coefficient that conforms to the motion law of the real world is obtained, and a flying speed of the first virtual prop in each frame is attenuated based on the deceleration coefficient.
14. The method according to any one of claims 1 to 13, wherein: The type of the trigger operation includes a click operation; In response to the triggering operation on the skill release control, controlling the first virtual object to release the second skill of the target type includes: In response to the click operation on the skill release control, the first virtual object is controlled to release the second skill of the target type at a first position to create a virtual wind field at the first position and apply corresponding action to objects entering the virtual wind field, wherein the first position is the position where the first virtual object is located.
15. The method according to any one of claims 1 to 13, wherein: The type of the trigger operation includes a pressing operation; In response to the triggering operation on the skill release control, controlling the first virtual object to release the second skill of the target type includes: In response to the pressing operation on the skill release control, during a period in which the pressing operation is not released, displaying a virtual joystick and a wind field aiming circle corresponding to the direction of the first virtual object; In response to a shaking operation on the virtual joystick, controlling the wind farm aiming circle to rotate synchronously; In response to the pressing operation being released, the first virtual object is controlled to release the second skill of the target type at a second position to create a virtual wind field at the second position and apply corresponding action to objects entering the virtual wind field, wherein the second position is the position of the wind field aiming circle after rotation.
16. The method according to claim 15, wherein: Before controlling the first virtual object to release the second skill of the target type at the second position, the method further includes: The second position is determined by: Taking the first virtual object as a starting point, emitting a detection ray along the direction of the first virtual object after rotation, obtaining a collision point or a farthest point, and pasting the collision point or the farthest point on the terrain; Constructing a spherical matrix with the collision point or the farthest point as the lower center of the spherical matrix; Calculating the ray collision rate of the spherical matrix; When the collision rate is less than a collision rate threshold, taking the collision point or the farthest point as the second position; When the collision rate is greater than or equal to the collision rate threshold, the following process is iteratively performed: Acquire a new point in a direction close to the first virtual object; Taking the new point as the lower center of the spherical matrix, constructing a spherical matrix, and calculating the ray collision rate of the spherical matrix; When the collision rate is less than a collision rate threshold, the new point is used as the second position.
17. The method according to claim 14 or 15, wherein: The applying a corresponding action to the object entering the virtual wind farm comprises at least one of the following: Raising the height of a virtual vehicle entering the virtual wind farm; Raising the height of the virtual thrown object entering the virtual wind farm; Activate the level or mechanism associated with the specific interactive object entering the virtual wind farm.
18. The method according to claim 17, wherein: When the virtual wind farm is located on a slope in the virtual scene, before raising the height of the virtual vehicle or the virtual thrown object entering the virtual wind farm, the method further includes: Taking the projection point of the virtual vehicle or the virtual thrown object on the plane of the virtual wind field close to the ground surface as the detection starting point; Controlling the detection starting point to shift upward by a distance corresponding to the slope value of the slope, wherein the distance is positively correlated with the slope value; Launching a detection ray from the offset detection starting point toward the virtual vehicle or the virtual throwing object; When the detection result indicates that there is no obstruction, determining a height to be raised for the virtual vehicle or the virtual thrown object entering the virtual scene; When the detection result indicates that there is an obstruction, it is determined that the height of the virtual vehicle or the virtual thrown object entering the virtual scene will not be increased.
19. The method according to claim 15, wherein: When there is a terrain object at the second position, after creating a virtual wind farm at the second position, the method further includes: In the process of controlling the wind in the virtual wind farm to move upward from the ground surface, the blocking of the wind in the virtual wind farm by the terrain objects is shielded.
20. The method according to claim 15, wherein: When there is a non-terrain object at the second position, after creating a virtual wind farm at the second position, the method further includes: Perform at least one of the following: When the non-terrain object is a wind-permeable object, in the process of controlling the upward movement from the ground surface in the virtual wind field, the non-terrain object is shielded from blocking the wind in the virtual wind field; When the non-terrain object is a non-wind-permeable object, in the process of controlling the wind in the virtual wind farm to move upward from the ground surface, it is determined that at least part of the wind in the virtual wind farm is blocked by the non-terrain object.
21. A virtual scene interaction device, the device comprising: A display module is configured to display a virtual scene, a skill selection control, and a skill release control in a human-computer interaction interface, wherein the virtual scene includes a first virtual object, and the skill release control is in a first display style, and the first display style indicates that the skill release control is currently associated with a first skill; a switching module, configured to switch the skill release control from the first display style to a second display style in response to a trigger operation on the skill selection control, wherein the second display style indicates that the skill release control is currently associated with a second skill, the second skill includes multiple types, and the skill selection control is used to select a target type from the multiple types; The control module is configured to control the first virtual object to release the second skill of the target type in response to a trigger operation on the skill release control.
22. An electronic device comprising: A memory for storing executable instructions; A processor, configured to implement the virtual scene interaction method described in any one of claims 1 to 20 when executing the executable instructions stored in the memory.
23. A computer-readable storage medium storing computer-executable instructions, wherein when the computer-executable instructions are executed by a processor, the virtual scene interaction method according to any one of claims 1 to 20 is implemented.
24. A computer program product, comprising a computer program or a computer executable instruction, wherein when the computer program or the computer executable instruction is executed by a processor, the virtual scene interaction method according to any one of claims 1 to 20 is implemented.
Citation Information
Patent Citations
Skill control display method and device, equipment and medium
CN111760278A
Tracking method and device in virtual scene, electronic equipment and storage medium
CN112121414A
Virtual item switching method, skill switching method and virtual object switching method
CN113398572A
Virtual item control method and device based on gamepad, equipment and medium
CN115501602A
Virtual object control method, apparatus, device, and computer-readable storage medium
US20220362672A1
