WO2018137433A1 - Object control method and device for game application, storage medium, and electronic device - Google Patents
Object control method and device for game application, storage medium, and electronic device Download PDFInfo
- Publication number
- WO2018137433A1 WO2018137433A1 PCT/CN2017/116116 CN2017116116W WO2018137433A1 WO 2018137433 A1 WO2018137433 A1 WO 2018137433A1 CN 2017116116 W CN2017116116 W CN 2017116116W WO 2018137433 A1 WO2018137433 A1 WO 2018137433A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- button
- client
- virtual button
- target object
- area
- Prior art date
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
- A63F13/537—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
- A63F13/5375—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for graphically or textually suggesting an action, e.g. by displaying an arrow indicating a turn in a driving game
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/803—Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/303—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display
- A63F2300/305—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display for providing a graphical or textual hint to the player
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/64—Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/8017—Driving on land or water; Flying
Definitions
- the present application relates to the field of object control, and in particular to an object control method and apparatus, a storage medium, and an electronic device in a game application.
- the acceleration function can be triggered to improve the speed of the player-controlled object in the game.
- the car when the car uses a drift operation in the game, the car can obtain a bonus item when the energy accumulated in the drift reaches a certain value, and the bonus item can generate an acceleration effect, for example, in some car racing games. Nitrogen props.
- the above-mentioned acceleration method requires a relatively high operational skill of the player, and the operation mode when accelerating is relatively simple.
- the embodiment of the present application provides an object control method and apparatus, a storage medium, and an electronic device in a game application, so as to at least solve the technical problem that an object in a game application operates in a relatively simple manner during acceleration.
- an object control method in a game application including: determining a target in the client during a running process of a client of the game application Whether the object performs the first predetermined operation; if it is determined that the target object performs the first predetermined operation, setting the state of the first virtual button to the state of allowing the touch on the display area of the client
- the first virtual button corresponds to the first predetermined operation; detecting a first touch operation on the first virtual button on a display area of the client; responding to the first touch An operation of performing a first acceleration operation on the target object in the client.
- an object control apparatus in a game application including: a first determining unit, configured to determine, in a process of running a client of a game application, in the client Whether the target object performs the first predetermined operation; the first setting unit is configured to: when it is determined that the target object performs the first predetermined operation, the first virtual button is displayed on the display area of the client The state is set to a state in which the touch is allowed, wherein the first virtual button corresponds to the first predetermined operation; the first detecting unit is configured to detect the first virtual on the display area of the client a first touch operation of the button; the first execution unit is configured to perform a first acceleration operation on the target object in the client in response to the first touch operation.
- a storage medium including a stored program, wherein the program executes the method described above while it is running.
- an electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor passing the computer The program performs the above method.
- the corresponding first virtual button may be displayed on the display area of the client, and the first virtual button may implement accelerated kinetic energy, and the player touches
- the target object can be controlled for acceleration.
- the target object does not need to accumulate energy while performing an action, and the operation mode of the object in the game application is accelerated.
- a single technical problem achieves the technical effect of enriching the way the object in the game application operates during acceleration.
- this since this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are reduced, and For players with high operational skills, the control method is enriched and the user experience is improved.
- FIG. 1 is a schematic diagram of a hardware environment of an object control method in a game application according to an embodiment of the present application
- FIG. 2 is a flowchart of an object control method in an optional game application according to an embodiment of the present application
- FIG. 3 is a schematic diagram of an optional virtual control key according to an embodiment of the present application.
- FIG. 4 is a schematic view of a sliding operation according to an embodiment of the present application.
- FIG. 5 is a schematic diagram of a position of a brake key according to an embodiment of the present application.
- FIG. 6 is a schematic diagram of a virtual key response area according to an embodiment of the present application.
- FIG. 7 is a flow chart of a sliding operation in accordance with an embodiment of the present application.
- FIG. 8 is a flowchart of an object control method in another optional game application according to an embodiment of the present application.
- FIG. 9 is a schematic diagram of an object control device in an optional game application according to an embodiment of the present application.
- FIG. 10 is a structural block diagram of a terminal according to an embodiment of the present application.
- a method embodiment of an object control method in a game application is provided.
- the object control method in the above game application may be applied to a hardware environment constituted by the server 102 and the terminal 104 as shown in FIG. 1.
- the server 102 is connected to the terminal 104 through a network.
- the network includes but is not limited to a wide area network, a metropolitan area network, or a local area network.
- the terminal 104 is not limited to a PC, a mobile phone, a tablet, or the like.
- the object control method in the game application of the embodiment of the present application may be executed by the terminal 104, or may be performed by the server 102 and the terminal 104 in common.
- the object control method in the game application in which the terminal 104 executes the embodiment of the present application may also be executed by a client installed thereon.
- the object control method in the game application of the embodiment of the present application is particularly applicable to mobile terminals such as mobile phones and tablet computers.
- FIG. 2 is a flowchart of an object control method in an optional game application according to an embodiment of the present application. As shown in FIG. 2, the method may include the following steps:
- Step S202 in the process of running the client of the game application, determining whether the target object in the client performs the first predetermined operation.
- the client of the gaming application may be a client installed on the terminal 104.
- the game application can be a racing game or other game that requires acceleration.
- the target object is the manipulated object in the game application, such as a racing car in a racing game.
- the first predetermined operation is an action performed by the target object, such as an action performed by the racing car in the racing game, such as a movement on a hillside.
- Step S204 in the case that it is determined that the target object performs the first predetermined operation, setting the state of the first virtual button to the state of allowing the touch on the display area of the client, wherein the first virtual button and the first predetermined operation Corresponding.
- the first virtual button displayed on the display area of the client is in the touch-enabled state, and when the player clicks the first virtual button on the display area, the target object can be implemented on the target object.
- the function corresponding to a virtual button For example, in the racing racing game application, the "small spray” button can be used as the first virtual button. When the car performs the action of flying the hillside, the "small spray” button is in a state of allowing touch.
- Step S206 detecting a first touch operation on the first virtual button on the display area of the client.
- Step S208 in response to the first touch operation, perform a first acceleration operation on the target object in the client.
- the first touch operation detected on the display area may be a touch operation of the player.
- the first virtual button When the player clicks the first virtual button in the display area, the first virtual button may be triggered, and the function corresponding to the first virtual button is executed. .
- the player can control the time at which the first virtual button is executed, that is, the player can control when the "small spray” function is applied to the car.
- the function of "small spray” is to increase the speed of the car. Therefore, after detecting that the player touches the first virtual button, the speed of the car is increased.
- the corresponding first virtual button may be displayed on the display area of the client, and the first virtual button may implement accelerated kinetic energy, and the player touches
- the target object can be controlled.
- Line acceleration in this process, does not require the target object to accumulate energy while performing an action, and solves the technical problem that the object in the game application operates in a relatively simple manner during acceleration, thereby achieving the object in the rich game application.
- the technical effect of the operation mode when accelerating since this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are lowered, and for players with higher operational skills, the manipulation mode is enriched and the user experience is improved.
- the method further includes: determining whether the target object in the client performs the second predetermined operation, and performing the second predetermined operation to generate an attribute value of the target object If it is determined that the target object in the client performs the second predetermined operation and the attribute value of the target object generated by the second predetermined operation is greater than the predetermined threshold, the display area on the client side is The state of the second virtual button is set to allow the state of the touch, wherein the second virtual button corresponds to the second predetermined operation; the second touch operation on the second virtual button is detected on the display area of the client; The touch operation performs a second acceleration operation on the target object in the client, wherein the execution time of the first acceleration operation is less than the execution time of the second acceleration operation.
- the second predetermined operation may be a drifting action performed by the racing car
- the attribute value may be an energy value accumulated by the racing car during the drifting process
- the second virtual button may be a “nitrogen” button of the racing car
- the function corresponding to the “nitrogen” button is an acceleration operation ( That is, the second acceleration operation).
- the second acceleration operation differs from the first acceleration operation in that the acceleration time of the second acceleration operation is longer than the acceleration time of the first acceleration operation.
- the execution time of the first acceleration operation is the time when the target object continues to accelerate after the first touch operation
- the execution time of the second acceleration operation is the time when the target object continues to accelerate after the second touch operation. For example, the target object continues to accelerate for 0.5 seconds after the first acceleration operation, and the target object continues to accelerate for 3 seconds after the second acceleration operation.
- the car performs a drifting action (ie, a second predetermined operation) while driving, and the energy of performing the drifting action accumulates the energy slot as shown in FIG.
- the generated attribute value of the target object is greater than a predetermined threshold.
- the second virtual button displayed on the display area is in a state of allowing touch.
- the acceleration operation indicated by the second virtual button is performed. Acting on the car, and the car continues at this time
- the acceleration time is greater than the time when the acceleration operation indicated by the first virtual button acts on the car and the car continues to accelerate.
- the first virtual button and the second virtual button may be simultaneously displayed on the display area of the client, and if the target object obtains the reward of the second acceleration operation corresponding to the second virtual button by using the second predetermined operation, when After the target object performs the first predetermined operation, the reward of the first acceleration operation corresponding to the first virtual button is also obtained, and the order of obtaining the first acceleration operation and the second acceleration operation is not limited, and vice versa.
- the player may select to perform the first acceleration operation, the second acceleration operation, or both the first acceleration operation and the second acceleration operation as needed.
- the acceleration operation can select the first acceleration operation with a shorter acceleration time
- the second acceleration operation with a longer acceleration time can be selected, which not only enriches the operation mode of the acceleration operation, but also enhances the user's sense of control over the target object, and improves the control. user experience.
- a third virtual button is further disposed on the display area of the client, where the third virtual button is used to control the direction of the target object, and the third virtual button and the second virtual button are located on both sides of the display area, the first virtual The button and the second virtual button are located on the same side of the display area.
- the third virtual button includes a left direction button and a right direction button for controlling the direction of the target object.
- the first virtual button and the second virtual button that control acceleration are disposed on different sides of the display area where the third virtual button is located, and the second virtual button and the first virtual button are disposed on the same side, such that the setting can facilitate the left hand and the right hand respectively Controls the acceleration and direction of the target object.
- the method further includes: detecting a third touch operation on the third virtual button on the display area of the client, where The third virtual button is used to control the direction of the target object, and the third virtual button and the second virtual button are located on two sides of the display area, and the first virtual button and the second virtual button are located on the same side of the display area;
- the operation of performing the second acceleration operation on the target object in the client includes: performing, in the client, a second acceleration operation on the target object according to the direction indicated by the third touch operation.
- FIG. 3 shows the first virtual button “small spray” and the second virtual button "nitrogen
- the three function keys of “gas” and “drift” are shown in Fig. 3.
- the three keys shown in Fig. 3 are in the state of allowing touch, and the player can click the function key to realize the corresponding function.
- the side shows the third virtual button "direction", including the left direction button and the right direction button, and the third virtual button can control the target object to travel to the left or right. For example, when the player touches the right button in the third virtual button " >", the control target object travels to the right, and when the player touches the left direction button " ⁇ " in the third virtual button, the control target object travels to the left.
- the control target object performs the second acceleration operation in the current traveling direction.
- the control target object performs the first acceleration operation in the current driving direction.
- the first virtual button and the second virtual button that control acceleration are both on the right side of the display area, and the third virtual button in the control direction is on the left side of the display area, so that the player can control the direction separately by the left hand and the right hand.
- the key and the accelerator key enable control of the left and right direction of the target object while controlling acceleration.
- the first virtual button and the second virtual button of the embodiment may also be located on the left side of the display area, and the third virtual button in the control direction is located on the right side of the display area.
- the embodiment can control the target object to perform short-time acceleration (small spray), accelerate for a long time, and control the direction of the target object while accelerating, so that the two hands respectively control the acceleration and the direction, and increase the operation on the target object. Control flexibility.
- performing the second acceleration operation on the target object according to the direction indicated by the third touch operation includes: determining whether the third touch operation is sliding from the first button response region to the second button response region a first sliding operation, wherein the first button response area and the second button response area are both key response areas in which the third virtual button is located in the display area; and when the third touch operation is determined to be the first sliding operation And performing a second acceleration operation on the target object according to the direction corresponding to the second button response area.
- the virtual button corresponding to the area where the sliding operation finally stays is the operation to be touched by the third touch operation.
- the player's left hand finger slides from the area where the left direction button of the third virtual button is located to the right of the third virtual button.
- the area where the direction button is located triggers the right arrow key in the third virtual button to control the car to drive in the right direction. If the car performs an acceleration operation at this time, the acceleration operation is performed while the car is traveling in the right direction.
- the first virtual button and the second virtual button can be simultaneously displayed on the display area, when the acceleration operation corresponding to the first virtual button and the second virtual button is performed, the first acceleration operation and the first sliding operation can also be switched by finger sliding. Second, accelerate the operation.
- performing the first acceleration operation on the target object in the client includes: determining whether the first touch operation is a second sliding from the third button response region to the fourth button response region The operation, wherein the third button response area and the fourth button response area are key response areas in the display area, the third button response area is a button response area where the second virtual button is located, and the fourth button response area is the first virtual The button response area where the button is located; in the case that it is determined that the first touch operation is the second sliding operation, the first acceleration operation corresponding to the second button response area is performed on the target object in the client.
- the second virtual button corresponds to the third button response area
- the first virtual button corresponds to the fourth button response area
- the first touch operation may be a second sliding operation from the third button response region to the fourth button response region, and the second sliding The operation finally falls on the fourth button response area, which is equivalent to touching the first virtual button. Therefore, the first acceleration operation corresponding to the first virtual button is performed.
- a first virtual button, a second virtual button, and a virtual button indicating drift can be displayed on one side of the display area, and the player can perform a sliding operation between the three virtual buttons, and the sliding operation finally falls on the response area where the virtual button is located. , which virtual button is executed corresponding to the operation.
- the player's right hand finger slides from the virtual button indicating the drift to the first virtual button, and then performs a first acceleration operation corresponding to the first virtual button, and completes the first drift from the control target object to the control target object. Accelerate the switching of operations.
- the finger does not need to leave the screen of the terminal where the client is located, and press and hold the slide.
- the button switching operation can be completed, the operation burden can be reduced, and the continuous operation can be more conveniently performed, thereby improving the flexibility of the operation mode.
- the fourth virtual button is not displayed by default on the display area of the client, and the fourth virtual button is used to perform a deceleration operation on the target object, wherein, in the process of running the client of the game application, the method further includes: at the client end Receiving a setting instruction; in response to the setting instruction, displaying the fourth virtual button on the display area, and setting a state of the fourth virtual button to a state of allowing touch on the display area, wherein the first virtual button and the fourth virtual button The buttons are located on the same side of the display area.
- the fourth virtual button can achieve a deceleration effect.
- a brake device such as a brake.
- the fourth virtual button is not displayed by default, and the fourth virtual button can be displayed on the display area by the player's setting. That is, the client receives a setting instruction of the player for instructing to display the fourth virtual key in the display area, and causing the fourth virtual key to be in the state of allowing touch in the display area. In this way, if the player needs to perform a deceleration operation on the target object, the fourth virtual button can be touched to achieve the purpose of deceleration.
- the fourth virtual button and the first virtual button may be disposed on the same side.
- the "brake” button is displayed on the right side of the display area.
- the fourth virtual button is not displayed by default, the wrong operation of the novice player can be avoided, so that the acceleration button displayed in the display area is more prominent.
- the player who has the braking requirement can be controlled to control the target object. Enhanced maneuverability of the target object.
- the fourth button response area includes an area displayed by the first virtual button in the display area, and the fourth button response area is larger than the area displayed by the first virtual button in the display area.
- the area occupied by the first virtual button in the display area is a rectangular area 1, and the fourth key response area is actually a rectangular area 2.
- the rectangular area 2 is larger than the rectangular area 1, that is, when The sliding operation falls within the rectangular area 2 to trigger the first virtual key without having to fall in the rectangular area 1.
- the sliding trigger mode provided by the embodiment, when the finger moves from outside the fourth button response area to the fourth button response area, it is also regarded as a valid trigger.
- the small rectangle inside The area of the corresponding function key in the display area, the outer large rectangular frame is the actual button response area.
- FIG. 6 also shows the first button response area and the second button response area, both of which are larger than the area occupied by the left and right buttons in the display area.
- the finger is pressed or swiped. That is, the pressing action or the sliding action of the finger on the display area is detected.
- S802 Acquire an uppermost UI object in a region where the finger is located.
- S803. Determine whether the UI object is valid. If it is valid, S805 is performed; otherwise, S804 is performed.
- the current label is a label of the UI object.
- Each UI object has a separate label, and the UI object can be a first virtual button, a second virtual button, a third virtual button, and a fourth virtual button.
- S806 Determine whether the current label is consistent with the last label. If they are consistent, the instruction is considered to have not changed and the process is terminated. If they are inconsistent, a new instruction may be generated, and S807 is executed.
- S808 Determine whether the current label is none. If not, execute S809, and if yes, end the process.
- each UI object corresponds to a separate label.
- the detected UI object is a valid label
- the function of the virtual button corresponding to the UI object can be executed.
- 911 determine whether to press the right arrow key. That is, it is detected whether the right direction key in the third virtual button is triggered. If yes, execute 903; if no, execute 902.
- acceleration, deceleration, and direction control do not have a sequence, and the corresponding operations are performed on the target object according to the received instructions.
- FIG. 9 is a schematic diagram of an object control apparatus in an optional game application according to an embodiment of the present application. As shown in FIG. 9, the apparatus may include:
- the first determining unit 1002 is configured to determine, during the running of the client of the game application, whether the target object in the client performs the first predetermined operation;
- the first setting unit 1004 is configured to set a state of the first virtual button to a state of allowing the touch on the display area of the client, in a case where it is determined that the target object performs the first predetermined operation, where the first virtual button is Corresponding to the first predetermined operation;
- the first detecting unit 1006 is configured to detect a first touch operation on the first virtual button on the display area of the client;
- the first execution unit 1008 is configured to perform a first acceleration operation on the target object in the client in response to the first touch operation.
- the first determining unit 1002 in this embodiment may be used to perform step S202 in the embodiment of the present application.
- the first setting unit 1004 in this embodiment may be used to perform step S204 in the embodiment of the present application.
- the first detecting unit 1006 in this embodiment may be used to perform step S206 in the embodiment of the present application.
- the first executing unit 1008 in this embodiment may be used to perform step S208 in the embodiment of the present application.
- the client of the gaming application may be a client installed on the terminal 104.
- the game application can be a racing game or other game that requires acceleration.
- the target object is the manipulated object in the game application, such as a racing car in a racing game.
- the first predetermined operation is an action performed by the target object, such as an action performed by the racing car in a racing game, such as a leap on the hillside. Actions, etc.
- the first virtual button displayed on the display area of the client is in the touch-enabled state, and when the player clicks the first virtual button on the display area, the target object can be implemented on the target object.
- the function corresponding to a virtual button For example, in the racing racing game application, the "small spray” button can be used as the first virtual button. When the car performs the action of flying the hillside, the "small spray” button is in a state of allowing touch.
- the first touch operation detected on the display area may be a touch operation of the player.
- the first virtual button When the player clicks the first virtual button in the display area, the first virtual button may be triggered, and the function corresponding to the first virtual button is executed. .
- the player can control the time at which the first virtual button is executed, that is, the player can control when the "small spray” function is applied to the car.
- the function of "small spray” is to increase the speed of the car. Therefore, after detecting that the player touches the first virtual button, the speed of the form of the car is increased.
- the corresponding first virtual button may be displayed on the display area of the client, and the first virtual button may implement accelerated kinetic energy, and the player touches
- the target object can be controlled for acceleration.
- the target object does not need to accumulate energy while performing an action, and the object in the game application is operated in a single mode during acceleration.
- the technical problem achieves the technical effect of enriching the operation mode of the object in the game application during acceleration.
- this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are lowered, and for players with higher operational skills, the manipulation mode is enriched and the user experience is improved.
- the device further includes: a second determining unit, configured to determine, during the running of the client of the game application, whether the target object in the client performs the second predetermined operation, and performs the second predetermined operation to generate the cumulative Whether the attribute value of the target object is greater than a predetermined threshold; the second setting unit is configured to: when it is determined that the target object in the client performs the second predetermined operation, and the attribute value of the target object generated by performing the second predetermined operation is greater than In the case of a predetermined threshold, the state of the second virtual button is set to a state allowing touch control on the display area of the client, wherein the second virtual button corresponds to the second predetermined operation; and the second detecting unit is used for the client End of the display A second touch operation on the second virtual button is detected on the display area; the second execution unit is configured to perform a second acceleration operation on the target object in the client in response to the second touch operation, wherein the first acceleration operation The execution time is less than the execution time of the second acceleration operation.
- the second predetermined operation may be a drifting action performed by the racing car
- the attribute value may be an energy value accumulated by the racing car during the drifting process
- the second virtual button may be a “nitrogen” button of the racing car
- the function corresponding to the “nitrogen” button is an acceleration operation ( That is, the second acceleration operation).
- the second acceleration operation differs from the first acceleration operation in that the acceleration time of the second acceleration operation is longer than the acceleration time of the first acceleration operation.
- the execution time of the first acceleration operation is the time when the target object continues to accelerate after the first touch operation
- the execution time of the second acceleration operation is the time when the target object continues to accelerate after the second touch operation. For example, the target object continues to accelerate for 0.5 seconds after the first acceleration operation, and the target object continues to accelerate for 3 seconds after the second acceleration operation.
- the car performs a drifting action (ie, a second predetermined operation) while driving, and the energy that performs the drifting action accumulates the energy slot (ie, the attribute of the cumulatively generated target object) The value is greater than the predetermined threshold), and the second virtual button displayed on the display area is in a state of allowing touch.
- the acceleration operation indicated by the second virtual button is applied to the racing car, and At this point, the car continues to accelerate for a longer period of time than when the acceleration operation indicated by the first virtual button acts on the car.
- the first virtual button and the second virtual button may be simultaneously displayed on the display area of the client, and if the target object obtains the reward of the second acceleration operation corresponding to the second virtual button by using the second predetermined operation, when After the target object performs the first predetermined operation, the reward of the first acceleration operation corresponding to the first virtual button is also obtained, and the order of obtaining the first acceleration operation and the second acceleration operation is not limited, and vice versa.
- the player may select to perform the first acceleration operation, the second acceleration operation, or both the first acceleration operation and the second acceleration operation as needed.
- the acceleration operation can select the first acceleration operation with a shorter acceleration time
- the second acceleration operation with a longer acceleration time can be selected, which not only enriches the operation mode of the acceleration operation, but also enhances the user's sense of control over the target object, and improves the control. user experience.
- a third virtual button is further disposed on the display area of the client, where the third virtual The button is used to control the direction of the target object, and the third virtual button and the second virtual button are located on both sides of the display area, and the first virtual button and the second virtual button are located on the same side of the display area.
- the third virtual button includes a left direction button and a right direction button for controlling the direction of the target object.
- the first virtual button and the second virtual button that control acceleration are disposed on different sides of the display area where the third virtual button is located, and the second virtual button and the first virtual button are disposed on the same side, such that the setting can facilitate the left hand and the right hand respectively Controls the acceleration and direction of the target object.
- the device further includes: a third detecting unit, configured to: when the second detecting unit detects the second touch operation on the second virtual button on the display area of the client, detecting the pair on the display area of the client a third touch operation of the third virtual button, wherein the third virtual button is used to control the direction of the target object, the third virtual button and the second virtual button are located on both sides of the display area, and the first virtual button and the second virtual button are located
- the second execution unit includes: a first execution module, configured to perform a second acceleration operation on the target object in the direction indicated by the third touch operation in the client.
- the right side of FIG. 3 shows the first virtual button “small spray”, the second virtual button “nitrogen” and “drift” three function keys, as shown in FIG. 3, the three keys shown in FIG. Both are in a state of allowing touch, and the player can click a function key to implement the corresponding function.
- the left side of FIG. 3 shows the third virtual button "direction", including the left direction button and the right direction button, and the third virtual button can control the target object to travel to the left or right. For example, when the player touches the right direction button ">" in the third virtual button, the control target object travels to the right, and when the player touches the left direction button " ⁇ " in the third virtual button, the control target object travels to the left.
- the control target object performs a second acceleration operation in the current form direction.
- the control target object performs the first acceleration operation in the current form direction.
- the first virtual button and the second virtual button that control acceleration are both on the right side of the display area, and the third virtual button in the control direction is on the left side of the display area, so that the player can control the direction separately by the left hand and the right hand.
- Keys and accelerator keys so that control can be achieved while controlling acceleration The left and right direction of the target object.
- the first virtual button and the second virtual button of the embodiment may also be located on the left side of the display area, and the third virtual button in the control direction is located on the right side of the display area.
- the embodiment can control the target object to perform short-time acceleration (small spray), accelerate for a long time, and control the direction of the target object while accelerating, so that the two hands respectively control the acceleration and the direction, and increase the operation on the target object. Control flexibility.
- the first execution module includes: a determining submodule, configured to determine whether the third touch operation is a first sliding operation from the first key response area to the second key response area, wherein the first key response area And the second button response area is a button response area where the third virtual button is located in the display area; and the executing submodule is configured to follow the second button response area when determining that the third touch operation is the first sliding operation The corresponding direction performs a second acceleration operation on the target object.
- a determining submodule configured to determine whether the third touch operation is a first sliding operation from the first key response area to the second key response area, wherein the first key response area And the second button response area is a button response area where the third virtual button is located in the display area
- the executing submodule is configured to follow the second button response area when determining that the third touch operation is the first sliding operation The corresponding direction performs a second acceleration operation on the target object.
- the virtual button corresponding to the area where the sliding operation finally stays is the operation to be touched by the third touch operation.
- the player's left hand finger slides from the area where the left direction button of the third virtual button is located to the area where the right direction button of the third virtual button is located, triggers the right direction key of the third virtual button, and controls The car is driving in the right direction. If the car performs an acceleration operation at this time, the acceleration operation is performed while the car is traveling in the right direction.
- the first virtual button and the second virtual button can be simultaneously displayed on the display area, when the acceleration operation corresponding to the first virtual button and the second virtual button is performed, the first acceleration operation and the first sliding operation can also be switched by finger sliding. Second, accelerate the operation.
- the first execution unit includes: a determining module, configured to determine whether the first touch operation is a second sliding operation from the third button response area to the fourth button response area, wherein the third button response area and The fourth button response area is a button response area in the display area, the third button response area is a button response area where the second virtual button is located, and the fourth button response area is a button response area where the first virtual button is located; And a module, configured to perform, in the client, a first acceleration operation corresponding to the second button response region in the client in the case that the first touch operation is determined to be the second sliding operation.
- the second virtual button corresponds to the third button response area
- the first virtual button corresponds to the fourth button response area
- the first touch operation may be a second sliding operation from the third button response region to the fourth button response region, and the second sliding The operation finally falls on the fourth button response area, which is equivalent to touching the first virtual button. Therefore, the first acceleration operation corresponding to the first virtual button is performed.
- a first virtual button, a second virtual button, and a virtual button indicating drift can be displayed on one side of the display area, and the player can perform a sliding operation between the three virtual buttons, and the sliding operation finally falls on the response area where the virtual button is located. , which virtual button is executed corresponding to the operation.
- the player's right hand finger slides from the virtual button indicating the drift to the first virtual button, and then performs a first acceleration operation corresponding to the first virtual button, and completes the first drift from the control target object to the control target object. Accelerate the switching of operations.
- the finger does not need to leave the screen of the terminal where the client is located, and press and hold the slide to complete the button switching operation, thereby reducing the operation burden, and more convenient continuous operation, thereby improving the flexibility of the operation mode.
- the fourth virtual button is not displayed by default on the display area of the client, and the fourth virtual button is used to perform a deceleration operation on the target object
- the device further includes: a receiving unit, configured to be used during the running of the client of the game application. Receiving a setting instruction in the client; the display unit is configured to display the fourth virtual button on the display area in response to the setting instruction, and set the state of the fourth virtual button to the state of allowing the touch on the display area, wherein The first virtual button and the fourth virtual button are located on the same side of the display area.
- the fourth virtual button can achieve a deceleration effect.
- a brake device such as a brake.
- the fourth virtual button is not displayed by default, and the fourth virtual button can be displayed on the display area by the player's setting. That is, the client receives a setting instruction of the player for instructing to display the fourth virtual key in the display area, and causing the fourth virtual key to be in the state of allowing touch in the display area. In this way, if the player needs to perform a deceleration operation on the target object, the fourth virtual button can be touched to reach To the purpose of deceleration.
- the fourth virtual button and the first virtual button may be disposed on the same side.
- the "brake” button is displayed on the right side of the display area.
- the fourth virtual button is not displayed by default, the wrong operation of the novice player can be avoided, so that the acceleration button displayed in the display area is more prominent.
- the player who has the braking requirement can be controlled to control the target object. Enhanced maneuverability of the target object.
- the fourth button response area includes an area displayed by the first virtual button in the display area, and the fourth button response area is larger than the area displayed by the first virtual button in the display area.
- the area occupied by the first virtual button in the display area is a rectangular area 1, and the fourth key response area is actually a rectangular area 2.
- the rectangular area 2 is larger than the rectangular area 1, that is, when The sliding operation falls within the rectangular area 2 to trigger the first virtual key without having to fall in the rectangular area 1.
- the inner small rectangular frame is the area occupied by the corresponding function key in the display area
- the outer large rectangular frame is the actual button response area.
- the technical problem that the object in the game application operates in a single mode during acceleration can be solved, thereby achieving the technical effect of enriching the operation mode of the object in the game application during acceleration.
- this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are lowered, and for players with higher operational skills, the manipulation mode is enriched and the user experience is improved.
- the foregoing modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the foregoing embodiments. It should be noted that the foregoing module may be implemented in a hardware environment as shown in FIG. 1 as part of the device, and may be implemented by software or by hardware, where the hardware environment includes a network environment.
- an object control for implementing the above game application.
- Electronic device for the method.
- an electronic device for implementing the above method includes:
- the foregoing electronic device may be located in at least one network device of the plurality of network devices of the computer network.
- FIG. 10 is a structural block diagram of an electronic device according to an embodiment of the invention.
- the electronic device may include one or more (only one shown) processor 101, at least one communication bus 102, a user interface 103, at least one transmission device 104, and a memory 105.
- the communication bus 102 is used to implement connection communication between these components.
- the user interface 103 can include a display 106 and a keyboard 107.
- the transmission device 104 can optionally include a standard wired interface and a wireless interface.
- the memory 105 can be used to store a software program and a module, such as a program instruction/module corresponding to the object control method in the game application in the embodiment of the present invention, and the processor 101 runs the software program and the module stored in the memory 105, thereby Perform various function applications and data processing, that is, implement the object control method in the above game application.
- Memory 105 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
- memory 105 can further include memory remotely located relative to processor 101, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- the transmission device 104 described above is for receiving or transmitting data via a network.
- Specific examples of the above network may include a wired network and a wireless network.
- the transmission device 104 package It includes a Network Interface Controller (NIC) that can be connected to other network devices and routers through a network cable to communicate with the Internet or a local area network.
- the transmission device 104 is a Radio Frequency (RF) module for communicating wirelessly with the Internet.
- NIC Network Interface Controller
- RF Radio Frequency
- the memory 105 is used to store a storage application.
- the processor 101 can call the information and the application stored in the memory 105 through the transmission device to perform the following steps:
- determining whether the target object in the client performs the first predetermined operation determining whether the target object in the client performs the first predetermined operation; and in the case that it is determined that the target object performs the first predetermined operation, Setting a state of the first virtual button to a state of allowing the touch on the display area of the client, wherein the first virtual button corresponds to the first predetermined operation; detecting the opposite on the display area of the client a first touch operation of the first virtual button; and in response to the first touch operation, performing a first acceleration operation on the target object in the client.
- the processor 101 may further perform the following steps: determining whether the target object in the client performs a second predetermined operation, and performing execution of the target object that is generated by the second predetermined operation Whether the attribute value is greater than a predetermined threshold; determining that the target object in the client performs the second predetermined operation, and the attribute value of the target object generated by performing the second predetermined operation is greater than
- the state of the second virtual button is set to a state allowing touch control on the display area of the client, wherein the second virtual button corresponds to the second predetermined operation;
- a second touch operation on the second virtual button is detected on the display area of the client; in response to the second touch operation, a second acceleration operation is performed on the target object in the client, where The execution time of the first acceleration operation is less than the execution time of the second acceleration operation.
- the processor 101 may further perform the following steps: when detecting a second touch operation on the second virtual button on the display area of the client, the method further includes: at the client A third touch operation on the third virtual button is detected on the display area, wherein the third virtual key is used to control a direction of the target object, and the third virtual key is The second virtual button is located at two sides of the display area, and the first virtual button and the second virtual button are located on the same side of the display area; in response to the second touch operation, in the client Performing the second acceleration operation on the target object includes: performing, in the client, a second acceleration operation on the target object according to the direction indicated by the third touch operation.
- the processor 101 may further perform the following steps: determining whether the third touch operation is a first sliding operation from the first button response area to the second button response area, wherein the first button The response area and the second button response area are both the button response areas of the third virtual button in the display area; in the case that the third touch operation is determined to be the first sliding operation, Performing the second acceleration operation on the target object according to a direction corresponding to the second button response area.
- the processor 101 may further perform the following steps: determining whether the first touch operation is a second sliding operation from the third button response area to the fourth button response area, wherein the third button The response area and the fourth button response area are both button response areas in the display area, the third button response area is a button response area where the second virtual button is located, and the fourth button response area is the first a button response area where the virtual button is located; and when it is determined that the first touch operation is the second sliding operation, performing the second button response area on the target object in the client Corresponding to the first acceleration operation.
- processor 101 may further perform the following steps:
- the fourth virtual button is not displayed by default on the display area of the client, and the fourth virtual button is used to perform a deceleration operation on the target object, wherein the method is performed during the running of the client of the game application.
- the method further includes: receiving a setting instruction in the client; displaying the fourth virtual button on the display area in response to the setting instruction, and setting a state of the fourth virtual button on the display area to The state of the touch is allowed, wherein the first virtual button and the fourth virtual button are located on the same side of the display area.
- the corresponding first virtual button may be displayed on the display area of the client, and the first virtual button may implement accelerated kinetic energy, and the player touches After the first virtual button, the target object can be controlled.
- Acceleration in this process, does not require the target object to accumulate energy while performing an action, and solves the technical problem that the object in the game application operates in a relatively simple manner during acceleration, thereby achieving the object in the rich game application.
- the technical effect of the operation mode when accelerating since this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are lowered, and for players with higher operational skills, the manipulation mode is enriched and the user experience is improved.
- the specific examples in this embodiment may refer to the examples described in the foregoing embodiments, and details are not described herein again.
- FIG. 10 is only illustrative, and the terminal can be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, and a mobile Internet device (MID). Terminal equipment such as PAD.
- FIG. 10 does not limit the structure of the above electronic device.
- the electronic device may also include more or less components than those shown in FIG. 10, or have a different configuration than that shown in FIG.
- Embodiments of the present application also provide a storage medium.
- the foregoing storage medium may be used to execute program code of an object control method in a game application.
- the foregoing storage medium may be located on at least one of the plurality of network devices in the network shown in the foregoing embodiment.
- the storage medium is arranged to store program code for performing the following steps:
- S1 determining, during the running of the client of the game application, whether the target object in the client performs the first predetermined operation
- the storage medium is further arranged to store program code for performing the following steps:
- the storage medium is further configured to store program code for performing the steps included in the method of the foregoing embodiment, which is not described in this embodiment.
- the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
- ROM Read-Only Memory
- RAM Random Access Memory
- a mobile hard disk e.g., a hard disk
- magnetic memory e.g., a hard disk
- the integrated unit in the above embodiment is implemented in the form of a software functional unit and When the independent product is sold or used, it can be stored in the above computer readable storage medium.
- the technical solution of the present application in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium.
- a number of instructions are included to cause one or more computer devices (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
- the disclosed client may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Provided are an object control method and device for a game application, a storage medium, and an electronic device. The method comprises: when a client of a game application is operating, determining whether a target object in the client performs a first predetermined operation (S202); if it is determined that the target object performs the first predetermined operation, setting, on a display region of the client, a first virtual key to be in a touch-sensitive state, wherein the first virtual key corresponds to the first predetermined operation (S204); detecting, on the display region of the client, a first touch operation on the first virtual key (S206); and in response to the first touch operation, performing a first acceleration operation on the target object in the client (S208). The method solves a technical problem of limited operations for accelerating an object in a game.
Description
本申请要求于2017年02月4日提交中国专利局、申请号为201710064142.8、发明名称为“游戏应用中的对象控制方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on Dec. 4, 2017, the Chinese Patent Application No. PCT Application No. In the application.
本申请涉及对象控制领域,具体而言,涉及一种游戏应用中的对象控制方法和装置、存储介质和电子装置。The present application relates to the field of object control, and in particular to an object control method and apparatus, a storage medium, and an electronic device in a game application.
现有的竞速类游戏在游戏过程中,当玩家积攒的能量足够多时,可以触发加速功能,提高玩家控制的对象在游戏中的速度。例如,对于一些竞速类游戏,当赛车在游戏中使用漂移操作,赛车在漂移中积蓄的能量达到一定数值时可以获得奖励道具,该奖励道具可以产生加速效果,例如,一些汽车竞速游戏中氮气道具。In the current racing game, when the player accumulates enough energy, the acceleration function can be triggered to improve the speed of the player-controlled object in the game. For example, for some racing games, when the car uses a drift operation in the game, the car can obtain a bonus item when the energy accumulated in the drift reaches a certain value, and the bonus item can generate an acceleration effect, for example, in some car racing games. Nitrogen props.
然而,上述加速的方式对玩家的操作技能要求比较高,且实现加速时的操作方式比较单一。However, the above-mentioned acceleration method requires a relatively high operational skill of the player, and the operation mode when accelerating is relatively simple.
针对上述的问题,目前尚未提出有效的解决方案。In response to the above problems, no effective solution has been proposed yet.
发明内容Summary of the invention
本申请实施例提供了一种游戏应用中的对象控制方法和装置、存储介质和电子装置,以至少解决游戏应用中的对象在加速时操作方式比较单一的技术问题。The embodiment of the present application provides an object control method and apparatus, a storage medium, and an electronic device in a game application, so as to at least solve the technical problem that an object in a game application operates in a relatively simple manner during acceleration.
根据本申请实施例的一个方面,提供了一种游戏应用中的对象控制方法,包括:在游戏应用的客户端运行的过程中,判断所述客户端中的目标
对象是否执行了第一预定操作;在判断出所述目标对象执行了所述第一预定操作的情况下,在所述客户端的显示区域上将第一虚拟按键的状态设置为允许触控的状态,其中,所述第一虚拟按键与所述第一预定操作相对应;在所述客户端的显示区域上检测到对所述第一虚拟按键的第一触控操作;响应所述第一触控操作,在所述客户端中对所述目标对象执行第一加速操作。According to an aspect of the embodiments of the present application, an object control method in a game application is provided, including: determining a target in the client during a running process of a client of the game application
Whether the object performs the first predetermined operation; if it is determined that the target object performs the first predetermined operation, setting the state of the first virtual button to the state of allowing the touch on the display area of the client The first virtual button corresponds to the first predetermined operation; detecting a first touch operation on the first virtual button on a display area of the client; responding to the first touch An operation of performing a first acceleration operation on the target object in the client.
根据本申请实施例的另一方面,还提供了一种游戏应用中的对象控制装置,包括:第一判断单元,用于在游戏应用的客户端运行的过程中,判断所述客户端中的目标对象是否执行了第一预定操作;第一设置单元,用于在判断出所述目标对象执行了所述第一预定操作的情况下,在所述客户端的显示区域上将第一虚拟按键的状态设置为允许触控的状态,其中,所述第一虚拟按键与所述第一预定操作相对应;第一检测单元,用于在所述客户端的显示区域上检测到对所述第一虚拟按键的第一触控操作;第一执行单元,用于响应所述第一触控操作,在所述客户端中对所述目标对象执行第一加速操作。According to another aspect of the embodiments of the present application, an object control apparatus in a game application is provided, including: a first determining unit, configured to determine, in a process of running a client of a game application, in the client Whether the target object performs the first predetermined operation; the first setting unit is configured to: when it is determined that the target object performs the first predetermined operation, the first virtual button is displayed on the display area of the client The state is set to a state in which the touch is allowed, wherein the first virtual button corresponds to the first predetermined operation; the first detecting unit is configured to detect the first virtual on the display area of the client a first touch operation of the button; the first execution unit is configured to perform a first acceleration operation on the target object in the client in response to the first touch operation.
根据本申请实施例的又一个方面,提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述的方法。According to still another aspect of embodiments of the present application, a storage medium is provided, the storage medium including a stored program, wherein the program executes the method described above while it is running.
根据本申请实施例的又一个方面,提供了一种电子装置,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器通过所述计算机程序执行上述的方法。According to still another aspect of an embodiment of the present application, an electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor passing the computer The program performs the above method.
在本申请实施例中,在检测到目标对象执行了第一预定操作后,就可以在客户端的显示区域上显示相应的第一虚拟按键,该第一虚拟按键可以实现加速的动能,在玩家触控了该第一虚拟按键后,就可以控制目标对象进行加速,在这个过程中,并不需要目标对象在执行某个动作的同时积蓄能量,解决了游戏应用中的对象在加速时操作方式比较单一的技术问题,进而达到丰富游戏应用中的对象在加速时的操作方式的技术效果。同时,由于这是方式并不需要积蓄能量,降低了对玩家的操作技能的要求,并且,
对于具有较高操作技能的玩家来说,丰富了操控方式,提高了用户体验。In the embodiment of the present application, after detecting that the target object performs the first predetermined operation, the corresponding first virtual button may be displayed on the display area of the client, and the first virtual button may implement accelerated kinetic energy, and the player touches After the first virtual button is controlled, the target object can be controlled for acceleration. In this process, the target object does not need to accumulate energy while performing an action, and the operation mode of the object in the game application is accelerated. A single technical problem, in turn, achieves the technical effect of enriching the way the object in the game application operates during acceleration. At the same time, since this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are reduced, and
For players with high operational skills, the control method is enriched and the user experience is improved.
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1是根据本申请实施例的游戏应用中的对象控制方法的硬件环境的示意图;1 is a schematic diagram of a hardware environment of an object control method in a game application according to an embodiment of the present application;
图2是根据本申请实施例的一种可选的游戏应用中的对象控制方法的流程图;2 is a flowchart of an object control method in an optional game application according to an embodiment of the present application;
图3是根据本申请实施例的一种可选的虚拟控制键的示意图;3 is a schematic diagram of an optional virtual control key according to an embodiment of the present application;
图4是根据本申请实施例的滑动操作的示意图;4 is a schematic view of a sliding operation according to an embodiment of the present application;
图5是根据本申请实施例的刹车键所在位置的示意图;FIG. 5 is a schematic diagram of a position of a brake key according to an embodiment of the present application; FIG.
图6是根据本申请实施例的虚拟键响应区域的示意图;6 is a schematic diagram of a virtual key response area according to an embodiment of the present application;
图7是根据本申请实施例的滑动操作的流程图;7 is a flow chart of a sliding operation in accordance with an embodiment of the present application;
图8是根据本申请实施例另一种可选地的游戏应用中的对象控制方法的流程图;8 is a flowchart of an object control method in another optional game application according to an embodiment of the present application;
图9是根据本申请实施例的一种可选的游戏应用中的对象控制装置的示意图;以及9 is a schematic diagram of an object control device in an optional game application according to an embodiment of the present application;
图10是根据本申请实施例的一种终端的结构框图。FIG. 10 is a structural block diagram of a terminal according to an embodiment of the present application.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,
显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application.
It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope shall fall within the scope of the application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、***、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or order. It is to be understood that the data so used may be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
根据本申请实施例,提供了一种游戏应用中的对象控制方法的方法实施例。According to an embodiment of the present application, a method embodiment of an object control method in a game application is provided.
可选地,在本实施例中,上述游戏应用中的对象控制方法可以应用于如图1所示的由服务器102和终端104所构成的硬件环境中。如图1所示,服务器102通过网络与终端104进行连接,上述网络包括但不限于:广域网、城域网或局域网,终端104并不限定于PC、手机、平板电脑等。本申请实施例的游戏应用中的对象控制方法可以由终端104来执行,还可以是由服务器102和终端104共同执行。其中,终端104执行本申请实施例的游戏应用中的对象控制方法也可以是由安装在其上的客户端来执行。本申请实施例的游戏应用中的对象控制方法尤其适用于手机、平板电脑等移动终端。Alternatively, in the embodiment, the object control method in the above game application may be applied to a hardware environment constituted by the server 102 and the terminal 104 as shown in FIG. 1. As shown in FIG. 1, the server 102 is connected to the terminal 104 through a network. The network includes but is not limited to a wide area network, a metropolitan area network, or a local area network. The terminal 104 is not limited to a PC, a mobile phone, a tablet, or the like. The object control method in the game application of the embodiment of the present application may be executed by the terminal 104, or may be performed by the server 102 and the terminal 104 in common. The object control method in the game application in which the terminal 104 executes the embodiment of the present application may also be executed by a client installed thereon. The object control method in the game application of the embodiment of the present application is particularly applicable to mobile terminals such as mobile phones and tablet computers.
图2是根据本申请实施例的一种可选的游戏应用中的对象控制方法的流程图,如图2所示,该方法可以包括以下步骤:2 is a flowchart of an object control method in an optional game application according to an embodiment of the present application. As shown in FIG. 2, the method may include the following steps:
步骤S202,在游戏应用的客户端运行的过程中,判断客户端中的目标对象是否执行了第一预定操作。
Step S202, in the process of running the client of the game application, determining whether the target object in the client performs the first predetermined operation.
游戏应用的客户端可以是安装在终端104上的客户端。该游戏应用可以是竞速类游戏,或者其他需要加速功能的游戏。目标对象是游戏应用中的***控对象,如竞速类游戏中的赛车。第一预定操作是目标对象所执行的动作,如竞速类游戏中的赛车在行驶过程中执行的动作,如飞跃山坡的动作等。The client of the gaming application may be a client installed on the terminal 104. The game application can be a racing game or other game that requires acceleration. The target object is the manipulated object in the game application, such as a racing car in a racing game. The first predetermined operation is an action performed by the target object, such as an action performed by the racing car in the racing game, such as a movement on a hillside.
步骤S204,在判断出目标对象执行了第一预定操作的情况下,在客户端的显示区域上将第一虚拟按键的状态设置为允许触控的状态,其中,第一虚拟按键与第一预定操作相对应。Step S204, in the case that it is determined that the target object performs the first predetermined operation, setting the state of the first virtual button to the state of allowing the touch on the display area of the client, wherein the first virtual button and the first predetermined operation Corresponding.
在目标对象执行了第一预定操作后,在客户端的显示区域上显示的第一虚拟按键就处于允许触控状态,当玩家点击显示区域上的第一虚拟按键,就可以在目标对象上实现第一虚拟按键所对应的功能。例如,在赛车竞速游戏应用中显示“小喷”按键就可以作为第一虚拟按键,当赛车执行了飞跃山坡的动作后,“小喷”按键就处于允许触控的状态。After the target object performs the first predetermined operation, the first virtual button displayed on the display area of the client is in the touch-enabled state, and when the player clicks the first virtual button on the display area, the target object can be implemented on the target object. The function corresponding to a virtual button. For example, in the racing racing game application, the "small spray" button can be used as the first virtual button. When the car performs the action of flying the hillside, the "small spray" button is in a state of allowing touch.
步骤S206,在客户端的显示区域上检测到对第一虚拟按键的第一触控操作。Step S206, detecting a first touch operation on the first virtual button on the display area of the client.
步骤S208,响应第一触控操作,在客户端中对目标对象执行第一加速操作。Step S208, in response to the first touch operation, perform a first acceleration operation on the target object in the client.
在显示区域上检测到的第一触控操作可以是玩家的触控操作,玩家点击了显示区域中的第一虚拟按键,就可以触发第一虚拟按键,并执行第一虚拟按键所对应的功能。玩家可以控制执行第一虚拟按键的时间,也就是说,玩家可以控制“小喷”功能什么时间作用在赛车上。“小喷”的功能是提高赛车的行驶速度,因此,在检测到玩家触控了第一虚拟按键后,提高赛车的行驶速度。The first touch operation detected on the display area may be a touch operation of the player. When the player clicks the first virtual button in the display area, the first virtual button may be triggered, and the function corresponding to the first virtual button is executed. . The player can control the time at which the first virtual button is executed, that is, the player can control when the "small spray" function is applied to the car. The function of "small spray" is to increase the speed of the car. Therefore, after detecting that the player touches the first virtual button, the speed of the car is increased.
通过上述实施例,在检测到目标对象执行了第一预定操作后,就可以在客户端的显示区域上显示相应的第一虚拟按键,该第一虚拟按键可以实现加速的动能,在玩家触控了该第一虚拟按键后,就可以控制目标对象进
行加速,在这个过程中,并不需要目标对象在执行某个动作的同时积蓄能量,解决了游戏应用中的对象在加速时操作方式比较单一的技术问题,进而达到丰富游戏应用中的对象在加速时的操作方式的技术效果。同时,由于这是方式并不需要积蓄能量,降低了对玩家的操作技能的要求,并且,对于具有较高操作技能的玩家来说,丰富了操控方式,提高了用户体验。Through the above embodiment, after detecting that the target object performs the first predetermined operation, the corresponding first virtual button may be displayed on the display area of the client, and the first virtual button may implement accelerated kinetic energy, and the player touches After the first virtual button, the target object can be controlled.
Line acceleration, in this process, does not require the target object to accumulate energy while performing an action, and solves the technical problem that the object in the game application operates in a relatively simple manner during acceleration, thereby achieving the object in the rich game application. The technical effect of the operation mode when accelerating. At the same time, since this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are lowered, and for players with higher operational skills, the manipulation mode is enriched and the user experience is improved.
可选地,在游戏应用的客户端运行的过程中,方法还包括:判断客户端中的目标对象是否执行了第二预定操作、且执行第二预定操作所累计产生的目标对象的属性值是否大于预定阈值;在判断出客户端中的目标对象执行了第二预定操作、且执行第二预定操作所累计产生的目标对象的属性值大于预定阈值的情况下,在客户端的显示区域上将第二虚拟按键的状态设置为允许触控的状态,其中,第二虚拟按键与第二预定操作相对应;在客户端的显示区域上检测到对第二虚拟按键的第二触控操作;响应第二触控操作,在客户端中对目标对象执行第二加速操作,其中,第一加速操作的执行时间小于第二加速操作的执行时间。Optionally, in the process of running the client of the game application, the method further includes: determining whether the target object in the client performs the second predetermined operation, and performing the second predetermined operation to generate an attribute value of the target object If it is determined that the target object in the client performs the second predetermined operation and the attribute value of the target object generated by the second predetermined operation is greater than the predetermined threshold, the display area on the client side is The state of the second virtual button is set to allow the state of the touch, wherein the second virtual button corresponds to the second predetermined operation; the second touch operation on the second virtual button is detected on the display area of the client; The touch operation performs a second acceleration operation on the target object in the client, wherein the execution time of the first acceleration operation is less than the execution time of the second acceleration operation.
第二预定操作可以是赛车执行的漂移动作,属性值可以是赛车在漂移过程中积蓄的能量值,第二虚拟按键可以是赛车的“氮气”键,“氮气”键对应的功能是加速操作(即第二加速操作)。该第二加速操作与第一加速操作的区别在于,第二加速操作的加速时间比第一加速操作的加速时间更长。第一加速操作的执行时间为第一触控操作后目标对象持续加速的时间,第二加速操作的执行时间为在第二触控操作后目标对象持续加速的时间。例如,第一加速操作后目标对象持续加速的时间为0.5秒,第二加速操作后目标对象持续加速的时间为3秒。The second predetermined operation may be a drifting action performed by the racing car, the attribute value may be an energy value accumulated by the racing car during the drifting process, the second virtual button may be a “nitrogen” button of the racing car, and the function corresponding to the “nitrogen” button is an acceleration operation ( That is, the second acceleration operation). The second acceleration operation differs from the first acceleration operation in that the acceleration time of the second acceleration operation is longer than the acceleration time of the first acceleration operation. The execution time of the first acceleration operation is the time when the target object continues to accelerate after the first touch operation, and the execution time of the second acceleration operation is the time when the target object continues to accelerate after the second touch operation. For example, the target object continues to accelerate for 0.5 seconds after the first acceleration operation, and the target object continues to accelerate for 3 seconds after the second acceleration operation.
例如:在赛车竞速游戏的游戏应用中,赛车在行驶过程中执行了漂移动作(即第二预定操作),并且执行漂移动作积蓄的能量填满了如图6所示的能量槽(即累计产生的目标对象的属性值大于预定阈值),此时在显示区域上显示的第二虚拟按键为允许触控的状态,当玩家点击第二虚拟按键后,将第二虚拟按键所指示的加速操作作用在赛车上,且此时赛车持续
加速的时间大于第一虚拟按键所指示的加速操作作用在赛车上时赛车持续加速的时间。For example, in a game application of a racing game, the car performs a drifting action (ie, a second predetermined operation) while driving, and the energy of performing the drifting action accumulates the energy slot as shown in FIG. The generated attribute value of the target object is greater than a predetermined threshold. The second virtual button displayed on the display area is in a state of allowing touch. When the player clicks the second virtual button, the acceleration operation indicated by the second virtual button is performed. Acting on the car, and the car continues at this time
The acceleration time is greater than the time when the acceleration operation indicated by the first virtual button acts on the car and the car continues to accelerate.
在本实施例中,在客户端的显示区域上可以同时显示第一虚拟按键和第二虚拟按键,如果目标对象通过第二预定操作先获得了第二虚拟按键对应的第二加速操作的奖励,当目标对象再执行第一预定操作后,还会获得第一虚拟按键对应的第一加速操作的奖励,获得第一加速操作和第二加速操作的顺序并不限定,反之亦可。玩家可以根据需要选择执行第一加速操作、第二加速操作或者既执行第一加速操作又执行第二加速操作。In this embodiment, the first virtual button and the second virtual button may be simultaneously displayed on the display area of the client, and if the target object obtains the reward of the second acceleration operation corresponding to the second virtual button by using the second predetermined operation, when After the target object performs the first predetermined operation, the reward of the first acceleration operation corresponding to the first virtual button is also obtained, and the order of obtaining the first acceleration operation and the second acceleration operation is not limited, and vice versa. The player may select to perform the first acceleration operation, the second acceleration operation, or both the first acceleration operation and the second acceleration operation as needed.
由于加速操作可以选择加速时间较短的第一加速操作,还可以选择加速时间较长的第二加速操作,不仅丰富了加速操作的操作形式,还增强了用户对目标对象的控制感,提高了用户体验。Since the acceleration operation can select the first acceleration operation with a shorter acceleration time, the second acceleration operation with a longer acceleration time can be selected, which not only enriches the operation mode of the acceleration operation, but also enhances the user's sense of control over the target object, and improves the control. user experience.
可选地,客户端的显示区域上还设置有第三虚拟按键,其中,第三虚拟按键用于控制目标对象的方向,第三虚拟按键与第二虚拟按键位于显示区域的两侧,第一虚拟按键与第二虚拟按键位于显示区域的同侧。Optionally, a third virtual button is further disposed on the display area of the client, where the third virtual button is used to control the direction of the target object, and the third virtual button and the second virtual button are located on both sides of the display area, the first virtual The button and the second virtual button are located on the same side of the display area.
如图3所示,第三虚拟按键包括左方向按键和右方向按键,用来控制目标对象的方向。控制加速的第一虚拟按键和第二虚拟按键设置在与第三虚拟按键所在的显示区域的不同侧,第二虚拟按键和第一虚拟按键设置在同侧,这样的设置可以便于左手和右手分别控制目标对象的加速和方向。As shown in FIG. 3, the third virtual button includes a left direction button and a right direction button for controlling the direction of the target object. The first virtual button and the second virtual button that control acceleration are disposed on different sides of the display area where the third virtual button is located, and the second virtual button and the first virtual button are disposed on the same side, such that the setting can facilitate the left hand and the right hand respectively Controls the acceleration and direction of the target object.
可选地,在客户端的显示区域上检测到对第二虚拟按键的第二触控操作时,方法还包括:在客户端的显示区域上检测到对第三虚拟按键的第三触控操作,其中,第三虚拟按键用于控制目标对象的方向,第三虚拟按键与第二虚拟按键位于显示区域的两侧,第一虚拟按键与第二虚拟按键位于显示区域的同侧;响应第二触控操作,在客户端中对目标对象执行第二加速操作包括:在客户端中,按照第三触控操作所指示的方向对目标对象执行第二加速操作。Optionally, when the second touch operation on the second virtual button is detected on the display area of the client, the method further includes: detecting a third touch operation on the third virtual button on the display area of the client, where The third virtual button is used to control the direction of the target object, and the third virtual button and the second virtual button are located on two sides of the display area, and the first virtual button and the second virtual button are located on the same side of the display area; The operation of performing the second acceleration operation on the target object in the client includes: performing, in the client, a second acceleration operation on the target object according to the direction indicated by the third touch operation.
具体地,图3的右侧示出了第一虚拟按键“小喷”、第二虚拟按键“氮
气”和“漂移”三个功能键,如图3所示,图3示出的三个键都处于允许触控的状态,玩家点击某个功能键就能实现相应的功能。图3的左侧示出了第三虚拟按键“方向”,包括左方向按键和右方向按键,第三虚拟按键可以控制目标对象朝向左或者右行驶。例如,当玩家触控第三虚拟按键中右方向按键“>”时,控制目标对象向右行驶,当玩家触控第三虚拟按键中左方向按键“<”时,控制目标对象向左行驶。Specifically, the right side of FIG. 3 shows the first virtual button "small spray" and the second virtual button "nitrogen
The three function keys of “gas” and “drift” are shown in Fig. 3. The three keys shown in Fig. 3 are in the state of allowing touch, and the player can click the function key to realize the corresponding function. The side shows the third virtual button "direction", including the left direction button and the right direction button, and the third virtual button can control the target object to travel to the left or right. For example, when the player touches the right button in the third virtual button " >", the control target object travels to the right, and when the player touches the left direction button "<" in the third virtual button, the control target object travels to the left.
如果玩家控制了目标对象的行驶方向的同时,又触控了第二虚拟按键,则控制目标对象在当前行驶方向上执行第二加速操作。同理,在玩家控制了目标对象的行驶方向的同时,又触控了第一虚拟按键,则控制目标对象在当前行驶方向上执行第一加速操作。If the player touches the second virtual button while controlling the traveling direction of the target object, the control target object performs the second acceleration operation in the current traveling direction. Similarly, when the player controls the driving direction of the target object and touches the first virtual button, the control target object performs the first acceleration operation in the current driving direction.
如图3所示,控制加速的第一虚拟按键和第二虚拟按键都处在显示区域的右侧,控制方向的第三虚拟按键处于显示区域的左侧,便于玩家用左手和右手分别控制方向键和加速键,从而可以实现在控制加速的同时控制目标对象的左右方向。同时,本实施例的第一虚拟按键和第二虚拟按键也可以位于显示区域左侧,控制方向的第三虚拟按键处于显示区域的右侧。即本实施例可以控制目标对象进行短时间的加速(小喷),较长时间加速,以及在加速的同时控制目标对象的方向,使得两只手分别控制加速和方向,增加了对目标对象操作控制的灵活性。As shown in FIG. 3, the first virtual button and the second virtual button that control acceleration are both on the right side of the display area, and the third virtual button in the control direction is on the left side of the display area, so that the player can control the direction separately by the left hand and the right hand. The key and the accelerator key enable control of the left and right direction of the target object while controlling acceleration. Meanwhile, the first virtual button and the second virtual button of the embodiment may also be located on the left side of the display area, and the third virtual button in the control direction is located on the right side of the display area. That is, the embodiment can control the target object to perform short-time acceleration (small spray), accelerate for a long time, and control the direction of the target object while accelerating, so that the two hands respectively control the acceleration and the direction, and increase the operation on the target object. Control flexibility.
可选地,在客户端中,按照第三触控操作所指示的方向对目标对象执行第二加速操作包括:判断第三触控操作是否为从第一按键响应区域滑动到第二按键响应区域的第一滑动操作,其中,第一按键响应区域和第二按键响应区域均为显示区域中第三虚拟按键所在的按键响应区域;在判断出第三触控操作为第一滑动操作的情况下,按照第二按键响应区域所对应的方向对目标对象执行第二加速操作。Optionally, in the client, performing the second acceleration operation on the target object according to the direction indicated by the third touch operation includes: determining whether the third touch operation is sliding from the first button response region to the second button response region a first sliding operation, wherein the first button response area and the second button response area are both key response areas in which the third virtual button is located in the display area; and when the third touch operation is determined to be the first sliding operation And performing a second acceleration operation on the target object according to the direction corresponding to the second button response area.
当第三触控操作为滑动操作时,滑动操作最终停留的区域对应的虚拟按键就是该第三触控操作所要触控的操作。如图4所示,玩家的左手手指从第三虚拟按键中的左方向按键所在的区域滑动至第三虚拟按键中的右
方向按键所在的区域,触发第三虚拟按键中的右方向键,控制赛车向右方向行驶。如果此时赛车执行加速操作,则在赛车向右方向行驶的同时执行加速操作。When the third touch operation is a sliding operation, the virtual button corresponding to the area where the sliding operation finally stays is the operation to be touched by the third touch operation. As shown in FIG. 4, the player's left hand finger slides from the area where the left direction button of the third virtual button is located to the right of the third virtual button.
The area where the direction button is located triggers the right arrow key in the third virtual button to control the car to drive in the right direction. If the car performs an acceleration operation at this time, the acceleration operation is performed while the car is traveling in the right direction.
由于在显示区域上可以同时显示第一虚拟按键和第二虚拟按键,在执行第一虚拟按键和第二虚拟按键对应的加速操作时,也可以以手指滑动的方式来切换第一加速操作和第二加速操作。Since the first virtual button and the second virtual button can be simultaneously displayed on the display area, when the acceleration operation corresponding to the first virtual button and the second virtual button is performed, the first acceleration operation and the first sliding operation can also be switched by finger sliding. Second, accelerate the operation.
可选地,响应第一触控操作,在客户端中对目标对象执行第一加速操作包括:判断第一触控操作是否为从第三按键响应区域滑动到第四按键响应区域的第二滑动操作,其中,第三按键响应区域和第四按键响应区域均为显示区域中的按键响应区域,第三按键响应区域为第二虚拟按键所在的按键响应区域,第四按键响应区域为第一虚拟按键所在的按键响应区域;在判断出第一触控操作为第二滑动操作的情况下,在客户端中对目标对象执行与第二按键响应区域所对应的第一加速操作。Optionally, in response to the first touch operation, performing the first acceleration operation on the target object in the client includes: determining whether the first touch operation is a second sliding from the third button response region to the fourth button response region The operation, wherein the third button response area and the fourth button response area are key response areas in the display area, the third button response area is a button response area where the second virtual button is located, and the fourth button response area is the first virtual The button response area where the button is located; in the case that it is determined that the first touch operation is the second sliding operation, the first acceleration operation corresponding to the second button response area is performed on the target object in the client.
第二虚拟按键对应第三按键响应区域,第一虚拟按键对应第四按键响应区域,第一触控操作可以是从第三按键响应区域到第四按键响应区域的第二滑动操作,第二滑动操作最终落在第四按键响应区域,也就相当于触控了第一虚拟按键,因此,执行第一虚拟按键对应的第一加速操作。The second virtual button corresponds to the third button response area, and the first virtual button corresponds to the fourth button response area, and the first touch operation may be a second sliding operation from the third button response region to the fourth button response region, and the second sliding The operation finally falls on the fourth button response area, which is equivalent to touching the first virtual button. Therefore, the first acceleration operation corresponding to the first virtual button is performed.
在显示区域的一侧可以显示第一虚拟按键、第二虚拟按键和表示漂移的虚拟按键,玩家可以在这三个虚拟按键之间执行滑动操作,滑动操作最终落在哪个虚拟按键所在的响应区域,就执行哪个虚拟按键对应的操作。A first virtual button, a second virtual button, and a virtual button indicating drift can be displayed on one side of the display area, and the player can perform a sliding operation between the three virtual buttons, and the sliding operation finally falls on the response area where the virtual button is located. , which virtual button is executed corresponding to the operation.
如图4所示,玩家的右手手指从表示漂移的虚拟按键滑动到第一虚拟按键,则执行第一虚拟按键对应的第一加速操作,完成了从控制目标对象漂移到控制目标对象执行第一加速操作的切换。As shown in FIG. 4, the player's right hand finger slides from the virtual button indicating the drift to the first virtual button, and then performs a first acceleration operation corresponding to the first virtual button, and completes the first drift from the control target object to the control target object. Accelerate the switching of operations.
在本实施例中,当用户控制目标对象执行完某个动作,又继续执行另外一个动作时,无需抬起手指,而是在显示区域上进行滑动就能执行另外一个动作。在这个过程中,手指不需离开客户端所在终端的屏幕,按住滑
动即可完成按键切换操作,即可降低操作负担,又可更方便的进行连续操作,提高了操作方式的灵活性。In this embodiment, when the user controls the target object to perform a certain action and continues to perform another action, it is possible to perform another action without sliding the finger and sliding on the display area. In this process, the finger does not need to leave the screen of the terminal where the client is located, and press and hold the slide.
The button switching operation can be completed, the operation burden can be reduced, and the continuous operation can be more conveniently performed, thereby improving the flexibility of the operation mode.
可选地,客户端的显示区域上默认不显示第四虚拟按键,第四虚拟按键用于对目标对象进行减速操作,其中,在游戏应用的客户端运行的过程中,方法还包括:在客户端中接收设置指令;响应设置指令,将第四虚拟按键显示在显示区域上,并在显示区域上将第四虚拟按键的状态设置为允许触控的状态,其中,第一虚拟按键与第四虚拟按键位于显示区域的同侧。Optionally, the fourth virtual button is not displayed by default on the display area of the client, and the fourth virtual button is used to perform a deceleration operation on the target object, wherein, in the process of running the client of the game application, the method further includes: at the client end Receiving a setting instruction; in response to the setting instruction, displaying the fourth virtual button on the display area, and setting a state of the fourth virtual button to a state of allowing touch on the display area, wherein the first virtual button and the fourth virtual button The buttons are located on the same side of the display area.
在竞速类游戏中,第四虚拟按键可以实现减速效果。例如,刹车等制动装置。为了避免造成提示的混乱和操作的繁琐,在默认情况下不显示第四虚拟按键,通过玩家的设置可以在显示区域上显示第四虚拟按键。即,客户端接收玩家的设置指令,该设置指令用于指示将第四虚拟按键显示在显示区域,并且使第四虚拟按键在显示区域处于允许触控的状态。这样,如果玩家需要对目标对象执行减速操作,则可以触控该第四虚拟按键以达到减速的目的。为了提高操作的便捷性和灵活性,可以将第四虚拟按键与第一虚拟按键设置在同侧。In the racing game, the fourth virtual button can achieve a deceleration effect. For example, a brake device such as a brake. In order to avoid the confusion of the prompt and the cumbersome operation, the fourth virtual button is not displayed by default, and the fourth virtual button can be displayed on the display area by the player's setting. That is, the client receives a setting instruction of the player for instructing to display the fourth virtual key in the display area, and causing the fourth virtual key to be in the state of allowing touch in the display area. In this way, if the player needs to perform a deceleration operation on the target object, the fourth virtual button can be touched to achieve the purpose of deceleration. In order to improve the convenience and flexibility of the operation, the fourth virtual button and the first virtual button may be disposed on the same side.
如图5所示,在显示区域的右侧显示“刹车”按键。在默认不显示第四虚拟按键的时候可以避免新手玩家的误操作,使得显示区域显示的加速按键更加突出,通过设置显示“刹车”按键,可以满足部分有刹车需求的玩家对目标对象进行控制,增强了目标对象的可操控性。As shown in FIG. 5, the "brake" button is displayed on the right side of the display area. When the fourth virtual button is not displayed by default, the wrong operation of the novice player can be avoided, so that the acceleration button displayed in the display area is more prominent. By setting the display "brake" button, the player who has the braking requirement can be controlled to control the target object. Enhanced maneuverability of the target object.
可选地,第四按键响应区域包括第一虚拟按键在显示区域中所显示的区域,且第四按键响应区域大于第一虚拟按键在显示区域中所显示的区域。Optionally, the fourth button response area includes an area displayed by the first virtual button in the display area, and the fourth button response area is larger than the area displayed by the first virtual button in the display area.
如图6所示,第一虚拟按键在显示区域内所占区域为矩形区域1,而实际上第四按键响应区域为矩形区域2,显然,矩形区域2大于矩形区域1,也就是说,当滑动操作落在矩形区域2内就可以实现触发第一虚拟按键,而不必须落在矩形区域1中。对于本实施例提供的滑动触发的方式,当手指从第四按键响应区域外移动到第四按键响应区域内时也会视为有效触发。类似的,对于第二虚拟按键、漂移键和刹车键,内侧的小矩形框
为相应功能键在显示区域内所占的区域,外侧的大矩形框为实际的按键响应区域。As shown in FIG. 6, the area occupied by the first virtual button in the display area is a rectangular area 1, and the fourth key response area is actually a rectangular area 2. Obviously, the rectangular area 2 is larger than the rectangular area 1, that is, when The sliding operation falls within the rectangular area 2 to trigger the first virtual key without having to fall in the rectangular area 1. For the sliding trigger mode provided by the embodiment, when the finger moves from outside the fourth button response area to the fourth button response area, it is also regarded as a valid trigger. Similarly, for the second virtual button, drift button and brake button, the small rectangle inside
The area of the corresponding function key in the display area, the outer large rectangular frame is the actual button response area.
同时图6还示出了第一按键响应区和第二按键响应区,均大于左向按键和右向按键在显示区域内所占的区域。At the same time, FIG. 6 also shows the first button response area and the second button response area, both of which are larger than the area occupied by the left and right buttons in the display area.
以下结合图7对本实施例的滑动操作进行说明。The sliding operation of this embodiment will be described below with reference to FIG.
S801,手指按下或者滑动。即检测显示区域上手指的按下动作或者滑动动作。S801, the finger is pressed or swiped. That is, the pressing action or the sliding action of the finger on the display area is detected.
S802,获取手指所在区域最上层UI对象。S802: Acquire an uppermost UI object in a region where the finger is located.
S803,判断该UI对象是否有效。如果有效,则执行S805;否则,执行S804。S803. Determine whether the UI object is valid. If it is valid, S805 is performed; otherwise, S804 is performed.
S804,置当前标签为none。S804, set the current label to none.
S805,置当前标签为该UI对象的标签。每个UI对象都会有一个独立的标签,UI对象可以是第一虚拟按键、第二虚拟按键、第三虚拟按键和第四虚拟按键等。S805: The current label is a label of the UI object. Each UI object has a separate label, and the UI object can be a first virtual button, a second virtual button, a third virtual button, and a fourth virtual button.
S806,判断当前标签和上次标签是否一致。如果一致,则认为指令没有发生变化,结束流程。如果不一致,则可能产生新的指令,执行S807。S806: Determine whether the current label is consistent with the last label. If they are consistent, the instruction is considered to have not changed and the process is terminated. If they are inconsistent, a new instruction may be generated, and S807 is executed.
S807,发送手指离开上次标签事件。S807, sending a finger to leave the last tag event.
S808,判断当前标签是否为none。如果为否,则执行S809,如果为是,则结束流程。S808: Determine whether the current label is none. If not, execute S809, and if yes, end the process.
S809,发送手指进入当前标签事件。S809: Send a finger to enter the current tag event.
由上述步骤可知,每个UI对象都对应一个独立的标签,当检测到的UI对象为有效标签的情况下,通过比较当前标签与上次标签是否一致确定是否接收到了新的指令,如果不一致,则确定手指执行了滑动,并在进一步确定当前标签不是none的情况下,确定执行新的标签所对应的UI对
象,从而可以执行UI对象对应的虚拟按键的功能。It can be seen from the above steps that each UI object corresponds to a separate label. When the detected UI object is a valid label, it is determined whether a new instruction is received by comparing whether the current label is consistent with the last label, and if not, Then determining that the finger performs the sliding, and further determining that the current label is not none, determining the UI pair corresponding to the execution of the new label
Thus, the function of the virtual button corresponding to the UI object can be executed.
需要说明的是,当手指弹起后,发送手指离开上次标签事件,并且置当前标签为none,从而整个流程结束。It should be noted that when the finger is bounced, the finger is sent away from the last tag event, and the current tag is set to none, so that the entire process ends.
以下结合图8对本实施例进行说明,以赛车竞速游戏为例。The present embodiment will be described below with reference to FIG. 8, taking a racing game as an example.
(1)(1)
901,判断是否按下左方向键。即检测是否触发第三虚拟按键中的左向按键。如果是,则执行903;如果否,执行902。901. Determine whether to press the left direction key. That is, it is detected whether the left button in the third virtual button is triggered. If yes, execute 903; if no, execute 902.
902,结束左转和左漂移。902, ending left turn and left drift.
903,是否按下右方向键。即检测是否触发第三虚拟按键中的右向方向键。如果是,执行902;如果否,执行904。903, whether to press the right arrow key. That is, it is detected whether the right direction key in the third virtual button is triggered. If yes, execute 902; if no, execute 904.
904,是否按下漂移键。如果是,执行S906;如果否,执行905。904, whether to press the drift button. If yes, execute S906; if no, execute 905.
905,左转。并且返回901。905, turn left. And return to 901.
906,左漂移。并且返回901。906, left drift. And return to 901.
(2)(2)
911,判断是否按下右方向键。即检测是否触发第三虚拟按键中的右向方向键。如果是,则执行903;如果否,执行902。911, determine whether to press the right arrow key. That is, it is detected whether the right direction key in the third virtual button is triggered. If yes, execute 903; if no, execute 902.
912,结束右转和右漂移。912, ending right turn and right drift.
913,是否按下左方向键。即检测是否触发第三虚拟按键中的左向按键。如果是,执行902;如果否,执行904。913, whether to press the left arrow key. That is, it is detected whether the left button in the third virtual button is triggered. If yes, execute 902; if no, execute 904.
914,是否按下漂移键。如果是,执行S906;如果否,执行905。914, whether to press the drift button. If yes, execute S906; if no, execute 905.
915,右转。并且返回911。915, turn right. And return to 911.
916,右漂移。并且返回911。916, right drift. And return to 911.
(3)
(3)
921,是否按下氮气键。即检测是否触发显示区域中的第二虚拟按键。如果是,执行923,;如果否,执行922。921, whether to press the nitrogen button. That is, it is detected whether the second virtual button in the display area is triggered. If yes, execute 923; if no, execute 922.
922,结束流程。922, the process ends.
923,触发氮气,执行第二加速操作。923, triggering nitrogen gas to perform a second acceleration operation.
(4)(4)
931,是否按下小喷键。即检测是否触发显示区域中的第一虚拟按键。如果是,执行923,;如果否,执行922。931, whether to press the small spray button. That is, it is detected whether the first virtual button in the display area is triggered. If yes, execute 923; if no, execute 922.
932,结束流程。932, the process ends.
933,触发小喷,执行第一加速操作。933, triggering a small spray to perform the first acceleration operation.
(5)(5)
941,是否按下刹车键。即检测是否触发显示区域中的第四虚拟按键。如果是,执行923,;如果否,执行922。941, whether to press the brake button. That is, it is detected whether the fourth virtual button in the display area is triggered. If yes, execute 923; if no, execute 922.
942,结束流程。942, the process ends.
943,触发刹车,执行减速操作。943, trigger the brake and perform the deceleration operation.
上述加速、减速和方向控制的操作并不具有先后顺序,按照接收到的指令对目标对象执行相应的操作。The above operations of acceleration, deceleration, and direction control do not have a sequence, and the corresponding operations are performed on the target object according to the received instructions.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present application. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理
解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on this rationale
The solution of the technical solution of the present application in essence or contribution to the prior art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present application.
根据本申请实施例,还提供了一种用于实施上述游戏应用中的对象控制方法的游戏应用中的对象控制装置。图9是根据本申请实施例的一种可选的游戏应用中的对象控制装置的示意图,如图9所示,该装置可以包括:According to an embodiment of the present application, there is also provided an object control apparatus in a game application for implementing an object control method in the above game application. FIG. 9 is a schematic diagram of an object control apparatus in an optional game application according to an embodiment of the present application. As shown in FIG. 9, the apparatus may include:
第一判断单元1002用于在游戏应用的客户端运行的过程中,判断客户端中的目标对象是否执行了第一预定操作;The first determining unit 1002 is configured to determine, during the running of the client of the game application, whether the target object in the client performs the first predetermined operation;
第一设置单元1004用于在判断出目标对象执行了第一预定操作的情况下,在客户端的显示区域上将第一虚拟按键的状态设置为允许触控的状态,其中,第一虚拟按键与第一预定操作相对应;The first setting unit 1004 is configured to set a state of the first virtual button to a state of allowing the touch on the display area of the client, in a case where it is determined that the target object performs the first predetermined operation, where the first virtual button is Corresponding to the first predetermined operation;
第一检测单元1006用于在客户端的显示区域上检测到对第一虚拟按键的第一触控操作;The first detecting unit 1006 is configured to detect a first touch operation on the first virtual button on the display area of the client;
第一执行单元1008用于响应第一触控操作,在客户端中对目标对象执行第一加速操作。The first execution unit 1008 is configured to perform a first acceleration operation on the target object in the client in response to the first touch operation.
需要说明的是,该实施例中的第一判断单元1002可以用于执行本申请实施例中的步骤S202,该实施例中的第一设置单元1004可以用于执行本申请实施例中的步骤S204,该实施例中的第一检测单元1006可以用于执行本申请实施例中的步骤S206,该实施例中的第一执行单元1008可以用于执行本申请实施例中的步骤S208。It should be noted that the first determining unit 1002 in this embodiment may be used to perform step S202 in the embodiment of the present application. The first setting unit 1004 in this embodiment may be used to perform step S204 in the embodiment of the present application. The first detecting unit 1006 in this embodiment may be used to perform step S206 in the embodiment of the present application. The first executing unit 1008 in this embodiment may be used to perform step S208 in the embodiment of the present application.
游戏应用的客户端可以是安装在终端104上的客户端。该游戏应用可以是竞速类游戏,或者其他需要加速功能的游戏。目标对象是游戏应用中的***控对象,如竞速类游戏中的赛车。第一预定操作是目标对象所执行的动作,如竞速类游戏中的赛车在行驶过程中执行的动作,如飞跃山坡的
动作等。The client of the gaming application may be a client installed on the terminal 104. The game application can be a racing game or other game that requires acceleration. The target object is the manipulated object in the game application, such as a racing car in a racing game. The first predetermined operation is an action performed by the target object, such as an action performed by the racing car in a racing game, such as a leap on the hillside.
Actions, etc.
在目标对象执行了第一预定操作后,在客户端的显示区域上显示的第一虚拟按键就处于允许触控状态,当玩家点击显示区域上的第一虚拟按键,就可以在目标对象上实现第一虚拟按键所对应的功能。例如,在赛车竞速游戏应用中显示“小喷”按键就可以作为第一虚拟按键,当赛车执行了飞跃山坡的动作后,“小喷”按键就处于允许触控的状态。After the target object performs the first predetermined operation, the first virtual button displayed on the display area of the client is in the touch-enabled state, and when the player clicks the first virtual button on the display area, the target object can be implemented on the target object. The function corresponding to a virtual button. For example, in the racing racing game application, the "small spray" button can be used as the first virtual button. When the car performs the action of flying the hillside, the "small spray" button is in a state of allowing touch.
在显示区域上检测到的第一触控操作可以是玩家的触控操作,玩家点击了显示区域中的第一虚拟按键,就可以触发第一虚拟按键,并执行第一虚拟按键所对应的功能。玩家可以控制执行第一虚拟按键的时间,也就是说,玩家可以控制“小喷”功能什么时间作用在赛车上。“小喷”的功能是提高赛车的行驶速度,因此,在检测到玩家触控了第一虚拟按键后,提高赛车的形式速度。The first touch operation detected on the display area may be a touch operation of the player. When the player clicks the first virtual button in the display area, the first virtual button may be triggered, and the function corresponding to the first virtual button is executed. . The player can control the time at which the first virtual button is executed, that is, the player can control when the "small spray" function is applied to the car. The function of "small spray" is to increase the speed of the car. Therefore, after detecting that the player touches the first virtual button, the speed of the form of the car is increased.
通过上述实施例,在检测到目标对象执行了第一预定操作后,就可以在客户端的显示区域上显示相应的第一虚拟按键,该第一虚拟按键可以实现加速的动能,在玩家触控了该第一虚拟按键后,就可以控制目标对象进行加速,在这个过程中,并不需要目标对象在执行某个动作的同时积蓄能量,解决了游戏应用中的对象在加速时操作方式比较单一的技术问题,进而达到丰富游戏应用中的对象在加速时的操作方式的技术效果。同时,由于这是方式并不需要积蓄能量,降低了对玩家的操作技能的要求,并且,对于具有较高操作技能的玩家来说,丰富了操控方式,提高了用户体验。Through the above embodiment, after detecting that the target object performs the first predetermined operation, the corresponding first virtual button may be displayed on the display area of the client, and the first virtual button may implement accelerated kinetic energy, and the player touches After the first virtual button, the target object can be controlled for acceleration. In this process, the target object does not need to accumulate energy while performing an action, and the object in the game application is operated in a single mode during acceleration. The technical problem, in turn, achieves the technical effect of enriching the operation mode of the object in the game application during acceleration. At the same time, since this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are lowered, and for players with higher operational skills, the manipulation mode is enriched and the user experience is improved.
可选地,装置还包括:第二判断单元,用于在游戏应用的客户端运行的过程中,判断客户端中的目标对象是否执行了第二预定操作、且执行第二预定操作所累计产生的目标对象的属性值是否大于预定阈值;第二设置单元,用于在判断出客户端中的目标对象执行了第二预定操作、且执行第二预定操作所累计产生的目标对象的属性值大于预定阈值的情况下,在客户端的显示区域上将第二虚拟按键的状态设置为允许触控的状态,其中,第二虚拟按键与第二预定操作相对应;第二检测单元,用于在客户端的显
示区域上检测到对第二虚拟按键的第二触控操作;第二执行单元,用于响应第二触控操作,在客户端中对目标对象执行第二加速操作,其中,第一加速操作的执行时间小于第二加速操作的执行时间。Optionally, the device further includes: a second determining unit, configured to determine, during the running of the client of the game application, whether the target object in the client performs the second predetermined operation, and performs the second predetermined operation to generate the cumulative Whether the attribute value of the target object is greater than a predetermined threshold; the second setting unit is configured to: when it is determined that the target object in the client performs the second predetermined operation, and the attribute value of the target object generated by performing the second predetermined operation is greater than In the case of a predetermined threshold, the state of the second virtual button is set to a state allowing touch control on the display area of the client, wherein the second virtual button corresponds to the second predetermined operation; and the second detecting unit is used for the client End of the display
A second touch operation on the second virtual button is detected on the display area; the second execution unit is configured to perform a second acceleration operation on the target object in the client in response to the second touch operation, wherein the first acceleration operation The execution time is less than the execution time of the second acceleration operation.
第二预定操作可以是赛车执行的漂移动作,属性值可以是赛车在漂移过程中积蓄的能量值,第二虚拟按键可以是赛车的“氮气”键,“氮气”键对应的功能是加速操作(即第二加速操作)。该第二加速操作与第一加速操作的区别在于,第二加速操作的加速时间比第一加速操作的加速时间更长。第一加速操作的执行时间为第一触控操作后目标对象持续加速的时间,第二加速操作的执行时间为在第二触控操作后目标对象持续加速的时间。例如,第一加速操作后目标对象持续加速的时间为0.5秒,第二加速操作后目标对象持续加速的时间为3秒。The second predetermined operation may be a drifting action performed by the racing car, the attribute value may be an energy value accumulated by the racing car during the drifting process, the second virtual button may be a “nitrogen” button of the racing car, and the function corresponding to the “nitrogen” button is an acceleration operation ( That is, the second acceleration operation). The second acceleration operation differs from the first acceleration operation in that the acceleration time of the second acceleration operation is longer than the acceleration time of the first acceleration operation. The execution time of the first acceleration operation is the time when the target object continues to accelerate after the first touch operation, and the execution time of the second acceleration operation is the time when the target object continues to accelerate after the second touch operation. For example, the target object continues to accelerate for 0.5 seconds after the first acceleration operation, and the target object continues to accelerate for 3 seconds after the second acceleration operation.
例如:在赛车竞速游戏的游戏应用中,赛车在行驶过程中执行了漂移动作(即第二预定操作),并且执行漂移动作积蓄的能量填满了能量槽(即累计产生的目标对象的属性值大于预定阈值),此时在显示区域上显示的第二虚拟按键为允许触控的状态,当玩家点击第二虚拟按键后,将第二虚拟按键所指示的加速操作作用在赛车上,且此时赛车持续加速的时间大于第一虚拟按键所指示的加速操作作用在赛车上时赛车持续加速的时间。For example, in a game application of a racing game, the car performs a drifting action (ie, a second predetermined operation) while driving, and the energy that performs the drifting action accumulates the energy slot (ie, the attribute of the cumulatively generated target object) The value is greater than the predetermined threshold), and the second virtual button displayed on the display area is in a state of allowing touch. When the player clicks the second virtual button, the acceleration operation indicated by the second virtual button is applied to the racing car, and At this point, the car continues to accelerate for a longer period of time than when the acceleration operation indicated by the first virtual button acts on the car.
在本实施例中,在客户端的显示区域上可以同时显示第一虚拟按键和第二虚拟按键,如果目标对象通过第二预定操作先获得了第二虚拟按键对应的第二加速操作的奖励,当目标对象再执行第一预定操作后,还会获得第一虚拟按键对应的第一加速操作的奖励,获得第一加速操作和第二加速操作的顺序并不限定,反之亦可。玩家可以根据需要选择执行第一加速操作、第二加速操作或者既执行第一加速操作又执行第二加速操作。In this embodiment, the first virtual button and the second virtual button may be simultaneously displayed on the display area of the client, and if the target object obtains the reward of the second acceleration operation corresponding to the second virtual button by using the second predetermined operation, when After the target object performs the first predetermined operation, the reward of the first acceleration operation corresponding to the first virtual button is also obtained, and the order of obtaining the first acceleration operation and the second acceleration operation is not limited, and vice versa. The player may select to perform the first acceleration operation, the second acceleration operation, or both the first acceleration operation and the second acceleration operation as needed.
由于加速操作可以选择加速时间较短的第一加速操作,还可以选择加速时间较长的第二加速操作,不仅丰富了加速操作的操作形式,还增强了用户对目标对象的控制感,提高了用户体验。Since the acceleration operation can select the first acceleration operation with a shorter acceleration time, the second acceleration operation with a longer acceleration time can be selected, which not only enriches the operation mode of the acceleration operation, but also enhances the user's sense of control over the target object, and improves the control. user experience.
可选地,客户端的显示区域上还设置有第三虚拟按键,其中,第三虚
拟按键用于控制目标对象的方向,第三虚拟按键与第二虚拟按键位于显示区域的两侧,第一虚拟按键与第二虚拟按键位于显示区域的同侧。Optionally, a third virtual button is further disposed on the display area of the client, where the third virtual
The button is used to control the direction of the target object, and the third virtual button and the second virtual button are located on both sides of the display area, and the first virtual button and the second virtual button are located on the same side of the display area.
如图3所示,第三虚拟按键包括左方向按键和右方向按键,用来控制目标对象的方向。控制加速的第一虚拟按键和第二虚拟按键设置在与第三虚拟按键所在的显示区域的不同侧,第二虚拟按键和第一虚拟按键设置在同侧,这样的设置可以便于左手和右手分别控制目标对象的加速和方向。As shown in FIG. 3, the third virtual button includes a left direction button and a right direction button for controlling the direction of the target object. The first virtual button and the second virtual button that control acceleration are disposed on different sides of the display area where the third virtual button is located, and the second virtual button and the first virtual button are disposed on the same side, such that the setting can facilitate the left hand and the right hand respectively Controls the acceleration and direction of the target object.
可选地,装置还包括:第三检测单元,用于第二检测单元在客户端的显示区域上检测到对第二虚拟按键的第二触控操作时,在客户端的显示区域上检测到对第三虚拟按键的第三触控操作,其中,第三虚拟按键用于控制目标对象的方向,第三虚拟按键与第二虚拟按键位于显示区域的两侧,第一虚拟按键与第二虚拟按键位于显示区域的同侧;第二执行单元包括:第一执行模块,用于在客户端中,按照第三触控操作所指示的方向对目标对象执行第二加速操作。Optionally, the device further includes: a third detecting unit, configured to: when the second detecting unit detects the second touch operation on the second virtual button on the display area of the client, detecting the pair on the display area of the client a third touch operation of the third virtual button, wherein the third virtual button is used to control the direction of the target object, the third virtual button and the second virtual button are located on both sides of the display area, and the first virtual button and the second virtual button are located The second execution unit includes: a first execution module, configured to perform a second acceleration operation on the target object in the direction indicated by the third touch operation in the client.
具体地,图3的右侧示出了第一虚拟按键“小喷”、第二虚拟按键“氮气”和“漂移”三个功能键,如图3所示,图3示出的三个键都处于允许触控的状态,玩家点击某个功能键就能实现相应的功能。图3的左侧示出了第三虚拟按键“方向”,包括左方向按键和右方向按键,第三虚拟按键可以控制目标对象朝向左或者右行驶。例如,当玩家触控第三虚拟按键中右方向按键“>”时,控制目标对象向右行驶,当玩家触控第三虚拟按键中左方向按键“<”时,控制目标对象向左行驶。Specifically, the right side of FIG. 3 shows the first virtual button "small spray", the second virtual button "nitrogen" and "drift" three function keys, as shown in FIG. 3, the three keys shown in FIG. Both are in a state of allowing touch, and the player can click a function key to implement the corresponding function. The left side of FIG. 3 shows the third virtual button "direction", including the left direction button and the right direction button, and the third virtual button can control the target object to travel to the left or right. For example, when the player touches the right direction button ">" in the third virtual button, the control target object travels to the right, and when the player touches the left direction button "<" in the third virtual button, the control target object travels to the left.
如果玩家控制了目标对象的行驶方向的同时,又触控了第二虚拟按键,则控制目标对象在当前形式方向上执行第二加速操作。同理,在玩家控制了目标对象的行驶方向的同时,又触控了第一虚拟按键,则控制目标对象在当前形式方向上执行第一加速操作。If the player touches the second virtual button while controlling the traveling direction of the target object, the control target object performs a second acceleration operation in the current form direction. Similarly, when the player controls the driving direction of the target object and touches the first virtual button, the control target object performs the first acceleration operation in the current form direction.
如图3所示,控制加速的第一虚拟按键和第二虚拟按键都处在显示区域的右侧,控制方向的第三虚拟按键处于显示区域的左侧,便于玩家用左手和右手分别控制方向键和加速键,从而可以实现在控制加速的同时控制
目标对象的左右方向。同时,本实施例的第一虚拟按键和第二虚拟按键也可以位于显示区域左侧,控制方向的第三虚拟按键处于显示区域的右侧。即本实施例可以控制目标对象进行短时间的加速(小喷),较长时间加速,以及在加速的同时控制目标对象的方向,使得两只手分别控制加速和方向,增加了对目标对象操作控制的灵活性。As shown in FIG. 3, the first virtual button and the second virtual button that control acceleration are both on the right side of the display area, and the third virtual button in the control direction is on the left side of the display area, so that the player can control the direction separately by the left hand and the right hand. Keys and accelerator keys, so that control can be achieved while controlling acceleration
The left and right direction of the target object. Meanwhile, the first virtual button and the second virtual button of the embodiment may also be located on the left side of the display area, and the third virtual button in the control direction is located on the right side of the display area. That is, the embodiment can control the target object to perform short-time acceleration (small spray), accelerate for a long time, and control the direction of the target object while accelerating, so that the two hands respectively control the acceleration and the direction, and increase the operation on the target object. Control flexibility.
可选地,第一执行模块包括:判断子模块,用于判断第三触控操作是否为从第一按键响应区域滑动到第二按键响应区域的第一滑动操作,其中,第一按键响应区域和第二按键响应区域均为显示区域中第三虚拟按键所在的按键响应区域;执行子模块,用于在判断出第三触控操作为第一滑动操作的情况下,按照第二按键响应区域所对应的方向对目标对象执行第二加速操作。Optionally, the first execution module includes: a determining submodule, configured to determine whether the third touch operation is a first sliding operation from the first key response area to the second key response area, wherein the first key response area And the second button response area is a button response area where the third virtual button is located in the display area; and the executing submodule is configured to follow the second button response area when determining that the third touch operation is the first sliding operation The corresponding direction performs a second acceleration operation on the target object.
当第三触控操作为滑动操作时,滑动操作最终停留的区域对应的虚拟按键就是该第三触控操作所要触控的操作。如图4所示,玩家的左手手指从第三虚拟按键中的左方向按键所在的区域滑动至第三虚拟按键中的右方向按键所在的区域,触发第三虚拟按键中的右方向键,控制赛车向右方向行驶。如果此时赛车执行加速操作,则在赛车向右方向行驶的同时执行加速操作。When the third touch operation is a sliding operation, the virtual button corresponding to the area where the sliding operation finally stays is the operation to be touched by the third touch operation. As shown in FIG. 4, the player's left hand finger slides from the area where the left direction button of the third virtual button is located to the area where the right direction button of the third virtual button is located, triggers the right direction key of the third virtual button, and controls The car is driving in the right direction. If the car performs an acceleration operation at this time, the acceleration operation is performed while the car is traveling in the right direction.
由于在显示区域上可以同时显示第一虚拟按键和第二虚拟按键,在执行第一虚拟按键和第二虚拟按键对应的加速操作时,也可以以手指滑动的方式来切换第一加速操作和第二加速操作。Since the first virtual button and the second virtual button can be simultaneously displayed on the display area, when the acceleration operation corresponding to the first virtual button and the second virtual button is performed, the first acceleration operation and the first sliding operation can also be switched by finger sliding. Second, accelerate the operation.
可选地,第一执行单元包括:判断模块,用于判断第一触控操作是否为从第三按键响应区域滑动到第四按键响应区域的第二滑动操作,其中,第三按键响应区域和第四按键响应区域均为显示区域中的按键响应区域,第三按键响应区域为第二虚拟按键所在的按键响应区域,第四按键响应区域为第一虚拟按键所在的按键响应区域;第二执行模块,用于在判断出第一触控操作为第二滑动操作的情况下,在客户端中对目标对象执行与第二按键响应区域所对应的第一加速操作。
Optionally, the first execution unit includes: a determining module, configured to determine whether the first touch operation is a second sliding operation from the third button response area to the fourth button response area, wherein the third button response area and The fourth button response area is a button response area in the display area, the third button response area is a button response area where the second virtual button is located, and the fourth button response area is a button response area where the first virtual button is located; And a module, configured to perform, in the client, a first acceleration operation corresponding to the second button response region in the client in the case that the first touch operation is determined to be the second sliding operation.
第二虚拟按键对应第三按键响应区域,第一虚拟按键对应第四按键响应区域,第一触控操作可以是从第三按键响应区域到第四按键响应区域的第二滑动操作,第二滑动操作最终落在第四按键响应区域,也就相当于触控了第一虚拟按键,因此,执行第一虚拟按键对应的第一加速操作。The second virtual button corresponds to the third button response area, and the first virtual button corresponds to the fourth button response area, and the first touch operation may be a second sliding operation from the third button response region to the fourth button response region, and the second sliding The operation finally falls on the fourth button response area, which is equivalent to touching the first virtual button. Therefore, the first acceleration operation corresponding to the first virtual button is performed.
在显示区域的一侧可以显示第一虚拟按键、第二虚拟按键和表示漂移的虚拟按键,玩家可以在这三个虚拟按键之间执行滑动操作,滑动操作最终落在哪个虚拟按键所在的响应区域,就执行哪个虚拟按键对应的操作。A first virtual button, a second virtual button, and a virtual button indicating drift can be displayed on one side of the display area, and the player can perform a sliding operation between the three virtual buttons, and the sliding operation finally falls on the response area where the virtual button is located. , which virtual button is executed corresponding to the operation.
如图4所示,玩家的右手手指从表示漂移的虚拟按键滑动到第一虚拟按键,则执行第一虚拟按键对应的第一加速操作,完成了从控制目标对象漂移到控制目标对象执行第一加速操作的切换。As shown in FIG. 4, the player's right hand finger slides from the virtual button indicating the drift to the first virtual button, and then performs a first acceleration operation corresponding to the first virtual button, and completes the first drift from the control target object to the control target object. Accelerate the switching of operations.
在本实施例中,当用户控制目标对象执行完某个动作,又继续执行另外一个动作时,无需抬起手指,而是在显示区域上进行滑动就能执行另外一个动作。在这个过程中,手指不需离开客户端所在终端的屏幕,按住滑动即可完成按键切换操作,即可降低操作负担,又可更方便的进行连续操作,提高了操作方式的灵活性。In this embodiment, when the user controls the target object to perform a certain action and continues to perform another action, it is possible to perform another action without sliding the finger and sliding on the display area. In this process, the finger does not need to leave the screen of the terminal where the client is located, and press and hold the slide to complete the button switching operation, thereby reducing the operation burden, and more convenient continuous operation, thereby improving the flexibility of the operation mode.
可选地,客户端的显示区域上默认不显示第四虚拟按键,第四虚拟按键用于对目标对象进行减速操作,装置还包括:接收单元,用于在游戏应用的客户端运行的过程中,在客户端中接收设置指令;显示单元,用于响应设置指令,将第四虚拟按键显示在显示区域上,并在显示区域上将第四虚拟按键的状态设置为允许触控的状态,其中,第一虚拟按键与第四虚拟按键位于显示区域的同侧。Optionally, the fourth virtual button is not displayed by default on the display area of the client, and the fourth virtual button is used to perform a deceleration operation on the target object, and the device further includes: a receiving unit, configured to be used during the running of the client of the game application. Receiving a setting instruction in the client; the display unit is configured to display the fourth virtual button on the display area in response to the setting instruction, and set the state of the fourth virtual button to the state of allowing the touch on the display area, wherein The first virtual button and the fourth virtual button are located on the same side of the display area.
在竞速类游戏中,第四虚拟按键可以实现减速效果。例如,刹车等制动装置。为了避免造成提示的混乱和操作的繁琐,在默认情况下不显示第四虚拟按键,通过玩家的设置可以在显示区域上显示第四虚拟按键。即,客户端接收玩家的设置指令,该设置指令用于指示将第四虚拟按键显示在显示区域,并且使第四虚拟按键在显示区域处于允许触控的状态。这样,如果玩家需要对目标对象执行减速操作,则可以触控该第四虚拟按键以达
到减速的目的。为了提高操作的便捷性和灵活性,可以将第四虚拟按键与第一虚拟按键设置在同侧。In the racing game, the fourth virtual button can achieve a deceleration effect. For example, a brake device such as a brake. In order to avoid the confusion of the prompt and the cumbersome operation, the fourth virtual button is not displayed by default, and the fourth virtual button can be displayed on the display area by the player's setting. That is, the client receives a setting instruction of the player for instructing to display the fourth virtual key in the display area, and causing the fourth virtual key to be in the state of allowing touch in the display area. In this way, if the player needs to perform a deceleration operation on the target object, the fourth virtual button can be touched to reach
To the purpose of deceleration. In order to improve the convenience and flexibility of the operation, the fourth virtual button and the first virtual button may be disposed on the same side.
如图5所示,在显示区域的右侧显示“刹车”按键。在默认不显示第四虚拟按键的时候可以避免新手玩家的误操作,使得显示区域显示的加速按键更加突出,通过设置显示“刹车”按键,可以满足部分有刹车需求的玩家对目标对象进行控制,增强了目标对象的可操控性。As shown in FIG. 5, the "brake" button is displayed on the right side of the display area. When the fourth virtual button is not displayed by default, the wrong operation of the novice player can be avoided, so that the acceleration button displayed in the display area is more prominent. By setting the display "brake" button, the player who has the braking requirement can be controlled to control the target object. Enhanced maneuverability of the target object.
可选地,第四按键响应区域包括第一虚拟按键在显示区域中所显示的区域,且第四按键响应区域大于第一虚拟按键在显示区域中所显示的区域。Optionally, the fourth button response area includes an area displayed by the first virtual button in the display area, and the fourth button response area is larger than the area displayed by the first virtual button in the display area.
如图6所示,第一虚拟按键在显示区域内所占区域为矩形区域1,而实际上第四按键响应区域为矩形区域2,显然,矩形区域2大于矩形区域1,也就是说,当滑动操作落在矩形区域2内就可以实现触发第一虚拟按键,而不必须落在矩形区域1中。对于本实施例提供的滑动触发的方式,当手指从第四按键响应区域外移动到第四按键响应区域内时也会视为有效触发。类似的,对于第二虚拟按键、漂移键和刹车键,内侧的小矩形框为相应功能键在显示区域内所占的区域,外侧的大矩形框为实际的按键响应区域。As shown in FIG. 6, the area occupied by the first virtual button in the display area is a rectangular area 1, and the fourth key response area is actually a rectangular area 2. Obviously, the rectangular area 2 is larger than the rectangular area 1, that is, when The sliding operation falls within the rectangular area 2 to trigger the first virtual key without having to fall in the rectangular area 1. For the sliding trigger mode provided by the embodiment, when the finger moves from outside the fourth button response area to the fourth button response area, it is also regarded as a valid trigger. Similarly, for the second virtual button, the drift button and the brake button, the inner small rectangular frame is the area occupied by the corresponding function key in the display area, and the outer large rectangular frame is the actual button response area.
通过上述模块,可以解决了游戏应用中的对象在加速时操作方式比较单一的技术问题,进而达到丰富游戏应用中的对象在加速时的操作方式的技术效果。同时,由于这是方式并不需要积蓄能量,降低了对玩家的操作技能的要求,并且,对于具有较高操作技能的玩家来说,丰富了操控方式,提高了用户体验。Through the above module, the technical problem that the object in the game application operates in a single mode during acceleration can be solved, thereby achieving the technical effect of enriching the operation mode of the object in the game application during acceleration. At the same time, since this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are lowered, and for players with higher operational skills, the manipulation mode is enriched and the user experience is improved.
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现,其中,硬件环境包括网络环境。It should be noted that the foregoing modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the foregoing embodiments. It should be noted that the foregoing module may be implemented in a hardware environment as shown in FIG. 1 as part of the device, and may be implemented by software or by hardware, where the hardware environment includes a network environment.
根据本申请实施例,还提供了一种用于实施上述游戏应用中的对象控
制方法的电子装置。According to an embodiment of the present application, there is also provided an object control for implementing the above game application.
Electronic device for the method.
根据本发明实施例,还提供了一种用于实施上述……方法的电子装置,如图10所示,该电子装置包括:According to an embodiment of the present invention, there is also provided an electronic device for implementing the above method, as shown in FIG. 10, the electronic device includes:
1)处理器1) processor
2)存储器2) Memory
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments, and details are not described herein again.
可选地,在本实施例中,上述电子装置可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the foregoing electronic device may be located in at least one network device of the plurality of network devices of the computer network.
可选地,图10是根据本发明实施例的一种电子装置的结构框图。如图10所示,该电子装置可以包括:一个或多个(图中仅示出一个)处理器101、至少一个通信总线102、用户接口103、至少一个传输装置104和存储器105。其中,通信总线102用于实现这些组件之间的连接通信。其中,用户接口103可以包括显示器106和键盘107。传输装置104可选的可以包括标准的有线接口和无线接口。Optionally, FIG. 10 is a structural block diagram of an electronic device according to an embodiment of the invention. As shown in FIG. 10, the electronic device may include one or more (only one shown) processor 101, at least one communication bus 102, a user interface 103, at least one transmission device 104, and a memory 105. Among them, the communication bus 102 is used to implement connection communication between these components. Among them, the user interface 103 can include a display 106 and a keyboard 107. The transmission device 104 can optionally include a standard wired interface and a wireless interface.
其中,存储器105可用于存储软件程序以及模块,如本发明实施例中的游戏应用中的对象控制方法对应的程序指令/模块,处理器101通过运行存储在存储器105内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的游戏应用中的对象控制方法。存储器105可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器105可进一步包括相对于处理器101远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 105 can be used to store a software program and a module, such as a program instruction/module corresponding to the object control method in the game application in the embodiment of the present invention, and the processor 101 runs the software program and the module stored in the memory 105, thereby Perform various function applications and data processing, that is, implement the object control method in the above game application. Memory 105 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 105 can further include memory remotely located relative to processor 101, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
上述的传输装置104用于经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置104包
括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置104为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 104 described above is for receiving or transmitting data via a network. Specific examples of the above network may include a wired network and a wireless network. In one example, the transmission device 104 package
It includes a Network Interface Controller (NIC) that can be connected to other network devices and routers through a network cable to communicate with the Internet or a local area network. In one example, the transmission device 104 is a Radio Frequency (RF) module for communicating wirelessly with the Internet.
其中,存储器105用于存储存储应用程序。The memory 105 is used to store a storage application.
在本实施例中,处理器101可以通过传输装置调用存储器105存储的信息及应用程序,以执行下述步骤:In this embodiment, the processor 101 can call the information and the application stored in the memory 105 through the transmission device to perform the following steps:
在游戏应用的客户端运行的过程中,判断所述客户端中的目标对象是否执行了第一预定操作;在判断出所述目标对象执行了所述第一预定操作的情况下,在所述客户端的显示区域上将第一虚拟按键的状态设置为允许触控的状态,其中,所述第一虚拟按键与所述第一预定操作相对应;在所述客户端的显示区域上检测到对所述第一虚拟按键的第一触控操作;响应所述第一触控操作,在所述客户端中对所述目标对象执行第一加速操作。During the running of the client of the game application, determining whether the target object in the client performs the first predetermined operation; and in the case that it is determined that the target object performs the first predetermined operation, Setting a state of the first virtual button to a state of allowing the touch on the display area of the client, wherein the first virtual button corresponds to the first predetermined operation; detecting the opposite on the display area of the client a first touch operation of the first virtual button; and in response to the first touch operation, performing a first acceleration operation on the target object in the client.
可选地,处理器101还可以执行下述步骤:判断所述客户端中的所述目标对象是否执行了第二预定操作、且执行所述第二预定操作所累计产生的所述目标对象的属性值是否大于预定阈值;在判断出所述客户端中的所述目标对象执行了所述第二预定操作、且执行所述第二预定操作所累计产生的所述目标对象的属性值大于所述预定阈值的情况下,在所述客户端的显示区域上将第二虚拟按键的状态设置为允许触控的状态,其中,所述第二虚拟按键与所述第二预定操作相对应;在所述客户端的显示区域上检测到对所述第二虚拟按键的第二触控操作;响应所述第二触控操作,在所述客户端中对所述目标对象执行第二加速操作,其中,所述第一加速操作的执行时间小于所述第二加速操作的执行时间。Optionally, the processor 101 may further perform the following steps: determining whether the target object in the client performs a second predetermined operation, and performing execution of the target object that is generated by the second predetermined operation Whether the attribute value is greater than a predetermined threshold; determining that the target object in the client performs the second predetermined operation, and the attribute value of the target object generated by performing the second predetermined operation is greater than In the case of the predetermined threshold, the state of the second virtual button is set to a state allowing touch control on the display area of the client, wherein the second virtual button corresponds to the second predetermined operation; A second touch operation on the second virtual button is detected on the display area of the client; in response to the second touch operation, a second acceleration operation is performed on the target object in the client, where The execution time of the first acceleration operation is less than the execution time of the second acceleration operation.
可选地,处理器101还可以执行下述步骤:在所述客户端的显示区域上检测到对所述第二虚拟按键的第二触控操作时,所述方法还包括:在所述客户端的显示区域上检测到对第三虚拟按键的第三触控操作,其中,所述第三虚拟按键用于控制所述目标对象的方向,所述第三虚拟按键与所述
第二虚拟按键位于所述显示区域的两侧,所述第一虚拟按键与所述第二虚拟按键位于所述显示区域的同侧;响应所述第二触控操作,在所述客户端中对所述目标对象执行第二加速操作包括:在所述客户端中,按照所述第三触控操作所指示的方向对所述目标对象执行第二加速操作。Optionally, the processor 101 may further perform the following steps: when detecting a second touch operation on the second virtual button on the display area of the client, the method further includes: at the client A third touch operation on the third virtual button is detected on the display area, wherein the third virtual key is used to control a direction of the target object, and the third virtual key is
The second virtual button is located at two sides of the display area, and the first virtual button and the second virtual button are located on the same side of the display area; in response to the second touch operation, in the client Performing the second acceleration operation on the target object includes: performing, in the client, a second acceleration operation on the target object according to the direction indicated by the third touch operation.
可选地,处理器101还可以执行下述步骤:判断所述第三触控操作是否为从第一按键响应区域滑动到第二按键响应区域的第一滑动操作,其中,所述第一按键响应区域和所述第二按键响应区域均为所述显示区域中所述第三虚拟按键所在的按键响应区域;在判断出所述第三触控操作为所述第一滑动操作的情况下,按照所述第二按键响应区域所对应的方向对所述目标对象执行所述第二加速操作。Optionally, the processor 101 may further perform the following steps: determining whether the third touch operation is a first sliding operation from the first button response area to the second button response area, wherein the first button The response area and the second button response area are both the button response areas of the third virtual button in the display area; in the case that the third touch operation is determined to be the first sliding operation, Performing the second acceleration operation on the target object according to a direction corresponding to the second button response area.
可选地,处理器101还可以执行下述步骤:判断所述第一触控操作是否为从第三按键响应区域滑动到第四按键响应区域的第二滑动操作,其中,所述第三按键响应区域和所述第四按键响应区域均为所述显示区域中的按键响应区域,第三按键响应区域为第二虚拟按键所在的按键响应区域,所述第四按键响应区域为所述第一虚拟按键所在的按键响应区域;在判断出所述第一触控操作为所述第二滑动操作的情况下,在所述客户端中对所述目标对象执行与所述第二按键响应区域所对应的所述第一加速操作。Optionally, the processor 101 may further perform the following steps: determining whether the first touch operation is a second sliding operation from the third button response area to the fourth button response area, wherein the third button The response area and the fourth button response area are both button response areas in the display area, the third button response area is a button response area where the second virtual button is located, and the fourth button response area is the first a button response area where the virtual button is located; and when it is determined that the first touch operation is the second sliding operation, performing the second button response area on the target object in the client Corresponding to the first acceleration operation.
可选地,处理器101还可以执行下述步骤:Optionally, the processor 101 may further perform the following steps:
所述客户端的显示区域上默认不显示第四虚拟按键,所述第四虚拟按键用于对所述目标对象进行减速操作,其中,在所述游戏应用的客户端运行的过程中,所述方法还包括:在所述客户端中接收设置指令;响应设置指令,将所述第四虚拟按键显示在所述显示区域上,并在所述显示区域上将所述第四虚拟按键的状态设置为允许触控的状态,其中,所述第一虚拟按键与所述第四虚拟按键位于所述显示区域的同侧。The fourth virtual button is not displayed by default on the display area of the client, and the fourth virtual button is used to perform a deceleration operation on the target object, wherein the method is performed during the running of the client of the game application. The method further includes: receiving a setting instruction in the client; displaying the fourth virtual button on the display area in response to the setting instruction, and setting a state of the fourth virtual button on the display area to The state of the touch is allowed, wherein the first virtual button and the fourth virtual button are located on the same side of the display area.
采用本申请实施例,在检测到目标对象执行了第一预定操作后,就可以在客户端的显示区域上显示相应的第一虚拟按键,该第一虚拟按键可以实现加速的动能,在玩家触控了该第一虚拟按键后,就可以控制目标对象
进行加速,在这个过程中,并不需要目标对象在执行某个动作的同时积蓄能量,解决了游戏应用中的对象在加速时操作方式比较单一的技术问题,进而达到丰富游戏应用中的对象在加速时的操作方式的技术效果。同时,由于这是方式并不需要积蓄能量,降低了对玩家的操作技能的要求,并且,对于具有较高操作技能的玩家来说,丰富了操控方式,提高了用户体验。可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。With the embodiment of the present application, after detecting that the target object performs the first predetermined operation, the corresponding first virtual button may be displayed on the display area of the client, and the first virtual button may implement accelerated kinetic energy, and the player touches After the first virtual button, the target object can be controlled.
Acceleration, in this process, does not require the target object to accumulate energy while performing an action, and solves the technical problem that the object in the game application operates in a relatively simple manner during acceleration, thereby achieving the object in the rich game application. The technical effect of the operation mode when accelerating. At the same time, since this is a way that does not require the accumulation of energy, the requirements for the player's operational skills are lowered, and for players with higher operational skills, the manipulation mode is enriched and the user experience is improved. For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments, and details are not described herein again.
本领域普通技术人员可以理解,图10所示的结构仅为示意,终端可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图10其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图10中所示更多或者更少的组件,或者具有与图10所示不同的配置。A person skilled in the art can understand that the structure shown in FIG. 10 is only illustrative, and the terminal can be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, and a mobile Internet device (MID). Terminal equipment such as PAD. FIG. 10 does not limit the structure of the above electronic device. For example, the electronic device may also include more or less components than those shown in FIG. 10, or have a different configuration than that shown in FIG.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps of the foregoing embodiments may be completed by a program to instruct terminal device related hardware, and the program may be stored in a computer readable storage medium, and the storage medium may be Including: flash disk, read-only memory (ROM), random access memory (RAM), disk or optical disk.
本申请的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于执行游戏应用中的对象控制方法的程序代码。Embodiments of the present application also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be used to execute program code of an object control method in a game application.
可选地,在本实施例中,上述存储介质可以位于上述实施例所示的网络中的多个网络设备中的至少一个网络设备上。Optionally, in this embodiment, the foregoing storage medium may be located on at least one of the plurality of network devices in the network shown in the foregoing embodiment.
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:Optionally, in the present embodiment, the storage medium is arranged to store program code for performing the following steps:
S1,在游戏应用的客户端运行的过程中,判断所述客户端中的目标对象是否执行了第一预定操作;S1: determining, during the running of the client of the game application, whether the target object in the client performs the first predetermined operation;
S2,在判断出所述目标对象执行了所述第一预定操作的情况下,在所
述客户端的显示区域上将第一虚拟按键的状态设置为允许触控的状态,其中,所述第一虚拟按键与所述第一预定操作相对应;S2, in the case that it is determined that the target object performs the first predetermined operation,
Setting a state of the first virtual button to a state of allowing touch, on the display area of the client, where the first virtual button corresponds to the first predetermined operation;
S3,在所述客户端的显示区域上检测到对所述第一虚拟按键的第一触控操作;S3, detecting a first touch operation on the first virtual button on a display area of the client;
S4,响应所述第一触控操作,在所述客户端中对所述目标对象执行第一加速操作。S4. Perform a first acceleration operation on the target object in the client in response to the first touch operation.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
判断所述客户端中的所述目标对象是否执行了第二预定操作、且执行所述第二预定操作所累计产生的所述目标对象的属性值是否大于预定阈值;在判断出所述客户端中的所述目标对象执行了所述第二预定操作、且执行所述第二预定操作所累计产生的所述目标对象的属性值大于所述预定阈值的情况下,在所述客户端的显示区域上将第二虚拟按键的状态设置为允许触控的状态,其中,所述第二虚拟按键与所述第二预定操作相对应;在所述客户端的显示区域上检测到对所述第二虚拟按键的第二触控操作;响应所述第二触控操作,在所述客户端中对所述目标对象执行第二加速操作,其中,所述第一加速操作的执行时间小于所述第二加速操作的执行时间。Determining whether the target object in the client performs a second predetermined operation, and whether the attribute value of the target object generated by performing the second predetermined operation is greater than a predetermined threshold; determining the client In the case where the target object in the execution of the second predetermined operation and the attribute value of the target object cumulatively generated by the execution of the second predetermined operation is greater than the predetermined threshold, in the display area of the client Setting a state of the second virtual button to a state of allowing touch, wherein the second virtual button corresponds to the second predetermined operation; detecting the second virtual on the display area of the client a second touch operation of the button; performing a second acceleration operation on the target object in the client in response to the second touch operation, wherein an execution time of the first acceleration operation is less than the second Accelerate the execution time of the operation.
可选地,存储介质还被设置为存储用于执行上述实施例的方法中所包括的步骤的程序代码,本实施例中对此不再赘述。Optionally, the storage medium is further configured to store program code for performing the steps included in the method of the foregoing embodiment, which is not described in this embodiment.
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments, and details are not described herein again.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为
独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。The integrated unit in the above embodiment is implemented in the form of a software functional unit and
When the independent product is sold or used, it can be stored in the above computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium. A number of instructions are included to cause one or more computer devices (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。
The above description is only a preferred embodiment of the present application, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present application. It should be considered as the scope of protection of this application.
Claims (18)
- 一种游戏应用中的对象控制方法,应用于客户端,所述客户端包括存储装置和处理器,所述处理器用于执行所述对象控制方法,所述对象控制方法包括:An object control method in a game application, which is applied to a client, the client includes a storage device and a processor, the processor is configured to execute the object control method, and the object control method includes:在游戏应用的客户端运行的过程中,判断所述客户端中的目标对象是否执行了第一预定操作;During the running of the client of the game application, determining whether the target object in the client performs the first predetermined operation;在判断出所述目标对象执行了所述第一预定操作的情况下,在所述客户端的显示区域上将第一虚拟按键的状态设置为允许触控的状态,其中,所述第一虚拟按键与所述第一预定操作相对应;When it is determined that the target object performs the first predetermined operation, setting a state of the first virtual button to a state of allowing touch, on the display area of the client, wherein the first virtual button Corresponding to the first predetermined operation;在所述客户端的显示区域上检测到对所述第一虚拟按键的第一触控操作;A first touch operation on the first virtual button is detected on a display area of the client;响应所述第一触控操作,在所述客户端中对所述目标对象执行第一加速操作。And in response to the first touch operation, performing a first acceleration operation on the target object in the client.
- 根据权利要求1所述的方法,其中,在所述游戏应用的客户端运行的过程中,所述方法还包括:The method of claim 1, wherein during the running of the client of the game application, the method further comprises:判断所述客户端中的所述目标对象是否执行了第二预定操作、且执行所述第二预定操作所累计产生的所述目标对象的属性值是否大于预定阈值;Determining whether the target object in the client performs a second predetermined operation, and whether the attribute value of the target object generated by performing the second predetermined operation is greater than a predetermined threshold;在判断出所述客户端中的所述目标对象执行了所述第二预定操作、且执行所述第二预定操作所累计产生的所述目标对象的属性值大于所述预定阈值的情况下,在所述客户端的显示区域上将第二虚拟按键的状态设置为允许触控的状态,其中,所述第二虚拟按键与所述第二预定操作相对应;In a case where it is determined that the target object in the client performs the second predetermined operation, and the attribute value of the target object cumulatively generated by performing the second predetermined operation is greater than the predetermined threshold, Setting a state of the second virtual button to a state of allowing touch on the display area of the client, wherein the second virtual button corresponds to the second predetermined operation;在所述客户端的显示区域上检测到对所述第二虚拟按键的第二触控操作;A second touch operation on the second virtual button is detected on the display area of the client;响应所述第二触控操作,在所述客户端中对所述目标对象执行第二加速操作,其中,所述第一加速操作的执行时间小于所述第二加速 操作的执行时间。Responding to the second touch operation, performing a second acceleration operation on the target object in the client, wherein an execution time of the first acceleration operation is less than the second acceleration The execution time of the operation.
- 根据权利要求2所述的方法,其中,The method of claim 2, wherein在所述客户端的显示区域上检测到对所述第二虚拟按键的第二触控操作时,所述方法还包括:在所述客户端的显示区域上检测到对第三虚拟按键的第三触控操作,其中,所述第三虚拟按键用于控制所述目标对象的方向,所述第三虚拟按键与所述第二虚拟按键位于所述显示区域的两侧,所述第一虚拟按键与所述第二虚拟按键位于所述显示区域的同侧;When the second touch operation on the second virtual button is detected on the display area of the client, the method further includes: detecting a third touch on the third virtual button on the display area of the client a control operation, wherein the third virtual button is used to control a direction of the target object, and the third virtual button and the second virtual button are located on two sides of the display area, the first virtual button is The second virtual button is located on the same side of the display area;响应所述第二触控操作,在所述客户端中对所述目标对象执行第二加速操作包括:在所述客户端中,按照所述第三触控操作所指示的方向对所述目标对象执行第二加速操作。In response to the second touch operation, performing a second acceleration operation on the target object in the client includes: in the client, facing the target according to a direction indicated by the third touch operation The object performs a second acceleration operation.
- 根据权利要求3所述的方法,其中,在所述客户端中,按照所述第三触控操作所指示的方向对所述目标对象执行第二加速操作包括:The method according to claim 3, wherein in the client, performing a second acceleration operation on the target object according to the direction indicated by the third touch operation comprises:判断所述第三触控操作是否为从第一按键响应区域滑动到第二按键响应区域的第一滑动操作,其中,所述第一按键响应区域和所述第二按键响应区域均为所述显示区域中所述第三虚拟按键所在的按键响应区域;Determining whether the third touch operation is a first sliding operation from the first button response area to the second button response area, wherein the first button response area and the second button response area are both a button response area in which the third virtual button is located in the display area;在判断出所述第三触控操作为所述第一滑动操作的情况下,按照所述第二按键响应区域所对应的方向对所述目标对象执行所述第二加速操作。When it is determined that the third touch operation is the first sliding operation, performing the second acceleration operation on the target object according to a direction corresponding to the second button response area.
- 根据权利要求2所述的方法,其中,所述客户端的显示区域上还设置有第三虚拟按键,其中,所述第三虚拟按键用于控制所述目标对象的方向,所述第三虚拟按键与所述第二虚拟按键位于所述显示区域的两侧,所述第一虚拟按键与所述第二虚拟按键位于所述显示区域的同侧。The method according to claim 2, wherein a third virtual button is further disposed on the display area of the client, wherein the third virtual button is used to control a direction of the target object, and the third virtual button The second virtual button and the second virtual button are located on the same side of the display area.
- 根据权利要求1至5中任一项所述的方法,其中,响应所述第一触控操作,在所述客户端中对所述目标对象执行第一加速操作包括:The method according to any one of claims 1 to 5, wherein, in response to the first touch operation, performing a first acceleration operation on the target object in the client comprises:判断所述第一触控操作是否为从第三按键响应区域滑动到第四 按键响应区域的第二滑动操作,其中,所述第三按键响应区域和所述第四按键响应区域均为所述显示区域中的按键响应区域,第三按键响应区域为第二虚拟按键所在的按键响应区域,所述第四按键响应区域为所述第一虚拟按键所在的按键响应区域;Determining whether the first touch operation is sliding from the third button response area to the fourth a second sliding operation of the button response area, wherein the third button response area and the fourth button response area are both key response areas in the display area, and the third button response area is where the second virtual button is located a button response area, where the fourth button response area is a button response area where the first virtual button is located;在判断出所述第一触控操作为所述第二滑动操作的情况下,在所述客户端中对所述目标对象执行与所述第二按键响应区域所对应的所述第一加速操作。When it is determined that the first touch operation is the second sliding operation, performing the first acceleration operation corresponding to the second button response area on the target object in the client .
- 根据权利要求6所述的方法,其中,所述第四按键响应区域包括所述第一虚拟按键在所述显示区域中所显示的区域,且所述第四按键响应区域大于所述第一虚拟按键在所述显示区域中所显示的区域。The method according to claim 6, wherein the fourth button response area includes an area displayed by the first virtual key in the display area, and the fourth key response area is larger than the first virtual The area displayed by the button in the display area.
- 根据权利要求1至4中任一项所述的方法,其中,所述客户端的显示区域上默认不显示第四虚拟按键,所述第四虚拟按键用于对所述目标对象进行减速操作,其中,在所述游戏应用的客户端运行的过程中,所述方法还包括:The method according to any one of claims 1 to 4, wherein a fourth virtual button is not displayed by default on the display area of the client, and the fourth virtual button is used to perform a deceleration operation on the target object, wherein During the running of the client of the game application, the method further includes:在所述客户端中接收设置指令;Receiving a setting instruction in the client;响应设置指令,将所述第四虚拟按键显示在所述显示区域上,并在所述显示区域上将所述第四虚拟按键的状态设置为允许触控的状态,其中,所述第一虚拟按键与所述第四虚拟按键位于所述显示区域的同侧。And responding to the setting instruction, displaying the fourth virtual button on the display area, and setting a state of the fourth virtual button to a state of allowing touch in the display area, wherein the first virtual The button and the fourth virtual button are located on the same side of the display area.
- 一种游戏应用中的对象控制装置,被设置在客户端中,所述对象控制装置包括:An object control device in a game application is disposed in a client, and the object control device includes:第一判断单元,用于在游戏应用的客户端运行的过程中,判断所述客户端中的目标对象是否执行了第一预定操作;a first determining unit, configured to determine, in a process of running the client of the game application, whether the target object in the client performs the first predetermined operation;第一设置单元,用于在判断出所述目标对象执行了所述第一预定操作的情况下,在所述客户端的显示区域上将第一虚拟按键的状态设置为允许触控的状态,其中,所述第一虚拟按键与所述第一预定操作相对应; a first setting unit, configured to set a state of the first virtual button to a state of allowing touch, on a display area of the client, in a case that the target object is determined to perform the first predetermined operation, where The first virtual button corresponds to the first predetermined operation;第一检测单元,用于在所述客户端的显示区域上检测到对所述第一虚拟按键的第一触控操作;a first detecting unit, configured to detect a first touch operation on the first virtual button on a display area of the client;第一执行单元,用于响应所述第一触控操作,在所述客户端中对所述目标对象执行第一加速操作。a first execution unit, configured to perform a first acceleration operation on the target object in the client in response to the first touch operation.
- 根据权利要求9所述的装置,其中,所述装置还包括:The apparatus of claim 9 wherein said apparatus further comprises:第二判断单元,用于在所述游戏应用的客户端运行的过程中,判断所述客户端中的所述目标对象是否执行了第二预定操作、且执行所述第二预定操作所累计产生的所述目标对象的属性值是否大于预定阈值;a second determining unit, configured to determine, during a running of the client of the game application, whether the target object in the client performs a second predetermined operation, and the second predetermined operation is performed to generate a cumulative Whether the attribute value of the target object is greater than a predetermined threshold;第二设置单元,用于在判断出所述客户端中的所述目标对象执行了所述第二预定操作、且执行所述第二预定操作所累计产生的所述目标对象的属性值大于所述预定阈值的情况下,在所述客户端的显示区域上将第二虚拟按键的状态设置为允许触控的状态,其中,所述第二虚拟按键与所述第二预定操作相对应;a second setting unit, configured to determine that the target object in the client performs the second predetermined operation, and the attribute value of the target object generated by performing the second predetermined operation is greater than In the case of the predetermined threshold, the state of the second virtual button is set to the state of allowing the touch on the display area of the client, wherein the second virtual button corresponds to the second predetermined operation;第二检测单元,用于在所述客户端的显示区域上检测到对所述第二虚拟按键的第二触控操作;a second detecting unit, configured to detect a second touch operation on the second virtual button on the display area of the client;第二执行单元,用于响应所述第二触控操作,在所述客户端中对所述目标对象执行第二加速操作,其中,所述第一加速操作的执行时间小于所述第二加速操作的执行时间。a second execution unit, configured to perform a second acceleration operation on the target object in the client in response to the second touch operation, wherein an execution time of the first acceleration operation is less than the second acceleration The execution time of the operation.
- 根据权利要求10所述的装置,其中,The device according to claim 10, wherein所述装置还包括:第三检测单元,用于所述第二检测单元在所述客户端的显示区域上检测到对所述第二虚拟按键的第二触控操作时,在所述客户端的显示区域上检测到对第三虚拟按键的第三触控操作,其中,所述第三虚拟按键用于控制所述目标对象的方向,所述第三虚拟按键与所述第二虚拟按键位于所述显示区域的两侧,所述第一虚拟按键与所述第二虚拟按键位于所述显示区域的同侧;The device further includes: a third detecting unit, configured to display, at the client when the second detecting unit detects the second touch operation on the second virtual button on the display area of the client A third touch operation on the third virtual button is detected on the area, wherein the third virtual button is used to control a direction of the target object, and the third virtual button and the second virtual button are located in the Displaying the two sides of the area, the first virtual button and the second virtual button are located on the same side of the display area;所述第二执行单元包括:第一执行模块,用于在所述客户端中, 按照所述第三触控操作所指示的方向对所述目标对象执行第二加速操作。The second execution unit includes: a first execution module, in the client, Performing a second acceleration operation on the target object according to the direction indicated by the third touch operation.
- 根据权利要求11所述的装置,其中,所述第一执行模块包括:The apparatus of claim 11, wherein the first execution module comprises:判断子模块,用于判断所述第三触控操作是否为从第一按键响应区域滑动到第二按键响应区域的第一滑动操作,其中,所述第一按键响应区域和所述第二按键响应区域均为所述显示区域中所述第三虚拟按键所在的按键响应区域;a determining sub-module, configured to determine whether the third touch operation is a first sliding operation from the first button response area to the second button response area, wherein the first button response area and the second button The response area is a button response area where the third virtual button in the display area is located;执行子模块,用于在判断出所述第三触控操作为所述第一滑动操作的情况下,按照所述第二按键响应区域所对应的方向对所述目标对象执行所述第二加速操作。An execution submodule, configured to perform the second acceleration on the target object according to a direction corresponding to the second button response area, when it is determined that the third touch operation is the first sliding operation operating.
- 根据权利要求10所述的装置,其中,所述客户端的显示区域上还设置有第三虚拟按键,其中,所述第三虚拟按键用于控制所述目标对象的方向,所述第三虚拟按键与所述第二虚拟按键位于所述显示区域的两侧,所述第一虚拟按键与所述第二虚拟按键位于所述显示区域的同侧。The device according to claim 10, wherein a third virtual button is further disposed on the display area of the client, wherein the third virtual button is used to control a direction of the target object, and the third virtual button The second virtual button and the second virtual button are located on the same side of the display area.
- 根据权利要求9至13中任一项所述的装置,其中,所述第一执行单元包括:The apparatus according to any one of claims 9 to 13, wherein the first execution unit comprises:判断模块,用于判断所述第一触控操作是否为从第三按键响应区域滑动到第四按键响应区域的第二滑动操作,其中,所述第三按键响应区域和所述第四按键响应区域均为所述显示区域中的按键响应区域,第三按键响应区域为第二虚拟按键所在的按键响应区域,所述第四按键响应区域为所述第一虚拟按键所在的按键响应区域;a determining module, configured to determine whether the first touch operation is a second sliding operation from the third button response area to the fourth button response area, wherein the third button response area and the fourth button response The area is the button response area in the display area, the third button response area is the button response area where the second virtual button is located, and the fourth button response area is the button response area where the first virtual button is located;第二执行模块,用于在判断出所述第一触控操作为所述第二滑动操作的情况下,在所述客户端中对所述目标对象执行与所述第二按键响应区域所对应的所述第一加速操作。a second execution module, configured to perform, in the client, performing a correspondence with the second button response region in the client, when it is determined that the first touch operation is the second sliding operation The first acceleration operation.
- 根据权利要求14所述的装置,其中,所述第四按键响应区域包括所述第一虚拟按键在所述显示区域中所显示的区域,且所述第四按键响 应区域大于所述第一虚拟按键在所述显示区域中所显示的区域。The apparatus according to claim 14, wherein said fourth button response area includes an area displayed by said first virtual key in said display area, and said fourth button is ringing The area should be larger than the area displayed by the first virtual button in the display area.
- 根据权利要求9至12中任一项所述的装置,其中,所述客户端的显示区域上默认不显示第四虚拟按键,所述第四虚拟按键用于对所述目标对象进行减速操作,所述装置还包括:The device according to any one of claims 9 to 12, wherein a fourth virtual button is not displayed by default on the display area of the client, and the fourth virtual button is used to perform a deceleration operation on the target object. The device also includes:接收单元,用于在所述游戏应用的客户端运行的过程中,在所述客户端中接收设置指令;a receiving unit, configured to receive a setting instruction in the client during a running of the client of the game application;显示单元,用于响应设置指令,将所述第四虚拟按键显示在所述显示区域上,并在所述显示区域上将所述第四虚拟按键的状态设置为允许触控的状态,其中,所述第一虚拟按键与所述第四虚拟按键位于所述显示区域的同侧。a display unit, configured to display the fourth virtual button on the display area in response to the setting instruction, and set a state of the fourth virtual button to a state of allowing touch on the display area, where The first virtual button and the fourth virtual button are located on the same side of the display area.
- 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序运行时执行所述权利要求1至8任一项中所述的方法。A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is executed to perform the method of any one of claims 1 to 8.
- 一种电子装置,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器通过所述计算机程序执行所述权利要求1至8任一项中所述的方法。 An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the claim 1 through the computer program The method described in any one of 8.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710064142.8 | 2017-01-24 | ||
CN201710064142.8A CN106861186B (en) | 2017-01-24 | 2017-01-24 | Object control method and apparatus in game application |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018137433A1 true WO2018137433A1 (en) | 2018-08-02 |
Family
ID=59165717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/116116 WO2018137433A1 (en) | 2017-01-24 | 2017-12-14 | Object control method and device for game application, storage medium, and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN108525303B (en) |
WO (1) | WO2018137433A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020173251A1 (en) * | 2019-02-28 | 2020-09-03 | 腾讯科技(深圳)有限公司 | Assistance function start-up method, apparatus, and device, and readable storage medium |
Families Citing this family (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108525303B (en) * | 2017-01-24 | 2020-06-30 | 腾讯科技(深圳)有限公司 | Object control method and device in interactive application |
CN108536350B (en) * | 2018-03-12 | 2021-01-26 | 网易(杭州)网络有限公司 | Virtual object control method and equipment |
CN108434730A (en) * | 2018-03-22 | 2018-08-24 | 网易(杭州)网络有限公司 | Control method, device, storage medium, processor and the terminal of game object |
CN108694073B (en) * | 2018-05-11 | 2023-01-17 | 腾讯科技(深圳)有限公司 | Control method, device and equipment of virtual scene and storage medium |
CN108635858B (en) * | 2018-05-18 | 2019-10-01 | 腾讯科技(深圳)有限公司 | Interface display method, device, electronic device and computer readable storage medium |
CN108635857B (en) | 2018-05-18 | 2022-04-22 | 腾讯科技(深圳)有限公司 | Interface display method and device, electronic device and computer readable storage medium |
CN108733289B (en) * | 2018-05-21 | 2023-01-10 | 网易(杭州)网络有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
CN108939546B (en) * | 2018-05-21 | 2021-09-03 | 网易(杭州)网络有限公司 | Virtual object drift control method and device, electronic device and storage medium |
CN108733288B (en) * | 2018-05-21 | 2021-01-26 | 网易(杭州)网络有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
CN108717372B (en) * | 2018-05-24 | 2022-08-09 | 网易(杭州)网络有限公司 | Method and device for controlling virtual object in game scene |
CN108771862A (en) * | 2018-05-29 | 2018-11-09 | 网易(杭州)网络有限公司 | Information processing method and device, electronic equipment, storage medium |
CN109107152B (en) * | 2018-07-26 | 2022-06-03 | 网易(杭州)网络有限公司 | Method and apparatus for controlling virtual object drift |
CN109513210B (en) * | 2018-11-28 | 2021-02-12 | 腾讯科技(深圳)有限公司 | Virtual vehicle drifting method and device in virtual world and storage medium |
CN109925713B (en) * | 2019-02-28 | 2020-11-03 | 腾讯科技(深圳)有限公司 | Object control method and device, storage medium and electronic device |
CN109999499B (en) * | 2019-04-04 | 2021-05-14 | 腾讯科技(深圳)有限公司 | Object control method and device, storage medium and electronic device |
CN110075518A (en) * | 2019-04-22 | 2019-08-02 | 网易(杭州)网络有限公司 | Voice information processing method and device, storage medium, electronic equipment |
CN110124307B (en) * | 2019-04-26 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Operation control method and apparatus, storage medium, and electronic apparatus |
CN110124308B (en) | 2019-04-30 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Control method and device of virtual racing car, storage medium and electronic device |
CN110013671B (en) * | 2019-05-05 | 2020-07-28 | 腾讯科技(深圳)有限公司 | Action execution method and device, storage medium and electronic device |
CN110134462B (en) * | 2019-05-09 | 2020-12-01 | 腾讯科技(深圳)有限公司 | Control method and device of virtual role, storage medium and electronic device |
CN110201387B (en) | 2019-05-17 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Object control method and device, storage medium and electronic device |
CN111729295B (en) * | 2020-06-12 | 2024-02-09 | 网易(杭州)网络有限公司 | Information control method and device for racing game and electronic equipment |
CN117122925A (en) * | 2022-05-20 | 2023-11-28 | 腾讯科技(成都)有限公司 | Virtual vehicle control method, device, equipment and medium |
CN117122909A (en) * | 2022-05-20 | 2023-11-28 | 腾讯科技(成都)有限公司 | Virtual vehicle control method and device in virtual scene and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105251205A (en) * | 2015-10-19 | 2016-01-20 | 珠海网易达电子科技发展有限公司 | Full-touch screen racing vehicle drifting operation method |
CN105521603A (en) * | 2015-12-11 | 2016-04-27 | 北京奇虎科技有限公司 | Virtual input control method, apparatus and system for running games |
CN105912162A (en) * | 2016-04-08 | 2016-08-31 | 网易(杭州)网络有限公司 | Method and apparatus for controlling virtual object, and touch control device |
CN106861186A (en) * | 2017-01-24 | 2017-06-20 | 腾讯科技(深圳)有限公司 | Object control method and apparatus in game application |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101676844A (en) * | 2008-09-18 | 2010-03-24 | 联想(北京)有限公司 | Processing method and apparatus for information input from touch screen |
CN102314251A (en) * | 2010-07-02 | 2012-01-11 | 宏碁股份有限公司 | Method for operating touch screen |
CN101943996A (en) * | 2010-09-13 | 2011-01-12 | 广东国笔科技股份有限公司 | Touch screen virtual keyboard-based screen scribing input system and method |
TW201334843A (en) * | 2012-02-20 | 2013-09-01 | Fu Li Ye Internat Corp | Game control method with touch panel media and game play media |
KR101431581B1 (en) * | 2012-06-22 | 2014-09-23 | 성균관대학교산학협력단 | Virtual game controller based on mobile handset and remote control system using the same |
CN105472231B (en) * | 2014-09-03 | 2019-03-29 | 联想(北京)有限公司 | Control method, image collecting device and electronic equipment |
CN104850353B (en) * | 2015-06-03 | 2018-10-26 | 成都格斗科技有限公司 | The control method and device of touch mobile terminal game object |
CN105183348A (en) * | 2015-08-27 | 2015-12-23 | 广东欧珀移动通信有限公司 | Application role control method and apparatus |
CN105739855B (en) * | 2016-01-22 | 2018-12-28 | 网易(杭州)网络有限公司 | Virtual objects motion control method and device |
CN106126101A (en) * | 2016-06-24 | 2016-11-16 | 维沃移动通信有限公司 | The operational approach of a kind of mobile terminal and mobile terminal |
CN106178512B (en) * | 2016-06-30 | 2020-01-21 | 努比亚技术有限公司 | Terminal operation device and method |
-
2017
- 2017-01-24 CN CN201810195787.XA patent/CN108525303B/en active Active
- 2017-01-24 CN CN201710064142.8A patent/CN106861186B/en active Active
- 2017-12-14 WO PCT/CN2017/116116 patent/WO2018137433A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105251205A (en) * | 2015-10-19 | 2016-01-20 | 珠海网易达电子科技发展有限公司 | Full-touch screen racing vehicle drifting operation method |
CN105521603A (en) * | 2015-12-11 | 2016-04-27 | 北京奇虎科技有限公司 | Virtual input control method, apparatus and system for running games |
CN105912162A (en) * | 2016-04-08 | 2016-08-31 | 网易(杭州)网络有限公司 | Method and apparatus for controlling virtual object, and touch control device |
CN106861186A (en) * | 2017-01-24 | 2017-06-20 | 腾讯科技(深圳)有限公司 | Object control method and apparatus in game application |
Non-Patent Citations (2)
Title |
---|
ANONYMOUS: "Bipolar Jet of Mobile Game ''Let's Race Car'' and Skills Strategy Thereof", NEWS.4399.COM, 13 January 2017 (2017-01-13), Retrieved from the Internet <URL:http://news.4399.com/yqlfc/xinde/rn/719695.html> * |
ANONYMOUS: "Demystify the Drift Methods of the 3D Drift and Racing Mobile Game ''Let's Race Car", 9GAME.CN, 2 January 2017 (2017-01-02), Retrieved from the Internet <URL:http://www.9game.cn/yqlfc/1422153.html> * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020173251A1 (en) * | 2019-02-28 | 2020-09-03 | 腾讯科技(深圳)有限公司 | Assistance function start-up method, apparatus, and device, and readable storage medium |
US11684856B2 (en) | 2019-02-28 | 2023-06-27 | Tencent Technology (Shenzhen) Company Limited | Assist function enabling method and apparatus, device, and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106861186B (en) | 2019-01-22 |
CN108525303A (en) | 2018-09-14 |
CN108525303B (en) | 2020-06-30 |
CN106861186A (en) | 2017-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018137433A1 (en) | Object control method and device for game application, storage medium, and electronic device | |
WO2020199820A1 (en) | Object control method and device, and storage medium and electronic device | |
CN112245918B (en) | Virtual character control method and device, storage medium and electronic equipment | |
WO2018113653A1 (en) | Scene switching method based on mobile terminal, and mobile terminal | |
CN110013671B (en) | Action execution method and device, storage medium and electronic device | |
WO2019109907A1 (en) | Method for processing virtual resource, electronic device, and storage medium | |
US9437158B2 (en) | Electronic device for controlling multi-display and display control method thereof | |
CN109806590B (en) | Object control method and device, storage medium and electronic device | |
WO2020233395A1 (en) | Object control method and apparatus, and storage media and electronic device | |
WO2019174443A1 (en) | Information processing method and apparatus, and storage medium and electronic device | |
JP7312836B2 (en) | VIRTUAL OBJECT CONTROL METHOD AND DEVICE, ELECTRONIC DEVICE, AND COMPUTER PROGRAM | |
WO2019134576A1 (en) | Method and device for controlling virtual control object, and storage medium and electronic device | |
CN110772789A (en) | Method and device for controlling skill in game, storage medium and terminal equipment | |
WO2018090909A1 (en) | Mobile terminal-based object scanning method and mobile terminal | |
JP6110704B2 (en) | Program, information processing apparatus, information processing method, and information processing system | |
CN112306363B (en) | Mouse simulation method and device, display equipment and storage medium | |
WO2024074039A1 (en) | Game operation control method and apparatus, and electronic device | |
US9904463B2 (en) | Method and apparatus for controlling user character for playing game within virtual environment | |
CN115738271A (en) | Game skill control method, device, equipment and storage medium | |
CN115105831A (en) | Virtual object switching method and device, storage medium and electronic device | |
WO2021098419A1 (en) | Animation displaying method and device, storage medium, and electronic device | |
CN109847347B (en) | Method, device, medium and electronic equipment for controlling virtual operation in game | |
US20240207720A1 (en) | State based action buttons | |
KR102369251B1 (en) | Method for providing user interface and terminal for executing the same | |
CN115120976A (en) | Virtual object control method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17893947 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17893947 Country of ref document: EP Kind code of ref document: A1 |