Game control method, device and equipment and computer readable storage medium
By displaying the first game screen in a virtual environment and responding to the movement control operation, the problem of insufficient flexibility in the take-off and movement control of the virtual aircraft is solved, and efficient game control and a better player experience are achieved.
Patent Information
- Application Number
- CN202311321546.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2025-04-15
AI Technical Summary
The prior art is difficult to effectively control the takeoff and movement of virtual aircraft in a virtual environment, and lacks flexible game control methods.
By displaying the first game screen, the virtual aircraft takes off in response to the trigger operation of the takeoff function, and when the movement control operation is detected, the virtual aircraft and the virtual objects are controlled to move in the virtual environment.
It realizes flexible control of virtual aircraft, improves the flexibility and operation efficiency of game control, and enhances the player's game immersion and experience.
Smart Images

Figure CN119818958A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a game control method, device, equipment, and computer-readable storage medium. Background Art
[0002] With the continuous development of computer technology, more and more types of games can be played on terminals, and the content and functions of games are gradually enriched. Virtual aircraft with flying functions have appeared in games, such as drones, helicopters, controlled gunboats, fighter jets, hot air balloons, etc.
[0003] Therefore, a game control method is needed to control the virtual aircraft. Summary of the invention
[0004] The embodiments of the present application provide a game control method, device, equipment and computer-readable storage medium, which can be used to control a virtual aircraft. The technical solution is as follows:
[0005] On the one hand, an embodiment of the present application provides a game control method, the method comprising:
[0006] Displaying a first game screen, the first game screen including a virtual object in a virtual environment, the virtual object holding a virtual aircraft;
[0007] In response to a trigger operation of a take-off function, controlling the virtual aircraft to take off in the virtual environment;
[0008] When a first movement control operation is detected, the virtual aircraft is controlled to move in the virtual environment based on the first movement control operation; when a second movement control operation is detected, the virtual object is controlled to move in the virtual environment based on the second movement control operation.
[0009] On the other hand, an embodiment of the present application provides a game control device, the device comprising:
[0010] A display module, configured to display a first game screen, wherein the first game screen includes a virtual object in a virtual environment, wherein the virtual object holds a virtual aircraft;
[0011] A control module, configured to control the virtual aircraft to take off in the virtual environment in response to a trigger operation of a take-off function;
[0012] The control module is also used to control the virtual aircraft to move in the virtual environment based on the first movement control operation when a first movement control operation is detected, and to control the virtual object to move in the virtual environment based on the second movement control operation when a second movement control operation is detected.
[0013] In one possible implementation, the display module is used to display a second game screen, the second game screen includes the virtual object located in the virtual environment, the virtual object holds a virtual prop, and the virtual prop is different from the virtual aircraft; in response to a triggering operation of a switching function, the virtual prop held by the virtual object is switched to the virtual aircraft; and the first game screen is displayed.
[0014] In one possible implementation, the display module is used to display a reference page in response to a trigger operation of a switching function, wherein the reference page displays information of at least one optional aircraft; and in response to a trigger operation for the information of the virtual aircraft, switch the virtual props held by the virtual object to the virtual aircraft, wherein the virtual aircraft is any optional aircraft among the at least one optional aircraft.
[0015] In a possible implementation, the display module is configured to, in response to a triggering operation on the information of the virtual aircraft and the virtual aircraft meets take-off requirements, switch the virtual props held by the virtual object to the virtual aircraft.
[0016] In a possible implementation, the virtual aircraft meeting the take-off requirements includes at least one of the following: the virtual aircraft is in an available opportunity; the number of times the virtual aircraft has taken off is less than a threshold value for the number of take-offs of the virtual aircraft; and the virtual object has the authority to control the virtual aircraft.
[0017] In one possible implementation, the control module is used to, when a first mobile control operation is detected and the flight time of the virtual aircraft is less than the flight time of the virtual aircraft, determine an operation distance based on the operation time of the first mobile control operation; and control the virtual aircraft to move the operation distance in the virtual environment.
[0018] In a possible implementation, the control module is used to obtain the moving speed of the virtual aircraft; and determine the operating distance according to the moving speed of the virtual aircraft and the operating duration.
[0019] In one possible implementation, the control module is used to control the virtual aircraft to move toward the target direction based on the trigger operation of the take-off function being a long press operation on the take-off control, and on the basis of the long press operation on the take-off control, when a first movement control operation is detected; and to control the virtual aircraft to move toward the target direction based on the trigger operation of the take-off function being a click operation on the take-off control, within a target time length after the click operation on the take-off control, when a first movement control operation is detected.
[0020] In one possible implementation, the control module is further used to control the virtual aircraft to enter an automatic cruise state based on the triggering operation of the take-off function being a long press operation on the take-off control, in response to the long press operation on the take-off control ending and the flight time of the virtual aircraft being less than the flight time of the virtual aircraft; and to control the virtual aircraft to enter an automatic cruise state based on the triggering operation of the take-off function being a click operation on the take-off control, in response to the first movement control operation not being detected within a target time after the click operation on the take-off control and the flight time of the virtual aircraft being less than the flight time of the virtual aircraft.
[0021] In a possible implementation, the control module is further used to control the virtual aircraft to throw virtual throwing objects, or to control the virtual aircraft to explode, in response to a trigger operation of an activation function and when the flight time of the virtual aircraft is less than the flight time of the virtual aircraft.
[0022] In one possible implementation, the control module is further used to control the virtual aircraft to throw virtual throwing objects, or to control the virtual aircraft to explode in response to a trigger operation of an activation function, and when the flight time of the virtual aircraft is less than the flight time of the virtual aircraft.
[0023] In one possible implementation, based on the virtual aircraft taking off in the virtual environment, a flight time bar of the virtual aircraft is also displayed in the first game screen, and the flight time bar of the virtual aircraft includes at least one of the available flight time of the virtual aircraft and the remaining flight time of the virtual aircraft. The available flight time of the virtual aircraft and the remaining flight time of the virtual aircraft are displayed differently in the flight time bar of the virtual aircraft.
[0024] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the computer device implements any of the above-mentioned game control methods.
[0025] On the other hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor so that a computer implements any of the above-mentioned game control methods.
[0026] On the other hand, a computer program or a computer program product is also provided, wherein at least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor so that the computer implements any of the above-mentioned game control methods.
[0027] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0028] The technical solution provided by the embodiment of the present application controls the virtual aircraft held by the virtual object included in the first game screen to take off in the virtual environment through the trigger operation of the take-off function. After the virtual aircraft takes off, when the first movement control operation is detected, the virtual aircraft can be controlled to move in the virtual environment, and when the second movement control operation is detected, the virtual object can be controlled to move in the virtual environment. After the virtual aircraft takes off, this method can control not only the virtual aircraft but also the virtual object, so that the flexibility of game control is high and the operation efficiency of game control is high.
[0029] In addition, after the virtual aircraft takes off in the virtual environment, the player can control the virtual object while controlling the virtual aircraft, so that the player can perceive the virtual object and the information around the virtual object, and then reduce the probability of the virtual object being in danger by controlling the virtual object, and reduce the probability of the virtual object being knocked down by virtual objects controlled by other players, thereby improving the player's game immersion and improving the player's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0031] Figure 1It is a schematic diagram of an implementation environment of a game control method provided in an embodiment of the present application;
[0032] Figure 2 is a flow chart of a game control method provided by an embodiment of the present application;
[0033] Figure 3 is a schematic diagram of displaying a second game screen provided in an embodiment of the present application;
[0034] Figure 4 is a display schematic diagram of a reference page provided in an embodiment of the present application;
[0035] Figure 5 is a display schematic diagram of a first game screen provided by an embodiment of the present application;
[0036] Figure 6 is another schematic diagram of displaying a first game screen provided in an embodiment of the present application;
[0037] Figure 7 is another schematic diagram of displaying a first game screen provided in an embodiment of the present application;
[0038] Figure 8 is a schematic diagram of a game control method provided in an embodiment of the present application;
[0039] Fig. 9 is a flow chart of a game control method provided by an embodiment of the present application;
[0040] Fig.10 is a structural schematic diagram of a game control device provided in an embodiment of the present application;
[0041] Fig.11 It is a structural diagram of a terminal device provided in an embodiment of the present application;
[0042] Fig.12 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0044] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0045] First, the abbreviations and key terms involved in the embodiments of the present application are defined.
[0046] Virtual environment: refers to the environment provided (or displayed) when the application is running on the terminal device. The virtual environment refers to the environment created for virtual objects to carry out activities. The virtual environment can be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment. The virtual environment can be a simulation environment of the real world, a semi-simulation environment of the real world, or a purely fictional environment. Exemplarily, the virtual environment involved in the embodiments of the present application is a three-dimensional virtual environment.
[0047] Virtual object: refers to an object that can be moved in a virtual environment. The object can be a virtual person, a virtual animal, an anime character, etc. Players can manipulate virtual objects through external components or by clicking on a touch screen. Each virtual object has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment. For example, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional model created based on animation skeleton technology.
[0048] Third-person perspective: refers to the position of the in-game camera at a certain distance behind the virtual object controlled by the player. The player's controlled virtual object and all elements in the surrounding environment can be seen in the virtual environment.
[0049] First-person perspective: The game is played from the player's subjective perspective.
[0050] Figure 1 is a schematic diagram of an implementation environment of a game control method provided in an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes: a terminal device 101 and a server 102 .
[0051] Among them, a game client capable of providing a virtual environment is installed and running in the terminal device 101, and the terminal device 101 is used to execute the game control method provided in the embodiment of the present application.
[0052] Exemplarily, the game client that can provide a virtual environment can be a third-person shooting (TPS) game, a first-person shooting (FPS) game, a multiplayer online tactical competitive (MOBA) game, a multiplayer shooting survival game, a massively multiplayer online role-playing game (MMO), an action role-playing game (ARPG), a virtual reality (VR) client, an augmented reality (AR) client, a three-dimensional map program, a map simulation program, a social client, an interactive entertainment client, etc.
[0053] The server 102 is used to provide background services for the game client that can provide a virtual environment installed on the terminal device 101. In a possible implementation, the server 102 undertakes the main computing work, and the terminal device 101 undertakes the secondary computing work. Alternatively, the server 102 undertakes the secondary computing work, and the terminal device 101 undertakes the main computing work. Alternatively, the terminal device 101 and the server 102 use a distributed computing architecture for collaborative computing.
[0054] Optionally, the terminal device 101 may be any electronic device product that can perform human-computer interaction with a user through one or more methods such as a keyboard, a touchpad, a remote controller, voice interaction, or a handwriting device. For example, the terminal device 101 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a PC (Personal Computer), a mobile phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a smart car machine, a smart TV, etc.
[0055] The terminal device 101 may generally refer to one of a plurality of terminal devices, and this embodiment is only illustrated by taking the terminal device 101 as an example. Those skilled in the art may know that the number of the terminal devices 101 may be more or less. For example, the terminal device 101 may be only one, or the terminal devices 101 may be dozens or hundreds, or more. The embodiment of the present application does not limit the number and device type of the terminal devices 101.
[0056] The server 102 is a single server, or a server cluster consisting of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in the embodiments of the present application. The server 102 is directly or indirectly connected to the terminal device 101 via a wired or wireless communication method. The server 102 has a data receiving function, a data processing function, and a data sending function. Of course, the server 102 may also have other functions, which are not limited in the embodiments of the present application.
[0057] Those skilled in the art should understand that the above-mentioned terminal device 101 and server 102 are only for illustration, and other existing or future terminal devices or servers, if applicable to the present application, should also be included in the scope of protection of the present application and are included here by reference.
[0058] The present application embodiment provides a game control method, which can be applied to the above Figure 1 The implementation environment shown is Figure 2 As an example, the flowchart of a game control method provided in the embodiment of the present application is shown in FIG. Figure 1 The terminal device 101 in the embodiment is executed. Figure 2 As shown, the method includes the following steps 201 to 203.
[0059] In step 201, a first game screen is displayed, the first game screen including a virtual object located in a virtual environment, and the virtual object holds a virtual aircraft.
[0060] In an exemplary embodiment of the present application, a game client capable of providing a virtual environment is installed and run in the terminal device, and the game client can be any type of game client, which is not limited in the embodiment of the present application. The game client can be a game client from a first-person perspective, or a game client from a third-person perspective. The game client can be a game client based on frame synchronization, that is, the game control method provided in the embodiment of the present application can be applied to a game client based on frame synchronization.
[0061] The relevant information of the game client is displayed in the display interface of the terminal device. The relevant information of the game client can be an icon of the game client, or a name of the game client, or other information that can uniquely represent the game client, which is not limited in the embodiments of the present application. When the user wants to run the game client, the user selects the relevant information of the game client. The relevant information of the game client selected by the user can be the relevant information of the game client clicked by the user, or the relevant information of the game client selected in other ways, which is not limited in the embodiments of the present application.
[0062] The user selects the relevant information of the game client, the terminal device receives a trigger operation for the relevant information of the game client, and in response to the trigger operation for the relevant information of the game client, displays a second game screen, which includes a virtual object located in a virtual environment. The virtual object holds virtual props, and the virtual props are different from the virtual aircraft.
[0063] The virtual object is an object controlled by the user in the game client, the virtual prop can be a virtual gun, a virtual stick, or a virtual prop, the virtual aircraft can be a virtual drone, or an object capable of cruising, which is not limited in the present application embodiment. The virtual object holding the virtual prop can be the virtual object holding the virtual prop in its hand.
[0064] like Figure 3 is a schematic diagram of displaying a second game screen provided by an embodiment of the present application. Figure 3 The second game screen shown shows a virtual object 301 , which holds a virtual prop 302 .
[0065] Optionally, a switching control is displayed in the second game screen, and the switching control is used to switch the virtual props held by the virtual object to a virtual aircraft. Figure 3 The control 303 in is a switching control.
[0066] When the user wants to switch the virtual prop held by the virtual object to a virtual aircraft, the user clicks the switch control, and in response to the triggering operation of the switch function, the virtual prop held by the virtual object is switched to the virtual aircraft; the second game screen is canceled, and the first game screen is displayed, the first game screen includes a virtual object in a virtual environment, and the virtual object holds the virtual aircraft. The virtual object holding the virtual aircraft indicates that the virtual aircraft enters a pre-takeoff state, and the virtual object holding the virtual aircraft may be the virtual object holding the virtual aircraft in its hand.
[0067] In one possible implementation, in response to a trigger operation of a switching function, a process of switching a virtual prop held by a virtual object to a virtual aircraft includes: in response to a trigger operation of the switching function, displaying a reference page, wherein information of at least one optional aircraft is displayed on the reference page; in response to a trigger operation for the information of the virtual aircraft, switching the virtual prop held by the virtual object to a virtual aircraft, wherein the virtual aircraft is any one of at least one optional aircraft.
[0068] The information of the optional aircraft includes but is not limited to the name of the optional aircraft and the picture of the optional aircraft. The reference page can be displayed on the second game screen in an overlapping manner or can be displayed separately. The embodiment of the present application does not limit the display mode of the reference page. The triggering operation for the information of the virtual aircraft can be a click operation for the information of the virtual aircraft.
[0069] like Figure 4 is a display diagram of a reference page provided by an embodiment of the present application. Figure 4 The reference page shown shows information about two optional aircraft. The name of the first optional aircraft is aircraft 1, and the picture of the first optional aircraft is the picture indicated by 401. The name of the second optional aircraft is aircraft 2, and the picture of the second optional aircraft is the picture indicated by 402. It should be noted that the number of optional aircraft information displayed in the reference page can be more or less, and this embodiment of the application is not limited to this.
[0070] In a possible implementation, in response to a trigger operation on information about a virtual aircraft, the process of switching a virtual prop held by a virtual object to a virtual aircraft includes: in response to a trigger operation on information about a virtual aircraft, and the virtual aircraft meets a take-off requirement, switching the virtual prop held by the virtual object to the virtual aircraft. Wherein, the virtual aircraft meeting the take-off requirement includes at least one of the following: the virtual aircraft is in an available time; the number of times the virtual aircraft has taken off is less than a threshold number of times the virtual aircraft has taken off; and the virtual object has authority to control the virtual aircraft.
[0071] Optionally, based on the virtual aircraft meeting the take-off requirements including the virtual aircraft being in an available time, when the terminal device determines whether the virtual aircraft is in an available time, it is necessary to first obtain the available time of the virtual aircraft, and the process of obtaining the available time of the virtual aircraft includes: the terminal device sends an available time acquisition request to the server, and the available time acquisition request includes the identifier of the virtual aircraft. The server receives the available time acquisition request sent by the terminal device, parses the available time acquisition request, and obtains the identifier of the virtual aircraft. The server stores the correspondence between the identifiers of each aircraft and the available time of each aircraft, and the server determines the available time of the virtual aircraft according to the identifier of the virtual aircraft and the correspondence between the identifiers of each aircraft and the available time of each aircraft. The server sends the available time of the virtual aircraft to the terminal device, so that the terminal device obtains the available time of the virtual aircraft. Among them, the identifier of the virtual aircraft can be the name of the virtual aircraft, or the number of the virtual aircraft, or other identifiers that can uniquely represent the virtual aircraft, which is not limited in the embodiment of the present application.
[0072] After the terminal device obtains the available timing of the virtual aircraft, if the current time is within the available timing of the virtual aircraft, it is determined that the virtual aircraft is in the available timing and the virtual aircraft meets the take-off requirements; if the current time is outside the available timing of the virtual aircraft, it is determined that the virtual aircraft is not in the available timing and the virtual aircraft does not meet the take-off requirements. The current time refers to the time of the trigger operation for the information of the virtual aircraft.
[0073] Exemplarily, the available time of the virtual aircraft is obtained from 10:00 to 14:00 every day, and the current time is 12:00, then the virtual aircraft is in the available time, and the virtual aircraft meets the take-off requirements. For another example, if the current time is 15:00, then the virtual aircraft is not in the available time, and the virtual aircraft does not meet the take-off requirements.
[0074] Optionally, based on the virtual aircraft meeting the take-off requirements including the number of times the virtual aircraft has taken off being less than the threshold of the number of times the virtual aircraft has taken off, when the terminal device determines whether the number of times the virtual aircraft has taken off is less than the threshold of the number of times the virtual aircraft has taken off, it is necessary to first obtain the number of times the virtual aircraft has taken off and the threshold of the number of times the virtual aircraft has taken off, and the process of obtaining the number of times the virtual aircraft has taken off and the threshold of the number of times the virtual aircraft has taken off includes: the terminal device sends a request for obtaining the number of times to the server, and the request for obtaining the number of times includes the identifier of the virtual aircraft. The server receives the request for obtaining the number of times sent by the terminal device, parses the request for obtaining the number of times, and obtains the identifier of the virtual aircraft. The server stores the corresponding relationship between the identifier of each aircraft, the number of times the virtual aircraft has taken off, and the threshold of the number of times the virtual aircraft has taken off. The server determines the number of times the virtual aircraft has taken off and the threshold of the number of times the virtual aircraft has taken off according to the identifier of the virtual aircraft and the corresponding relationship between the identifier of each aircraft, the number of times the virtual aircraft has taken off, and the threshold of the number of times the virtual aircraft has taken off. The server sends the number of times the virtual aircraft has taken off and the threshold of the number of times the virtual aircraft has taken off to the terminal device, so that the terminal device obtains the number of times the virtual aircraft has taken off and the threshold of the number of times the virtual aircraft has taken off.
[0075] After the terminal device obtains the number of times the virtual aircraft has taken off and the take-off number threshold, it determines that the virtual aircraft meets the take-off requirements based on the number of times the virtual aircraft has taken off being less than the take-off number threshold; and determines that the virtual aircraft does not meet the take-off requirements based on the number of times the virtual aircraft has taken off being not less than the take-off number threshold.
[0076] For example, the virtual aircraft's takeoff number threshold is 5 times, and the virtual aircraft has taken off 3 times. Since the virtual aircraft has taken off less than the takeoff number threshold, the virtual aircraft meets the takeoff requirement. For another example, the virtual aircraft has taken off 5 times. Since the virtual aircraft has taken off not less than the takeoff number threshold, the virtual aircraft does not meet the takeoff requirement.
[0077] Optionally, based on the virtual aircraft meeting the take-off requirements including the virtual object having the authority to control the virtual aircraft, the terminal device needs to determine whether the virtual object has the authority to control the virtual aircraft. The process of the terminal device determining whether the virtual object has the authority to control the virtual aircraft includes: the terminal device sends a request for obtaining an authority to the server, and the request for obtaining an authority includes the identifier of the virtual aircraft and the identifier of the virtual object. The server receives the request for obtaining an authority sent by the terminal device, parses the request for obtaining an authority, and obtains the identifier of the virtual aircraft and the identifier of the virtual object. The server stores the corresponding relationship between the identifier of each aircraft and the identifier of the object having the authority to control each aircraft. The server determines the identifier of the object having the authority to control the virtual aircraft according to the identifier of the virtual aircraft and the corresponding relationship between the identifier of each aircraft and the identifier of the object having the authority to control each aircraft. According to the identifier of the virtual object and the identifier of the object having the authority to control the virtual aircraft, a determination result is obtained, and the determination result is used to indicate whether the virtual object has the authority to control the virtual aircraft. The server sends the determination result to the terminal device so that the terminal device determines whether the virtual object has the authority to control the virtual aircraft.
[0078] The terminal device obtains the determination result, and determines whether the virtual object has the authority to control the virtual aircraft according to the determination result. Based on the virtual object having the authority to control the virtual aircraft, the virtual aircraft meets the take-off requirements; based on the virtual object not having the authority to control the virtual aircraft, the virtual aircraft does not meet the take-off requirements.
[0079] The process of obtaining the determination result according to the identification of the virtual object and the identification of the object having the authority to control the virtual aircraft includes: if the identification of the object having the authority to control the virtual aircraft includes the identification of the virtual object, the determination result is that the virtual object has the authority to control the virtual aircraft. If the identification of the object having the authority to control the virtual aircraft does not include the identification of the virtual object, the determination result is that the virtual object does not have the authority to control the virtual aircraft.
[0080] like Figure 5 is a schematic diagram of displaying a first game screen provided by an embodiment of the present application. Figure 5 A virtual object 501 is displayed in the first game screen, wherein the virtual object 501 holds a virtual aircraft 502 .
[0081] Optionally, a cancel control and a direction control may also be displayed in the first game screen. The cancel control is used to instruct to switch the virtual aircraft held by the virtual object to a virtual prop, cancel the display of the first game screen, and display the second game screen, such as Figure 5 503 in is a cancel control. The direction control is used to indicate the moving direction of the virtual object, such as Figure 5504 in the figure is a direction control.
[0082] Optionally, a firing control is also displayed in the second game screen, and the firing control is used to indicate the resource corresponding to the virtual prop. Figure 3 304 in the figure is a firing control. For example, if the virtual prop is a virtual firearm, the firing control is used to instruct the release of virtual ammunition corresponding to the virtual firearm. For another example, if the virtual prop is a virtual stick, the firing control is used to instruct the swinging of the virtual stick. For another example, if the virtual prop is a virtual prop, the firing control is used to instruct the swinging of the virtual prop.
[0083] A direction control may also be displayed in the second game screen, and the direction control is used to indicate the moving direction of the virtual object, such as Figure 3 305 is a direction control. The user can freely rotate the perspective of the virtual object and move the virtual object by sliding the direction control in any direction. In response to a sliding operation on the direction control in any direction, the virtual object is controlled to move in any direction. Optionally, in response to a sliding operation on the direction control upward, the virtual object is controlled to move forward; in response to a sliding operation on the direction control downward, the virtual object is controlled to move backward; in response to a sliding operation on the direction control to the left, the virtual object is controlled to move left; in response to a sliding operation on the direction control to the right, the virtual object is controlled to move right.
[0084] It should be noted that other content may also be displayed in the second game screen, which is not limited in the embodiments of the present application. For example, other virtual objects located in the virtual environment may also be displayed in the second game screen, and the other virtual objects are virtual objects controlled by other users, or the other virtual objects are virtual objects controlled by the system.
[0085] In step 202 , in response to a triggering operation of a take-off function, a virtual aircraft is controlled to take off in a virtual environment.
[0086] In one possible implementation, a take-off control is also displayed in the first game screen, and the take-off control is used to control the take-off of the virtual aircraft. When the user wants to fly the virtual aircraft, the user selects the take-off control, and in response to the triggering operation of the take-off function, controls the virtual aircraft to take off in the virtual environment. At this time, the flight altitude of the virtual aircraft is the initial flight altitude.
[0087] The triggering operation of the take-off function may be a click operation on the take-off control, or a long press operation on the take-off control, which is not limited in the embodiments of the present application. The triggering operation based on the take-off function refers to a long press operation on the take-off control, which means that the duration of pressing the take-off control exceeds a duration threshold. Optionally, the duration threshold is set based on experience, or adjusted according to the implementation environment, which is not limited in the embodiments of the present application. Exemplarily, the duration threshold is 3 seconds.
[0088] The initial flight altitude is the flight altitude of the virtual aircraft when it just takes off. The initial flight altitude is set based on experience or adjusted according to the implementation environment, and the embodiment of the present application does not limit this. For example, the initial flight altitude is 10 meters.
[0089] like Figure 6 is another schematic diagram of displaying the first game screen provided by an embodiment of the present application. Figure 6 A virtual object 601 and a virtual aircraft 602 that has taken off are displayed.
[0090] Optionally, when the trigger operation based on the take-off function is a long press operation on the take-off control, after the virtual aircraft takes off, the take-off control is also long pressed, and the virtual object included in the first game screen does not hold a virtual prop. When the trigger operation based on the take-off function is a click operation on the take-off control, after the virtual aircraft takes off, if the first movement control operation is not detected within the target time, the virtual object included in the first game screen holds a virtual prop.
[0091] After the virtual aircraft takes off, a cancel control may be displayed in the first game screen, and the cancel control is used to cancel the display of the first game screen and display the second game screen. Figure 6 603 is a cancel control. After the virtual aircraft takes off in the first game screen, the first game screen not only displays the virtual aircraft that has taken off, but also displays the virtual object. Therefore, the user can observe the situation around the virtual object. When the virtual object is in danger, the user can cancel the control of the virtual aircraft and switch to the second game screen. In this way, after switching to the second game screen, the user will not be confused or uncomfortable, which can effectively improve the player's virtual aircraft control experience in the game.
[0092] In a possible implementation, after the virtual aircraft takes off in the virtual environment, a flight time bar of the virtual aircraft may also be displayed in the first game screen, the flight time bar of the virtual aircraft includes at least one of the available flight time of the virtual aircraft and the remaining flight time of the virtual aircraft, and the available flight time of the virtual aircraft and the remaining flight time of the virtual aircraft are displayed differently in the flight time bar of the virtual aircraft. Figure 6 605 is a flight time bar of the virtual aircraft. The white area in the flight time bar of the virtual aircraft is used to indicate the remaining flight time of the virtual aircraft, and the black area in the flight time bar of the virtual aircraft is used to indicate the available flight time of the virtual aircraft.
[0093] After the virtual aircraft takes off in the virtual environment, an activation control may also be displayed in the first game screen, and the activation control is used to activate the virtual aircraft, such as Figure 6606 is an activation control. After controlling the virtual aircraft to take off in the virtual environment, the user wants to activate the virtual aircraft, and the user triggers the activation control. In response to the triggering operation of the activation function, and the virtual aircraft's flight time is less than the virtual aircraft's available flight time, the virtual aircraft is controlled to throw virtual throwing objects, or the virtual aircraft is controlled to explode. The virtual throwing objects are different from virtual props and virtual aircraft, and the virtual throwing objects can be virtual bombs.
[0094] The triggering and activating control may be clicking the activating control. The virtual aircraft's flight time refers to the time difference between the virtual aircraft's take-off time and the current time. The process of determining the virtual aircraft's flight time is described in the following step 203 and will not be repeated here.
[0095] In step 203, when a first movement control operation is detected, the virtual aircraft is controlled to move in the virtual environment based on the first movement control operation, and when a second movement control operation is detected, the virtual object is controlled to move in the virtual environment based on the second movement control operation.
[0096] In a possible implementation, when a first mobile control operation is detected, the process of controlling the virtual aircraft to move in the virtual environment based on the first mobile control operation includes: the trigger operation based on the take-off function is a long press operation on the take-off control, and on the basis of the long press operation on the take-off control, when the first mobile control operation is detected, the virtual aircraft is controlled to move in the virtual environment. The trigger operation based on the take-off function is a click operation on the take-off control, and within the target duration after the click operation on the take-off control, when the first mobile control operation is detected, the virtual aircraft is controlled to move in the virtual environment. Among them, the target duration is set based on experience, or adjusted according to the implementation environment, and the embodiments of the present application are not limited to this. For example, the target duration is 3 seconds. The target direction can be any direction. The position of the virtual aircraft in the virtual environment can be changed through the first mobile control operation.
[0097] When a first mobile control operation is detected, the process of controlling the virtual aircraft to move in the virtual environment based on the first mobile control operation includes: when the first mobile control operation is detected and the flight time of the virtual aircraft is less than the flight time of the virtual aircraft, determining the operation distance according to the operation time of the first mobile control operation; and controlling the virtual aircraft to move the operation distance in the virtual environment.
[0098] The first movement control operation may be a drag operation for the take-off control in a target direction, and the target direction may be any direction, for example, the target direction may be upward, downward, left, or right. The process of determining the flight time of the virtual aircraft includes: determining the flight time of the virtual aircraft according to the operation time of the trigger operation of the take-off function and the first time. Optionally, the time difference between the first time and the operation time is used as the flight time of the virtual aircraft. The first time is the current time, and the first time changes with the passage of time.
[0099] Exemplarily, the operation time is 16:08:20 on October 9, 2023, and the first time is 16:09:40 on October 9, 2023, then the flight time of the virtual aircraft is 1 minute and 20 seconds.
[0100] The process of determining the operation distance according to the operation duration of the first movement control operation includes: obtaining the movement speed of the virtual aircraft; determining the operation distance according to the movement speed of the virtual aircraft and the operation duration. Optionally, the product of the movement speed of the virtual aircraft and the operation duration is used as the operation distance.
[0101] The process of obtaining the moving speed of the virtual aircraft includes: sending a moving speed obtaining request to a server, wherein the moving speed obtaining request includes the identifier of the virtual aircraft. The server receives the moving speed obtaining request, parses the moving speed obtaining request, and obtains the identifier of the virtual aircraft. The server stores the corresponding relationship between the identifier of each aircraft and the moving speed of each aircraft, and the server determines the moving speed of the virtual aircraft according to the identifier of the virtual aircraft and the corresponding relationship between the identifier of each aircraft and the moving speed of each aircraft. The server sends the moving speed of the virtual aircraft to the terminal device, so that the terminal device obtains the moving speed of the virtual aircraft.
[0102] In one possible implementation, the trigger operation based on the take-off function is a long press operation on the take-off control. In response to the end of the long press operation on the take-off control and the flight time of the virtual aircraft is less than the flight time of the virtual aircraft, the virtual aircraft is controlled to enter an automatic cruise state. At this time, the virtual object in the first game screen holds a virtual prop.
[0103] Alternatively, the trigger operation based on the take-off function is a click operation on the take-off control. In response to not detecting the first movement control operation within the target time length after the click operation on the take-off control, and the flight time of the virtual aircraft is less than the flight time of the virtual aircraft, the virtual aircraft is controlled to enter an automatic cruise state. At this time, the virtual object in the first game screen holds a virtual prop.
[0104] That is, when the long press operation on the take-off control ends, or when no drag operation on the take-off control is received within the target time after the click operation on the take-off control, and the flight time of the virtual aircraft is less than the flight time of the virtual aircraft, the virtual aircraft is controlled to enter the automatic cruise state. At this time, the virtual object in the first game screen holds the virtual props.
[0105] Optionally, when the triggering operation of the take-off function is a long-press operation on the take-off control, in response to the end of the long-press operation on the take-off control, and the virtual aircraft's flight time is less than the virtual aircraft's flight time, the virtual aircraft enters an automatic cruise state, and the virtual object in the first game screen holds a virtual prop. At this time, the virtual aircraft is automatically activated. In this case, there is no need to click the activation control again to activate the virtual aircraft, making the method of activating the virtual aircraft more flexible. If the user does not want to activate the virtual aircraft immediately when the long-press operation ends, the user can cancel the automatic activation of the virtual aircraft in the setting function of the game client. Alternatively, after controlling the virtual aircraft to take off, the cancel automatic activation control can also be displayed in the first game screen, such as Figure 6 604 is to cancel the automatic activation control. In response to the trigger operation for canceling the automatic activation control, when the long press operation for the take-off control ends, the virtual aircraft does not enter the automatic cruise state.
[0106] like Figure 7 is another schematic diagram of displaying the first game screen provided by an embodiment of the present application. Figure 7 In the first game screen shown, the virtual aircraft 701 is in an automatic cruising state, and the virtual object 702 holds a virtual prop 703 .
[0107] Optionally, in response to the virtual aircraft's already flown time being not less than the virtual aircraft's available flight time, the first game screen is canceled and the second game screen is displayed.
[0108] In a possible implementation, after the virtual aircraft takes off in the virtual environment, an activation control may be displayed in the first game screen, and the activation control is used to activate the virtual aircraft. Figure 6 606 is an activation control. When the virtual aircraft enters the automatic cruise state and the virtual aircraft has flown for less than the virtual aircraft's available flight time, the user triggers the activation control, and in response to the triggering operation of the activation function, the virtual aircraft is controlled to throw virtual throwing objects, or the virtual aircraft is controlled to explode.
[0109] Optionally, after the second game screen is displayed, a virtual object, a switching control, and a firing control are displayed in the second game screen, and the virtual object holds a virtual prop. In response to a long press operation on the switching control, the virtual prop held by the virtual object in the second game screen is switched to a virtual aircraft, the firing control is canceled in the second game screen, and the take-off control is displayed in the second game screen. While long pressing the switching control, the take-off control is clicked to control the virtual aircraft held by the virtual object to take off, and then the virtual object and the virtual aircraft that has taken off are displayed in the second game screen. When the switching control is dragged in the target direction, the virtual aircraft is controlled to move in the target direction. After controlling the virtual aircraft to take off, when the long press of the switching control is canceled, the virtual object holds the virtual prop.
[0110] like Figure 8 is a schematic diagram of a game control method provided in an embodiment of the present application, in Figure 8 The second game screen shown in (1) of FIG. 8 shows a virtual object 801, a switching control 802, and a firing control 803. The virtual object 801 holds a virtual item 804. In response to a long press operation on the switching control, the display Figure 8 (2) in Figure 8 In (2), a virtual object 801 is displayed, the virtual object holds a virtual aircraft 805, the firing control is canceled, and the take-off control 806 is displayed. While long pressing the switch control, when the take-off control is clicked, the display Figure 8 (3) in Figure 8 In (3), a virtual object 801 and a virtual aircraft 805 that has taken off are displayed, and the virtual object 801 does not hold any virtual props.
[0111] Optionally, a direction control is also displayed in the first game screen, and the direction control is used to control the movement of the virtual object, such as Figure 6 The control 607 in is a direction control. The second mobile control operation may be a drag operation on the direction control in a reference direction. The reference direction may be any direction. The reference direction may be the same as the target direction or may be different from the target direction. The embodiment of the present application does not limit this. When the second mobile control operation is detected, the virtual object is controlled to move in the virtual environment based on the second mobile control operation. That is, when the second mobile control operation is detected, the virtual object is controlled to move in the reference direction in the virtual environment.
[0112] In the case where the second movement control operation is detected, the process of controlling the virtual object to move in the virtual environment based on the second movement control operation includes: in the case where the second movement control operation is detected, determining the target distance according to the operation duration of the second movement control operation; and controlling the virtual object to move the target distance in the virtual environment. That is, controlling the virtual object to move the target distance in the reference direction in the virtual environment.
[0113] The process of determining the target distance according to the operation duration of the second mobile control operation includes: obtaining the moving speed of the virtual object; and determining the target distance according to the moving speed of the virtual object and the operation duration of the second mobile control operation. Exemplarily, the product of the moving speed of the virtual object and the operation duration of the second mobile control operation is used as the target distance. The process of determining the moving speed of the virtual object is similar to the process of determining the moving speed of the virtual aircraft, and will not be repeated here.
[0114] The above method controls the virtual aircraft held by the virtual object included in the first game screen to take off in the virtual environment through the trigger operation of the take-off function. After the virtual aircraft takes off, the virtual aircraft can also be controlled to move in the virtual environment when the first movement control operation is detected, and the virtual object can be controlled to move in the virtual environment when the second movement control operation is detected. After the virtual aircraft takes off, the method can control not only the virtual aircraft but also the virtual object, so that the flexibility of game control is high and the operation efficiency of game control is high.
[0115] In addition, after the virtual aircraft takes off in the virtual environment, the player can control the virtual object while controlling the virtual aircraft, so that the player can perceive the virtual object and the information around the virtual object, and then reduce the probability of the virtual object being in danger by controlling the virtual object, and reduce the probability of the virtual object being knocked down by virtual objects controlled by other players, thereby improving the player's game immersion and improving the player's gaming experience.
[0116] Moreover, when the virtual aircraft enters the automatic cruise state, the virtual aircraft can also be activated to play games through the virtual aircraft, making the use of the virtual aircraft more flexible. When the player cancels the control of the virtual aircraft, the second game screen can be directly displayed without changing the perspective, so that the player will not feel dazed and uncomfortable, further improving the player's gaming experience.
[0117] Fig. 9 is a flowchart of a game control method provided by an embodiment of the present application, such as Fig. 9 As shown, the method includes the following steps 901 to 917.
[0118] 901. Display the second game screen.
[0119] The second game screen includes a virtual object and a switching control located in a virtual environment, and the virtual object holds a virtual prop.
[0120] 902. In response to a click operation on a switch control, display a reference page.
[0121] The reference page displays information for at least one selectable aircraft.
[0122] 903. In response to a click operation on the information of the virtual aircraft, determine whether the virtual aircraft meets take-off requirements.
[0123] 904. Based on the virtual aircraft meeting the take-off requirements, display a first game screen.
[0124] Based on the virtual aircraft meeting the take-off requirements, the virtual props held by the virtual object are switched to the virtual aircraft, and the first game screen is displayed. The first game screen includes a virtual object and a take-off control in a virtual environment. The virtual object holds the virtual aircraft, and the take-off control is used to control the take-off of the virtual aircraft.
[0125] If the virtual aircraft does not meet the take-off requirements, the process ends.
[0126] 905. Determine whether it is necessary to control the virtual aircraft in real time during takeoff.
[0127] 906. Based on the need to instantly control the virtual aircraft when taking off, in response to a long press operation on the take-off control, control the virtual aircraft to take off in the virtual environment.
[0128] 907. In response to the operation of dragging the take-off control toward the target direction, control the virtual aircraft to move toward the target direction.
[0129] 908. Determine whether to stop controlling the virtual aircraft.
[0130] 909. Determine whether to activate the virtual aircraft based on the continuous manipulation of the virtual aircraft.
[0131] 910. Based on activating the virtual aircraft, in response to a click operation on an activation control, activate the virtual aircraft.
[0132] 911. Determine whether the flight time of the virtual aircraft is less than the available flight time.
[0133] 912. Based on the fact that the flight time of the virtual aircraft is not less than the available flight time, the process ends.
[0134] Since the flight time of the virtual aircraft is less than the available flight time, the take-off control may be continued to be dragged to continue to control the movement of the virtual aircraft.
[0135] 913. Based on stopping the manipulation of the virtual aircraft, in response to the end of the operation of dragging the take-off control in the target direction, the virtual aircraft is controlled to enter an automatic cruise state, and the virtual object holds the virtual prop.
[0136] After the virtual aircraft enters the automatic cruise state, steps 909 to 912 may be performed to determine whether to activate the virtual aircraft and whether to end the process.
[0137] 914. Based on the fact that there is no need to immediately manipulate the virtual aircraft during takeoff, in response to a click operation on a takeoff control, the virtual aircraft is controlled to take off.
[0138] 915. Determine whether it is necessary to control the virtual aircraft after takeoff.
[0139] 916. Based on the need to control the virtual aircraft after takeoff, in response to receiving an operation of dragging the takeoff control in a target direction within a target duration, control the virtual aircraft to move in the target direction.
[0140] After the virtual aircraft is controlled after taking off, steps 908 to 912 may be performed to determine whether to stop controlling the virtual aircraft, whether to activate the virtual aircraft, and whether to end the process.
[0141] 917. Based on the determination that there is no need to control the virtual aircraft after takeoff, the virtual aircraft is controlled to enter an automatic cruise state, and the virtual object holds the virtual props.
[0142] After the virtual aircraft enters the automatic cruise state, steps 909 to 912 may be performed to determine whether to activate the virtual aircraft and whether to end the process.
[0143] The above method controls the take-off control to control the virtual aircraft to take off in the virtual environment, making the control of the virtual aircraft more flexible. After controlling the virtual aircraft to take off, since the first game screen not only displays the virtual aircraft that has taken off but also displays the virtual object, after the virtual aircraft takes off, the player can still perceive the virtual object and the information around the virtual object, thereby reducing the probability of the virtual object being in danger and the probability of the virtual object being knocked down by the virtual object controlled by other players, thereby improving the player's game immersion and improving the player's game experience.
[0144] Fig.10 FIG. 1 is a schematic diagram of the structure of a game control device provided in an embodiment of the present application. Fig.10 As shown, the device comprises:
[0145] Display module 1001, used to display a first game screen, the first game screen includes a virtual object in a virtual environment, and the virtual object holds a virtual aircraft;
[0146] The control module 1002 is used to control the virtual aircraft to take off in the virtual environment in response to the triggering operation of the take-off function;
[0147] The control module 1002 is also used to control the virtual aircraft to move in the virtual environment based on the first movement control operation when a first movement control operation is detected, and to control the virtual object to move in the virtual environment based on the second movement control operation when a second movement control operation is detected.
[0148] In one possible implementation, display module 1001 is used to display a second game screen, which includes a virtual object located in a virtual environment, the virtual object holds a virtual prop, and the virtual prop is different from the virtual aircraft; in response to a triggering operation of the switching function, the virtual prop held by the virtual object is switched to a virtual aircraft; and the first game screen is displayed.
[0149] In one possible implementation, the display module 1001 is used to display a reference page in response to a trigger operation of the switching function, in which information of at least one optional aircraft is displayed; in response to a trigger operation for information of a virtual aircraft, the virtual props held by the virtual object are switched to a virtual aircraft, and the virtual aircraft is any optional aircraft of at least one optional aircraft.
[0150] In a possible implementation, the display module 1001 is configured to, in response to a trigger operation on the information of the virtual aircraft and the virtual aircraft meets the take-off requirements, switch the virtual props held by the virtual object to the virtual aircraft.
[0151] In a possible implementation, the virtual aircraft meeting the take-off requirements includes at least one of the following: the virtual aircraft is in an available opportunity; the number of take-offs of the virtual aircraft is less than a threshold of the number of take-offs of the virtual aircraft; and the virtual object has the authority to control the virtual aircraft.
[0152] In one possible implementation, the control module 1002 is used to determine the operation distance according to the operation time of the first movement control operation when a first movement control operation is detected and the flight time of the virtual aircraft is less than the flight time of the virtual aircraft; and control the virtual aircraft to move the operation distance in the virtual environment.
[0153] In a possible implementation, the control module 1002 is used to obtain the moving speed of the virtual aircraft; and determine the operating distance according to the moving speed of the virtual aircraft and the operating duration.
[0154] In one possible implementation, the control module 1002 is used to control the virtual aircraft to move in the virtual environment based on the trigger operation of the take-off function, which is a long press operation on the take-off control. Based on the long press operation on the take-off control, when a first movement control operation is detected, the virtual aircraft is controlled to move in the virtual environment; the trigger operation based on the take-off function is a click operation on the take-off control. Within a target time after the click operation on the take-off control, when the first movement control operation is detected, the virtual aircraft is controlled to move in the virtual environment.
[0155] In one possible implementation, control module 1002 is further used to control the virtual aircraft to enter an automatic cruise state based on the trigger operation of the take-off function being a long press operation on the take-off control, in response to the long press operation on the take-off control ending and the flight time of the virtual aircraft being less than the flight time of the virtual aircraft; and to control the virtual aircraft to enter an automatic cruise state based on the trigger operation of the take-off function being a click operation on the take-off control, in response to no detection of a first movement control operation within a target time after the click operation on the take-off control and the flight time of the virtual aircraft being less than the flight time of the virtual aircraft.
[0156] In one possible implementation, the control module 1002 is also used to control the virtual aircraft to throw virtual throwing objects, or to control the virtual aircraft to explode in response to a trigger operation of the activation function, when the flight time of the virtual aircraft is less than the flight time of the virtual aircraft.
[0157] In one possible implementation, the control module 1002 is further used to control the virtual aircraft to throw virtual throwing objects, or to control the virtual aircraft to explode in response to a trigger operation of an activation function and when the flight time of the virtual aircraft is less than the flight time of the virtual aircraft.
[0158] In one possible implementation, based on the virtual aircraft taking off in the virtual environment, a flight time bar of the virtual aircraft is also displayed in the first game screen, and the flight time bar of the virtual aircraft includes at least one of the available flight time of the virtual aircraft and the remaining flight time of the virtual aircraft. The available flight time of the virtual aircraft and the remaining flight time of the virtual aircraft are displayed differently in the flight time bar of the virtual aircraft.
[0159] The above device controls the virtual aircraft held by the virtual object included in the first game screen to take off in the virtual environment through the trigger operation of the take-off function. After the virtual aircraft takes off, when the first movement control operation is detected, the virtual aircraft can be controlled to move in the virtual environment, and when the second movement control operation is detected, the virtual object can be controlled to move in the virtual environment. After the virtual aircraft takes off, not only the virtual aircraft but also the virtual object can be controlled, so that the flexibility of game control is high and the operation efficiency of game control is high.
[0160] In addition, after the virtual aircraft takes off in the virtual environment, the player can control the virtual object while controlling the virtual aircraft, so that the player can perceive the virtual object and the information around the virtual object, and then reduce the probability of the virtual object being in danger by controlling the virtual object, and reduce the probability of the virtual object being knocked down by virtual objects controlled by other players, thereby improving the player's game immersion and improving the player's gaming experience.
[0161] It should be understood that the above-mentioned device only uses the division of the above-mentioned functional modules as an example to illustrate when implementing its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0162] Fig.11 The structural block diagram of a terminal device 1100 provided by an exemplary embodiment of the present application is shown. The terminal device 1100 may be any electronic device product that can interact with a user through one or more methods such as a keyboard, a touchpad, a remote controller, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a smart watch, etc.
[0163] Typically, the terminal device 1100 includes: a processor 1101 and a memory 1102 .
[0164] The processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1101 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1101 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0165] The memory 1102 may include one or more computer-readable storage media, which may be non-transitory. The memory 1102 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one instruction, which is used to be executed by the processor 1101 to implement the game control method provided in the method embodiment of the present application.
[0166] In some embodiments, the terminal device 1100 may further optionally include: a peripheral device interface 1103 and at least one peripheral device. The processor 1101, the memory 1102 and the peripheral device interface 1103 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1103 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1104, a display screen 1105, a camera assembly 1106, an audio circuit 1107 and a power supply 1109.
[0167] The peripheral device interface 1103 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102, and the peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102, and the peripheral device interface 1103 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0168] The radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1104 can communicate with other terminal devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1104 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0169] The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to collect touch signals on the surface or above the surface of the display screen 1105. The touch signal can be input to the processor 1101 as a control signal for processing. At this time, the display screen 1105 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1105 can be one, which is set on the front panel of the terminal device 1100; in other embodiments, the display screen 1105 can be at least two, which are respectively set on different surfaces of the terminal device 1100 or are folded; in other embodiments, the display screen 1105 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal device 1100. Even, the display screen 1105 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1105 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0170] The camera assembly 1106 is used to capture images or videos. Optionally, the camera assembly 1106 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal device 1100, and the rear camera is arranged on the back of the terminal device 1100. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1106 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0171] The audio circuit 1107 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1101 for processing, or input them into the radio frequency circuit 1104 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 1100. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1107 may also include a headphone jack.
[0172] The power supply 1109 is used to power various components in the terminal device 1100. The power supply 1109 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1109 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0173] In some embodiments, the terminal device 1100 further includes one or more sensors 1110 , including but not limited to: an acceleration sensor 1111 , a gyroscope sensor 1112 , a pressure sensor 1113 , an optical sensor 1115 , and a proximity sensor 1116 .
[0174] The acceleration sensor 1111 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal device 1100. For example, the acceleration sensor 1111 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1101 can control the display screen 1105 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 can also be used to collect game or user motion data.
[0175] The gyroscope sensor 1112 can detect the body direction and rotation angle of the terminal device 1100, and the gyroscope sensor 1112 can cooperate with the acceleration sensor 1111 to collect the user's 3D actions on the terminal device 1100. The processor 1101 can implement the following functions based on the data collected by the gyroscope sensor 1112: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0176] The pressure sensor 1113 can be set on the side frame of the terminal device 1100 and / or the lower layer of the display screen 1105. When the pressure sensor 1113 is set on the side frame of the terminal device 1100, the user's holding signal of the terminal device 1100 can be detected, and the processor 1101 performs left and right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1113. When the pressure sensor 1113 is set on the lower layer of the display screen 1105, the processor 1101 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1105. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0177] The optical sensor 1115 is used to collect the ambient light intensity. In one embodiment, the processor 1101 can control the display brightness of the display screen 1105 according to the ambient light intensity collected by the optical sensor 1115. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the display screen 1105 is reduced. In another embodiment, the processor 1101 can also dynamically adjust the shooting parameters of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1115.
[0178] The proximity sensor 1116, also known as a distance sensor, is usually arranged on the front panel of the terminal device 1100. The proximity sensor 1116 is used to collect the distance between the user and the front of the terminal device 1100. In one embodiment, when the proximity sensor 1116 detects that the distance between the user and the front of the terminal device 1100 is gradually decreasing, the processor 1101 controls the display screen 1105 to switch from the screen-on state to the screen-off state; when the proximity sensor 1116 detects that the distance between the user and the front of the terminal device 1100 is gradually increasing, the processor 1101 controls the display screen 1105 to switch from the screen-off state to the screen-on state.
[0179] Those skilled in the art will understand that Fig.11 The structure shown in the figure does not constitute a limitation on the terminal device 1100, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0180] Fig.12The schematic diagram of the structure of the server provided in the embodiment of the present application, the server 1200 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1201 and one or more memories 1202, wherein the one or more memories 1202 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1201 to implement the game control method provided by the above-mentioned various method embodiments. Of course, the server 1200 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server 1200 may also include other components for implementing device functions, which will not be described in detail here.
[0181] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable a computer to implement any of the above-mentioned game control methods.
[0182] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0183] In an exemplary embodiment, a computer program or a computer program product is also provided, wherein at least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any of the above-mentioned game control methods.
[0184] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the game screens and some information involved in this application are obtained with full authorization.
[0185] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0186] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0187] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A game control method, characterized in that: The method comprises: Displaying a first game screen, the first game screen including a virtual object in a virtual environment, the virtual object holding a virtual aircraft; In response to a trigger operation of a take-off function, controlling the virtual aircraft to take off in the virtual environment; When a first movement control operation is detected, the virtual aircraft is controlled to move in the virtual environment based on the first movement control operation; when a second movement control operation is detected, the virtual object is controlled to move in the virtual environment based on the second movement control operation.
2. The method according to claim 1, characterized in that The displaying of the first game screen includes: displaying a second game screen, wherein the second game screen includes the virtual object in the virtual environment, the virtual object holds a virtual prop, and the virtual prop is different from the virtual aircraft; In response to a triggering operation of a switching function, the virtual prop held by the virtual object is switched to the virtual aircraft; The first game screen is displayed.
3. The method according to claim 2, characterized in that The step of switching the virtual prop held by the virtual object to the virtual aircraft in response to the triggering operation of the switching function includes: In response to a triggering operation of the switching function, a reference page is displayed, wherein information of at least one selectable aircraft is displayed on the reference page; In response to a trigger operation on the information of the virtual aircraft, the virtual prop held by the virtual object is switched to the virtual aircraft, where the virtual aircraft is any one of the at least one selectable aircraft.
4. The method according to claim 3, characterized in that The step of switching the virtual props held by the virtual object to the virtual aircraft in response to a triggering operation on the information of the virtual aircraft comprises: In response to a trigger operation on the information of the virtual aircraft, and the virtual aircraft meets take-off requirements, the virtual props held by the virtual object are switched to the virtual aircraft.
5. The method according to claim 4, characterized in that The virtual aircraft meets the take-off requirements including at least one of the following: The virtual aircraft is in a usable state; The number of times the virtual aircraft has taken off is less than a threshold value of the number of times the virtual aircraft has taken off; The virtual object has the authority to control the virtual aircraft.
6. The method according to any one of claims 1 to 5, characterized in that: When a first movement control operation is detected, controlling the virtual aircraft to move in the virtual environment based on the first movement control operation comprises: In the case where a first movement control operation is detected and the flight time of the virtual aircraft is less than the flight time of the virtual aircraft, determining an operation distance according to the operation time of the first movement control operation; The virtual aircraft is controlled to move the operation distance in the virtual environment.
7. The method according to claim 6, characterized in that The determining the operation distance according to the operation duration of the first movement control operation includes: Obtaining the moving speed of the virtual aircraft; The operation distance is determined according to the moving speed of the virtual aircraft and the operation duration.
8. The method according to any one of claims 1 to 5, characterized in that: When a first movement control operation is detected, controlling the virtual aircraft to move in the virtual environment based on the first movement control operation comprises: The triggering operation based on the take-off function is a long press operation on the take-off control, and based on the long press operation on the take-off control, in the case where a first movement control operation is detected, the virtual aircraft is controlled to move in the virtual environment; The triggering operation based on the take-off function is a click operation on the take-off control. Within a target time period after the click operation on the take-off control, when a first movement control operation is detected, the virtual aircraft is controlled to move in the virtual environment.
9. The method according to any one of claims 1 to 5, characterized in that: After controlling the virtual aircraft to take off in the virtual environment, the method further includes: Based on the triggering operation of the take-off function being a long-press operation on a take-off control, in response to the long-press operation on the take-off control ending and the flight time of the virtual aircraft being less than the available flight time of the virtual aircraft, controlling the virtual aircraft to enter an automatic cruise state; The triggering operation based on the take-off function is a click operation on the take-off control. In response to not detecting the first movement control operation within the target time length after the click operation on the take-off control, and the flight time of the virtual aircraft is less than the flight time of the virtual aircraft, the virtual aircraft is controlled to enter an automatic cruise state.
10. The method according to claim 9, characterized in that After controlling the virtual aircraft to enter the automatic cruise state, the method further includes: In response to a triggering operation of an activation function, and when the flight time of the virtual aircraft is less than the available flight time of the virtual aircraft, the virtual aircraft is controlled to throw a virtual throwing object, or the virtual aircraft is controlled to explode.
11. The method according to any one of claims 1 to 5, characterized in that: After controlling the virtual aircraft to take off in the virtual environment, the method further includes: In response to a triggering operation of an activation function, and the flight time of the virtual aircraft is less than the available flight time of the virtual aircraft, the virtual aircraft is controlled to throw a virtual throwing object, or the virtual aircraft is controlled to explode.
12. The method according to any one of claims 1 to 5, characterized in that: Based on the virtual aircraft taking off in the virtual environment, a flight time bar of the virtual aircraft is also displayed in the first game screen, and the flight time bar of the virtual aircraft includes at least one of the available flight time of the virtual aircraft and the remaining flight time of the virtual aircraft. The available flight time of the virtual aircraft and the remaining flight time of the virtual aircraft are displayed differently in the flight time bar of the virtual aircraft.
13. A game control device, characterized in that: The device comprises: A display module, configured to display a first game screen, wherein the first game screen includes a virtual object in a virtual environment, wherein the virtual object holds a virtual aircraft; A control module, configured to control the virtual aircraft to take off in the virtual environment in response to a trigger operation of a take-off function; The control module is also used to control the virtual aircraft to move in the virtual environment based on the first movement control operation when a first movement control operation is detected, and to control the virtual object to move in the virtual environment based on the second movement control operation when a second movement control operation is detected.
14. A computer device, characterized in that: The computer device comprises a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor so that the computer device implements the game control method according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor so that the computer implements the game control method according to any one of claims 1 to 12.
16. A computer program product, characterized in that The computer program product stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor so that a computer implements the game control method according to any one of claims 1 to 12.