Game interaction method and device, storage medium and electronic equipment
By introducing viewing angle controls for target paths in the game, players can easily move the virtual camera along the target path, solving the problem of cumbersome path viewing operations in the existing technology, and improving the efficiency of path viewing and game interaction.
Patent Information
- Application Number
- CN202510213910.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-02-25
AI Technical Summary
In the existing game interaction methods, players need to observe long paths by constantly sliding the screen, resulting in cumbersome operations and low path viewing efficiency and game interaction efficiency.
A game interaction method is provided, by displaying part of the path of the target path and corresponding viewing angle control controls in the graphical user interface, allowing players to control the virtual camera to move along the target path by sliding the slider in the viewing angle control control, thereby conveniently observing the situation on the path.
It simplifies path viewing operations, significantly improves path viewing efficiency and game interaction efficiency, and reduces the cumbersome operations of players when observing paths in the game.
Smart Images

Figure CN119971493A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a game interaction method, device, storage medium and electronic device. Background Art
[0002] With the rapid development of life and technology, people often use game applications for entertainment. In some strategy games (Strategy Game, SLG for short), players often need to check the big world map in the game to observe the situation of each player, each team or each area in the game to make game decisions. Among them, if you need to observe the situation on a path in the big world map (for example, observe the path between our city and the enemy city to decide whether to send troops to attack), the player needs to slide the screen to move the perspective to observe all the situations on the path.
[0003] During the research and practice of the prior art, it was found that in the existing game interaction methods, if the path to be observed is very long, the player needs to move the viewing angle by sliding the screen continuously. Such viewing operation is rather cumbersome, resulting in low efficiency of path viewing, which in turn leads to poor efficiency of game interaction. Summary of the invention
[0004] The embodiments of the present application provide a game interaction method, device, storage medium and electronic device, which can simplify the path viewing operation, effectively improve the path viewing efficiency, and further improve the game interaction efficiency.
[0005] The present application embodiment provides a game interaction method, including:
[0006] displaying a graphical user interface, the graphical user interface including at least a portion of a virtual scene map;
[0007] In response to the path setting operation, displaying at least a portion of the target path and a viewing angle control control corresponding to the target path in the graphical user interface;
[0008] In response to a first trigger operation on the viewing angle control control, the virtual camera is controlled to move along the target path, so as to display a virtual scene map captured by the moved virtual camera on the graphical user interface.
[0009] Accordingly, an embodiment of the present application provides a game interaction device, including:
[0010] A first display unit, configured to display a graphical user interface, wherein the graphical user interface includes at least a portion of a virtual scene map;
[0011] A second display unit, configured to display at least a portion of a target path and a viewing angle control control corresponding to the target path in the graphical user interface in response to a path setting operation;
[0012] A viewing angle moving unit is used to control the virtual camera to move along the target path in response to a first trigger operation on the viewing angle control control, so as to display a virtual scene map captured by the moved virtual camera on the graphical user interface.
[0013] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for loading by a processor to execute the steps in any game interaction method provided in the embodiment of the present application.
[0014] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the game interaction method provided in the embodiment of the present application.
[0015] An embodiment of the present application also provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps in the game interaction method provided in the embodiment of the present application.
[0016] The embodiment of the present application displays a graphical user interface, which includes at least part of a virtual scene map; in response to a path setting operation, at least part of a target path and a perspective control control corresponding to the target path are displayed in the graphical user interface; in response to a first trigger operation on the perspective control control, a virtual camera is controlled to move along the target path, so as to display the virtual scene map captured by the virtual camera after the movement in the graphical user interface. In this way, by displaying at least part of a target path and a perspective control control corresponding to the target path in the graphical user interface in response to the path setting operation, the virtual camera can be controlled to move along the target path based on the trigger operation on the perspective control control, so that the virtual scene map captured by the virtual camera after the movement can be displayed in the graphical user interface with convenient operation, and the game perspective can be moved along the target path, which simplifies the path viewing operation, effectively improves the path viewing efficiency, and thus improves the game interaction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in 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 only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 It is a schematic diagram of an implementation scenario of a game interaction method provided in an embodiment of the present application;
[0019] Figure 2 It is a flowchart of a game interaction method provided in an embodiment of the present application;
[0020] Figure 3a It is a schematic diagram of path setting of a game interaction method provided in an embodiment of the present application;
[0021] Figure 3b It is a path display schematic diagram of a game interaction method provided in an embodiment of the present application;
[0022] Figure 3c is another path display schematic diagram of a game interaction method provided in an embodiment of the present application;
[0023] Figure 3d It is a path editing schematic diagram of a game interaction method provided in an embodiment of the present application;
[0024] Figure 4 It is a path viewing schematic diagram of a game interaction method provided in an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of the structure of a game interaction device provided in an embodiment of the present application;
[0026] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] 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 only 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 those skilled in the art without creative work are within the scope of protection of this application.
[0028] The embodiments of the present application provide a game interaction method, device, storage medium and electronic device. The game interaction device can be integrated in an electronic device, which can be a server or a terminal.
[0029] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. Terminals may include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. Terminals and servers can be directly or indirectly connected via wired or wireless communications, and this application does not limit this.
[0030] See also Figure 1 , taking the game interaction device integrated into the electronic device as an example, Figure 1 A schematic diagram of an implementation scenario of the game interaction method provided in an embodiment of the present application, wherein the electronic device may be a terminal, and the electronic device may display a graphical user interface, the graphical user interface including at least a portion of a virtual scene map; in response to a path setting operation, at least a portion of a target path and a perspective control control corresponding to the target path are displayed in the graphical user interface; in response to a first trigger operation on the perspective control control, the virtual camera is controlled to move along the target path, so as to display a virtual scene map captured by the virtual camera after the movement in the graphical user interface.
[0031] It should be noted that Figure 1 The illustrated schematic diagram of the implementation environment scenario of the game interaction method is only an example. The implementation environment scenario of the game interaction method described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. It is known to those skilled in the art that with the evolution of data processing and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.
[0032] The solutions provided by the embodiments of the present application are specifically described by the following embodiments. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0033] This embodiment will be described from the perspective of a game interaction device. The game interaction device may be integrated into an electronic device. The electronic device may be a terminal and / or a server, and this application does not limit this.
[0034] See also Figure 2 , Figure 2 : is a flowchart of a game interaction method provided in an embodiment of the present application. The game interaction method includes:
[0035] In step 101, a graphical user interface is displayed.
[0036] Among them, the graphical user interface may include at least a portion of the virtual scene map.
[0037] Among them, the graphical user interface can be an interface obtained by executing a software application on a processor of a terminal device and rendering it on a display, and can be a display screen interface of a terminal device. The graphical user interface can present the entire virtual scene, or only a part of the virtual scene. The virtual scene can also be called a game scene, which can be a virtual scene displayed (or provided) when a game application is running on a terminal or server, and players play games in the virtual scene by manipulating game objects. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulated and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene can be any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be the sky, land, ocean, etc., and can also be a venue for game battles that exists independently in the virtual scene, etc., and the embodiments of the present application are not limited here. The virtual scene map can be a virtual scene of a map type, for example, it can be a large world map in a game.
[0038] In step 102, in response to a path setting operation, at least a portion of a target path and a viewing angle control control corresponding to the target path are displayed in a graphical user interface.
[0039] Among them, the path setting operation can be an operation of setting a path, and the target path can be a path set on a virtual scene map, which can be used to indicate a route in the virtual scene map, for example, it can include a path from one location to another location in the virtual scene map. The perspective control control can be a control for controlling the game perspective for observing the target path. The game perspective can be the angle from which the player observes and operates the game world in the game. In an embodiment of the present application, the game perspective can be the perspective from which the player observes the virtual scene map under the target path, and the virtual camera can be the main camera in the game scene, which can be used to control the game perspective in the game scene.
[0040] Among them, there can be multiple ways to display at least part of the target path in a graphical user interface in response to a path setting operation. For example, in response to the path setting operation, the starting point and the end point of the path can be determined; the target path can be generated in a virtual scene map based on the starting point and the end point; and at least part of the target path can be displayed in the graphical user interface.
[0041] Among them, there can be multiple ways to determine the starting point and end point of the path in response to the path setting operation. For example, in response to a second trigger operation on two location points in the virtual scene map, the starting point and end point of the path can be determined based on the positions of the two location points in the virtual scene map.
[0042] Among them, the location point can be a point in the virtual scene map, used to indicate a location in the virtual scene map, and the second trigger operation can be a trigger operation on the two location points. The trigger operation may include click, double-click, long press, press, slide and other operations. For example, the second trigger operation may include double-clicking, clicking, or pressing operations on the two location points at the same time.
[0043] Optionally, the second trigger operation may include a double-click operation performed on two location points simultaneously.
[0044] For example, see Figure 3a , Figure 3a This is a schematic diagram of a path setting of a game interaction method provided by an embodiment of the present application. The player can scale the virtual scene map so that the scaling ratio of the virtual scene map allows the graphical user interface to simultaneously display the starting point and the end point of the target path to be set. In this way, assuming that the two position points include position point a and position point b, the player can double-click position point a and position point b as the starting point and the end point of the target path with two fingers at the same time, so that at least part of the target path can be displayed in the graphical user interface, as well as the perspective control control corresponding to the target path.
[0045] For example, see Figure 3b , Figure 3b This is a path display diagram of a game interaction method provided in an embodiment of the present application. After the player double-clicks the starting point and the end point of the target path with two fingers at the same time, a visual connection line can be formed between the two position points, namely the target path. At the same time, one side of the user graphical interface can display a perspective control control corresponding to the target path, for example, a user interface (User Interface, UI for short) control in the form of a slider.
[0046] There are many ways to determine the starting point and the end point of the path based on the positions of the two points in the virtual scene map. For example, the position information of the current game object in the virtual scene map can be obtained, and the distances between the two points and the current game object can be determined based on the position information, so that the point closer to the current game object can be determined as the starting point of the path to be generated, and the point farther from the current game object can be determined as the end point of the path to be generated. For example, please continue to refer to Figure 3a , assuming that the current position of the game object is close to position point a, position point a can be determined as the starting point of the path, and position point b can be determined as the end point of the path.
[0047] Optionally, the position information may include the position of the current game object in the virtual scene map, or may include the position of the camp where the current game object is located in the virtual scene map, etc. The current game object may be the game object controlled by the current player.
[0048] In one embodiment, the second trigger operation may include performing trigger operations such as double-clicking, long pressing, and clicking on two position points in succession, so that the first triggered position point can be determined as the starting point of the path, and the later triggered position point can be determined as the end point of the path.
[0049] There may be multiple ways to display at least a portion of the target path in the graphical user interface. For example, in response to a zooming operation on the virtual scene map, at least a portion of the target path may be displayed in the graphical user interface.
[0050] The zoom operation may be an operation of zooming in and out of the virtual scene map. After zooming in and out of the virtual scene map, the target path may not be fully displayed in the graphical user interface, and only a portion of the target path is displayed in the graphical user interface.
[0051] Optionally, the perspective control control can be updated based on the zoomed virtual scene map. For example, the position in the target path that is at the center of the virtual camera's field of view can be displayed in the central area of the graphical user interface, that is, the position in the target path that is at the center of the current game perspective. After scaling the virtual scene map, if only a portion of the target path is displayed in the graphical user interface, the position in the target path that is at the center of the virtual camera's field of view can be determined. Then, based on the correspondence between the target path and the perspective control control, the perspective control control is updated so that the position of the game perspective currently indicated by the perspective control control matches the position in the target path that is at the center of the virtual camera's field of view.
[0052] There are many ways to determine the position in the target path that is in the center of the field of view of the virtual camera. For example, the position closest to the center of the graphical user interface in the target path displayed in the graphical user interface can be determined as the position in the target path that is in the center of the field of view of the virtual camera. Optionally, the center position of a part of the target path displayed in the graphical user interface can also be determined as the position in the target path that is in the center of the field of view of the virtual camera.
[0053] In one embodiment, the viewing angle control control may be a slider control. For example, please continue to refer to Figure 3b , and please refer to Figure 3c , Figure 3cThis is another path display diagram of a game interaction method provided by an embodiment of the present application. The slider control may include a sliding track and a slider. There is a mapping relationship between each position in the sliding track and each position in the target path. The position of the slider on the sliding track indicates the position in the target path that is at the center of the virtual camera's field of view. In this way, after the virtual scene map is scaled, the position in the target path that is at the center of the game's perspective will change, and it is necessary to update the position of the slider in the perspective control control accordingly. For example, before the virtual scene map is scaled, the virtual camera's field of view center is at the starting point of the target path. Therefore, Figure 3b The position of the middle slider is at the starting point corresponding to the target path. After the virtual scene map is scaled, the center of the virtual camera's field of view changes, that is, the position of the virtual camera's field of view changes at the target path. Figure 3c The position of the middle slider moves upward to indicate the position of the center of the virtual camera's field of view in the target path after the change.
[0054] In one embodiment, the starting point and end point of the target path can also be determined by inputting the coordinates of the starting point and end point of the path to be set or the place name and other information, so that the target path and the perspective control control corresponding to the target path can be displayed in the graphical user interface.
[0055] Optionally, a more flexible observation path can be set based on actual needs to improve the accuracy and flexibility of path setting, thereby improving the efficiency of path viewing. Specifically, in response to a move operation on a first position point in a target path, the first position point after the move can be determined, and the first position point after the move can be used as a turning point of the target path to obtain an updated target path.
[0056] The first position point may be a position point in the target path, the moving operation may be an operation of moving the first position point, and the turning point may be a position point in the target path where the path turns.
[0057] Optionally, the moving operation may include clicking and dragging the first location point.
[0058] For example, see Figure 3d , Figure 3d This is a path editing diagram of a game interaction method provided in an embodiment of the present application. The player can click and drag the first position point in the target path to move the first position point, and obtain the first position point after movement as the turning point in the target path, so that the originally straight target path turns. Through such operation, a more tortuous and flexible observation path can be set, thereby improving the path viewing effect.
[0059] Optionally, the perspective control control may be updated accordingly based on the turning point, so that the player can move the game perspective more intuitively, accurately, and conveniently based on the perspective control control, thereby improving the efficiency of path viewing. For example, the perspective control control may be updated based on the turning point, so that the perspective control control includes indication information corresponding to the turning point, the indication information includes an identifier indicating the turning point, and / or the shape of the perspective control control matches the direction of the updated target path.
[0060] Among them, the indication information can be information indicating a turning point, which is used to indicate the position of the turning point in the target path on the perspective control control. For example, the indication information can include an identifier indicating the turning point, such as a point identifier or a circular identifier indicating the turning point.
[0061] In one embodiment, assuming that the viewing angle control control is a slider control, there is a mapping relationship between each position in the sliding track of the slider control and each position in the target path, so that the corresponding position in the sliding track can be determined according to the position of the turning point in the target path, and the indication information corresponding to the turning point can be displayed at the corresponding position of the sliding track.
[0062] In one embodiment, the shape of the perspective control control can be adjusted according to the direction of the target path. For example, assuming that there is a turning point at the midpoint of the target path, a turning point can be set in the middle position of the perspective control control so that the shape of the perspective control control matches the direction of the updated target path.
[0063] In step 103, in response to a first trigger operation on a viewing angle control control, the virtual camera is controlled to move along a target path, so as to display a virtual scene map captured by the moved virtual camera on a graphical user interface.
[0064] Among them, the first trigger operation can be a trigger operation for the perspective control control, for example, it can include trigger operations such as sliding and clicking. The virtual camera can be the main camera in the game scene, which can be used to control the game perspective in the game scene. The game perspective can refer to the angle from which the player observes and operates the game world in the game. In the embodiment of the present application, the game perspective can be the perspective from which the player observes the virtual scene map under the target path. The virtual camera can be located above the target path, used to capture the specific scene information of the target path, control the virtual camera to move along the target path, and can synchronously control the game perspective to move on the target path, that is, the center of the field of view of the virtual camera moves on the target path.
[0065] In response to the first trigger operation on the view control control, there are multiple ways to control the virtual camera to move along the target path. For example, the view control control includes a sliding track and a slider, and can respond to the sliding operation of the slider on the sliding track, and control the virtual camera to move along the target path according to the sliding operation. The moving direction and moving distance of the virtual camera are determined according to the moving direction and moving distance of the sliding operation, respectively.
[0066] For example, assuming the length of the sliding track is L and the length of the target path is 5L, if the slider slides 1 unit distance on the sliding track, the virtual camera can be synchronously controlled to move 5 unit distances, that is, the position at the center of the virtual camera's field of view on the target path also moves 5 unit distances. For details, please continue to refer to Figure 3c , assuming that the lowest point of the sliding track corresponds to the left starting point of the target path, and the highest point of the sliding track corresponds to the right end point of the target path, if the slider slides upward on the sliding track by 0.5 unit distance, the virtual camera can be synchronously controlled to move 2.5 unit distance to the right, that is, the position at the center of the virtual camera's field of view on the target path also moves 2.5 unit distance to the right.
[0067] Among them, in response to the first trigger operation on the perspective control control, there can be multiple ways to control the virtual camera to move along the target path. For example, the perspective control control includes a sliding track and a slider, and each position on the sliding track can be mapped to each position in the target path; in this way, in response to the sliding operation of the slider on the sliding track, the virtual camera can be controlled to move along the target path according to the position of the sliding operation on the sliding track.
[0068] The position to which the virtual camera is to be moved can be determined according to the position of the slider on the sliding track. For example, the target position on the target path corresponding to the position of the slider on the sliding track can be determined according to the mapping relationship between each position on the sliding track and each position in the target path, and then the virtual camera is controlled to move in the direction of the target position so that the virtual camera after the movement is directly above the target position, that is, the center of the field of view of the virtual camera is at the target position in the target path.
[0069] For example, see Figure 4 , Figure 4This is a path viewing schematic diagram of a game interaction method provided by an embodiment of the present application, in which the perspective control control includes a sliding track and a slider. In the mapping relationship, the starting point of the target path corresponds to an end point in the sliding track, such as the lower end point, and the end point of the target path corresponds to another end point in the sliding track, such as the upper end point. The midpoint of the target path corresponds to the center point in the sliding track, and so on. Based on the mapping relationship, the position of the sliding operation on the sliding track can be determined to correspond to the target position in the target path. In this way, the player can control the game perspective to move on this target path by sliding the sliding track on the perspective control control, so as to realize convenient viewing of the target path in the large map.
[0070] In one embodiment, in response to a first trigger operation on a perspective control control, there may be multiple ways to control the virtual camera to move along a target path. For example, the perspective control control may include at least one direction control, so that in response to a first trigger operation on a target direction control in the direction control, a moving direction may be determined based on the target direction control, and a moving distance may be determined based on the interaction parameters of the first trigger operation; based on the moving direction and the moving distance, the virtual camera may be controlled to move along the target path.
[0071] The direction control may be a control indicating a direction, for example, a direction control indicating a positive direction and a direction control indicating a negative direction, a direction control indicating a left direction and a direction control indicating a right direction, an upward direction and a direction control indicating a downward direction, etc. The target direction control may be a direction control operated by the first trigger operation, so that the direction indicated by the target direction control is the moving direction. The interaction parameter may include the operation time or the number of operations on the target direction control. When the first trigger operation is a click operation, the interaction parameter may be the number of operations, i.e., the number of clicks. When the first trigger operation is a long press operation, the interaction parameter may be the long press time, i.e., the operation time.
[0072] In one embodiment, when the virtual camera is moved based on the target path, a control for displaying the specific scene information of the position can be provided at the position in the center of the field of view of the virtual camera in the target path, so that the player can observe the specific situation in the target path more intuitively and conveniently, and the efficiency of path viewing is improved. For example, a scene viewing control can be displayed based on the observation position corresponding to the moved virtual camera in the target path, and the scene viewing control is used to display the specific scene information of the observation position.
[0073] Among them, the observation position can be the position on the target path that is at the center of the field of view of the virtual camera after moving, and the scene viewing control can be a control for viewing specific scene information of the observation position, and the specific scene information can be the scene details of the virtual scene map where the observation position is located.
[0074] Optionally, the scene viewing control can be used to display specific scene information of the observation position after being triggered, or it can directly display the specific scene information of the observation position similar to the effect of a magnifying glass.
[0075] Optionally, the specific scene information of the observation position can be directly displayed at the observation position corresponding to the game perspective on the target path, so that the player can observe the specific situation in the target path more intuitively and conveniently, and improve the efficiency of path viewing. For example, a scene magnifying glass control can be displayed based on the observation position in the target path corresponding to the game perspective after movement, and the scene magnifying glass control displays the specific scene information of the observation position.
[0076] In some SLG games, players often need to check the large world map in the game to observe the situation of each player, team or area in the game to make game decisions. Among them, if you need to observe the situation on a route in real time (for example, observe the path between our city and the enemy city to decide whether to send troops to attack), if this is a very long path, the player cannot see all the situations on this path within the appropriate map zoom ratio, and can only move the perspective by sliding the screen continuously, which is troublesome to operate, and sometimes the player needs to frequently check back and forth to observe this path. The player needs to slide the screen back and forth to move the perspective. Such viewing operation is cumbersome, making the path viewing efficiency low, and thus resulting in poor game interaction efficiency.
[0077] To this end, the embodiment of the present application provides a game interaction method, by setting the starting point and end point of the path to be observed, displaying a perspective control control in the graphical user interface, and the player can slide the slider in the perspective control control to move on the sliding track to control the game perspective to move on this path, so that the player can conveniently observe the situation on this route on the large map under the custom route, effectively improving the efficiency of path viewing. In addition, according to the path requirements, the player can set this path as a curved path with multiple turning points, so as to set a more flexible and accurate observation path and improve the efficiency of game interaction.
[0078] As can be seen from the above, the embodiment of the present application displays a graphical user interface, which includes at least part of a virtual scene map; in response to a path setting operation, at least part of the target path and the perspective control control corresponding to the target path are displayed in the graphical user interface; in response to a first trigger operation on the perspective control control, the virtual camera is controlled to move along the target path, so as to display the virtual scene map captured by the virtual camera after the movement in the graphical user interface. In this way, by displaying at least part of the target path and the perspective control control corresponding to the target path in the graphical user interface in response to the path setting operation, the virtual camera can be controlled to move along the target path based on the trigger operation of the perspective control control, so as to realize the display of the virtual scene map captured by the virtual camera after the movement in the graphical user interface with convenient operation, realize the movement of the game perspective along the target path, simplify the path viewing operation, effectively improve the path viewing efficiency, and thus improve the game interaction efficiency.
[0079] In order to better implement the above method, an embodiment of the present invention further provides a game interaction device, which can be integrated in an electronic device, and the electronic device can be a terminal.
[0080] For example, Figure 5 As shown, it is a schematic diagram of the structure of the game interaction device provided in an embodiment of the present application. The game interaction device may include a first display unit 201, a second display unit 202 and a viewing angle moving unit 203, as follows:
[0081] A first display unit 201, configured to display a graphical user interface, wherein the graphical user interface includes at least a portion of a virtual scene map;
[0082] The second display unit 202 is used to display at least a portion of the target path and a view angle control control corresponding to the target path in the graphical user interface in response to the path setting operation;
[0083] The view moving unit 203 is used to control the virtual camera to move along the target path in response to the first trigger operation on the view control control component, so as to display the virtual scene map captured by the moved virtual camera on the graphical user interface.
[0084] In some embodiments, the second display unit 202 is used to:
[0085] In response to the path setting operation, determining a start point and an end point of the path;
[0086] Generate a target path in a virtual scene map based on a starting point and an end point;
[0087] At least a portion of the target path is displayed in a graphical user interface.
[0088] In some embodiments, the above step of determining the starting point and the end point of the path in response to the path setting operation is specifically used to:
[0089] In response to a second trigger operation on two location points in the virtual scene map, a start point and an end point of the path are determined based on the locations of the two location points in the virtual scene map.
[0090] In some embodiments, the second trigger operation includes a double-click operation performed on two locations simultaneously.
[0091] In some embodiments, the step of displaying at least a portion of the target path in the graphical user interface is specifically used to:
[0092] In response to a zooming operation on the virtual scene map, at least a portion of the target path is displayed in the graphical user interface.
[0093] In some embodiments, the viewing angle control widget includes a sliding track and a slider; the viewing angle moving unit 203 includes:
[0094] In response to a sliding operation of the slider on the sliding track, the virtual camera is controlled to move along the target path according to the sliding operation, wherein the moving direction and moving distance of the virtual camera are respectively determined according to the moving direction and moving distance of the sliding operation.
[0095] In some embodiments, the above-mentioned response is to the sliding operation of the slider on the sliding track, and the step of controlling the virtual camera to move along the target path according to the sliding operation is specifically used for:
[0096] In response to a sliding operation of sliding the slider to a first end point of the sliding track, controlling the virtual camera to move along the target path so that the starting point of the target path falls into the center of the current field of view;
[0097] In response to a sliding operation of sliding the slider to the second end point of the sliding track, the virtual camera is controlled to move along the target path so that the end point of the target path falls into the center of the current field of view.
[0098] In some embodiments, the game interaction device further includes a scene viewing unit, which is used to:
[0099] Based on the observation position corresponding to the moved virtual camera in the target path, a scene viewing control is displayed, and the scene viewing control is used to display specific scene information of the observation position.
[0100] In some embodiments, the game interaction device further includes a path editing unit, which is used to:
[0101] In response to a moving operation on a first position point in the target path, the first position point after the move is determined, and the first position point after the move is used as a turning point of the target path to obtain an updated target path.
[0102] In one embodiment, the game interaction device further includes a control updating unit, which is used to:
[0103] Based on the turning point, update the perspective control control so that the perspective control control includes indication information corresponding to the turning point, the indication information includes an identifier indicating the turning point, and / or, so that the shape of the perspective control control matches the direction of the updated target path.
[0104] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0105] As can be seen from the above, the embodiment of the present application displays a graphical user interface through the first display unit 201, and the graphical user interface includes at least part of the virtual scene map; the second display unit 202 displays at least part of the target path and the view control control corresponding to the target path in the graphical user interface in response to the path setting operation; the view moving unit 203 controls the virtual camera to move along the target path in response to the first trigger operation on the view control control, so as to display the virtual scene map captured by the virtual camera after the movement in the graphical user interface. In this way, by displaying at least part of the target path and the view control control corresponding to the target path in the graphical user interface in response to the path setting operation, the virtual camera can be controlled to move along the target path based on the trigger operation of the view control control, so as to realize the display of the virtual scene map captured by the virtual camera after the movement in the graphical user interface with convenient operation, realize the movement of the game view along the target path, simplify the path viewing operation, effectively improve the path viewing efficiency, and thus improve the game interaction efficiency.
[0106] The present application also provides an electronic device, such as Figure 6 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, and the electronic device may be a terminal. Specifically:
[0107] The electronic device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0108] The processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect various parts of the entire electronic device 300, executes various functions of the electronic device 300 and processes data by running or loading software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, thereby monitoring the electronic device 300 as a whole.
[0109] In the embodiment of the present application, the processor 301 in the electronic device 300 will load instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 will run the application programs stored in the memory 302 to implement various functions:
[0110] displaying a graphical user interface, the graphical user interface including at least a portion of the virtual scene map;
[0111] In response to the path setting operation, displaying at least a portion of the target path and a view control control corresponding to the target path in the graphical user interface;
[0112] In response to a first trigger operation on the viewing angle control control, the virtual camera is controlled to move along a target path, so as to display a virtual scene map captured by the moved virtual camera on a graphical user interface.
[0113] In some embodiments, in response to the path setting operation, displaying at least a portion of the target path in the graphical user interface includes:
[0114] In response to the path setting operation, determining a start point and an end point of the path;
[0115] Generate a target path in a virtual scene map based on a starting point and an end point;
[0116] At least a portion of the target path is displayed in a graphical user interface.
[0117] In some embodiments, in response to the path setting operation, determining the start point and the end point of the path includes:
[0118] In response to a second trigger operation on two location points in the virtual scene map, a start point and an end point of the path are determined based on the locations of the two location points in the virtual scene map.
[0119] In some embodiments, the second trigger operation includes a double-click operation performed on two locations simultaneously.
[0120] In some embodiments, displaying at least a portion of the target path in a graphical user interface includes:
[0121] In response to a zooming operation on the virtual scene map, at least a portion of the target path is displayed in the graphical user interface.
[0122] In some embodiments, the viewing angle control control includes a sliding track and a slider; in response to a first trigger operation on the viewing angle control control, controlling the virtual camera to move along the target path includes:
[0123] In response to a sliding operation of the slider on the sliding track, the virtual camera is controlled to move along the target path according to the sliding operation, wherein the moving direction and moving distance of the virtual camera are respectively determined according to the moving direction and moving distance of the sliding operation.
[0124] In some embodiments, in response to a sliding operation of a slider on a sliding track, controlling a virtual camera to move along a target path according to the sliding operation includes:
[0125] In response to a sliding operation of sliding the slider to a first end point of the sliding track, controlling the virtual camera to move along the target path so that the starting point of the target path falls into the center of the current field of view;
[0126] In response to a sliding operation of sliding the slider to the second end point of the sliding track, the virtual camera is controlled to move along the target path so that the end point of the target path falls into the center of the current field of view.
[0127] In some embodiments, the game interaction method provided in the embodiments of the present application further includes:
[0128] Based on the observation position corresponding to the moved virtual camera in the target path, a scene viewing control is displayed, and the scene viewing control is used to display specific scene information of the observation position.
[0129] In some embodiments, the game interaction method provided in the embodiments of the present application further includes:
[0130] In response to a moving operation on a first position point in the target path, the first position point after the move is determined, and the first position point after the move is used as a turning point of the target path to obtain an updated target path.
[0131] In some embodiments, the game interaction method provided in the embodiments of the present application further includes:
[0132] Based on the turning point, update the perspective control control so that the perspective control control includes indication information corresponding to the turning point, the indication information includes an identifier indicating the turning point, and / or, so that the shape of the perspective control control matches the direction of the updated target path.
[0133] This solution can be implemented by displaying a graphical user interface, which includes at least a portion of a virtual scene map; in response to a path setting operation, displaying at least a portion of a target path and a view control control corresponding to the target path in the graphical user interface; in response to a first trigger operation on the view control control, controlling the virtual camera to move along the target path, so as to display the virtual scene map captured by the virtual camera after the movement in the graphical user interface. In this way, by displaying at least a portion of a target path and a view control control corresponding to the target path in the graphical user interface in response to the path setting operation, the virtual camera can be controlled to move along the target path based on the trigger operation on the view control control, so as to realize the display of the virtual scene map captured by the virtual camera after the movement in the graphical user interface with a convenient operation, realize the movement of the game view along the target path, simplify the path viewing operation, effectively improve the path viewing efficiency, and thus improve the game interaction efficiency.
[0134] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0135] Optional, such as Figure 6 As shown, the electronic device 300 further includes: a touch screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art can understand that Figure 6 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0136] The touch display screen 303 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 303 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel can be used to collect the user's touch operation on or near it (such as the user uses any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 301, and can receive the command sent by the processor 301 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 301 to determine the type of touch event, and then the processor 301 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 303 can also be used as a part of the input unit 306 to realize the input function.
[0137] The radio frequency circuit 304 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.
[0138] The audio circuit 305 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 305 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 305 and converted into audio data, and then the audio data is output to the processor 301 for processing, and then sent to another electronic device through the radio frequency circuit 304, or the audio data is output to the memory 302 for further processing. The audio circuit 305 may also include an earplug jack to provide communication between an external headset and the electronic device.
[0139] The input unit 306 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0140] The power supply 307 is used to supply power to various components of the electronic device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 307 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0141] although Figure 6 Not shown, the electronic device 300 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0142] In the above embodiments, the description of each embodiment has its own emphasis. For the parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. It should be noted that the electronic device provided in the embodiment of the present application and the game interaction method in the above embodiment belong to the same concept. The specific implementation process is detailed in the above method embodiment, which will not be repeated here.
[0143] As can be seen from the above, the electronic device provided by the embodiment of the present application can display a graphical user interface, the graphical user interface includes at least part of the virtual scene map; in response to the path setting operation, at least part of the path of the target path and the perspective control control corresponding to the target path are displayed in the graphical user interface; in response to the first trigger operation on the perspective control control, the game perspective is controlled to move along the target path, so as to display the virtual scene map corresponding to the game perspective after the movement in the graphical user interface. In this way, by displaying at least part of the path of the target path and the perspective control control corresponding to the target path in the graphical user interface in response to the path setting operation, the game perspective can be controlled to move along the target path based on the trigger operation of the perspective control control, so as to realize the display of the virtual scene map corresponding to the game perspective after the movement in the graphical user interface with convenient operation, simplifying the path viewing operation, effectively improving the path viewing efficiency, and thus improving the game interaction efficiency.
[0144] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0145] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any game interaction method provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0146] displaying a graphical user interface, the graphical user interface including at least a portion of the virtual scene map;
[0147] In response to the path setting operation, displaying at least a portion of the target path and a view control control corresponding to the target path in the graphical user interface;
[0148] In response to a first trigger operation on the viewing angle control control, the virtual camera is controlled to move along a target path, so as to display a virtual scene map captured by the moved virtual camera on a graphical user interface.
[0149] This solution can be implemented by displaying a graphical user interface, which includes at least a portion of a virtual scene map; in response to a path setting operation, displaying at least a portion of a target path and a view control control corresponding to the target path in the graphical user interface; in response to a first trigger operation on the view control control, controlling the virtual camera to move along the target path, so as to display the virtual scene map captured by the virtual camera after the movement in the graphical user interface. In this way, by displaying at least a portion of a target path and a view control control corresponding to the target path in the graphical user interface in response to the path setting operation, the virtual camera can be controlled to move along the target path based on the trigger operation on the view control control, so as to realize the display of the virtual scene map captured by the virtual camera after the movement in the graphical user interface with a convenient operation, realize the movement of the game view along the target path, simplify the path viewing operation, effectively improve the path viewing efficiency, and thus improve the game interaction efficiency.
[0150] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0151] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0152] Since the computer program stored in the computer-readable storage medium can execute the steps in any one of the game interaction methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the game interaction methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0153] Among them, according to one aspect of the present application, a computer program product is provided, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the methods provided in the various optional implementations provided in the above embodiments.
[0154] The game interaction method, device, storage medium and electronic device provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A game interaction method, characterized in that: include: displaying a graphical user interface, the graphical user interface including at least a portion of a virtual scene map; In response to the path setting operation, displaying at least a portion of the target path and a viewing angle control control corresponding to the target path in the graphical user interface; In response to a first trigger operation on the viewing angle control control, the virtual camera is controlled to move along the target path, so as to display a virtual scene map captured by the moved virtual camera on the graphical user interface.
2. The game interaction method according to claim 1, characterized in that: In response to the path setting operation, displaying at least a portion of the target path in the graphical user interface comprises: In response to the path setting operation, determining a start point and an end point of the path; Generate a target path in the virtual scene map based on the starting point and the end point; At least a portion of the target path is displayed in the graphical user interface.
3. The game interaction method according to claim 2, characterized in that: The step of determining the starting point and the end point of the path in response to the path setting operation includes: In response to a second triggering operation on two location points in the virtual scene map, a starting point and an end point of a path are determined based on the locations of the two location points in the virtual scene map.
4. The game interaction method according to claim 3, characterized in that: The second trigger operation includes a double-click operation performed simultaneously on the two position points.
5. The game interaction method according to claim 2, characterized in that: The step of displaying at least a portion of the target path in the graphical user interface comprises: In response to a zooming operation on the virtual scene map, at least a portion of the target path is displayed in the graphical user interface.
6. The method according to claim 1, characterized in that The viewing angle control control comprises a sliding track and a slider; and in response to a first trigger operation on the viewing angle control control, controlling the virtual camera to move along the target path comprises: In response to a sliding operation of the slider on the sliding track, the virtual camera is controlled to move along the target path according to the sliding operation, wherein the moving direction and moving distance of the virtual camera are respectively determined according to the moving direction and moving distance of the sliding operation.
7. The method according to claim 6, characterized in that The response is to a sliding operation of the slider on the sliding track, and the virtual camera is controlled to move along the target path according to the sliding operation, including: In response to a sliding operation of sliding the slider to a first end point of the sliding track, controlling the virtual camera to move along the target path so that the starting point of the target path falls into the center of the current field of view; In response to a sliding operation of sliding the slider to the second end point of the sliding track, the virtual camera is controlled to move along the target path so that the end point of the target path falls into the center of the current field of view.
8. The game interaction method according to claim 1, characterized in that: The method further comprises: Based on the observation position corresponding to the moved virtual camera in the target path, a scene viewing control is displayed, and the scene viewing control is used to display specific scene information of the observation position.
9. The game interaction method according to any one of claims 1 to 8, characterized in that: The method further comprises: In response to a moving operation on a first position point in the target path, the first position point after the move is determined, and the first position point after the move is used as a turning point of the target path to obtain an updated target path.
10. The game interaction method according to claim 9, characterized in that: The method further comprises: Based on the turning point, update the perspective control control so that the perspective control control includes indication information corresponding to the turning point, the indication information includes an identifier indicating the turning point, and / or so that the shape of the perspective control control matches the direction of the updated target path.
11. A game interaction device, characterized in that: include: A first display unit, configured to display a graphical user interface, wherein the graphical user interface includes at least a portion of a virtual scene map; A second display unit, configured to display at least a portion of a target path and a viewing angle control control corresponding to the target path in the graphical user interface in response to a path setting operation; A viewing angle moving unit is used to control the virtual camera to move along the target path in response to a first trigger operation on the viewing angle control control, so as to display a virtual scene map captured by the moved virtual camera on the graphical user interface.
12. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The method comprises a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any one of the methods of claims 1 to 10.
Citation Information
Patent Citations
Method and device for controlling virtual object to move and storage medium
CN112221143A
Method and device for determining position in game and method and device for adjusting path
CN112619140A
Game display control method and device, computer equipment and storage medium
CN115193046A
Game role movement control method and device and storage medium
CN116870481A
System and method for camera navigation
US20030107647A1