Control methods, devices and electronic equipment for virtual aircraft
By introducing a crosshair, virtual joystick, and view control area into the graphical user interface, the issues of accuracy and realism in virtual aircraft control have been resolved, improving the control effect of competitive flight games.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-10
- Publication Date
- 2026-03-10
AI Technical Summary
Existing technologies struggle to achieve precise and nuanced control over the flight direction and aiming of virtual aircraft. Furthermore, these control methods differ significantly from those of real aircraft, making them unsuitable for competitive flight games.
By providing a crosshair, virtual joystick area, and view control area in the graphical user interface, the system responds to the player's touch operations, controlling the flight attitude, speed, and direction of the virtual aircraft, simulating the control method of a real aircraft.
It improves the precision and realism of virtual aircraft control, making it suitable for competitive flight games and enhancing the gaming experience.
Smart Images

Figure CN115888066B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of games, and in particular to a virtual aircraft control method, device and electronic equipment. BACKGROUND
[0002] In a hand-held game type flight game, one way of controlling an aircraft is to use a gravity sensor on a terminal device to control the flight attitude and steering of the aircraft in the game. Another way of controlling the aircraft is to control the flight speed by a speed lever displayed on an interface and to control the flight attitude and steering by a joystick. SUMMARY
[0003] Therefore, the present application aims to provide a virtual aircraft control method, device and electronic equipment to improve the accuracy of flight direction control and to make the control more in line with the actual control of an aircraft and improve the gaming experience.
[0004] In a first aspect, the present application provides a virtual aircraft control method. A graphical user interface is provided by a terminal device. The graphical user interface displays at least a three-dimensional game scene and a virtual aircraft in the three-dimensional game scene. The method comprises: controlling the virtual aircraft to fly in the three-dimensional game scene in response to a flight instruction; providing a reticle, a virtual joystick area and a perspective control area on the graphical user interface, wherein the reticle is used to indicate the flight direction of the virtual aircraft; controlling the flight attitude and / or flight speed of the virtual aircraft when flying in response to a touch operation on the virtual joystick area; and adjusting the flight direction of the virtual aircraft in the three-dimensional game scene based on the flight attitude and flight speed of the virtual aircraft in response to a touch operation on the perspective control area.
[0005] In a second aspect, an embodiment of the present application provides a control device of a virtual aircraft. The device provides a graphical user interface through a terminal device. The graphical user interface displays at least a three-dimensional game scene and a virtual aircraft in the three-dimensional game scene. The device comprises: a flight control module configured to control the virtual aircraft to fly in the three-dimensional game scene in response to a flight instruction; a providing module configured to provide a virtual crosshair, a virtual joystick area, and a perspective control area in the graphical user interface, wherein the virtual crosshair is configured to indicate a flight direction of the virtual aircraft; a first control module configured to control a flight attitude and / or a flight speed of the virtual aircraft in response to a touch operation on the virtual joystick area; and a second control module configured to control the virtual crosshair and the virtual scene to rotate relative to each other based on the flight attitude and the flight speed of the virtual aircraft in response to a touch operation on the perspective control area, so as to adjust the flight direction of the virtual aircraft in the three-dimensional game scene.
[0006] In a third aspect, an embodiment of the present application provides an electronic device. The electronic device comprises a processor and a memory. The memory stores machine executable instructions capable of being executed by the processor. The processor executes the machine executable instructions to implement the control method of the virtual aircraft.
[0007] In a fourth aspect, an embodiment of the present application provides a machine readable storage medium. The machine readable storage medium stores machine executable instructions. When the machine executable instructions are invoked and executed by a processor, the machine executable instructions cause the processor to implement the control method of the virtual aircraft.
[0008] The embodiments of the present application have the following beneficial effects:
[0009] The control method, the control device, and the electronic device of the virtual aircraft are configured to control the virtual aircraft to fly in the three-dimensional game scene in response to a flight instruction; provide a virtual crosshair, a virtual joystick area, and a perspective control area in the graphical user interface, wherein the virtual crosshair is configured to indicate a flight direction of the virtual aircraft; control a flight attitude and / or a flight speed of the virtual aircraft in response to a touch operation on the virtual joystick area; and control the virtual crosshair and the virtual scene to rotate relative to each other based on the flight attitude and the flight speed of the virtual aircraft in response to a touch operation on the perspective control area, so as to adjust the flight direction of the virtual aircraft in the three-dimensional game scene. In this way, the flight attitude and the flight speed of the virtual aircraft are controlled through the virtual joystick, and the flight direction of the virtual aircraft is controlled through the perspective control area. This control method of the virtual aircraft is more consistent with the real control method of the virtual aircraft, and is more suitable for a competitive flight game, thereby improving the game experience.
[0010] Other features and advantages of the present application will be set forth in the descriptions that follow, and in part will be apparent from the description, or can be learned by practice of the application. The purposes and other advantages of the present application will be realized and attained by the structures particularly pointed out in the description, claims and drawings.
[0011] In order to make the above objectives, features and advantages of the present application more apparent, the following will describe a preferred embodiment in detail, and the accompanying drawings will be referred to. Obviously, the drawings described below are some embodiments of the present application, and the one skilled in the art can obtain other drawings according to these drawings without any creative effort. BRIEF DESCRIPTION OF DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or the prior art description. Obviously, the drawings described below are some embodiments of the present application, and the one skilled in the art can obtain other drawings according to these drawings without any creative effort.
[0013] Figure 1 A flow chart of a control method of a virtual aircraft provided by an embodiment of the present application;
[0014] Figure 2 A schematic diagram of a view scope and a direction scope provided by an embodiment of the present application;
[0015] Figure 3 A schematic diagram of a sliding operation controlling the movement of a view scope provided by an embodiment of the present application;
[0016] Figure 4 A schematic diagram of a three-dimensional coordinate system corresponding to a virtual aircraft provided by an embodiment of the present application;
[0017] Figure 5 A schematic diagram of controlling the acceleration of a virtual aircraft by a virtual joystick area provided by an embodiment of the present application;
[0018] Figure 6 A schematic diagram of controlling the deceleration of a virtual aircraft by a virtual joystick area provided by an embodiment of the present application;
[0019] Figure 7 A schematic diagram of controlling the right rotation of a virtual aircraft by a virtual joystick area provided by an embodiment of the present application;
[0020] Figure 8 A schematic diagram of controlling the left rotation of a virtual aircraft by a virtual joystick area provided by an embodiment of the present application;
[0021] Figure 9 A structural schematic diagram of a control device of a virtual aircraft provided by an embodiment of the present application;
[0022] Figure 10A structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be described clearly and completely below with reference to the drawings. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0024] In related technologies, in a mobile game controlled by a terminal device such as a mobile phone or a tablet computer, there are usually the following control modes of a virtual aircraft:
[0025] Mode 1: A player controls the posture of a terminal device, for example, the tilting direction and angle of the terminal device, and a gravity sensor on the terminal device collects the posture data of the terminal device, thereby controlling the flight posture and steering of the aircraft. However, this mode is difficult to achieve precise and subtle control operations, for example, to control the aircraft to aim at a target point or steer in a specific direction. Moreover, when the aircraft needs to maintain a flight posture, the player needs to keep the mobile phone tilted at an angle, which is laborious and the operation experience is not good.
[0026] Mode 2: In some single-player flight games, a speed control lever and a flight direction control joystick are provided on the interface. The precision of this mode in controlling the speed and direction of the aircraft is still low.
[0027] Mode 3: In some air combat games, an automatic locking aiming mode is used, and the player can easily aim at and lock the enemy and attack. This mode is difficult to apply to competitive games, especially PVP (Player Versus Player) competitive games, because the competitive games require the player to manually aim and shoot, thereby testing the player's control skills of the aircraft and making the game competitive.
[0028] In summary, the above control modes are difficult to achieve precise and subtle control of the flight direction and aiming of the aircraft, and these control modes are quite different from the real aircraft control mode, and are difficult to apply to flight games with competitive attributes.
[0029] Therefore, an embodiment of the present application provides a control method and device of a virtual aircraft and an electronic device, which can be applied to a mobile game controlled by a terminal device such as a mobile phone or a tablet computer, and can also be applied to a host game or a PC (Personal Computer) game.
[0030] The virtual aircraft control method in the embodiments of the present disclosure can run on a local terminal device or a server. When the virtual aircraft control method runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes the server and a client device.
[0031] In an optional embodiment, various cloud applications can run under the cloud interaction system, for example, cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the running mode of cloud games, the running subject of the game program and the presentation subject of the game picture are separated, and the storage and running of the virtual aircraft control method are completed on the cloud game server. The client device is used for receiving and sending data and presenting the game picture. For example, the client device can be a display device close to the user side with data transmission function, such as a mobile terminal, a television, a computer, a palm computer, etc. However, the cloud game server in the cloud end performs information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server, the cloud game server runs the game according to the operation instructions, encodes and compresses the game picture and other data, returns the data to the client device through the network, and finally decodes and outputs the game picture through the client device.
[0032] In an optional embodiment, taking games as an example, the local terminal device stores a game program and is used for presenting a game picture. The local terminal device is used for interacting with the player through a graphical user interface, that is, a conventional game program is downloaded and installed on an electronic device and is run. The way in which the local terminal device provides the graphical user interface to the player can include various ways, for example, the graphical user interface can be rendered and displayed on the display screen of the terminal, or the graphical user interface can be provided to the player through holographic projection. For example, the local terminal device can include a display screen and a processor, the display screen is used for presenting a graphical user interface, the graphical user interface includes a game picture, and the processor is used for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
[0033] In a possible embodiment, the embodiments of the present disclosure provide a virtual aircraft control method, which provides a graphical user interface through a terminal device. The terminal device can be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system.
[0034] The content displayed by the above-mentioned graphical user interface includes at least a three-dimensional game scene and a virtual aircraft located in the three-dimensional game scene; specifically, the graphical user interface includes a scene picture of the three-dimensional game scene; the virtual aircraft is located in the three-dimensional game scene, and the virtual aircraft is controlled by the terminal device; a virtual camera is located in the three-dimensional game scene, and the scene picture is obtained by the virtual camera; the virtual aircraft can be located in the scene picture or outside the scene picture. In the third-person view game, the virtual aircraft is located in the scene picture, the virtual camera is at a certain distance from the controlled aircraft, and the virtual camera faces the virtual aircraft, so that the scene picture obtained by the virtual camera contains the virtual aircraft.
[0035] As shown in Figure 1 The control method of the virtual aircraft includes the following steps:
[0036] Step S102, in response to the flight instruction, controlling the virtual aircraft to fly in the three-dimensional game scene;
[0037] In the initial state, the virtual aircraft is usually on the ground in the three-dimensional game scene, and the virtual aircraft can be started by a starting operation, and the virtual aircraft can be controlled to move and take off by a speed adjustment operation, so as to realize the aerial flight of the virtual aircraft in the three-dimensional game scene.
[0038] Step S104, providing a crosshair, a virtual joystick area and a view control area in the graphical user interface, wherein the crosshair is used to indicate the flight direction of the virtual aircraft;
[0039] In the embodiment, the virtual joystick area is used to control the flight attitude and flight speed of the virtual aircraft; in actual implementation, the position of the virtual joystick in the virtual joystick area can be pre-set in association with the flight attitude of the virtual aircraft, and the position of the virtual joystick in the virtual joystick area also needs to be set in association with the flight direction of the virtual aircraft; in the operation process of the player, the virtual joystick is controlled to move in the virtual joystick area, and based on the moving position of the virtual joystick, a control parameter for the virtual aircraft is generated, and then the flight attitude and flight speed are controlled by the control parameter.
[0040] Step S106, in response to the touch operation on the virtual joystick area, controlling the flight attitude and / or flight speed of the virtual aircraft when flying according to the touch operation;
[0041] The position of the virtual joystick in the virtual joystick region can be determined according to the touch position of the touch operation, and the flight attitude or flight speed of the virtual aircraft is controlled based on the position. For some touch operations, the determined position of the virtual joystick can only control the flight attitude, for another part of the touch operations, the determined position of the virtual joystick can only control the flight speed, and for another part of the touch operations, the determined position of the virtual joystick can control the flight attitude and the flight speed at the same time. The operation parameters such as the operation direction, the operation speed, and the operation path of different touch operations are different.
[0042] In step S108, in response to the touch operation on the view control region, the flight direction of the virtual aircraft in the three-dimensional game scene is adjusted based on the flight attitude and the flight speed of the virtual aircraft.
[0043] The view control region can be a specified region set in the graphical user interface, a specific control, or a blank region of the scene picture of the three-dimensional game scene. The touch operation in the view control region can control the adjustment of the flight direction of the virtual aircraft based on the parameters such as the movement path and the movement direction of the touch operation. For example, in the case of a sliding operation, sliding to the right can control the flight direction of the virtual aircraft to turn right, and sliding to the left can control the flight direction of the virtual aircraft to turn left. In addition, the flight attitude and the flight speed can affect the speed of the adjustment of the flight direction. For example, when the flight attitude is a right-rolling attitude, the adjustment of the flight direction to the right will be faster and more efficient, and when the flight speed is high, the adjustment efficiency of the flight direction will also be faster.
[0044] The above-mentioned control method of the virtual aircraft controls the virtual aircraft to fly in the three-dimensional game scene in response to the flight instruction; a crosshair, a virtual joystick region, and a view control region are provided in the graphical user interface, wherein the crosshair is used to indicate the flight direction of the virtual aircraft; in response to the touch operation on the virtual joystick region, the flight attitude and / or the flight speed of the virtual aircraft when flying are controlled according to the touch operation; in response to the touch operation on the view control region, the flight direction of the virtual aircraft in the three-dimensional game scene is adjusted based on the flight attitude and the flight speed of the virtual aircraft. In this way, the attitude and the speed of the aircraft are controlled by the virtual joystick, and the flight direction of the virtual aircraft is controlled by the view control region. This control method of the aircraft is more consistent with the real control method of the aircraft and is more suitable for competitive flight games, thereby improving the game experience.
[0045] The following embodiments further describe the control method of the flight direction of the virtual aircraft, including steps 21-23:
[0046] Step 21, display a viewfinder and a direction finder in the graphical user interface; wherein the viewfinder is displayed at a first position in the graphical user interface, and is used to indicate a first view direction; the direction finder is used to indicate a flight direction of the virtual aircraft; the flight direction matches the first view direction; a scene picture of the three-dimensional game scene is obtained by following the flight direction to take a picture in the three-dimensional game scene through the virtual camera;
[0047] In the embodiment, the player is guided to control the virtual aircraft through the double finders during the flight of the virtual aircraft. The viewfinder and the direction finder are displayed in the graphical user interface. The viewfinder can be used to indicate the player's view, or can be simulated as the view of the pilot in the virtual aircraft. The viewfinder can be displayed in a specific color and shape at a first position in the graphical user interface, and the first position is used to indicate the direction of the player's view, i.e. the first view direction. The direction finder is used to indicate the flight direction of the virtual aircraft, i.e. the actual moving direction of the virtual aircraft. When the virtual aircraft is equipped with a launching device, the direction finder can also be used to indicate the launching direction. In most cases, when the controlled virtual object flies towards the front or does not turn, the flight direction matches the first view direction, which can be understood as that the flight direction and the first view direction have a specified directional distance. In the graphical user interface, the viewfinder and the direction finder have a specified relative position, for example, the viewfinder is above the direction finder, the viewfinder is below the direction finder, or the viewfinder coincides with the direction finder, etc.
[0048] It should be noted that in the embodiment, the virtual camera moves in the three-dimensional game scene following the movement of the virtual aircraft, and thus the scene picture is obtained by following the flight direction to take a picture in the three-dimensional game scene through the virtual camera. In an implementation manner, the scene picture includes the virtual aircraft, and the virtual camera moves following the virtual aircraft, i.e. the virtual camera has a relatively fixed distance and angle with the virtual aircraft. Therefore, during the flight of the virtual aircraft, the position of the virtual aircraft in the scene picture, or the position of the virtual aircraft in the graphical user interface does not change or only changes slightly.
[0049] Step 22, in response to a sliding operation on the view control area, the viewfinder is moved to a second position in the graphical user interface to indicate a second view direction;
[0050] The view control area can be set in the scene picture, i.e. when the player slides the scene picture, the viewfinder moves accordingly. In actual implementation, the second position of the viewfinder can be determined according to the sliding track of the sliding operation or the end position of the sliding operation.
[0051] When the player's finger starts to slide on the scene picture or the preset control, the viewfinder starts to move immediately. When the sliding operation stops, the viewfinder also stops moving and reaches the second position. In an example, the first position of the viewfinder is the center of the graphical user interface. When the sliding touch point of the sliding operation moves to the upper right of the graphical user interface, the viewfinder starts to move to the upper right from the first position. After the sliding operation ends, the viewfinder is located at the upper right of the first position.
[0052] In step 23, based on the flight attitude and flight speed of the virtual aircraft, the flight direction is controlled to change to the second view direction until the flight direction matches the second view direction. During the change of the flight direction, the scene picture captured by the virtual camera changes with the change of the flight direction.
[0053] In the embodiment, the viewfinder can move immediately with the sliding operation, but the change of the flight direction of the virtual aircraft needs a certain time. In one implementation, after the sliding operation in the above step ends, the second view direction is determined, and then the flight direction starts to change to the second view direction. In another implementation, during the execution of the sliding operation in the above step, the view direction changes immediately with the sliding operation, and the flight direction starts to change after the view direction. When the sliding operation ends, the view direction stops changing at the same time to obtain the above-mentioned second view direction, and the flight direction continues to change until the flight direction matches the second view direction.
[0054] In the graphical user interface, because the virtual camera changes with the change of the flight direction, when the view direction changes, the viewfinder has a relative position change with respect to the scene picture and the graphical user interface to represent the change of the view direction in the three-dimensional game scene. During the change of the flight direction, the virtual camera changes with the change of the flight direction, so the scene picture changes and the viewfinder has a relative position change with respect to the scene picture, but the viewfinder has no relative position change or only a small relative position change with respect to the graphical user interface.
[0055] In the above-mentioned manner, the flight direction of the aircraft is controlled by the viewfinder and the direction finder, so that the accuracy of the flight direction control can be improved. At the same time, the flight direction is guided and controlled by the view direction, which is more consistent with the real control mode of the aircraft and more suitable for competitive flight games, thereby improving the game experience.
[0056] The following embodiments describe the display mode of the viewfinder and the direction finder.
[0057] The virtual aircraft is controlled to fly in a three-dimensional game scene, and a direction reticle is displayed in a central region of the graphical user interface; it is determined that the flight direction matches the first view direction, and the view reticle is controlled to be displayed at a first position; the first position has a preset relative position with the direction reticle.
[0058] In an implementation, as the virtual camera follows the virtual aircraft, when the virtual aircraft is in the scene picture, the virtual aircraft is generally displayed in a relatively fixed region of the scene picture, for example, the virtual aircraft is displayed in a lower middle region of the scene picture. Along the flight direction of the virtual aircraft, the virtual camera is generally located behind the virtual aircraft and is higher than the virtual aircraft. In the obtained scene picture, the upper region of the virtual aircraft is displayed as a scene in front of the flight direction of the virtual aircraft. Based on the above, the flight reticle indicating the flight direction is displayed in the central region of the graphical user interface, specifically, the flight reticle can be displayed at the central position of the graphical user interface or in a position region within a certain distance range relative to the central position.
[0059] The flight direction matches the first view direction, which can be understood as that the flight direction is the same as the first view direction or the flight direction is at a preset angle with the first view direction. When the flight direction matches the first view direction, the view reticle and the direction reticle also have a fixed relative position. In one example, the flight direction is the same as the first view direction, in this case, the view reticle and the direction reticle can coincide or partially coincide, for example, the centers of the two reticles coincide. In another example, the flight direction is parallel to the first view direction, in this case, the direction reticle and the view reticle can be arranged and displayed in an up-down manner.
[0060] In a specific implementation, it is determined that the flight direction matches the first view direction, and the center of the direction reticle is controlled to coincide with the center of the view reticle. In the case where the virtual aircraft does not turn, the flight direction is the same as the first view direction, in order to facilitate the player to understand, in the graphical user interface, the center of the view reticle coincides with the center of the view reticle, to represent that the flight direction of the virtual aircraft is the same as the view direction at this time.
[0061] Figure 2 As an example, the virtual aircraft is displayed in a middle region of the bottom of the graphical user interface; the direction reticle and the view reticle are displayed in the central region of the graphical user interface; the view reticle and the direction reticle are displayed in an overlapping manner. Figure 2 In the above, the view reticle is located at a first position in the graphical user interface, that is, the central position of the graphical user interface; the first view direction indicated by the view reticle is the flight direction. Figure 2 On the basis of the above, the player performs a sliding operation on the scene picture or a preset control, and the view reticle starts to move.
[0062] Figure 3 As an example, the touch point of the sliding operation moves along the sliding track in Figure 3 , the viewfinder moves from the first position, and the moving direction and moving track match the sliding track, as shown in Figure 3 , the touch point of the sliding operation moves to the upper right corner of the graphical user interface, and at the same time, the viewfinder also moves to the upper right corner of the graphical user interface. After the sliding operation stops, the viewfinder reaches the second position. At this time, the visual direction indicated by the viewfinder has changed, which is no longer the flight direction, but the upper right direction of the flight direction.
[0063] Since the direction indicated by the visual viewfinder changes from the first view direction to the second view direction, the flight direction also needs to change. Specifically, based on the flight attitude and flight speed of the virtual aircraft, the flight direction is controlled to change to the second view direction, and the scene picture is controlled to change following the change of the flight direction, so that the position of the direction viewfinder relative to the display position of the graphical user interface does not change; in response to the change of the scene picture, the position of the viewfinder in the graphical user interface is controlled to change; in response to the flight direction matching the second view direction, the viewfinder is controlled to be displayed at the first position.
[0064] In the three-dimensional game scene, the virtual aircraft starts to turn until the flight direction matches the second view direction; during the turning of the virtual aircraft, the virtual camera also starts to turn; since the motion of the virtual aircraft and the virtual camera is synchronous, the position of the direction viewfinder in the graphical user interface is always unchanged. During the turning of the virtual aircraft, the virtual camera turns synchronously, so that the scene picture changes, and again, during the turning of the virtual aircraft, the flight direction gradually approaches the second view direction indicated by the viewfinder, which is manifested in the graphical user interface as the viewfinder gradually approaching the direction viewfinder. When the flight direction matches the second view direction, the turning of the virtual aircraft is completed, and at this time, the viewfinder returns to the first position, as shown in Figure 2 .
[0065] In a specific implementation, in response to the change of the scene picture, the viewfinder is controlled to move to the direction viewfinder; wherein during the movement of the viewfinder, the scene picture content corresponding to the second view direction indicated by the viewfinder does not change. It can be understood that when the flight direction changes quickly, the movement speed of the viewfinder in the graphical user interface is also fast. During the movement of the viewfinder, the direction indicated by the viewfinder does not change, that is, the scene picture content corresponding to the second view direction changes; at the same time, during the turning of the virtual aircraft, the position of the direction viewfinder in the graphical user interface does not change, but since the scene picture is changing, the scene picture content corresponding to the flight direction indicated by the direction viewfinder is also changing.
[0066] The following embodiments provide a specific implementation of controlling the flight direction.
[0067] The virtual aircraft is preset with a three-dimensional coordinate system; a longitudinal axis of the three-dimensional coordinate system points to the flight direction; a transverse axis of the three-dimensional coordinate system points to a horizontal direction perpendicular to the flight direction; a vertical axis of the three-dimensional coordinate system points to a vertical direction perpendicular to the flight direction; when the flight direction changes to the second view direction, the rotation angle of the virtual aircraft around the transverse axis and / or the rotation angle of the virtual aircraft around the vertical axis are adjusted to control the flight direction of the virtual aircraft to change to the second view direction.
[0068] As shown in Figure 4 The three-dimensional coordinate system takes a point on the virtual aircraft as the origin, and the virtual aircraft can also rotate around any one of the longitudinal axis, the transverse axis, and the vertical axis; when the flight direction changes, the virtual aircraft can only rotate around the vertical axis, only rotate around the transverse axis, or rotate around both the vertical axis and the transverse axis. When the virtual aircraft rotates around the vertical axis, the flight direction of the virtual aircraft changes, and the virtual aircraft is controlled to deviate left or right; when the virtual aircraft rotates around the transverse axis, the nose of the virtual aircraft is raised or lowered, achieving the lifting or diving of the virtual aircraft, thereby adjusting the flight height.
[0069] To more realistically display the state of the virtual aircraft when turning, in one way, the virtual aircraft is displayed in the scene picture; the flap angle of the elevator of the virtual aircraft is controlled to change, so as to adjust the rotation angle of the virtual aircraft around the transverse axis; the flap angle of the rudder of the virtual aircraft is controlled to change, so as to adjust the rotation angle of the virtual aircraft around the transverse axis.
[0070] The model of the virtual aircraft is displayed in the scene picture, and when the virtual aircraft turns, the flap angle of the elevator in the model changes, and the flap angle of the rudder also changes; the flap angles of the elevator and the rudder are related to the direction angle of the virtual aircraft turning, and specifically, the flap angles of the elevator and the rudder can be determined according to the physical principle of aerodynamics, the direction difference between the flight direction and the second view direction, and the turning speed, so that the flaps of the elevator and the rudder of the model change.
[0071] Further, during the change of the flight direction to the second view direction, in response to the rotation control operation of the virtual aircraft around the flight direction as the axis, the virtual aircraft is controlled to rotate around the flight direction as the axis, increasing the change speed of the flight direction.
[0072] In actual implementation, the longitudinal axis of the three-dimensional coordinate system points to the flight direction, and thus the rotation control operation can be a rotation control operation around the longitudinal axis, which can be realized by a button control or a virtual joystick area. When the rotation control operation is triggered, the virtual aircraft rotates around the longitudinal axis, which does not affect the flight direction of the virtual aircraft. However, in the process of changing the flight direction to the second view direction, if the virtual aircraft rotates around the flight direction as an axis, the turning ability of the virtual aircraft can be increased, that is, the change speed of the flight direction is increased, so that the flight direction changes to the second view direction more quickly, and the control efficiency of the virtual aircraft is improved.
[0073] In the embodiment, the flight direction of the virtual aircraft is the same as the shooting direction, and the virtual aircraft is controlled to release a shooting skill in the flight direction in response to a shooting trigger operation. A shooting control can be provided in the graphical user interface, and when the shooting control is triggered by the player, the virtual aircraft releases a shooting skill in the flight direction. Based on this, in the manner of the above embodiments, the flight direction changes while the shooting direction also changes, so that when the flight direction is adjusted by adjusting the view direction through the sliding scene picture or the preset control, the shooting direction can also be adjusted by adjusting the view direction, and the shooting direction can also be referred to as the aiming direction. When the player determines the aiming target, the flight direction is adjusted by adjusting the view direction through the sliding operation, so as to be directed to the aiming target, and then a shooting skill is released to the target. The flight direction control and the aiming control operation are combined, the operation is simplified, the game operation is more convenient, and the efficiency of the shooting operation is improved.
[0074] Figure 5 In the embodiment, the flight direction of the virtual aircraft is the same as the shooting direction, and the virtual aircraft is controlled to release a shooting skill in the flight direction in response to a shooting trigger operation. A shooting control can be provided in the graphical user interface, and when the shooting control is triggered by the player, the virtual aircraft releases a shooting skill in the flight direction. Based on this, in the manner of the above embodiments, the flight direction changes while the shooting direction also changes, so that when the flight direction is adjusted by adjusting the view direction through the sliding scene picture or the preset control, the shooting direction can also be adjusted by adjusting the view direction, and the shooting direction can also be referred to as the aiming direction. When the player determines the aiming target, the flight direction is adjusted by adjusting the view direction through the sliding operation, so as to be directed to the aiming target, and then a shooting skill is released to the target. The flight direction control and the aiming control operation are combined, the operation is simplified, the game operation is more convenient, and the efficiency of the shooting operation is improved.
[0075] The following embodiments continue to describe other control manners of the virtual aircraft.
[0076] In one manner, a virtual joystick area is displayed in the graphical user interface; the flight speed of the virtual aircraft is increased in response to an upward sliding operation on the virtual joystick area; and the flight speed of the virtual aircraft is decreased in response to a downward sliding operation on the virtual joystick area.
[0077] Figure 5As an example, a virtual joystick region is displayed on the left side of the graphical user interface, and a virtual joystick is arranged in the virtual joystick region; when the virtual joystick is slid upward, the flight speed of the virtual aircraft is increased, and the speed of the virtual aircraft is displayed in the graphical user interface, wherein the shadow area represents the increased speed when the virtual joystick is slid upward, and the increased speed is displayed in the form of text, such as Figure 5 The speed displayed in the figure is 210 kilometers per hour.
[0078] Figure 6 As another example, when the virtual joystick is slid downward, the flight speed of the virtual aircraft is decreased, and the speed of the virtual aircraft is displayed in the graphical user interface, wherein the shadow area represents the decreased speed when the virtual joystick is slid downward, and the decreased speed is displayed in the form of text, such as Figure 6 The speed displayed in the figure is 200 kilometers per hour.
[0079] In addition, the virtual joystick region can also control the change of the flight attitude of the virtual aircraft. Specifically, the virtual joystick region is displayed in the graphical user interface; in response to a right sliding operation on the virtual joystick region, the virtual aircraft is controlled to rotate rightward about the flight direction as the axis; in response to a left sliding operation on the virtual joystick region, the virtual aircraft is controlled to rotate leftward about the flight direction as the axis.
[0080] Figure 7 As an example, when the virtual joystick is slid rightward, the virtual aircraft rotates rightward about the flight direction as the axis, at this time, the right aileron of the virtual aircraft is lowered, and the left aileron is raised; Figure 8 As another example, when the virtual joystick is slid leftward, the virtual aircraft rotates leftward about the flight direction as the axis, at this time, the left aileron of the virtual aircraft is lowered, and the right aileron is raised. It should be noted that when the virtual aircraft rotates about the flight direction as the axis, the direction of the aircraft nose does not change, that is, the flight direction does not change.
[0081] When the wing of the virtual aircraft is out of control due to failure, such as being damaged by being hit by other aircraft, the virtual aircraft cannot maintain balance, and the virtual joystick can be slid left and right to control the virtual aircraft to maintain balance.
[0082] In order to more realistically display the state of the virtual aircraft rotating about the flight direction as the axis, in one way, the virtual aircraft is displayed in the scene picture; in response to a right sliding operation on the virtual joystick region, the aileron of the virtual aircraft is controlled to open to a first angle to control the virtual aircraft to rotate rightward about the flight direction as the axis; in response to a left sliding operation on the virtual joystick region, the aileron of the virtual aircraft is controlled to open to a second angle to control the virtual aircraft to rotate leftward about the flight direction as the axis.
[0083] The model of the virtual aircraft is displayed in the scene picture, and when the virtual joystick is slid leftward or rightward, the opening and closing angle of the aileron flap on the model changes. The opening and closing angle of the aileron flap is related to the rolling angle of the virtual aircraft. Specifically, the opening and closing angle of the flap can be determined according to the physical principle of aerodynamics, according to the leftward or rightward sliding direction and sliding distance of the virtual joystick region, and the like, so as to change the opening and closing angle of the aileron flap on the model of the virtual aircraft.
[0084] In addition, the operation parameter of the sliding operation can control the size of the first angle of aileron opening and closing. For example, the greater the sliding distance, the greater the moving distance of the virtual joystick, and the greater the first angle of aileron opening and closing. Or, after the sliding operation controls the virtual joystick to move to a certain position, the longer the time length of staying at the position, the greater the first angle of aileron opening and closing. Similarly, for the second angle, the operation parameter of the sliding operation can control the size of the second angle of aileron opening and closing. For example, the greater the sliding distance, the greater the moving distance of the virtual joystick, and the greater the second angle of aileron opening and closing. Or, after the sliding operation controls the virtual joystick to move to a certain position, the longer the time length of staying at the position, the greater the second angle of aileron opening and closing.
[0085] Further, as known from the above embodiments, the virtual joystick can be slid upward or downward to control the speed of the virtual aircraft, and the virtual joystick can be slid leftward or rightward to control the virtual aircraft to roll leftward or rightward around the flight direction as the axis. The virtual joystick region can also have other operation modes. Specifically, the graphical user interface displays the virtual joystick region; in response to a sliding operation acting on the virtual joystick region, a moving component of the sliding operation along a first dimension direction is determined, and the speed of the virtual aircraft is adjusted based on the moving component along the first dimension direction; a moving component of the sliding operation along a second dimension direction is determined, and the turning angle of the virtual aircraft around the flight direction as the axis is adjusted based on the moving component along the second dimension direction; wherein the second dimension direction is perpendicular to the first dimension direction.
[0086] In the graphical user interface, the first dimension direction and the second position direction are perpendicular to each other. In specific implementation, the first dimension direction can be the horizontal direction in the graphical user interface, and the second dimension direction can be the vertical direction in the graphical user interface; or the first dimension direction can be the vertical direction in the graphical user interface, and the second dimension direction can be the horizontal direction in the graphical user interface. In the above manner, the first dimension direction is used to control the speed of the virtual aircraft, for example, the first dimension direction is the vertical direction; and the second dimension direction is used to control the turning of the virtual aircraft around the flight direction as the axis, for example, the second dimension direction is the horizontal direction.
[0087] In actual implementation, the virtual joystick can slide in any direction, for example, left upper, left lower, right upper, when the sliding operation has moving components in both the first dimension direction and the second dimension direction, the speed of the virtual aircraft and the rotation around the flight direction can be controlled simultaneously. As an example, the sliding direction of the sliding operation of the virtual joystick area is left upper, at this time, there is a moving component in the vertical direction, thus the virtual aircraft can be controlled to accelerate; meanwhile, there is a moving component in the horizontal direction, thus the virtual aircraft can be controlled to rotate left around the flight direction.
[0088] The above manner can control the speed and flight posture of the virtual aircraft simultaneously, and the control efficiency is improved.
[0089] In other implementation manners, in addition to the virtual joystick area, the speed and posture of the virtual aircraft can also be controlled through other controls. Specifically, the graphical user interface displays an acceleration control and a deceleration control; in response to a trigger operation on the acceleration control, the flight speed of the virtual aircraft is increased; in response to a trigger operation on the deceleration control, the flight speed of the virtual aircraft is decreased.
[0090] The trigger operation can be a click operation, a long press operation, etc. on the acceleration control or the deceleration control. In addition to providing the acceleration control and the deceleration control in the graphical user interface, the acceleration control and the deceleration control can also be provided through other operation devices, for example, in a PC, the acceleration control and the deceleration control are provided through keys on a keyboard, meanwhile, a sliding operation on a scene picture or a preset control is realized through a mouse, so as to control the turning of the virtual aircraft; for another example, in a host game, the acceleration control and the deceleration control are provided through keys in a physical controller, meanwhile, a case for realizing a sliding operation is also provided, so as to control the turning of the virtual aircraft.
[0091] Similarly, the graphical user interface displays a right turning control and a left turning control; in response to a trigger operation on the right turning control, the virtual aircraft is controlled to turn right around the flight direction; in response to a trigger operation on the left turning control, the virtual aircraft is controlled to turn left around the flight direction.
[0092] The trigger operation can be a click operation, a long press operation, etc. on the right turning control or the left turning control. In addition to providing the right turning control and the left turning control in the graphical user interface, the acceleration control and the deceleration control can also be provided through other operation devices, for example, in a PC, the right turning control or the left turning control is provided through a key on a keyboard; for another example, in a host game, the right turning control or the left turning control is provided through a key in a physical controller.
[0093] The control method of the virtual aircraft can combine the steering and aiming operations of the aircraft, thereby simplifying the operation. The method is suitable for a PVP competitive battle play of a hand-held game with an air battle theme. The control operation of the aircraft is more in line with the actual control principle of the aircraft.
[0094] Corresponding to the method embodiment, referring to a structural schematic diagram of a virtual aircraft control device shown in Figure 9 The device includes a terminal device providing a graphical user interface, and the graphical user interface displays at least a three-dimensional game scene and a virtual aircraft in the three-dimensional game scene. The device includes:
[0095] A flight control module 90 is configured to control the virtual aircraft to fly in the three-dimensional game scene in response to a flight instruction.
[0096] A providing module 92 is configured to provide a crosshair, a virtual joystick area, and a view angle control area in the graphical user interface, wherein the crosshair is used to indicate the flight direction of the virtual aircraft.
[0097] A first control module 94 is configured to control the flight attitude and / or flight speed of the virtual aircraft in response to a touch operation on the virtual joystick area.
[0098] A second control module 96 is configured to control the relative rotation of the crosshair and the virtual scene in response to a touch operation on the view angle control area, to adjust the flight direction of the virtual aircraft in the three-dimensional game scene based on the flight attitude and flight speed of the virtual aircraft.
[0099] The virtual aircraft control device is configured to control the virtual aircraft to fly in the three-dimensional game scene in response to a flight instruction, provide a crosshair, a virtual joystick area, and a view angle control area in the graphical user interface, wherein the crosshair is used to indicate the flight direction of the virtual aircraft, control the flight attitude and / or flight speed of the virtual aircraft in response to a touch operation on the virtual joystick area, and control the relative rotation of the crosshair and the virtual scene in response to a touch operation on the view angle control area, to adjust the flight direction of the virtual aircraft in the three-dimensional game scene based on the flight attitude and flight speed of the virtual aircraft. In this way, the attitude and speed of the aircraft are controlled by the virtual joystick, and the flight direction of the virtual aircraft is controlled by the view angle control area. This control method of the aircraft is more in line with the actual control method of the aircraft, is more suitable for competitive flight games, and improves the game experience.
[0100] The second control module is further configured to display a view angle reticle and a direction reticle in the graphical user interface; the view angle reticle is displayed at a first position in the graphical user interface, and is used to indicate a first view angle direction; the direction reticle is used to indicate a flight direction of the virtual aircraft; the flight direction matches the first view angle direction; a scene picture of the three-dimensional game scene is obtained by a virtual camera following the flight direction in the three-dimensional game scene; in response to a sliding operation performed on the view angle control region, the view angle reticle is moved to a second position in the graphical user interface to indicate a second view angle direction; based on the flight attitude and the flight speed of the virtual aircraft, the flight direction is controlled to change to the second view angle direction until the flight direction matches the second view angle direction; during the change of the flight direction, the scene picture captured by the virtual camera changes following the change of the flight direction.
[0101] The second control module is further configured to display the direction reticle in a central region of the graphical user interface; when the flight direction matches the first view angle direction, the view angle reticle is displayed at the first position; the first position has a preset relative position with the direction reticle.
[0102] The second control module is further configured to, when the flight direction matches the first view angle direction, control the center of the reticle of the direction reticle to be displayed in coincidence with the center of the reticle of the view angle reticle.
[0103] The second control module is further configured to, based on the flight attitude and the flight speed of the virtual aircraft, control the flight direction to change to the second view angle direction, and control the scene picture to change following the change of the flight direction, so that the display position of the direction reticle relative to the graphical user interface remains unchanged; in response to the change of the scene picture, the position of the view angle reticle in the graphical user interface is changed; in response to the flight direction matching the second view angle direction, the view angle reticle is displayed at the first position.
[0104] The second control module is further configured to, in response to the change of the scene picture, control the view angle reticle to move towards the direction reticle; during the movement of the view angle reticle, the scene picture content corresponding to the second view angle direction indicated by the view angle reticle remains unchanged.
[0105] The virtual aircraft is preset with a three-dimensional coordinate system; a longitudinal axis of the three-dimensional coordinate system points to the flight direction; a transverse axis of the three-dimensional coordinate system points to a horizontal direction perpendicular to the flight direction; a vertical axis of the three-dimensional coordinate system points to a vertical direction perpendicular to the flight direction; the second control module is further configured to adjust a rotation angle of the virtual aircraft around the transverse axis and / or a rotation angle of the virtual aircraft around the vertical axis, so as to control the flight direction of the virtual aircraft to change to the second view angle direction.
[0106] The virtual aircraft is displayed in the scene picture; the second control module is further configured to control a change in a flap angle of an elevator of the virtual aircraft to adjust a rotation angle of the virtual aircraft around the lateral axis, and control a change in a flap angle of a rudder of the virtual aircraft to adjust the rotation angle of the virtual aircraft around the lateral axis.
[0107] The second control module is further configured to, in a process in which the flight direction changes to the second view direction, control the virtual aircraft to rotate around the flight direction as an axis in response to a rotation control operation on the virtual aircraft around the flight direction as the axis, and increase a change speed of the flight direction.
[0108] The first control module is further configured to, in response to an upward sliding operation on the virtual joystick region, control the virtual aircraft to increase a flight speed, and in response to a downward sliding operation on the virtual joystick region, control the virtual aircraft to decrease the flight speed.
[0109] The first control module is further configured to, in response to a rightward sliding operation on the virtual joystick region, control the virtual aircraft to rotate rightward around the flight direction as an axis, and in response to a leftward sliding operation on the virtual joystick region, control the virtual aircraft to rotate leftward around the flight direction as the axis.
[0110] The virtual aircraft is displayed in the scene picture; the first control module is further configured to, in response to a rightward sliding operation on the virtual joystick region, control ailerons of the virtual aircraft to open to a first angle to control the virtual aircraft to rotate rightward around the flight direction as an axis, and in response to a leftward sliding operation on the virtual joystick region, control the ailerons of the virtual aircraft to open to a second angle to control the virtual aircraft to rotate leftward around the flight direction as the axis.
[0111] The first control module is further configured to, in response to the sliding operation on the virtual joystick region, determine a movement component of the sliding operation along a first dimension direction, adjust a speed of the virtual aircraft based on the movement component along the first dimension direction, determine a movement component of the sliding operation along a second dimension direction, and adjust a rotation angle of the virtual aircraft around the flight direction as an axis based on the movement component along the second dimension direction, wherein the second dimension direction is perpendicular to the first dimension direction.
[0112] The apparatus further includes a shooting module configured to, in response to a shooting trigger operation, control the virtual aircraft to release a shooting skill in the flight direction.
[0113] The embodiment further provides an electronic device including a processor and a memory, the memory storing machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the control method of the virtual aircraft. The electronic device can be a server or a touch terminal device.
[0114] Referring to Figure 10 As shown in the figure, the electronic device includes a processor 100 and a memory 101 storing machine executable instructions executable by the processor 100, and the processor 100 executes the machine executable instructions to implement the control method of the virtual aircraft described above.
[0115] Further, Figure 10 The electronic device shown also includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected through the bus 102.
[0116] Wherein, the memory 101 can contain a high-speed random access memory (RAM, Random Access Memory), and can also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 10 Only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0117] The processor 100 can be an integrated circuit chip with processing capability. In implementation, the steps of the above method can be completed by integrated logic circuits or instructions in the form of software in the processor 100. The processor 100 described above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software modules in the code processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101, and combines the hardware to complete the steps of the method of the above embodiments.
[0118] The processor in the above electronic device can implement the following operations in the control method of the virtual aircraft by executing machine executable instructions:
[0119] A graphical user interface is provided by the terminal device, and the content displayed by the graphical user interface includes at least a three-dimensional game scene and a virtual aircraft located in the three-dimensional game scene. In response to a flight instruction, the virtual aircraft is controlled to fly in the three-dimensional game scene. A crosshair, a virtual joystick area and a perspective control area are provided in the graphical user interface, wherein the crosshair is used to indicate the flight direction of the virtual aircraft. In response to a touch operation on the virtual joystick area, the flight attitude and / or flight speed of the virtual aircraft when flying are controlled according to the touch operation. In response to a touch operation on the perspective control area, the flight direction of the virtual aircraft in the three-dimensional game scene is adjusted based on the flight attitude and flight speed of the virtual aircraft.
[0120] displaying a view angle reticle and a direction reticle in the graphical user interface; wherein the view angle reticle is displayed at a first position in the graphical user interface to indicate a first view angle direction; the direction reticle is used to indicate a flight direction of the virtual aircraft; the flight direction matches the first view angle direction; a scene picture of the three-dimensional game scene is obtained by a virtual camera following the flight direction to take pictures in the three-dimensional game scene; in response to a sliding operation on the view angle control region, the view angle reticle is controlled to move to a second position in the graphical user interface to indicate a second view angle direction; based on the flight attitude and the flight speed of the virtual aircraft, the flight direction is controlled to change to the second view angle direction until the flight direction matches the second view angle direction; wherein during the flight direction change process, the scene picture taken by the virtual camera changes following the change of the flight direction.
[0121] displaying the direction reticle in a central region of the graphical user interface; determining that the flight direction matches the first view angle direction, and controlling the view angle reticle to be displayed at the first position; the first position has a preset relative position with the direction reticle.
[0122] determining that the flight direction matches the first view angle direction, and controlling the center of the reticle of the direction reticle to coincide with the center of the reticle of the view angle reticle.
[0123] based on the flight attitude and the flight speed of the virtual aircraft, controlling the flight direction to change to the second view angle direction, and controlling the scene picture to change following the change of the flight direction, so that the display position of the direction reticle relative to the graphical user interface remains unchanged; in response to the change of the scene picture, controlling the position of the view angle reticle in the graphical user interface to change; in response to the flight direction matching the second view angle direction, controlling the view angle reticle to be displayed at the first position.
[0124] in response to the change of the scene picture, controlling the view angle reticle to move towards the direction reticle; wherein during the movement of the view angle reticle, the scene picture content corresponding to the second view angle direction indicated by the view angle reticle remains unchanged.
[0125] the virtual aircraft is preset with a three-dimensional coordinate system; the longitudinal axis of the three-dimensional coordinate system points to the flight direction; the transverse axis of the three-dimensional coordinate system points to a horizontal direction perpendicular to the flight direction; the vertical axis of the three-dimensional coordinate system points to a vertical direction perpendicular to the flight direction; the rotation angle of the virtual aircraft around the transverse axis and / or the rotation angle of the virtual aircraft around the vertical axis are adjusted to control the flight direction of the virtual aircraft to change to the second view angle direction.
[0126] the virtual aircraft is displayed in the scene picture; the flap angle of the elevator of the virtual aircraft is controlled to change to adjust the rotation angle of the virtual aircraft around the transverse axis; the flap angle of the rudder of the virtual aircraft is controlled to change to adjust the rotation angle of the virtual aircraft around the transverse axis.
[0127] In the process of changing the flight direction to the second view direction, the virtual aircraft is controlled to rotate around the flight direction in response to a rotation control operation on the virtual aircraft around the flight direction, so as to increase the change speed of the flight direction.
[0128] The flight speed of the virtual aircraft is increased in response to an upward sliding operation on the virtual joystick region, and the flight speed of the virtual aircraft is decreased in response to a downward sliding operation on the virtual joystick region.
[0129] The virtual aircraft is controlled to rotate right around the flight direction in response to a right sliding operation on the virtual joystick region, and the virtual aircraft is controlled to rotate left around the flight direction in response to a left sliding operation on the virtual joystick region.
[0130] The virtual aircraft is displayed in the scene picture, and the aileron of the virtual aircraft is controlled to open to a first angle in response to a right sliding operation on the virtual joystick region, so as to control the virtual aircraft to rotate right around the flight direction, and the aileron of the virtual aircraft is controlled to open to a second angle in response to a left sliding operation on the virtual joystick region, so as to control the virtual aircraft to rotate left around the flight direction.
[0131] In response to a sliding operation on the virtual joystick region, a movement component of the sliding operation along a first dimension direction is determined, the speed of the virtual aircraft is adjusted based on the movement component along the first dimension direction, a movement component of the sliding operation along a second dimension direction is determined, and the rotation angle of the virtual aircraft around the flight direction is adjusted based on the movement component along the second dimension direction, wherein the second dimension direction is perpendicular to the first dimension direction.
[0132] The virtual aircraft is controlled to release a shooting skill in the flight direction in response to a shooting trigger operation.
[0133] In the above manner, the flight direction of the aircraft is controlled by the view crosshair and the direction crosshair, so that the accuracy of the flight direction control can be improved, and the flight direction is guided and controlled by the view direction, which is more consistent with the real control mode of the aircraft and is more suitable for competitive flight games, thereby improving the game experience.
[0134] The embodiment also provides a machine readable storage medium, which stores machine executable instructions, and the machine executable instructions cause the processor to implement the control method of the virtual aircraft when the machine executable instructions are called and executed by the processor.
[0135] The machine executable instructions stored in the machine readable storage medium are executed to implement the following operations in the control method of the virtual aircraft.
[0136] A graphical user interface is provided by the terminal device, and the content displayed by the graphical user interface includes at least a three-dimensional game scene and a virtual aircraft located in the three-dimensional game scene. The virtual aircraft is controlled to fly in the three-dimensional game scene in response to flight instructions. The graphical user interface provides a crosshair, a virtual joystick area, and a view angle control area. The crosshair is used to indicate the flight direction of the virtual aircraft. In response to a touch operation on the virtual joystick area, the flight attitude and / or flight speed of the virtual aircraft when flying are controlled according to the touch operation. In response to a touch operation on the view angle control area, the flight direction of the virtual aircraft in the three-dimensional game scene is adjusted based on the flight attitude and flight speed of the virtual aircraft.
[0137] The view angle crosshair and the direction crosshair are displayed in the graphical user interface. The view angle crosshair is displayed at a first position in the graphical user interface and is used to indicate a first view angle direction. The direction crosshair is used to indicate the flight direction of the virtual aircraft. The flight direction matches the first view angle direction. The scene picture of the three-dimensional game scene is obtained by a virtual camera following the flight direction to take pictures in the three-dimensional game scene. In response to a sliding operation on the view angle control area, the view angle crosshair is controlled to move to a second position in the graphical user interface to indicate a second view angle direction. Based on the flight attitude and flight speed of the virtual aircraft, the flight direction is controlled to change to the second view angle direction until the flight direction matches the second view angle direction. During the change of the flight direction, the scene picture taken by the virtual camera changes following the change of the flight direction.
[0138] The direction crosshair is displayed in the center area of the graphical user interface. When the flight direction matches the first view angle direction, the view angle crosshair is controlled to be displayed at the first position. The first position has a preset relative position with the direction crosshair.
[0139] When the flight direction matches the first view angle direction, the crosshair center of the direction crosshair is controlled to be displayed in coincidence with the crosshair center of the view angle crosshair.
[0140] Based on the flight attitude and flight speed of the virtual aircraft, the flight direction is controlled to change to the second view angle direction, and the scene picture is controlled to change following the change of the flight direction, so that the display position of the direction crosshair relative to the graphical user interface remains unchanged. In response to the change of the scene picture, the position of the view angle crosshair in the graphical user interface changes. In response to the flight direction matching the second view angle direction, the view angle crosshair is controlled to be displayed at the first position.
[0141] In response to the change of the scene picture, the view angle crosshair is controlled to move to the direction crosshair. During the movement of the view angle crosshair, the scene picture content corresponding to the second view angle direction indicated by the view angle crosshair remains unchanged.
[0142] The virtual aircraft is preset with a three-dimensional coordinate system; a longitudinal axis of the three-dimensional coordinate system points to a flight direction; a lateral axis of the three-dimensional coordinate system points to a horizontal direction perpendicular to the flight direction; a vertical axis of the three-dimensional coordinate system points to a vertical direction perpendicular to the flight direction; and a rotation angle of the virtual aircraft around the lateral axis and / or a rotation angle of the virtual aircraft around the vertical axis are adjusted to control the flight direction of the virtual aircraft to change to a second view direction.
[0143] The virtual aircraft is displayed in the scene picture; a flap angle of an elevator of the virtual aircraft is controlled to change to adjust the rotation angle of the virtual aircraft around the lateral axis; and a flap angle of a rudder of the virtual aircraft is controlled to change to adjust the rotation angle of the virtual aircraft around the lateral axis.
[0144] During the change of the flight direction to the second view direction, the virtual aircraft is controlled to rotate around the flight direction in response to a rotation control operation for the virtual aircraft around the flight direction to increase a change speed of the flight direction.
[0145] The flight speed of the virtual aircraft is controlled to increase in response to an upward sliding operation on the virtual joystick area; and the flight speed of the virtual aircraft is controlled to decrease in response to a downward sliding operation on the virtual joystick area.
[0146] The virtual aircraft is controlled to rotate right around the flight direction in response to a right sliding operation on the virtual joystick area; and the virtual aircraft is controlled to rotate left around the flight direction in response to a left sliding operation on the virtual joystick area.
[0147] The virtual aircraft is displayed in the scene picture; the aileron of the virtual aircraft is controlled to open to a first angle in response to a right sliding operation on the virtual joystick area to control the virtual aircraft to rotate right around the flight direction; and the aileron of the virtual aircraft is controlled to open to a second angle in response to a left sliding operation on the virtual joystick area to control the virtual aircraft to rotate left around the flight direction.
[0148] In response to a sliding operation on the virtual joystick area, a movement component of the sliding operation along a first dimension direction is determined, and a speed of the virtual aircraft is adjusted based on the movement component along the first dimension direction; a movement component of the sliding operation along a second dimension direction is determined, and a rotation angle of the virtual aircraft around the flight direction is adjusted based on the movement component along the second dimension direction; and the second dimension direction is perpendicular to the first dimension direction.
[0149] The virtual aircraft is controlled to release a shooting skill in the flight direction in response to a shooting trigger operation.
[0150] In the above manner, the flight direction of the aircraft is controlled through the visual angle aiming mark and the direction aiming mark, so that the accuracy of the flight direction control can be improved, and the flight direction is guided and controlled by the visual angle direction, which is more in line with the actual control mode of the aircraft and is more suitable for competitive flight games, thereby improving the game experience.
[0151] The computer program product of the virtual aircraft control method, device and system provided by the embodiment of the application includes a computer readable storage medium storing program codes, the program codes include instructions for executing the method described in the foregoing method embodiments, and specific implementation can be referred to the method embodiments, which will not be described here.
[0152] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0153] In addition, in the description of the embodiment of the application, unless otherwise explicitly specified and limited, the terms "mounting", "connection" and "connection" should be understood in a broad sense, for example, can be fixedly connected, can be detachably connected, or integrally connected; can be mechanically connected, or electrically connected; can be directly connected, or indirectly connected through an intermediate medium; can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the application can be understood according to the specific circumstances.
[0154] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the application or the part of the application that essentially contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various storage medium that can store program codes.
[0155] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicate the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.
[0156] Finally, it should be noted that the above embodiments are only specific embodiments of the present application, which are used to illustrate the technical solutions of the present application, and are not limiting. The protection scope of the present application is not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily think of changes to the technical solutions recorded in the foregoing embodiments within the technical range disclosed by the present application, or make equivalent replacements to some technical features; and these modifications, changes or replacements do not cause the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A control method of a virtual aircraft, characterized by, The method comprises the following steps: providing a graphic user interface by a terminal device, the graphic user interface displays at least a three-dimensional game scene and a virtual aircraft located in the three-dimensional game scene, the method comprises the following steps: controlling the virtual aircraft to fly in the three-dimensional game scene in response to flight instructions; providing a crosshair, a virtual joystick area and a view angle control area in the graphic user interface, wherein the crosshair is used to indicate the flight direction of the virtual aircraft; controlling the flight attitude and / or flight speed of the virtual aircraft in response to a touch operation on the virtual joystick area; displaying a view angle crosshair and a direction crosshair in the graphic user interface; wherein the view angle crosshair is displayed at a first position in the graphic user interface, and is used to indicate a first view angle direction; the direction crosshair is used to indicate the flight direction of the virtual aircraft; the flight direction matches the first view angle direction; the scene picture of the three-dimensional game scene is obtained by a virtual camera following the flight direction to take pictures in the three-dimensional game scene; controlling the view angle crosshair to move to a second position in the graphic user interface to indicate a second view angle direction in response to a sliding operation on the view angle control area; 2. The method of claim 1, wherein, controlling the flight direction to change to the second view angle direction based on the flight attitude and flight speed of the virtual aircraft until the flight direction matches the second view angle direction; wherein during the change of the flight direction, the scene picture taken by the virtual camera changes following the change of the flight direction. The step of displaying the view angle crosshair and the direction crosshair in the graphic user interface comprises the following steps: displaying the direction crosshair in a central area of the graphic user interface; 3. The method of claim 2, wherein, controlling the view angle crosshair to be displayed at the first position when the flight direction matches the first view angle direction; the first position has a preset relative position with the direction crosshair. The step of controlling the view angle crosshair to be displayed at the first position when the flight direction matches the first view angle direction comprises the following steps:
4. The method of claim 1, wherein, controlling the crosshair center of the direction crosshair to coincide with the crosshair center of the view angle crosshair when the flight direction matches the first view angle direction. The step of controlling the flight direction to change to the second view angle direction based on the flight attitude and flight speed of the virtual aircraft until the flight direction matches the second view angle direction comprises the following steps: controlling the flight direction to change to the second view angle direction based on the flight attitude and flight speed of the virtual aircraft, and controlling the scene picture to change following the change of the flight direction, so that the display position of the direction crosshair relative to the graphic user interface remains unchanged; controlling the position of the view angle crosshair in the graphic user interface to change in response to the change of the scene picture; 5. The method of claim 4, wherein, controlling the view angle crosshair to be displayed at the first position in response to the flight direction matching the second view angle direction. The step of controlling the position of the view angle crosshair in the graphic user interface to change in response to the change of the scene picture comprises the following steps: In response to the change of the scene picture, the view angle cursor is controlled to move to the direction cursor; wherein, during the movement of the view angle cursor, the scene picture content corresponding to the second view angle direction indicated by the view angle cursor is unchanged.
6. The method of claim 1, wherein, The virtual aircraft is preset with a three-dimensional coordinate system; a longitudinal axis of the three-dimensional coordinate system points to the flight direction; a transverse axis of the three-dimensional coordinate system points to a horizontal direction perpendicular to the flight direction; and a vertical axis of the three-dimensional coordinate system points to a vertical direction perpendicular to the flight direction; The step of controlling the flight direction to change to the second view angle direction comprises: adjusting a rotation angle of the virtual aircraft around the transverse axis and / or a rotation angle of the virtual aircraft around the vertical axis to control the flight direction of the virtual aircraft to change to the second view angle direction.
7. The method of claim 6, wherein, The virtual aircraft is displayed in the scene picture; The step of adjusting the rotation angle of the virtual aircraft around the transverse axis and the rotation angle of the virtual aircraft around the vertical axis to control the flight direction of the virtual aircraft to change to the second view angle direction comprises: controlling a flap angle of an elevator of the virtual aircraft to change to adjust the rotation angle of the virtual aircraft around the transverse axis; controlling a flap angle of a rudder of the virtual aircraft to change to adjust the rotation angle of the virtual aircraft around the transverse axis.
8. The method of claim 1, wherein, The step of controlling the flight direction to change to the second view angle direction comprises: during the change of the flight direction to the second view angle direction, in response to a rotation control operation for the virtual aircraft with the flight direction as an axis, the virtual aircraft is controlled to rotate with the flight direction as the axis to increase the change speed of the flight direction.
9. The method of claim 1, wherein, In response to the touch operation on the virtual joystick area, the step of controlling the flight speed of the virtual aircraft during flight according to the touch operation comprises: in response to an upward sliding operation on the virtual joystick area, the flight speed of the virtual aircraft is controlled to increase; in response to a downward sliding operation on the virtual joystick area, the flight speed of the virtual aircraft is controlled to decrease.
10. The method of claim 1, wherein, In response to the touch operation on the virtual joystick area, the step of controlling the flight attitude of the virtual aircraft during flight according to the touch operation comprises: in response to a rightward sliding operation on the virtual joystick area, the virtual aircraft is controlled to rotate rightward with the flight direction as an axis; in response to a leftward sliding operation on the virtual joystick area, the virtual aircraft is controlled to rotate leftward with the flight direction as an axis.
11. The method of claim 10, wherein, The virtual aircraft is displayed in the scene picture; The step of controlling the virtual aircraft to rotate rightward with the flight direction as an axis in response to the rightward sliding operation on the virtual joystick area comprises: in response to the rightward sliding operation on the virtual joystick area, ailerons of the virtual aircraft are controlled to open to a first angle to control the virtual aircraft to rotate rightward with the flight direction as an axis. The step of controlling the virtual aircraft to rotate left around the flight direction as an axis in response to the left sliding operation on the virtual joystick area includes: controlling aileron of the virtual aircraft to open or close to a second angle in response to the left sliding operation on the virtual joystick area, so as to control the virtual aircraft to rotate left around the flight direction as an axis.
12. The method of claim 1, wherein, The step of controlling the flight attitude and the flight speed of the virtual aircraft in response to the touch operation on the virtual joystick area includes: In response to the sliding operation on the virtual joystick area, determining a movement component of the sliding operation along a first dimension direction, and adjusting the speed of the virtual aircraft based on the movement component along the first dimension direction; Determining a movement component of the sliding operation along a second dimension direction, and adjusting the rotation angle of the virtual aircraft around the flight direction as an axis based on the movement component along the second dimension direction; wherein the second dimension direction is perpendicular to the first dimension direction.
13. The method of claim 1, wherein, The method further includes: in response to a shooting trigger operation, controlling the virtual aircraft to release a shooting skill in the flight direction.
14. A control device for a virtual aircraft, characterized in that A terminal device provides a graphical user interface, and the graphical user interface displays at least a three-dimensional game scene and a virtual aircraft in the three-dimensional game scene. The device includes: A flight control module configured to control the virtual aircraft to fly in the three-dimensional game scene in response to a flight instruction; A providing module configured to provide a reticle, a virtual joystick area, and a view control area on the graphical user interface, wherein the reticle is used to indicate a flight direction of the virtual aircraft; A first control module configured to control a flight attitude and / or a flight speed of the virtual aircraft in response to a touch operation on the virtual joystick area; A display module configured to display a view reticle and a direction reticle on the graphical user interface; wherein the view reticle is displayed at a first position on the graphical user interface and is used to indicate a first view direction; the direction reticle is used to indicate the flight direction of the virtual aircraft; the flight direction matches the first view direction; and a scene picture of the three-dimensional game scene is obtained by a virtual camera following the flight direction in the three-dimensional game scene; A second control module configured to control the view reticle to move to a second position on the graphical user interface in response to a sliding operation on the view control area, so as to indicate a second view direction; A third control module configured to control the flight direction to change to the second view direction based on the flight attitude and the flight speed of the virtual aircraft, until the flight direction matches the second view direction; wherein during the change of the flight direction, the scene picture captured by the virtual camera changes with the change of the flight direction.
15. An electronic device, comprising: A processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of controlling a virtual aircraft of any one of claims 1-13.
16. A machine-readable storage medium, characterized in that, The machine readable storage medium stores machine executable instructions that, when called and executed by a processor, cause the processor to implement the method of controlling a virtual aircraft of any one of claims 1-13.
Citation Information
Patent Citations
Game control method and device and electronic equipment
CN111760275A