Interaction method and device of near-to-eye display equipment, equipment and storage medium
By displaying the preset game interface of ball games in the near-eye display device and adjusting the position of the interactive object according to the player's operation, the problem of poor interaction convenience in the prior art is solved, and a better gaming experience is achieved.
Patent Information
- Application Number
- CN202411021973.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-22
AI Technical Summary
The existing computer and mobile terminals have a single interaction form for ball games, resulting in poor interaction convenience and affecting the user's gaming experience.
An interactive method of a near-eye display device is provided, which displays a preset game interface through detection start commands, displays the field area and interactive objects, and adjusts the position of the interactive objects according to the player's operation information, determines the game results, and improves the convenience of the game interaction.
By flexibly adjusting the position of the interactive object, the interactive convenience of ball games is improved, allowing users to experience the game immersively and enhance the gaming experience.
Smart Images

Figure CN118987623A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device interaction technology, and in particular to an interaction method, apparatus, device and storage medium for a near-eye display device. Background Art
[0002] At present, when users play ball games, such as tennis, table tennis, badminton, ice hockey, etc., they usually play games through computers or mobile terminals. In the related art, the interactive form of ball games on computers and mobile terminals is single, which easily leads to poor interaction convenience for ball games, affecting the user's gaming experience. Summary of the invention
[0003] The main purpose of this application is to provide an interaction method, device, equipment and storage medium for a near-eye display device, aiming to solve the technical problems of poor interaction convenience for ball games and the inability of users to immerse themselves in the game due to the single form of interaction for ball games on computer and mobile phone terminals.
[0004] In a first aspect, the present application provides an interaction method for a near-eye display device, the interaction method comprising:
[0005] When the near-eye display device detects a start instruction for a preset game, a preset game interface corresponding to the preset game is displayed; the preset game interface displays a preset court area corresponding to a preset player and a preset interactive object;
[0006] Displaying a first motion trajectory of a preset ball in the preset game interface;
[0007] Adjusting the current position of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory;
[0008] The game result of the preset player is determined according to the first motion trajectory, the preset court area and the current position of the preset interactive object.
[0009] In a second aspect, the present application provides an interactive device for a near-eye display device, the interactive device comprising:
[0010] A first display module, configured to display a preset game interface corresponding to the preset game when the near-eye display device detects a start instruction for the preset game; the preset game interface displays a preset court area and a preset interactive object corresponding to a preset player;
[0011] A second display module, used for displaying a first motion track of a preset ball in the preset game interface;
[0012] A posture adjustment module, used for adjusting the current posture of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory;
[0013] The result determination module is used to determine the game result of the preset player according to the first motion trajectory, the preset court area and the current position of the preset interactive object.
[0014] In a third aspect, the present application provides a near-eye display device, the near-eye display device comprising a memory and a processor;
[0015] The memory is used to store computer programs;
[0016] The processor is used to execute the computer program and implement the steps of the interaction method of the near-eye display device as described above when executing the computer program.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the interaction method of the near-eye display device as described above are implemented.
[0018] The present application provides an interaction method, apparatus, device and storage medium for a near-eye display device, the interaction method comprising: when the near-eye display device detects a start instruction for a preset game, displaying a preset game interface corresponding to the preset game; the preset game interface displays a preset court area and a preset interactive object corresponding to a preset player; displaying a first motion trajectory of a preset sphere in the preset game interface; adjusting a current posture of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory; and determining a game result of the preset player according to the first motion trajectory, the preset court area and the current posture of the preset interactive object.
[0019] When the near-eye display device displays the first motion trajectory of the preset sphere in the preset game interface, the near-eye display device can flexibly adjust the current position of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory. By adjusting the current position of the preset interactive object, the preset player can hit the preset sphere through the preset interactive object in the current position to advance the preset game, which is conducive to improving the convenience of game interaction of the near-eye display device, so that the user can experience the game immersively. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 It is a flowchart of an interaction method of a near-eye display device provided in an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of a preset selection interface involved in an embodiment of the present application;
[0023] Figure 3 is a schematic diagram of an interactive object selection sub-interface involved in an embodiment of the present application;
[0024] Figure 4 is a schematic diagram of a sphere selection sub-interface involved in an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of a court viewing angle selection sub-interface according to an embodiment of the present application;
[0026] Figure 6 is a schematic diagram of a preset serving animation involved in an embodiment of the present application;
[0027] Figure 7 is a schematic diagram of a preset game interface involved in an embodiment of the present application;
[0028] Figure 8 is a schematic diagram of a preset game interface involved in yet another embodiment of the present application;
[0029] Fig. 9 A schematic block diagram of an interaction device of a near-eye display device provided in an embodiment;
[0030] Fig.10 It is a schematic block diagram of a near-eye display device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0033] Embodiments of the present application provide an interaction method, apparatus, device, and storage medium for a near-eye display device. The interaction method of the near-eye display device can be applied to a near-eye display device. A near-eye display device may include an extended reality (XR) device. XR devices may include augmented reality (AR) glasses, virtual reality (VR) glasses, mixed reality (MR) glasses, AR helmets, VR helmets, MR helmets, and the like, without limitation.
[0034] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0035] See also Figure 1 , Figure 1 1 is a flow chart of an interaction method for a near-eye display device provided in an embodiment of the present application. It should be noted that the interaction method for a near-eye display device provided in an embodiment of the present application can be used for a near-eye display device.
[0036] like Figure 1 As shown, the interaction method of the near-eye display device includes steps S101 to S104.
[0037] S101. When the near-eye display device detects a start instruction for a preset game, a preset game interface corresponding to the preset game is displayed; the preset game interface displays a preset court area corresponding to a preset player and a preset interactive object.
[0038] Exemplarily, the preset games may include ball games corresponding to ball sports such as tennis, table tennis, badminton, ice hockey, etc.
[0039] For example, the near-eye display device can detect the start-up instruction of a preset game. When the user wears the near-eye display device, if the user needs to start the preset game, the user can send the start-up instruction of the preset game to the near-eye display device. For example, the user can send the start-up instruction of the preset game to the near-eye display device through gesture information, voice information, touch information, etc. of the near-eye display device, which is not limited here.
[0040] When the near-eye display device receives the start instruction of the preset game sent by the user, it can respond to the start instruction of the preset game and display the preset game interface of the preset game to start the preset game. Since the user needs to use the corresponding court and racket when performing the corresponding ball sports, the near-eye display device can determine the preset court area and the preset interactive object corresponding to the preset player according to the court and racket required for the ball sports corresponding to the preset game when displaying the preset game interface. For example, in the case where the preset game includes a ball game corresponding to tennis, the preset court area can be determined according to the tennis court required for tennis, and the preset interactive object can be determined according to the tennis racket required for tennis. For another example, in the case where the preset game includes a ball game corresponding to table tennis, the preset court area can be determined according to the table tennis table required for table tennis, and the preset interactive object can be determined according to the table tennis racket required for table tennis. By analogy, the preset court area and the preset interactive object of the preset game corresponding to different ball sports can be determined, so that the preset court area and the preset interactive object corresponding to the preset player are displayed in the preset game interface.
[0041] In this way, when the preset game interface corresponding to the preset game is displayed, the preset game interface can be subsequently provided for user interaction, so that the user can immersively experience the preset game.
[0042] In some embodiments, a preset selection interface corresponding to a preset game is displayed; the preset selection interface includes at least one preset selection identifier; when a selection instruction for one of the preset selection identifiers is detected, the preset game interface is displayed according to the interface display information indicated by the preset selection identifier corresponding to the selection instruction.
[0043] Exemplarily, the preset selection interface allows the user to set the interface display information of the preset game interface. For example, the preset selection interface may include selection marks corresponding to multiple preset selection sub-interfaces. Figure 2 As shown, the preset selection interface may include selection mark 1 corresponding to the ball selection sub-interface, selection mark 2 corresponding to the interactive object selection sub-interface, selection mark 3 corresponding to the court view selection sub-interface, and selection mark 4 corresponding to the game mode selection sub-interface. Of course, the preset selection interface is not limited to this. For example, the preset selection interface may also include other selection marks in addition to selection marks 1 to 4. For another example, the preset selection interface may be a slidable interface, and the preset selection interface may switch to display selection marks corresponding to different preset selection sub-interfaces in response to a detected sliding instruction, which is not limited here.
[0044] When the near-eye display device detects a selection instruction for a selection identifier corresponding to one of the preset selection sub-interfaces, the near-eye display device may display the corresponding preset selection sub-interface. In an exemplary embodiment, the selection identifier may include a digital identifier. When the near-eye display device detects a user input instruction for a number indicated by a digital identifier corresponding to the preset selection sub-interface, the near-eye display device may determine that a selection instruction for the preset selection sub-interface has been detected. The input instruction may be determined based on a digital gesture made by the user, or based on the user pressing a corresponding digital key, or based on the number of times the user touches the near-eye display device, and so on, without limitation here. Of course, the selection instruction may also be determined based on interactive information such as user gesture information, voice information, and so on, without limitation here.
[0045] For example, the game mode selection sub-interface may include selection marks corresponding to multiple preset game modes, such as a selection mark corresponding to the demonstration mode, a selection mark corresponding to the single-player mode, and a selection mark corresponding to the multiplayer mode.
[0046] When a selection instruction for a selection mark corresponding to one of the preset game modes is detected, the near-eye display device can display a game image of a preset player in a preset game interface.
[0047] For example, when a selection instruction for a selection mark corresponding to a demonstration mode is detected, the interface display information indicated by the demonstration mode includes, for example, motion images of at least two robots. The motion image includes, for example, at least two robots located on different sides of a preset court area adjusting the positions of their respective preset interactive objects to hit a preset ball into the preset court area on the other side to advance the preset game. Based on this, when displaying a preset game interface, the near-eye display device can display the interface display information indicated by the demonstration mode.
[0048] For example, when a selection instruction for a selection mark corresponding to the single-player mode is detected, the interface display information indicated by the single-player mode includes, for example, motion images of at least one user and at least one robot. The motion image includes, for example, the user and the robot are located on different sides of a preset court area, and by adjusting the posture of their respective preset interactive objects, the preset ball is hit to the preset court area on the other side to advance the preset game. Based on this, when displaying the preset game interface, the near-eye display device can display the interface display information indicated by the single-player mode.
[0049] For example, in the case where a selection instruction for a selection mark corresponding to a multiplayer mode is detected, the interface display information indicated by the multiplayer mode includes, for example, motion images of at least two users. The motion image includes, for example, at least two users located on different sides of a preset court area, adjusting the posture of their respective preset interactive objects to hit the preset ball to the preset court area on the other side to advance the preset game. Based on this, when displaying the preset game interface, the near-eye display device can display the interface display information indicated by the multiplayer mode. Of course, it is not limited to this. In the case where the near-eye display device detects a selection instruction for a selection mark corresponding to a multiplayer mode, the interface information indicated by the multiplayer mode includes, for example, a search mark of an opponent player of the preset player. In the case where the preset player includes a user wearing a near-eye display device, the interface display information indicated by different preset game modes may include motion images of opponent players other than the user wearing the near-eye display device, so as to provide the user wearing the near-eye display device with an experience of playing the preset game from a first-person perspective, so that the user can experience the preset game immersively, without limitation here.
[0050] Of course, it is not limited to this. When the near-eye display device detects the user's operation information on the search identifier, it can search for the corresponding opponent player according to the operation information to send a game invitation to the opponent player. When receiving the opponent player's consent information for the game invitation, in response to the preset player and the opponent player being in the game preparation state, the near-eye display device can display a preset game interface. When receiving the opponent player's rejection information for the game invitation, the near-eye display device can display a preset prompt information, and the preset prompt information is used to prompt the preset player to re-determine the opponent player.
[0051] For example, the interactive object selection sub-interface may include selection marks corresponding to a plurality of preset interactive objects. Figure 3 As shown, the selection identifiers corresponding to the multiple preset interactive objects may include the selection identifier 5 corresponding to the table tennis racket, the selection identifier 6 corresponding to the frying pan, the selection identifier 7 corresponding to the fan, etc., which can be used as the selection identifiers corresponding to the objects used to hit the preset sphere with the racket, and are not limited here. In the case of detecting a selection instruction for the selection identifier corresponding to one of the preset interactive objects, the near-eye display device can determine that the interface display information indicated by the selection identifier corresponding to the preset interactive object includes the corresponding preset interactive object, and the near-eye display device can display the corresponding preset interactive object in the preset game interface. For example, in the case of detecting a selection instruction for selection identifier 6, the frying pan can be displayed in the preset game interface. For another example, in the case of detecting a selection instruction for selection identifier 5, the table tennis racket can be displayed in the preset game interface. And so on.
[0052] For example, the ball selection sub-interface may include selection marks corresponding to a plurality of preset balls. Figure 4 As shown, the selection marks corresponding to each of the multiple preset spheres may include a selection mark 8 corresponding to a table tennis ball, a selection mark 9 corresponding to a tennis ball, a selection mark 10 corresponding to multiple table tennis balls, etc., which can be used as the selection marks corresponding to the objects of the preset spheres, and are not limited here. In the case of detecting a selection instruction for a selection mark corresponding to one of the preset spheres, the near-eye display device can determine that the interface display information indicated by the selection mark corresponding to the preset sphere includes the corresponding preset sphere, and the near-eye display device can display the corresponding preset sphere in the preset game interface. For example, in the case of detecting a selection instruction for selection mark 9, a tennis ball can be displayed in the preset game interface. For another example, in the case of detecting a selection instruction for selection mark 10, multiple table tennis balls can be displayed in the preset game interface. And so on.
[0053] For example, the court view selection sub-interface may include selection marks corresponding to multiple court views. Figure 5 As shown, the selection marks corresponding to the multiple court perspectives may include selection marks 11 corresponding to the top-down perspective, selection marks 12 corresponding to the top-down perspective, and so on, which are not limited here. When a selection instruction for a selection mark corresponding to one of the court perspectives is detected, the near-eye display device may determine that the interface display information indicated by the selection mark corresponding to the court perspective includes the corresponding court perspective, and the near-eye display device may display the preset game interface according to the corresponding court perspective. For example, when a selection instruction for selection mark 11 is detected, the preset game interface may be displayed according to the top-down perspective. And so on.
[0054] Of course, it is not limited to this. The preset selection interface may also include a selection mark corresponding to the rule setting sub-interface and a selection mark corresponding to the game preparation interface. The rule setting sub-interface may include a duration setting mark, a turn setting mark, a special rule setting mark, and the like.
[0055] When the near-eye display device detects the selection instruction for the duration setting mark, it can determine the duration threshold of the preset game. For example, the duration threshold can include 1 minute, 3 minutes, 5 minutes, a custom duration threshold, etc., which are not limited here.
[0056] When the near-eye display device detects a selection instruction for setting a flag for a turn system, it can determine a preset turn threshold of a preset game. For example, the turn system can include a 1-point system, a 3-point system, a 7-point system, an 11-point system, etc., which are not limited here. Accordingly, when the turn system includes a 1-point system, the preset turn threshold is 1. When the turn system includes a 7-point system, the preset turn threshold is 7. And so on.
[0057] When the near-eye display device detects the selection instruction for setting the rule mark, it can determine the special rules of the preset game. For example, the rules may include the serving rules of the preset ball, game props, the display effects of the preset interactive object, special game skills, the serving speed of the preset ball, etc. The serving rules may include that the serving right is exchanged for each point scored by the preset player or each point scored by the opponent of the preset player. The near-eye display device may display the corresponding game props, the display effects of the preset interactive object, the trigger mark related to the special game skill, the game sound effect, etc. in the preset game interface based on the selection instruction for setting the special rule mark, which is not limited here. In an exemplary embodiment, the trigger mark may include an energy bar, and when the energy bar is full of energy, the special game skill can be automatically used, or the user can choose to use the special game skill by himself, which is not limited here. In an exemplary embodiment, the game sound effect may include a sound effect that simulates the atmosphere of the preset game, such as the sound effect of the preset interactive object hitting the preset ball, the reaction sound effect of the spectator player of the preset game, etc., which is not limited here.
[0058] In this way, by displaying the preset selection interface corresponding to the preset game, the user can determine the interface display information of the preset game interface in response to the instructions of the preset selection interface, which is conducive to improving the display flexibility of the preset game and enriching the display form of the preset game interface to enhance the fun and challenge of the preset game, thereby enhancing the user's gaming experience of the preset game.
[0059] S102: Displaying a first motion trajectory of a preset sphere in a preset game interface.
[0060] For example, when the near-eye display device starts a preset game, a first motion trajectory of a preset ball can be displayed in the preset game interface. The first motion trajectory can be used to indicate a serving trajectory of the preset ball. When different preset players have the right to serve the preset ball, the serving trajectory of the preset ball can be different.
[0061] Take the case where the preset players include a first player and a second player, the user wearing the near-eye display device is the first player, and the second player is the opponent player of the preset players, and the opponent player may include a robot or a user other than the user wearing the near-eye display device. When the first player has the right to serve, the first motion trajectory may include the motion trajectory of the preset sphere in the preset game interface after the first player hits the preset sphere through the posture of the preset interactive object corresponding to the first player, and the direction of the motion trajectory is toward the preset court area where the second player is located. When the second player has the right to serve, the first motion trajectory may include the motion trajectory of the preset sphere in the preset game interface after the second player hits the preset sphere through the preset interactive object corresponding to the second player, and the direction of the motion trajectory is toward the preset court area where the first player is located. Among them, the right to serve can be changed. For example, the near-eye display device can exchange the right to serve between the first player and the second player in response to the score of any one of the first player and the second player being increased by one.
[0062] In some embodiments, first motion information of a preset sphere in a horizontal direction and second motion information of a preset sphere in a vertical direction are determined based on a first moving speed of the preset sphere and a first position of the preset sphere in a preset game interface; a first motion trajectory of the preset sphere is determined based on the first motion information and the second motion information.
[0063] For example, when determining the first motion trajectory of a preset sphere, the near-eye display device can decompose the motion information of the preset sphere into first motion information in the horizontal direction and second motion information in the vertical direction according to the first moving speed of the preset sphere and the first position of the preset sphere in the preset game interface.
[0064] The first moving speed, for example, includes the instantaneous moving speed of the preset ball corresponding to the first position. The first position, for example, includes the contact position between the preset ball and the preset interactive object corresponding to the preset player. When the preset player hits the preset ball through the preset interactive object, the preset ball can perform elastic movement. Without considering the friction force and only considering the gravity of the preset ball, the first motion information and the second motion information can be determined according to the basic kinematic equation. For example, the first motion information in the horizontal direction can be expressed as:
[0065] x(t)=x0+v(x0)·t
[0066] Among them, x(t) is used to indicate the first position information of the preset sphere in the horizontal direction corresponding to time t, x0 is used to indicate the horizontal position component of the first position, v(x0) is used to indicate the horizontal speed component of the first moving speed, and t is used to indicate the movement time of the preset sphere.
[0067] The second motion information in the vertical direction can be expressed as:
[0068]
[0069] Among them, y(t) is used to indicate the second position information of the preset sphere in the vertical direction corresponding to time t, y0 is used to indicate the vertical position component of the first position, v(y0) is used to indicate the vertical speed component of the first moving speed, g is used to indicate the gravitational acceleration, and t is used to indicate the movement time of the preset sphere.
[0070] Of course, the method for determining the first position information and the second position information is not limited to this. For example, the first position information and the second position information of the preset sphere may be comprehensively determined by considering other forces acting on the preset sphere during movement, such as air resistance.
[0071] When the first position information and the second position information are determined, the near-eye display device can determine a first motion trajectory of a preset sphere at a corresponding motion time according to the first position information and the second position information.
[0072] In some embodiments, before displaying the first motion track of the preset ball in the preset game interface, the near-eye display device may also display a preset serving animation and / or play a preset serving sound effect. The preset serving animation and the preset serving sound effect may be used to indicate the motion state of the preset ball. Figure 6 As shown, the preset serving animation may include transition animations and countdowns between different preset game perspectives to indicate the motion state of the preset ball, which is not limited here.
[0073] In this way, by displaying the first motion trajectory of the preset sphere in the preset game interface, the display flexibility of the preset game can be improved and the display form of the preset game can be enriched. Accordingly, when the first motion trajectory is visualized, the user can more accurately judge the position of the preset sphere, and the user can interact with the preset sphere more conveniently. Based on the improvement of the convenience of user interaction with the preset sphere, it is conducive to improving the convenience of game interaction of the near-eye display device, so that the user can experience the game immersively.
[0074] S103: Adjust the current position of the preset interactive object according to at least one of the preset player's operation information and the first motion trajectory.
[0075] For example, when a preset player experiences a preset game, the preset player can interact with the preset sphere by adjusting the current position of the preset interactive object. Based on this, the near-eye display device can adjust the current position of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory, so as to facilitate subsequent interaction with the preset sphere.
[0076] Exemplarily, the preset players may include at least two of a user wearing a near-eye display device, a preset game character of a preset game, and an opponent player of the user. The opponent player may also be a user wearing a near-eye display device to experience the preset game, which is not limited here.
[0077] In the case where the preset player is a user wearing a near-eye display device, the operation information of the preset player may include at least one of the user's operation information on the near-eye display device and the user's posture change information.
[0078] In some embodiments, when the preset player is a user wearing a near-eye display device, the current posture of the preset interactive object is adjusted in response to at least one of the user's operation information on the near-eye display device and the user's posture change information.
[0079] For example, the user's operation information on the near-eye display device may include the user's operation information on the device body of the near-eye display device, and may also include the user's operation information on the control component corresponding to the near-eye display device. For example, the device body of the near-eye display device may be provided with objects such as touch areas and buttons for user operation. The near-eye display device may determine the user's operation information on the near-eye display device when it is detected that the user can press a button or the user touches the touch area. For example, the control component includes a game controller, a wearable device, etc. that have established a communication connection with the near-eye display device. The wearable device may include a smart watch, a smart bracelet, a smart ring, etc. The near-eye display device may determine the user's operation information on the near-eye display device when it is detected that the user operates the game controller or the user changes the device posture of the wearable device. Accordingly, the near-eye display device may adjust the current posture of the preset interactive object based on the user's operation information on the near-eye display device. For example, the near-eye display device may adjust the current posture of the preset interactive object according to the moving direction, moving angle, moving distance, etc. indicated by the operation information.
[0080] Since the user can change his posture to interact with the ball of the ball game when playing ball games in a real environment, when the user plays a preset game, the near-eye display device can obtain the user's posture change information, and adjust the posture of the preset interactive object based on the user's posture change information. For example, the user's posture change information may include posture change information of a preset part. The preset part includes, for example, the user's head, the user's hand, the user's eye, and the like. When the user needs to adjust the current posture of the preset interactive object, the user can simulate the situation of playing the ball game corresponding to the preset game to mobilize the preset part to make a corresponding movement. Accordingly, when the user mobilizes the preset part to make a corresponding movement, the near-eye display device can detect that the posture of the preset part of the user has changed, such as at least one of the user's head posture change information, gesture change information, and eye movement information. For example, a gyroscope is provided on the near-eye display device, and the near-eye display device can determine the user's head posture change information based on the gyroscope data collected by the gyroscope. For example, a camera is provided on the near-eye display device, and the near-eye display device can determine the user's gesture change information through the hand image collected by the camera. For example, an eye movement sensor is provided on the near-eye display device, and the near-eye display device can determine the user's eye movement information through the eye movement sensor. Accordingly, the near-eye display device can adjust the current posture of the preset interactive object according to the user's posture change information. For example, the near-eye display device can adjust the current posture of the preset interactive object according to the moving direction, moving angle, moving distance, etc. indicated by the posture change information.
[0081] In this way, when the preset player is a user wearing a near-eye display device, the near-eye display device can adjust the current posture of the preset interactive object in response to at least one of the user's operation information on the near-eye display device and the user's posture change information, which is conducive to improving the convenience and flexibility of the near-eye display device in adjusting the current posture of the preset interactive object, and is conducive to improving the convenience of user interaction with the preset interactive object, thereby enabling the user to experience the game immersively, which is conducive to improving the user's gaming experience of the preset game.
[0082] In some embodiments, when the preset player is a preset game character of a preset game, the current posture of the preset interactive object is adjusted in response to a change in the position of a preset sphere indicated by the first motion trajectory within a position range corresponding to the preset court area.
[0083] For example, the preset game character may include an artificial intelligence (AI) robot, referred to as a robot. The preset game character may adjust the current position of the preset interactive object according to the first motion trajectory of the preset sphere, and hit the preset sphere according to the adjusted current position of the preset interactive object, so as to simulate the motion process of the ball sport corresponding to the preset game.
[0084] Based on this, the preset game character can adjust the current posture of the preset interactive object according to the change of the position of the preset sphere indicated by the first motion trajectory within the position range corresponding to the preset court area. For example, the preset game character can determine the first moving speed of the preset sphere according to the change of the position of the preset sphere indicated by the first motion trajectory within the position range corresponding to the preset court area. According to the first moving speed, adjust the current posture of the preset interactive object. For example, the preset game character can determine the displacement and direction of the preset sphere according to the first moving speed. Correspondingly, the preset game character can adjust the current posture of the preset interactive object according to the displacement and direction of the preset sphere. For example, control the preset interactive object to move up, down, left, right, forward, backward, etc., so that the preset interactive object can be hit by the preset interactive object later, thereby simulating the ball sports corresponding to the preset game. Among them, the adjustment accuracy of the current posture of the preset interactive object by the preset game character can be determined according to at least one of the preset game difficulty of the preset game and the number of game rounds of the preset game. The preset game difficulty can be preset or set by the user, which is not limited here.
[0085] In an exemplary embodiment, the first moving speed is represented as v as an example. The preset game character can determine the displacement of the preset sphere according to the first moving speed as: s=v·t. Wherein, s is used to indicate the displacement of the preset sphere, and t is used to indicate the movement time of the preset sphere. Accordingly, in the case of considering the movement acceleration of the preset sphere, the movement acceleration is represented as a as an example. The preset game character can determine the first moving speed as: v=a·t. The preset game character can also determine the displacement of the preset sphere as: Of course, it is not limited to this. The preset game character can comprehensively consider the collision information between the preset sphere indicated by the first motion trajectory and other spheres or the boundaries corresponding to the preset court area to determine the displacement and direction of the preset sphere, which is not limited here.
[0086] In this way, when the preset player is a preset game character of a preset game, the near-eye display device can adjust the current posture of the preset interactive object in response to the change in the position of the preset sphere indicated by the first motion trajectory within the position range corresponding to the preset court area, which is conducive to improving the convenience and flexibility of the near-eye display device in adjusting the current posture of the preset interactive object. In addition, when the user wearing the near-eye display device needs to experience the preset game alone, the near-eye display device can advance the preset game by controlling the preset game character, which is conducive to improving the convenience of interaction with the preset game character, so that the user can experience the game immersively, which is conducive to improving the user's game experience of the preset game.
[0087] Of course, it is not limited to this. The preset game can also adjust the current position and posture of the preset interactive object according to the preset player's operation information and the first motion trajectory. For example, the near-eye display device can demonstrate the method of adjusting the current position and posture of the preset interactive object to the user wearing the near-eye display device through a preset game character. The near-eye display device can adjust the current position and posture of the preset interactive object according to the first motion trajectory, or according to the preset player's operation information. For example, the preset game can have a game auxiliary function. When the near-eye display device adjusts the current position and posture information of the preset interactive object in response to the user's operation information, it can also comprehensively consider the first motion trajectory and adjust the current position and posture of the preset interactive object. There is no limitation here.
[0088] In this way, when the near-eye display device obtains the operation information of the preset player and at least one of the first motion trajectory, the near-eye display device can flexibly adjust the current posture of the preset interactive object based on the operation information and at least one of the first motion trajectory, which is conducive to improving the diversity of the interaction forms of the preset player with the preset interactive object, improving the interaction flexibility and interaction convenience of the near-eye display device with the preset interactive object, thereby improving the interaction convenience of the preset game.
[0089] S104: Determine a game result of a preset player according to the first motion trajectory, the preset court area, and the current position of the preset interactive object.
[0090] For example, when determining the first motion trajectory, the preset court area, and the current posture of the preset interactive object, the near-eye display device can determine whether the preset sphere moving along the first motion trajectory is in the position range corresponding to the preset court area, and whether the preset sphere in the position range corresponding to the preset court area can be hit by the preset interactive object in the current posture, thereby determining the game result of the preset player.
[0091] In some embodiments, the score information of the preset player is determined based on the first motion trajectory, the preset court area and the current posture; when any one of the duration of the preset game and the score information meets the preset game end condition, the game result is determined based on the score information.
[0092] For example, the near-eye display device can determine the score information of the preset player by judging whether the preset ball moving along the first motion trajectory is in the position range corresponding to the preset court area and whether the preset ball in the position range corresponding to the preset court area can be hit by the preset interactive object in the current posture according to the first motion trajectory, the preset court area and the current posture. Figure 7 As shown, when the preset ball is not in the position range corresponding to the preset court area, the near-eye display device can determine that the preset player hits the preset ball outside the preset court area, then the preset player loses points, and the opponent of the preset player scores points. Figure 8 As shown, when the preset sphere is hit by the preset interactive object in the current position, if the opponent player fails to hit the preset sphere, the opponent player loses points and the preset player scores.
[0093] Accordingly, in the case where the preset game is set with a corresponding duration threshold, the near-eye display device can determine whether the duration meets the preset game end condition based on whether the duration of the preset game meets the duration threshold. In the case where the preset game is set with a corresponding preset round threshold, the near-eye display device can determine whether the preset game end condition corresponding to the preset round threshold is met based on the score information of the preset player. When any one of the duration and score information of the preset game meets the preset game end condition, the near-eye display device can determine the game result based on the score information of the preset player. The game result includes, for example, any one of a preset player victory and a preset player failure.
[0094] Exemplarily, the preset players include a first player and a second player, the preset court area includes a first court area corresponding to the first player, and the preset interactive objects include a first interactive object corresponding to the first player.
[0095] In some embodiments, when it is determined according to the first motion trajectory that the preset ball moves to a position range corresponding to the first court area, and the preset ball is not in the position range corresponding to the first interactive object in the current position, the score of the second player is determined to be increased by one.
[0096] like Figure 8As shown, when the preset ball is determined to move to the position range corresponding to the first court area according to the first motion trajectory, and the preset ball is not in the position range corresponding to the first interactive object in the current posture, the near-eye display device can determine that the first interactive object did not hit the preset ball, and the preset ball cannot bounce to the second court area corresponding to the second player under the action of the first interactive object. Based on this, the near-eye display device can determine that the first player failed to hit the ball, and the score of the second player is increased by one.
[0097] In some embodiments, when it is determined based on the first motion trajectory that the preset sphere moves to a position range corresponding to the first court area, and the preset sphere is in a position range corresponding to the first interactive object in the current posture, the second motion trajectory of the preset sphere is displayed in the preset game interface based on the second position of the preset sphere within the position range corresponding to the first interactive object in the current posture and the second moving speed.
[0098] For example, when it is determined according to the first motion trajectory that the preset sphere moves to the position range corresponding to the first court area, and the preset sphere is in the position range corresponding to the first interactive object in the current posture, the near-eye display device can determine that the first interactive object hits the preset sphere, and the preset sphere can rebound under the action of the first interactive object. Based on this, the near-eye display device can determine the second position of the preset sphere within the position range corresponding to the first interactive object in the current posture as the rebound starting position of the preset sphere, determine the instantaneous speed of the preset sphere when it is hit by the first interactive object in the current posture as the second moving speed of the preset sphere, and display the second motion trajectory of the preset sphere in the preset game interface according to the second position and the second moving speed of the preset sphere. The near-eye display device can then determine the score information of the first player and the second player respectively based on the second motion trajectory displayed on the preset game interface.
[0099] Exemplarily, the preset court area also includes a second court area corresponding to the second player, and the preset interactive object also includes a second interactive object corresponding to the second player.
[0100] In some embodiments, when it is determined according to the second motion trajectory that the preset ball has not moved from the position range corresponding to the first court area to the position range corresponding to the second court area, the score of the second player is increased by one.
[0101] For example, when it is determined according to the second motion trajectory that the preset ball does not move from the position range corresponding to the first court area to the position range corresponding to the second court area, the near-eye display device can determine that after the first interactive object hits the preset ball, the preset ball fails to bounce to the position range corresponding to the second court area, which is equivalent to the preset ball not crossing the middle boundary between the first court area and the second court area. Based on this, the near-eye display device can determine that the first player fails to hit the ball, and the second player's score is increased by one.
[0102] In some embodiments, when it is determined according to the second motion trajectory that the preset sphere moves from the position range corresponding to the first court area to the position range corresponding to the second court area, and the preset sphere is not in the position range corresponding to the second interactive object in the current position, the score of the first player is determined to be increased by one.
[0103] For example, when it is determined according to the second motion trajectory that the preset sphere moves from the position range corresponding to the first court area to the position range corresponding to the second court area, and the preset sphere is not in the position range corresponding to the second interactive object in the current posture, the near-eye display device can determine that after the first interactive object hits the preset sphere, the preset sphere bounces to the position range corresponding to the second court area, and the second interactive object fails to hit the preset sphere. Based on this, the near-eye display device can determine that the second player fails to hit the ball, and the first player's score is increased by one.
[0104] In this way, when the near-eye display device can determine the score information of the preset players, such as the score of the first player and the score of the second player, according to the first motion trajectory, the preset court area, and the current posture, it is helpful to improve the convenience of the near-eye display device in determining the score information of the preset players. Accordingly, the score information of the preset players can be used for subsequent determination of the game result, which is helpful to improve the convenience of subsequent determination of the game result.
[0105] In some implementations, when the duration reaches a preset duration threshold, the game result is determined based on a comparison result between the score information of at least two preset players.
[0106] For example, in the case where the preset game adopts a time system, the near-eye display device can determine that the game is over when the duration reaches the preset time threshold. Accordingly, the near-eye display device can determine the game result based on the comparison result between the score information of at least two preset players. Take the example of at least two preset players including a first player and a second player. When the score information of the first player is 5 and the score information of the second player is 7, the near-eye display device can determine that the game result is that the first player loses and the second player wins based on the fact that the score information of the second player is greater than the score information of the first player. Fig. 9 As shown, the near-eye display device can display the corresponding winner special effects in the preset game interface to indicate the victory of the second player, without limitation here.
[0107] In some embodiments, when it is determined that the number of game rounds of a preset game reaches a preset round threshold based on the score information of one of at least two preset players, and the difference between the score information of each of the at least two preset players is greater than or equal to the preset score difference threshold, the game result is determined based on the comparison result between the score information of each of the at least two preset players.
[0108] For example, in the case where the preset game adopts a turn-based system, the near-eye display device can determine that the game is over when the number of game rounds reaches a preset round threshold and the difference between the score information of at least two preset players is greater than the preset score difference threshold. Take the at least two preset players including the first player and the second player as an example. In the case where the preset game adopts a 7-point system, the preset round threshold is 7. If the first player's score is 5 and the second player's score is 7, the near-eye display device can determine that the number of game rounds of the preset game reaches the preset round threshold based on the second player's score. Take the preset score difference threshold of 1 as an example. Since the second player has priority to get 7 points, and the difference between the score information of the second player and the first player is greater than 1 point, the near-eye display device can determine that the result of the game is that the first player loses and the second player wins.
[0109] In some embodiments, when the score information of at least two preset players is the same, and the round difference between the number of game rounds determined based on the score information and a preset round threshold is less than or equal to the preset round difference threshold, the game result is determined in response to one of the preset players obtaining an additional score of a preset value.
[0110] For example, in the case where the preset game adopts a round system, the near-eye display device can determine that the preset game enters the extra game stage when the score information of at least two preset players is the same, and the round difference between the number of game rounds determined according to the score information and the preset round threshold is less than or equal to the preset round difference threshold. In the extra game stage of the preset game, the near-eye display device can determine that the game is over in response to one of the preset players obtaining an additional score of a preset value. Take at least two preset players including a first player and a second player as an example. In the case where the preset game adopts an 11-point system, the preset round threshold is 11, and the preset round difference threshold is 1. In the case where the score information of the first player and the second player is 10, the number of game rounds of the preset game is 10. The round difference between the number of game rounds and the preset round threshold is equal to 1, that is, equal to the preset round difference threshold, then the near-eye display device can determine that the preset game enters the extra game stage. In the extra game stage, if the first player obtains an additional score of a preset value, such as an additional 7 points, the near-eye display device can determine that the game is over, and the game result is that the first player wins and the second player loses. Accordingly, if the second player obtains an additional preset score, such as an additional 7 points, the near-eye display device can determine that the game is over, and the game result is that the first player loses and the second player wins.
[0111] In this way, the near-eye display device determines the game result of the preset player according to the first motion trajectory, the preset court area and the current position of the preset interactive object, which is conducive to improving the flexibility of determining the game result.
[0112] The above-mentioned embodiment provides an interactive method for a near-eye display device, the interactive method comprising: when the near-eye display device detects a start command for a preset game, displaying a preset game interface corresponding to the preset game; the preset game interface displays a preset court area and a preset interactive object corresponding to a preset player; displaying a first motion trajectory of a preset sphere in the preset game interface; adjusting the current posture of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory; determining the game result of the preset player according to the first motion trajectory, the preset court area and the current posture of the preset interactive object.
[0113] When the near-eye display device displays the first motion trajectory of the preset sphere in the preset game interface, the near-eye display device can flexibly adjust the current position of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory. By adjusting the current position of the preset interactive object, the preset player can hit the preset sphere through the preset interactive object in the current position to advance the preset game, which is conducive to improving the convenience of game interaction of the near-eye display device, so that the user can experience the game immersively.
[0114] See also Fig. 9 , Fig. 9 : is a schematic block diagram of an interaction device of a near-eye display device provided in an embodiment of the present application. The interaction device can be configured in a near-eye display device to execute the aforementioned interaction method of the near-eye display device. The near-eye display device may include an XR device. The XR device may include AR glasses, VR glasses, MR glasses, AR helmets, VR helmets, MR helmets, etc., which are not limited here.
[0115] like Fig. 9 As shown, the interaction device includes a first display module 110 , a second display module 120 , a posture adjustment module 130 and a result determination module 140 .
[0116] The first display module 110 is used to display a preset game interface corresponding to the preset game when the near-eye display device detects a start instruction for the preset game; the preset game interface displays a preset court area and a preset interactive object corresponding to a preset player.
[0117] The second display module 120 is used to display a first motion track of a preset ball in the preset game interface.
[0118] The posture adjustment module 130 is used to adjust the current posture of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory.
[0119] The result determination module 140 is used to determine the game result of the preset player according to the first motion trajectory, the preset court area and the current position of the preset interactive object.
[0120] Exemplarily, the posture adjustment module 130 includes a first adjustment submodule and a second adjustment submodule.
[0121] The first adjustment submodule is used to adjust the current posture of the preset interactive object in response to at least one of the user's operation information on the near-eye display device and the user's posture change information when the preset player is a user wearing the near-eye display device.
[0122] A second adjustment submodule is used to adjust the current posture of the preset interactive object in response to a change in the position of the preset sphere indicated by the first motion trajectory within a position range corresponding to the preset court area when the preset player is a preset game character of the preset game.
[0123] Exemplarily, the interaction device further includes a motion information determination submodule and a first trajectory determination submodule.
[0124] The motion information determination submodule is used to determine the first motion information of the preset sphere in the horizontal direction and the second motion information of the preset sphere in the vertical direction according to the first moving speed of the preset sphere and the first position of the preset sphere in the preset game interface.
[0125] The first trajectory determination submodule is used to determine a first motion trajectory of the preset sphere according to the first motion information and the second motion information.
[0126] Exemplarily, the first display module 110 includes a first display submodule and a second display submodule.
[0127] The first display submodule is used to display a preset selection interface corresponding to the preset game; the preset selection interface includes at least one preset selection mark.
[0128] The second display submodule is used to display the preset game interface according to the interface display information indicated by the preset selection identifier corresponding to the selection instruction when a selection instruction for one of the preset selection identifiers is detected.
[0129] Exemplarily, the result determination module 140 includes a score determination submodule and a result determination submodule.
[0130] The score determination submodule is used to determine the score information of the preset player according to the first motion trajectory, the preset court area and the current posture.
[0131] The result determination submodule is used to determine the game result according to the score information when any one of the duration of the preset game and the score information meets the preset game end condition.
[0132] Exemplarily, the preset players include a first player and a second player, the preset court area includes a first court area corresponding to the first player and a second court area corresponding to the second player, and the preset interactive objects include a first interactive object corresponding to the first player and a second interactive object corresponding to the second player.
[0133] The score determination submodule includes a first score determination submodule, a second trajectory determination submodule, a second score determination submodule, and a third score determination submodule.
[0134] The first score determination submodule is used to determine that the score of the second player is increased by one when it is determined according to the first motion trajectory that the preset ball moves to the position range corresponding to the first court area, and the preset ball is not in the position range corresponding to the first interactive object in the current posture.
[0135] A second trajectory determination submodule is used to display the second motion trajectory of the preset sphere in the preset game interface according to the second position of the preset sphere within the position range corresponding to the first interactive object in the current posture and the second moving speed, when it is determined according to the first motion trajectory that the preset sphere moves to the position range corresponding to the first court area, and the preset sphere is in the position range corresponding to the first interactive object in the current posture.
[0136] The second score determination submodule is used to determine that the score of the second player is increased by one when it is determined according to the second motion trajectory that the preset ball has not moved from the position range corresponding to the first court area to the position range corresponding to the second court area.
[0137] The third score determination submodule is used to determine that the score of the first player is increased by one when it is determined according to the second motion trajectory that the preset sphere moves from the position range corresponding to the first court area to the position range corresponding to the second court area, and the preset sphere is not in the position range corresponding to the second interactive object in the current posture.
[0138] Exemplarily, the result determination submodule includes a first result determination submodule, a second result determination submodule and a third result determination submodule.
[0139] The first result determination submodule is used to determine the game result according to the comparison result between the score information of at least two preset players when the duration reaches a preset duration threshold.
[0140] The second result determination submodule is used to determine the game result according to the comparison result between the score information of at least two preset players, when it is determined that the number of game rounds of the preset game reaches a preset round threshold according to the score information of one of the at least two preset players, and the difference between the score information of at least two of the preset players is greater than or equal to the preset score difference threshold.
[0141] The third result determination submodule is used to determine the game result in response to one of the preset players obtaining an additional score of a preset value when the score information of at least two of the preset players is the same and the round difference between the number of game rounds determined according to the score information and the preset round threshold is less than or equal to the preset round difference threshold.
[0142] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0143] The method of the present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0144] Exemplarily, the above method and apparatus may be implemented in the form of a computer program, which may be run on a near-eye display device to perform game interaction through the near-eye display device. Exemplarily, the near-eye display device may include an XR device, such as VR glasses, AR glasses, MR glasses, VR helmets, AR helmets, MR helmets, etc., which are not limited here.
[0145] See also Fig.10 , Fig.10 It is a schematic block diagram of the structure of a near-eye display device provided in an embodiment of the present application.
[0146] like Fig.10 As shown, the near-eye display device includes a memory and a processor. The memory and the processor may be connected via a system bus, and the memory may include a storage medium and an internal memory.
[0147] The storage medium may store an operating system and a computer program. When the computer program is executed, the processor may execute any interaction method of a near-eye display device.
[0148] The processor is used to provide computing and control capabilities to support the operation of the entire near-eye display device.
[0149] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute any interaction method of the near-eye display device.
[0150] Those skilled in the art will understand that Fig.10The structure shown in the figure is merely a block diagram of a portion of the structure related to the scheme of the present application, and does not constitute a limitation on the near-eye display device to which the scheme of the present application is applied. The specific near-eye display device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0151] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0152] In one embodiment, the processor is used to execute a computer program and implement the following steps when executing the computer program:
[0153] When the near-eye display device detects a start instruction for a preset game, a preset game interface corresponding to the preset game is displayed; the preset game interface displays a preset court area corresponding to a preset player and a preset interactive object;
[0154] Displaying a first motion trajectory of a preset ball in the preset game interface;
[0155] Adjusting the current position of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory;
[0156] The game result of the preset player is determined according to the first motion trajectory, the preset court area and the current position of the preset interactive object.
[0157] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of the interaction of the near-eye display device described above can refer to the corresponding process in the aforementioned embodiment of the interaction method of the near-eye display device, and will not be repeated here.
[0158] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The method implemented when the computer program is executed by a processor can refer to the various embodiments of the interaction method of the near-eye display device of the present application.
[0159] The computer-readable storage medium may be an internal storage unit of the near-eye display device described in the aforementioned embodiment, such as a hard disk or memory of the near-eye display device. The computer-readable storage medium may also be an external storage device of the near-eye display device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the near-eye display device.
[0160] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0161] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0162] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. An interactive method for a near-eye display device, characterized in that: The interaction method comprises: When the near-eye display device detects a start instruction for a preset game, a preset game interface corresponding to the preset game is displayed; the preset game interface displays a preset court area corresponding to a preset player and a preset interactive object; Displaying a first motion trajectory of a preset ball in the preset game interface; Adjusting the current posture of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory; A game result of the preset player is determined according to the first motion trajectory, the preset court area and the current position of the preset interactive object.
2. The interactive method according to claim 1, characterized in that: The adjusting the current posture of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory includes: When the preset player is a user wearing the near-eye display device, in response to at least one of the user's operation information on the near-eye display device and the user's posture change information, adjusting the current posture of the preset interactive object; or When the preset player is a preset game character of the preset game, the current posture of the preset interactive object is adjusted in response to a change in the position of the preset sphere indicated by the first motion trajectory within a position range corresponding to the preset court area.
3. The interactive method according to claim 1, characterized in that: Before displaying the first motion trajectory of the preset ball in the preset game interface, the method further includes: Determining first movement information of the preset ball in a horizontal direction and second movement information of the preset ball in a vertical direction according to a first moving speed of the preset ball and a first position of the preset ball on the preset game interface; A first motion trajectory of the preset sphere is determined according to the first motion information and the second motion information.
4. The interactive method according to claim 1, characterized in that: The displaying of the preset game interface corresponding to the preset game includes: Displaying a preset selection interface corresponding to the preset game; the preset selection interface includes at least one preset selection mark; When a selection instruction for one of the preset selection identifiers is detected, the preset game interface is displayed according to the interface display information indicated by the preset selection identifier corresponding to the selection instruction.
5. The interactive method according to any one of claims 1 to 4, characterized in that: The determining the game result of the preset player according to the first motion trajectory, the preset court area and the current position of the preset interactive object includes: Determining the score information of the preset player according to the first motion trajectory, the preset court area and the current position; When any one of the duration of the preset game and the score information meets the preset game end condition, the game result is determined according to the score information.
6. The interactive method according to claim 5, characterized in that: The preset players include a first player and a second player, the preset court area includes a first court area corresponding to the first player and a second court area corresponding to the second player, and the preset interactive objects include a first interactive object corresponding to the first player and a second interactive object corresponding to the second player; The step of determining the score information of the preset player according to the first motion trajectory, the preset court area, and the current position includes: When it is determined according to the first motion trajectory that the preset ball moves to the position range corresponding to the first court area, and the preset ball is not in the position range corresponding to the first interactive object in the current position, the score of the second player is increased by one; or, When it is determined according to the first motion trajectory that the preset ball moves to the position range corresponding to the first court area, and the preset ball is in the position range corresponding to the first interactive object in the current posture, the second motion trajectory of the preset ball is displayed in the preset game interface according to the second position and the second moving speed of the preset ball in the position range corresponding to the first interactive object in the current posture: When it is determined according to the second motion trajectory that the preset ball has not moved from the position range corresponding to the first court area to the position range corresponding to the second court area, the score of the second player is increased by one; or When it is determined according to the second motion trajectory that the preset sphere moves from the position range corresponding to the first court area to the position range corresponding to the second court area, and the preset sphere is not in the position range corresponding to the second interactive object in the current position, it is determined that the score of the first player is increased by one.
7. The interactive method according to claim 5, characterized in that: When any one of the duration of the preset game and the score information meets the preset game end condition, determining the game result according to the score information includes: When the duration reaches a preset duration threshold, the game result is determined according to a comparison result between the score information of at least two preset players; or When it is determined that the number of game rounds of the preset game reaches a preset round threshold according to the score information of one of the at least two preset players, and the difference between the score information of the at least two preset players is greater than or equal to the preset score difference threshold, the game result is determined according to the comparison result between the score information of the at least two preset players; or, When the score information of at least two of the preset players is the same, and the round difference between the number of game rounds determined according to the score information and the preset round threshold is less than or equal to the preset round difference threshold, the game result is determined in response to one of the preset players obtaining an additional score of a preset value.
8. An interactive device for a near-eye display device, characterized in that: The interactive device comprises: A first display module, configured to display a preset game interface corresponding to the preset game when the near-eye display device detects a start instruction for the preset game; the preset game interface displays a preset court area and a preset interactive object corresponding to a preset player; A second display module, used for displaying a first motion track of a preset ball in the preset game interface; A posture adjustment module, used for adjusting the current posture of the preset interactive object according to at least one of the operation information of the preset player and the first motion trajectory; The result determination module is used to determine the game result of the preset player according to the first motion trajectory, the preset court area and the current position of the preset interactive object.
9. A near-eye display device, characterized in that: The near-eye display device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the steps of the interaction method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the interaction method according to any one of claims 1 to 7 are implemented.
