CN116251344A - Game control method and device and electronic device - Google Patents

Game control method and device and electronic device Download PDF

Info

Publication number
CN116251344A
CN116251344A CN202211084449.1A CN202211084449A CN116251344A CN 116251344 A CN116251344 A CN 116251344A CN 202211084449 A CN202211084449 A CN 202211084449A CN 116251344 A CN116251344 A CN 116251344A
Authority
CN
China
Prior art keywords
target
sub
region
determining
track
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211084449.1A
Other languages
Chinese (zh)
Inventor
周琪然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202211084449.1A priority Critical patent/CN116251344A/en
Publication of CN116251344A publication Critical patent/CN116251344A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/22Setup operations, e.g. calibration, key configuration or button assignment
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/23Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/30Features 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/308Details of the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a game control method, a game control device and an electronic device. The method provides a graphic user interface through the terminal equipment, the content displayed by the graphic user interface comprises at least part of virtual scenes, the virtual scenes comprise virtual objects controlled by the terminal equipment, and the method comprises the following steps: determining a track type of a sliding track corresponding to a sliding operation in response to the sliding operation of a touch area in a controller, wherein the controller is connected with terminal equipment; dividing the touch area into a plurality of subareas based on the track type; determining a target subarea corresponding to the sliding operation from the plurality of subareas according to the sliding track; determining a target control mode corresponding to the target subarea; the motion of the virtual object is controlled based on the target control mode. The method and the device solve the technical problem that the success rate of the user for controlling the virtual object to perform complex operation is low in the related art.

Description

Game control method and device and electronic device
Technical Field
The disclosure relates to the field of intelligent control, and in particular relates to a game control method, a game control device and an electronic device.
Background
At present, a user can control virtual objects in a game to complete preset game operations by controlling various controls on a game device, for example, in a football game, the user can complete operations such as passing a ball, shooting a goal and the like by controlling a rocker and a key on a game handle, but the success rate of completing the game operations is low if the user does not spend time learning corresponding operation methods due to high difficulty coefficients of part special game operations such as a wire ball, an elevator ball and the like in the football game.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
At least some embodiments of the present disclosure provide a method, an apparatus, and an electronic device for controlling a game, so as to at least solve a technical problem in the related art that a success rate of a user controlling a virtual object to perform a complex operation is low.
According to one embodiment of the present disclosure, there is provided a game control method, providing a graphical user interface through a terminal device, where content displayed on the graphical user interface includes at least a part of a virtual scene, and the virtual scene includes a virtual object controlled by the terminal device, the method including: determining a track type of a sliding track corresponding to a sliding operation in response to the sliding operation of a touch area in a controller, wherein the controller is connected with terminal equipment; dividing the touch area into a plurality of subareas based on the track type; determining a target subarea corresponding to the sliding operation from the plurality of subareas according to the sliding track; determining a target control mode corresponding to the target subarea; the motion of the virtual object is controlled based on the target control mode.
According to one embodiment of the present disclosure, there is further provided a game control apparatus, which provides a graphical user interface through a terminal device, wherein content displayed by the graphical user interface is at least partially a virtual scene, the virtual scene includes a virtual object controlled by the terminal device, and the apparatus includes: the track type determining module is used for responding to the sliding operation aiming at the touch area in the controller and determining the track type of the sliding track corresponding to the sliding operation, wherein the controller is connected with the terminal equipment; the region dividing module is used for dividing the touch region into a plurality of sub-regions based on the track type; the area determining module is used for determining a target subarea corresponding to the sliding operation from the plurality of subareas according to the sliding track; the control mode determining module is used for determining a target control mode corresponding to the target subarea; and the control module is used for controlling the movement of the virtual object based on the target control mode.
According to one embodiment of the present disclosure, there is also provided a nonvolatile storage medium in which a computer program is stored, wherein the computer program is configured to execute the control method of the game in any one of the above-described items when running.
According to one embodiment of the present disclosure, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to run the computer program to perform the control method of the game in any one of the above.
In at least some embodiments of the present disclosure, determining a track type of a sliding track corresponding to a sliding operation in response to the sliding operation for a touch area in a controller; dividing the touch area into a plurality of subareas based on the track type; determining a target subarea corresponding to the sliding operation from the plurality of subareas according to the sliding track; determining a target control mode corresponding to the target subarea; the method for controlling the motion of the virtual object based on the target control mode determines the motion of the virtual object to be controlled by a user according to the track type of the sliding track determined on the touch control area and the target subarea where the special position on the sliding track is located, so that the control difficulty of the user on the virtual object can be effectively reduced, the motion operation with high difficulty can be easily realized, and the technical problem of low success rate of complex operation of the user control virtual object in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, illustrate and explain the present disclosure, and together with the description serve to explain the present disclosure. In the drawings:
fig. 1 is a hardware block diagram of a mobile terminal of a game control method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of controlling a game according to one embodiment of the present disclosure;
FIG. 3a is a schematic diagram of a first curved-track region-division result according to one embodiment of the present disclosure;
FIG. 3b is a schematic diagram of a second curved-track region-splitting result according to one embodiment of the present disclosure;
FIG. 3c is a schematic diagram of a third curvilinear path region division result in accordance with one embodiment of the present disclosure;
FIG. 4a is a schematic diagram of a first linear track area division result according to one embodiment of the present disclosure;
FIG. 4b is a schematic diagram of a second linear trajectory region division result according to one embodiment of the present disclosure;
FIG. 4c is a schematic diagram of a third linear trajectory region division result according to one embodiment of the present disclosure;
FIG. 4d is a schematic diagram of a fourth linear trajectory region division result according to one embodiment of the present disclosure;
FIG. 4e is a schematic diagram of a fifth linear trajectory region division result according to one embodiment of the present disclosure;
FIG. 4f is a schematic diagram of a sixth linear trajectory region division result according to one embodiment of the present disclosure;
FIG. 5 is a block diagram of a control device for a game according to one embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
In order that those skilled in the art will better understand the present disclosure, a technical solution in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure, shall fall within the scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The operability of a game always is one of important factors considering whether the game can be favored by wide users, and the high operability and the behavior variability of virtual objects in the game not only mean that the game has considerable prospect, but also can attract a large number of users, and ensure that the game is in the front of the industry. Taking football game as an example, the user performs most of sports operations on virtual objects around shooting, when launching any ball, the user often selects sports operations with strong ornamental value, strong participation and high game benefits, such as a curved ball, an elevator ball and the like, but the sports operations have higher difficulty, take a great deal of time and cost to learn, are not friendly to some casual users, have lower success rate of the users in operating the sports, and greatly influence the game experience of the users.
According to one embodiment of the present disclosure, there is provided an embodiment of a method of controlling a game, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
The method embodiments may be performed in a mobile terminal, a computer terminal, or similar computing device. Taking the example of running on a mobile terminal, the mobile terminal can be a terminal device such as a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, abbreviated as MID), a PAD, a game console, etc. Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a game control method according to an embodiment of the present disclosure. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processor (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may further include a transmission device 106, an input-output device 108, and a display device 110 for communication functions. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store computer programs, such as software programs of application software and modules, such as computer programs corresponding to the control method of the game in the embodiments of the present disclosure, and the processor 102 executes the computer programs stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the control method of the game described above. Memory 104 may include high-speed random access memory, and may 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, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via 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 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
The input in the input output device 108 may come from a plurality of human interface devices (Human Interface Device, abbreviated as HIDs). For example: keyboard and mouse, gamepad, other special game controllers (e.g., steering wheel, fishing pole, dance mat, remote control, etc.). Part of the ergonomic interface device may provide output functions in addition to input functions, such as: force feedback and vibration of the gamepad, audio output of the controller, etc.
The display device 110 may be, for example, a head-up display (HUD), a touch screen type Liquid Crystal Display (LCD), and a touch display (also referred to as a "touch screen" or "touch display"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI), and the user may interact with the GUI by touching finger contacts and/or gestures on the touch-sensitive surface, where the man-machine interaction functions optionally include the following interactions: executable instructions for performing the above-described human-machine interaction functions, such as creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving electronic mail, talking interfaces, playing digital video, playing digital music, and/or web browsing, are configured/stored in a computer program product or readable storage medium executable by one or more processors.
The control method of the game in one embodiment of the present disclosure may be run on a local terminal device or a server. When the game control method runs on the server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and operation of the game control method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In a possible implementation manner, the embodiment of the disclosure provides a game control method, and a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system. Fig. 2 is a flowchart of a method of controlling a game according to one embodiment of the present disclosure, providing a graphical user interface through a terminal device, the graphical user interface being at least partially a virtual scene, the virtual scene including virtual objects controlled by the terminal device, as shown in fig. 2, the method comprising the steps of:
In step S202, in response to the sliding operation for the touch area in the controller, a track type of the sliding track corresponding to the sliding operation is determined.
The controller is connected with the terminal equipment.
The sliding operation may be a sliding curve drawn by a user on the touch pad, the controller may be a device connected to the terminal device through a line or a wireless network, or attached to the terminal device, such as a game handle, a game professional touch pad, etc., generally, the user may change the content displayed on the terminal device by operating a touch area on the controller, so as to complete control of the game, for example, by long pressing the touch area and sliding, the virtual object may be controlled to aim, and clicking the touch area after the aim is completed, the virtual object may be controlled to emit a virtual prop, etc.
In an alternative scheme of this embodiment, in order to avoid failure of user operation caused by too high game operation difficulty and further affect the game experience of the user, the sliding operation of the user in the touch area may be used to replace complex combined operation of rocker and key, for example, a plurality of keys such as A, B, C are sequentially pressed while the rocker is pushed upwards, so as to realize release of special skills of the virtual object, thereby reducing the difficulty of game operation and improving the game experience of the user.
Specifically, whether the sliding operation exists in the touch area can be detected in real time, and under the condition that the sliding exists, the track type of the sliding track of the user in the touch area can be further judged, and then the game operation which the user wants to perform is determined based on the track type.
In an alternative solution of this embodiment, in order to avoid that the user carelessly touches the touch area by mistake and causes the virtual object to be controlled to perform the wrong game operation, a time threshold may be set, and only when the time that the user touches the touch area is greater than the time threshold, it is determined that the user performs the sliding operation currently, so as to determine the type of the sliding track corresponding to the sliding operation.
Generally, the track types can be divided into a linear track and a curve track, and the curve track can be subdivided into a plurality of sub-curve tracks with different radian ranges according to the radian of the track.
It should be noted that, the game operation that the user wants to perform according to the sliding track set forth in the present disclosure does not mean that the user performs the game operation only through the touch area, specifically may be determined according to the game content, that is, the game may be completed by combining the control such as the rocker and the button on the terminal device while using the touch area, for example, the football game may be performed by controlling the main view direction of the virtual object through the rocker, controlling the passing and shooting of the virtual object through the button, and controlling the game operation such as the arc ball and the elevator ball with high ornamental value and high game benefit when the virtual object is in a part of the virtual scene, for example, the penalty ball, through the touch area.
In step S204, the touch area is divided into a plurality of sub-areas based on the track type.
The sub-region may refer to a partial region in the touch region, such as an upper left corner region, a middle region, and the like of the touch region.
After determining the track type of the sliding track, in order to provide a plurality of different game operations for the user, the touch area may be divided according to a preset rule according to the track type.
Optionally, dividing the touch area into the plurality of sub-areas based on the track type includes: responding to the track type as a curve, and dividing the touch area into three sub-areas; and in response to the track type being a straight line, dividing the touch area into six sub-areas.
In an alternative scheme of the embodiment, considering the operation habits of most users, the touch area may be divided into three sub-areas when the track type is a curve type; and when the track type is a straight line type, dividing the touch area into six sub-areas.
In an alternative scheme of this embodiment, the user may set the preset rule according to his own usage habit and actual requirement, for example, if the hand shape of the user is smaller, the divided multiple sub-regions may be concentrated to one side in the touch area; if the number of false touches by the user is large, the divided sub-areas can be arranged on the side which is not easy to touch.
Optionally, the three sub-regions include: the touch control device comprises a left sub-area positioned on the left side of a touch control area, a right sub-area positioned on the right side of the touch control area, and an upper sub-area positioned above the touch control area and adjacent to both the left sub-area and the right sub-area.
Fig. 3a is a schematic diagram of a first curve track area division result according to an embodiment of the present disclosure, as shown in fig. 3a, when a track type of a sliding track drawn by a user is a curve type, the above-mentioned touch area may be divided into three sub-areas according to a Y-shape, and the three sub-areas are divided into a sub-area (1) on the left side of the touch area, a sub-area (2) on the right side of the touch area, and a sub-area (3) above the touch area and adjacent to the two sub-areas. The dividing mode can effectively distinguish the starting point and the ending point of the curve sliding track and the maximum curvature point, so that the accuracy of determining the control mode corresponding to the curve sliding track is improved.
Optionally, the six sub-regions include: the touch control device comprises an upper left sub-region positioned at the upper left corner of a touch control region, a lower left sub-region positioned at the lower left corner of the touch control region, an upper right sub-region positioned at the lower right corner of the touch control region, an upper middle sub-region positioned above the touch control region and adjacent to both the upper left sub-region and the upper right sub-region, and a lower middle sub-region positioned below the touch control region and adjacent to both the lower left sub-region and the lower right sub-region.
Fig. 4a is a schematic diagram of a first linear track area division result according to an embodiment of the present disclosure, as shown in fig. 4a, when the track type of the sliding track drawn by the user is a linear type, the above-mentioned touch area may be divided into six sub-areas according to a field grid, and the six sub-areas may be divided into a sub-area (4) at the upper left corner of the touch area, a sub-area (7) at the lower left corner of the touch area, a sub-area (6) at the upper right corner of the touch area, a sub-area (9) at the lower right corner of the touch area, a sub-area (5) above the touch area adjacent to the sub-areas (4) and (6), and a sub-area (8) below the touch area adjacent to the sub-areas (7) and (9). The dividing mode can directly determine the corresponding control mode according to the starting point and the stopping point of the linear sliding track, and further the efficiency of determining the target control mode is improved.
In an alternative of this embodiment, the above-mentioned divided multiple sub-target areas may be further subdivided to correspond to more game operations, and it should be noted that the above-mentioned control manner corresponding to the sliding track is merely an exemplary mission, and is not limited specifically.
Step S206, determining a target subarea corresponding to the sliding operation from the subareas according to the sliding track.
After the touch area is divided into a plurality of sub-areas based on the sliding track based on the game control system, the target sub-area can be further determined according to the special positions in the sliding track, such as the final drop point of the sliding track, the position corresponding to the maximum curvature, and the like.
For example, if the user draws a curved track with a larger radian in the touch area, the position corresponding to the maximum curvature of the curved track may be used as the specific position, and then the target sub-area may be determined according to the maximum curvature position; if the user draws a long linear track, the end position of the linear track can be used as the special position, and then the target subarea can be determined according to the end position.
In an alternative solution of this embodiment, the target sub-area may include more than one sub-area, for example, a sub-area corresponding to a maximum curvature position of the curved track with a larger radian and an end position may be used as the target sub-area; the sub-region corresponding to the start position and the end position of the long linear track may be used as the target sub-region.
The touch control area is divided into the plurality of sub-areas by utilizing the track type of the sliding track, the target sub-areas are determined according to the plurality of special positions on the sliding track, and finally the game operation corresponding to the sliding track is determined, namely, the game operation which the user wants to perform is determined from multiple aspects, so that the accuracy of the determined game operation can be effectively improved, the game operation finally presented by the virtual object is more in line with the expectation of the user, and the game experience of the user is improved.
Step S208, determining a target control mode corresponding to the target sub-area.
The above-described target control method may refer to a specific game operation that the user wants to perform, such as a arcade ball, an elevator ball, etc., which are launched in a soccer game.
In an alternative scheme of this embodiment, a plurality of different preset control modes may be preset for different target sub-areas, and based on the determined track type and the corresponding target sub-area, the target control modes corresponding to the preset target sub-areas are determined by matching with a preset game operation database, that is, with the plurality of different preset control modes, so as to complete the game operation that the user wants to perform.
Generally, in one target control manner corresponds to only one target sub-region, in one alternative scheme of the embodiment, in some special virtual scenes of a game, for example, when penalty balls are limited, if a plurality of sub-regions divided by the touch region can be determined, and a plurality of different target sub-regions can be determined, then the plurality of different target sub-regions can be set to be the same target control manner, so that the situation that the sliding track drawn by a user does not meet the expectation of the user and further the situation that the virtual object is controlled to execute an error game operation is avoided.
The user can realize the game operation which the user wants to play by manually drawing the sliding track, the game is not needed to be played by utilizing a complex combination mode of the rocker and the button, the game operation difficulty of the user is reduced, the game interestingness is increased, and the game experience of the user is improved.
Step S210, controlling the movement of the virtual object based on the target control mode.
The virtual object may refer to a game character controlled by a user, such as a tank, a ship, a virtual character in a war game, an athlete, a referee, etc. in a soccer game.
After the target control mode corresponding to the sliding track is determined, the virtual object can be further controlled to move according to the target control mode, for example, in a football game, game operations such as launching a arc ball, an elevator ball and the like by the virtual object are controlled.
In at least some embodiments of the present disclosure, determining a track type of a sliding track corresponding to a sliding operation in response to the sliding operation for a touch area in a controller; dividing the touch area into a plurality of subareas based on the track type; determining a target subarea corresponding to the sliding operation from the plurality of subareas according to the sliding track; determining a target control mode corresponding to the target subarea; the method for controlling the motion of the virtual object based on the target control mode determines the motion of the virtual object to be controlled by a user according to the track type of the sliding track determined on the touch control area and the target subarea where the special position on the sliding track is located, so that the control difficulty of the user on the virtual object can be effectively reduced, the motion operation with high difficulty can be easily realized, and the technical problem of low success rate of complex operation of the user control virtual object in the related technology is solved.
Optionally, determining the track type of the sliding track corresponding to the sliding operation includes: determining a target radian of the sliding track; comparing the target radian with a radian threshold value to obtain a comparison result; the track type is determined based on the comparison result.
The arc threshold may be a threshold for determining whether the sliding track is a straight line. The track types can comprise straight-line tracks and curve tracks with different radian ranges, so that when the track type of the sliding track is judged, the corresponding specific type can be determined according to the maximum radian of the sliding track.
Specifically, after the user completes a sliding track, the maximum radian of the sliding track, that is, the target radian, may be detected first, and the specific detection method may refer to a related radian detection technology, which is not described herein again. And comparing the maximum radian with a preset threshold value to judge the specific track type of the sliding track, for example, when the maximum radian of the sliding track is smaller than or equal to the preset radian threshold value, the type of the sliding track can be determined to be a straight line type, and when the maximum radian of the sliding track is larger than the preset radian threshold value, the type of the sliding track can be determined to be a curve type, and the specific description is as follows. By dividing the sliding tracks of different types by using the preset threshold, the accuracy of the determined track type can be improved.
Optionally, determining the track type based on the comparison result includes: determining the track type as a curve in response to the comparison result that the target radian is larger than the radian threshold; and determining that the track type is a straight line in response to the comparison result that the target radian is smaller than or equal to the radian threshold.
In an alternative scheme of this embodiment, a preset radian threshold may be set to determine whether the sliding track drawn by the user is a straight line, for example, the first radian threshold may be set to be 0.1 pi, and when the target radian of the sliding track is less than or equal to 0.1 pi, it represents that the sliding track is overall flat, and may be divided into straight line types; when the target radian of the sliding track is larger than 0.1 pi, the sliding track is represented to have larger change, and the sliding track can be divided into curve types.
In an alternative scheme of this embodiment, a plurality of radian thresholds larger than the first radian threshold may be further set, a sliding track of a curve type may be further subdivided into a plurality of sub-curve types, so as to correspond to a plurality of different game operations, and taking the penalty moment in the football game as an example, a second radian threshold may be further set to be 0.6pi, after the sliding track is determined to be the curve type, whether the target radian of the curve is larger than 0.6pi may be further determined, if so, it may be represented that the game operation that the user wants to perform is a large-scale extraction, and at this time, the virtual object may be controlled to extract the football at a large speed; if the virtual object is smaller than the virtual object, the game operation which the user wants to play can be played with a small amplitude, and the virtual object can be controlled to play football at a small speed. Different game operations can correspond to different game benefits, and various different radian thresholds are set, so that the requirement of users on the diversity of game operations can be met, and the game experience of the users is improved.
The first arc threshold and the second arc threshold are only exemplified, and the specific threshold may be set according to the game content, or may be set by the user in the game, which is not limited herein.
Optionally, determining, from the plurality of sub-regions, a target sub-region corresponding to the sliding operation according to the sliding trajectory includes: determining the positions of target touch points on a sliding track, wherein the positions of the target touch points corresponding to different track types are different; and determining the subarea where the position of the target touch point is located from the subareas as a target subarea.
The target touch point may refer to a specific position in the sliding track, for example, a start point of the sliding track, a middle point of the sliding track, a maximum curvature point, and the like, so long as a sub-region through which the sliding track passes can be determined.
In an alternative of this embodiment, in order to facilitate distinguishing between different game operations under the straight track and the curved track, different target touch points may be set for different track types.
In an alternative of this embodiment, if the game operation is less, in order to reduce the difficulty of drawing the sliding track by the user to perform the desired game operation, the same target touch point may be set for different track types, and in general, since the sliding track drawn by the user may not be a smooth straight line or curve, the sliding track may not conform to the user's expected game operation when determining the middle point of the track, and therefore, it is preferable that the maximum curvature point in the sliding track be used as the target touch point.
Optionally, determining the position of the target touch point on the sliding track includes: responding to the track type as a curve, and determining the position of a point corresponding to the maximum curvature on the sliding track as the position of a target touch point; and determining the end position of the sliding track as the position of the target touch point in response to the track type being a straight line.
In an alternative scheme of this embodiment, the target touch point on the track may be determined according to the track type of the sliding track, for example, if the track type of the sliding track is a straight line type, the position of the target touch point may be determined to be the track end position; if the track type of the sliding track is a curve type, the position of the target touch point can be determined to be the position of the point corresponding to the maximum curvature. According to the target touch position, the accuracy of the determined control mode corresponding to the sliding track can be improved.
Optionally, determining the position of the point corresponding to the maximum curvature on the sliding track as the position of the target touch point includes: mapping the sliding track with a preset curve to obtain a target curve corresponding to the sliding track; and determining the position of the point corresponding to the maximum curvature on the target curve as the position of the target touch point.
The predetermined curve may be a curve for determining a position of a point corresponding to a maximum curve of the sliding track, for example, a bezier curve.
In an alternative of this embodiment, the sliding track may be mapped with a bezier curve, so that the sliding track may be subjected to a smooth state change, so that the maximum curvature point of the sliding track may be more easily determined. In addition, the maximum curve may be determined by using a linear fitting method, which is not particularly limited herein. In an alternative scheme of this embodiment, the touch area may be generally divided into a plurality of small sub-areas, and then the target sub-area is determined according to the target touch point on the sliding track, so as to further determine a target control manner corresponding to the sliding track.
After the target touch point corresponding to the sliding track drawn by the user is determined, the virtual object in the game can be controlled to perform game operation according to a preset game control mode based on the target subarea corresponding to the target touch point.
Optionally, a target control mode corresponding to the left sub-region is used for controlling the virtual object to emit a left arc sphere; the target control mode corresponding to the right sub-region is used for controlling the virtual object to emit a right arc sphere; the target control mode corresponding to the upper subarea is used for controlling the virtual object to emit the elevator ball.
Taking the penalty moment in the football game as an example, after the touch control area is divided based on the track type, each divided subarea can correspond to one game operation, if the track type of the sliding track drawn by the user is a curve type, and the area where the position of the maximum curvature point of the track is selected as the target subarea, three game operations can be performed at the moment:
as shown in fig. 3a, where the curve m represents a sliding track drawn by a user, a target sub-area corresponding to the sliding track is a sub-area (1), and considering most of operation habits of users, a preset control mode corresponding to the sliding track may be set to control the virtual object to emit a left arc sphere, that is, a control mode corresponding to the sub-area (1) is used to control the virtual object to emit a right arc sphere at this time;
fig. 3b is a schematic diagram of a second curve track area division result according to an embodiment of the present disclosure, as shown in fig. 3b, where a curve n represents a sliding track drawn by a user, a target sub-area corresponding to the sliding track is a sub-area (2), and considering most of operation habits of the user, a preset control manner corresponding to the sliding track may be set to control the virtual object to emit a right arc ball, that is, a control manner corresponding to the sub-area (2) is used to control the virtual object to emit the right arc ball at this time;
Fig. 3c is a schematic diagram of a third curve track area division result according to an embodiment of the present disclosure, as shown in fig. 3c, where a curve l represents a sliding track drawn by a user, a target sub-area corresponding to the sliding track is a sub-area (3), and a preset control manner corresponding to the sliding track may be set to control a virtual object to launch an elevator ball, that is, a control manner corresponding to the sub-area (3) is used to control the virtual object to launch an elevator ball.
It should be noted that, the preset control manner corresponding to each sub-area is only exemplary, and the left arc ball, the right arc ball and the elevator ball are all ball types with obvious arcs on the motion track, so that the preset control manner corresponding to each sub-area can be set by a user according to the needs of the user in practical application and is not particularly limited herein.
Optionally, a target control mode corresponding to the upper left sub-region is used for controlling the virtual object to emit an upper left shot; the target control mode corresponding to the upper right sub-region is used for controlling the virtual object to emit an upper right shot; the target control mode corresponding to the middle upper subarea is used for controlling the virtual object to emit forward pumping balls; the target control mode corresponding to the lower left subarea is used for controlling the virtual object to emit a lower left ball; the target control mode corresponding to the lower right sub-region is used for controlling the virtual object to emit a lower right ball; and the target control mode corresponding to the middle-lower subarea is used for controlling the forward low-level sphere of the virtual object.
If the track type of the sliding track drawn by the user is a straight line type, and the area where the end point position of the track is selected as the target sub-area, six game operations can be performed at this time:
as shown in fig. 4a, where the curve u represents a sliding track drawn by a user, a target sub-region corresponding to the sliding track is a sub-region (4), and a preset control manner corresponding to the sliding track may be set to control the virtual object to emit an upper left extraction ball, that is, at this time, the control manner corresponding to the sub-region (4) is used to control the virtual object to emit the upper left extraction ball;
fig. 4b is a schematic diagram of a second linear track area division result according to an embodiment of the disclosure, as shown in fig. 4b, where a curve v represents a sliding track drawn by a user, a target sub-area corresponding to the sliding track is a sub-area (6), and a preset control manner corresponding to the sliding track may be set to control the virtual object to emit an upper right extraction ball, that is, a control manner corresponding to the sub-area (6) is used to control the virtual object to emit an upper right extraction ball at this time;
fig. 4c is a schematic diagram of a third linear track area division result according to an embodiment of the present disclosure, as shown in fig. 4c, where a curve w represents a sliding track drawn by a user, a target sub-area corresponding to the sliding track is a sub-area (5), and a preset control manner corresponding to the sliding track may be set to control the virtual object to emit a forward-direction extraction ball, that is, a control manner corresponding to the sub-area (5) is used to control the virtual object to emit a forward-direction extraction ball at this time;
Fig. 4d is a schematic diagram of a fourth linear track area division result according to an embodiment of the present disclosure, as shown in fig. 4d, where a curve x represents a sliding track drawn by a user, a target sub-area corresponding to the sliding track is a sub-area (7), and a preset control manner corresponding to the sliding track may be set to control the virtual object to emit a left low flat ball, that is, a control manner corresponding to the sub-area (7) is used to control the virtual object to emit a left low flat ball at this time;
fig. 4e is a schematic diagram of a fifth linear track area division result according to an embodiment of the present disclosure, as shown in fig. 4e, where a curve y represents a sliding track drawn by a user, a target sub-area corresponding to the sliding track is a sub-area (9), and a preset control manner corresponding to the sliding track may be set to control the virtual object to emit a right low flat ball, that is, a control manner corresponding to the sub-area (9) is used to control the virtual object to emit the right low flat ball at this time;
fig. 4f is a schematic diagram of a sixth linear track area division result according to an embodiment of the present disclosure, as shown in fig. 4f, where a curve z represents a sliding track drawn by a user, a target sub-area corresponding to the sliding track is a sub-area (8), and a preset control manner corresponding to the sliding track may be set to control the virtual object to emit a forward low-altitude ball, that is, a control manner corresponding to the sub-area (8) is used to control the virtual object to emit a forward low-altitude ball at this time;
It should be noted that, the preset control manner corresponding to each sub-area is only illustrated by way of example, and the user may set the control manner according to the actual requirement, which is not limited herein.
According to the method, the operation which the user wants to perform is determined according to the sliding track of the user by utilizing the touch area on the touch pad, so that the efficiency and accuracy of determining the operation according to the track can be effectively improved, meanwhile, the user can acquire the wanted game operation only by sliding in the touch area, the difficulty of the game operation is greatly reduced, the user does not need to spend a great deal of time to learn the game operation, and the success rate of the user to control the virtual object to complete the complex operation is further improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present disclosure may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present disclosure.
The embodiment also provides a game control device, which is used for implementing the above embodiment and the preferred implementation, and is not described in detail. As used below, the terms "unit," "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of a game control apparatus according to one embodiment of the present disclosure, providing a graphical user interface through a terminal device, the content displayed on the graphical user interface including a touch area, as shown in fig. 5, the apparatus comprising: the track type determining module 502 is configured to determine a track type of a sliding track corresponding to a sliding operation in response to the sliding operation for a touch area in the controller, where the controller is connected with the terminal device; the region dividing module 504 is configured to divide the touch region into a plurality of sub-regions based on the track type; a region determining module 506, configured to determine a target sub-region corresponding to the sliding operation from the plurality of sub-regions according to the sliding track; a control mode determining module 508, configured to determine a target control mode corresponding to the target sub-region; and a control module 510 for controlling the movement of the virtual object based on the target control mode.
Optionally, the track type determination module 502 includes: the target radian determining unit is used for determining the target radian of the sliding track; the radian comparison unit is used for comparing the target radian with a radian threshold value to obtain a comparison result; and a track type determining unit for determining the track type based on the comparison result.
Optionally, the track type determining unit includes: the curve determining subunit is used for determining the track type as a curve in response to the comparison result that the target radian is larger than the radian threshold; and the straight line determining subunit is used for determining that the track type is a straight line in response to the comparison result that the target radian is smaller than or equal to the radian threshold value.
Optionally, the area determination module 506 includes: the target position determining unit is used for determining the positions of target touch points on the sliding track, wherein the positions of the target touch points corresponding to different track types are different; and the target group area determining unit is used for determining the subarea where the position of the target touch point is located from the plurality of subareas as a target subarea.
Optionally, the target position determining unit includes: the curve position determining subunit is used for determining the position of the point corresponding to the maximum curvature on the sliding track as the position of the target touch point in response to the track type being a curve; and the linear position determining subunit is used for determining the ending position of the sliding track as the position of the target touch point in response to the track type being a linear.
Optionally, the curve position determining subunit is further configured to map the sliding track with a preset curve to obtain a target curve corresponding to the sliding track; and determining the position of the point corresponding to the maximum curvature on the target curve as the position of the target touch point.
Optionally, the region dividing module 504 includes: the curve dividing unit is used for responding to the track type as a curve and dividing the touch area into three sub-areas; and the linear dividing unit is used for dividing the touch area into six sub-areas in response to the track type being a linear.
Optionally, the curve dividing unit includes: the touch control device comprises a left sub-area positioned on the left side of a touch control area, a right sub-area positioned on the right side of the touch control area, and an upper sub-area positioned above the touch control area and adjacent to both the left sub-area and the right sub-area.
Optionally, a target control mode corresponding to the left sub-region is used for controlling the virtual object to emit a left arc sphere; the target control mode corresponding to the right sub-region is used for controlling the virtual object to emit a right arc sphere; the target control mode corresponding to the upper subarea is used for controlling the virtual object to emit the elevator ball.
Optionally, the straight line dividing unit includes: the touch control device comprises an upper left sub-region positioned at the upper left corner of a touch control region, a lower left sub-region positioned at the lower left corner of the touch control region, an upper right sub-region positioned at the lower right corner of the touch control region, an upper middle sub-region positioned above the touch control region and adjacent to both the upper left sub-region and the upper right sub-region, and a lower middle sub-region positioned below the touch control region and adjacent to both the lower left sub-region and the lower right sub-region.
Optionally, a target control mode corresponding to the upper left sub-region is used for controlling the virtual object to emit an upper left shot; the target control mode corresponding to the upper right sub-region is used for controlling the virtual object to emit an upper right shot; the target control mode corresponding to the middle upper subarea is used for controlling the virtual object to emit forward pumping balls; the target control mode corresponding to the lower left subarea is used for controlling the virtual object to emit a lower left ball; the target control mode corresponding to the lower right sub-region is used for controlling the virtual object to emit a lower right ball; and the target control mode corresponding to the middle-lower subarea is used for controlling the forward low-level sphere of the virtual object.
It should be noted that each of the above units and modules may be implemented by software or hardware, and the latter may be implemented by, but not limited to: the units and the modules are all positioned in the same processor; alternatively, the units and modules are located in different processors in any combination.
Embodiments of the present disclosure also provide a non-volatile storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described nonvolatile storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Alternatively, in this embodiment, the above-mentioned nonvolatile storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Alternatively, in the present embodiment, the above-described nonvolatile storage medium may be configured to store a computer program for performing the steps of:
s31, determining the track type of a sliding track corresponding to the sliding operation in response to the sliding operation aiming at the touch area in the controller, wherein the controller is connected with the terminal equipment;
s32, dividing the touch area into a plurality of subareas based on the track type;
s33, determining a target subarea corresponding to the sliding operation from the subareas according to the sliding track;
s34, determining a target control mode corresponding to the target subarea;
S35, controlling the movement of the virtual object based on the target control mode.
Optionally, determining the track type of the sliding track corresponding to the sliding operation includes: determining a target radian of the sliding track; comparing the target radian with a radian threshold value to obtain a comparison result; the track type is determined based on the comparison result.
Optionally, determining the track type based on the comparison result includes: determining the track type as a curve in response to the comparison result that the target radian is larger than the radian threshold; and determining that the track type is a straight line in response to the comparison result that the target radian is smaller than or equal to the radian threshold.
Optionally, determining a target sub-region corresponding to the sliding operation from the plurality of sub-regions according to the sliding track includes: determining the positions of target touch points on a sliding track, wherein the positions of the target touch points corresponding to different track types are different; and determining the subarea where the position of the target touch point is located from the subareas as a target subarea.
Optionally, determining the position of the target touch point on the sliding track includes: responding to the track type as a curve, and determining the position of a point corresponding to the maximum curvature on the sliding track as the position of a target touch point; and determining the end position of the sliding track as the position of the target touch point in response to the track type being a straight line.
Optionally, determining the position of the point corresponding to the maximum curvature on the sliding track as the position of the target touch point includes: mapping the sliding track with a preset curve to obtain a target curve corresponding to the sliding track; and determining the position of the point corresponding to the maximum curvature on the target curve as the position of the target touch point.
Optionally, dividing the touch area into the plurality of sub-areas based on the track type includes: responding to the track type as a curve, and dividing the touch area into three sub-areas; and in response to the track type being a straight line, dividing the touch area into six sub-areas.
Optionally, the three sub-regions include: the touch control device comprises a left sub-area positioned on the left side of a touch control area, a right sub-area positioned on the right side of the touch control area, and an upper sub-area positioned above the touch control area and adjacent to both the left sub-area and the right sub-area.
Optionally, a target control mode corresponding to the left sub-region is used for controlling the virtual object to emit a left arc sphere; the target control mode corresponding to the right sub-region is used for controlling the virtual object to emit a right arc sphere; the target control mode corresponding to the upper subarea is used for controlling the virtual object to emit the elevator ball.
Optionally, the six sub-regions include: the touch control device comprises an upper left sub-region positioned at the upper left corner of a touch control region, a lower left sub-region positioned at the lower left corner of the touch control region, an upper right sub-region positioned at the lower right corner of the touch control region, an upper middle sub-region positioned above the touch control region and adjacent to both the upper left sub-region and the upper right sub-region, and a lower middle sub-region positioned below the touch control region and adjacent to both the lower left sub-region and the lower right sub-region.
Optionally, a target control mode corresponding to the upper left sub-region is used for controlling the virtual object to emit an upper left shot; the target control mode corresponding to the upper right sub-region is used for controlling the virtual object to emit an upper right shot; the target control mode corresponding to the middle upper subarea is used for controlling the virtual object to emit forward pumping balls; the target control mode corresponding to the lower left subarea is used for controlling the virtual object to emit a lower left ball; the target control mode corresponding to the lower right sub-region is used for controlling the virtual object to emit a lower right ball; and the target control mode corresponding to the middle-lower subarea is used for controlling the forward low-level sphere of the virtual object.
In at least some embodiments of the present disclosure, determining a track type of a sliding track corresponding to a sliding operation in response to the sliding operation for a touch area in a controller; dividing the touch area into a plurality of subareas based on the track type; determining a target subarea corresponding to the sliding operation from the plurality of subareas according to the sliding track; determining a target control mode corresponding to the target subarea; the method for controlling the motion of the virtual object based on the target control mode determines the motion of the virtual object to be controlled by a user according to the track type of the sliding track determined on the touch control area and the target subarea where the special position on the sliding track is located, so that the control difficulty of the user on the virtual object can be effectively reduced, the motion operation with high difficulty can be easily realized, and the technical problem of low success rate of complex operation of the user control virtual object in the related technology is solved.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a computer readable storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium stores thereon a program product capable of implementing the method described above in the present embodiment. In some possible implementations, aspects of the disclosed embodiments may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary implementations of the disclosure as described in the "exemplary methods" section of the disclosure, when the program product is run on the terminal device.
A program product for implementing the above-described method according to an embodiment of the present disclosure may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the embodiments of the present disclosure is not limited thereto, and in the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Any combination of one or more computer readable media may be employed by the program product described above. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the program code embodied on the computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Embodiments of the present disclosure also provide an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s41, determining the track type of a sliding track corresponding to the sliding operation in response to the sliding operation aiming at the touch area in the controller, wherein the controller is connected with the terminal equipment;
s42, dividing the touch area into a plurality of subareas based on the track type;
s43, determining a target subarea corresponding to the sliding operation from the subareas according to the sliding track;
S44, determining a target control mode corresponding to the target subarea;
s45, controlling the movement of the virtual object based on the target control mode.
Optionally, determining the track type of the sliding track corresponding to the sliding operation includes: determining a target radian of the sliding track; comparing the target radian with a radian threshold value to obtain a comparison result; the track type is determined based on the comparison result.
Optionally, determining the track type based on the comparison result includes: determining the track type as a curve in response to the comparison result that the target radian is larger than the radian threshold; and determining that the track type is a straight line in response to the comparison result that the target radian is smaller than or equal to the radian threshold.
Optionally, determining a target sub-region corresponding to the sliding operation from the plurality of sub-regions according to the sliding track includes: determining the positions of target touch points on a sliding track, wherein the positions of the target touch points corresponding to different track types are different; and determining the subarea where the position of the target touch point is located from the subareas as a target subarea.
Optionally, determining the position of the target touch point on the sliding track includes: responding to the track type as a curve, and determining the position of a point corresponding to the maximum curvature on the sliding track as the position of a target touch point; and determining the end position of the sliding track as the position of the target touch point in response to the track type being a straight line.
Optionally, determining the position of the point corresponding to the maximum curvature on the sliding track as the position of the target touch point includes: mapping the sliding track with a preset curve to obtain a target curve corresponding to the sliding track; and determining the position of the point corresponding to the maximum curvature on the target curve as the position of the target touch point.
Optionally, dividing the touch area into the plurality of sub-areas based on the track type includes: responding to the track type as a curve, and dividing the touch area into three sub-areas; and in response to the track type being a straight line, dividing the touch area into six sub-areas.
Optionally, the three sub-regions include: the touch control device comprises a left sub-area positioned on the left side of a touch control area, a right sub-area positioned on the right side of the touch control area, and an upper sub-area positioned above the touch control area and adjacent to both the left sub-area and the right sub-area.
Optionally, a target control mode corresponding to the left sub-region is used for controlling the virtual object to emit a left arc sphere; the target control mode corresponding to the right sub-region is used for controlling the virtual object to emit a right arc sphere; the target control mode corresponding to the upper subarea is used for controlling the virtual object to emit the elevator ball.
Optionally, the six sub-regions include: the touch control device comprises an upper left sub-region positioned at the upper left corner of a touch control region, a lower left sub-region positioned at the lower left corner of the touch control region, an upper right sub-region positioned at the lower right corner of the touch control region, an upper middle sub-region positioned above the touch control region and adjacent to both the upper left sub-region and the upper right sub-region, and a lower middle sub-region positioned below the touch control region and adjacent to both the lower left sub-region and the lower right sub-region.
Optionally, a target control mode corresponding to the upper left sub-region is used for controlling the virtual object to emit an upper left shot; the target control mode corresponding to the upper right sub-region is used for controlling the virtual object to emit an upper right shot; the target control mode corresponding to the middle upper subarea is used for controlling the virtual object to emit forward pumping balls; the target control mode corresponding to the lower left subarea is used for controlling the virtual object to emit a lower left ball; the target control mode corresponding to the lower right sub-region is used for controlling the virtual object to emit a lower right ball; and the target control mode corresponding to the middle-lower subarea is used for controlling the forward low-level sphere of the virtual object.
In at least some embodiments of the present disclosure, determining a track type of a sliding track corresponding to a sliding operation in response to the sliding operation for a touch area in a controller; dividing the touch area into a plurality of subareas based on the track type; determining a target subarea corresponding to the sliding operation from the plurality of subareas according to the sliding track; determining a target control mode corresponding to the target subarea; the method for controlling the motion of the virtual object based on the target control mode determines the motion of the virtual object to be controlled by a user according to the track type of the sliding track determined on the touch control area and the target subarea where the special position on the sliding track is located, so that the control difficulty of the user on the virtual object can be effectively reduced, the motion operation with high difficulty can be easily realized, and the technical problem of low success rate of complex operation of the user control virtual object in the related technology is solved.
Fig. 6 is a schematic diagram of an electronic device according to an embodiment of the disclosure. As shown in fig. 6, the electronic device 600 is merely an example, and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic apparatus 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: the at least one processor 610, the at least one memory 620, a bus 630 connecting the different system components (including the memory 620 and the processor 610), and a display 640.
Wherein the memory 620 stores program code that can be executed by the processor 610 to cause the processor 610 to perform steps according to various exemplary implementations of the present disclosure described in the above method section of the embodiments of the present disclosure.
The memory 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory 6202, and may further include Read Only Memory (ROM) 6203, and may also include nonvolatile memory, such as one or more magnetic storage devices, flash memory, or other nonvolatile solid state memory.
In some examples, memory 620 may also include a program/utility 6204 having a set (at least one) of program modules 6206, such program modules 6206 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. The memory 620 may further include memory remotely located relative to the processor 610, which may be connected to the electronic device 600 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processor 610, or using any of a variety of bus architectures.
Display 640 may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of electronic device 600.
Optionally, the electronic apparatus 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic apparatus 600, and/or with any device (e.g., router, modem, etc.) that enables the electronic apparatus 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 660. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. As shown in fig. 6, network adapter 660 communicates with other modules of electronic device 600 over bus 630. It should be appreciated that although not shown in fig. 6, other hardware and/or software modules may be used in connection with the electronic device 600, which may include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The electronic device 600 may further include: a keyboard, a cursor control device (e.g., a mouse), an input/output interface (I/O interface), a network interface, a power supply, and/or a camera.
It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 6 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the electronic device 600 may also include more or fewer components than shown in fig. 6, or have a different configuration than shown in fig. 1. The memory 620 may be used to store a computer program and corresponding data, such as a computer program and corresponding data corresponding to a control method of a game in an embodiment of the present disclosure. The processor 610 executes a computer program stored in the memory 620 to perform various functional applications and data processing, i.e., to implement the above-described game control method.
The foregoing embodiment numbers of the present disclosure are merely for description and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present disclosure, the descriptions of the various embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of units may be a logic function division, and there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of the various embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present disclosure and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present disclosure and are intended to be comprehended within the scope of the present disclosure.

Claims (14)

1. A method of controlling a game, wherein a graphical user interface is provided by a terminal device, the content displayed by the graphical user interface comprising at least a portion of a virtual scene comprising virtual objects controlled by the terminal device, the method comprising:
determining a track type of a sliding track corresponding to a sliding operation in response to the sliding operation of a touch area in a controller, wherein the controller is connected with the terminal equipment;
dividing the touch area into a plurality of subareas based on the track type;
determining a target subarea corresponding to the sliding operation from the plurality of subareas according to the sliding track;
determining a target control mode corresponding to the target subarea;
and controlling the movement of the virtual object based on the target control mode.
2. The method of claim 1, wherein determining a track type of the sliding track corresponding to the sliding operation comprises:
Determining a target radian of the sliding track;
comparing the target radian with a radian threshold value to obtain a comparison result;
and determining the track type based on the comparison result.
3. The method of claim 2, wherein determining the trajectory type based on the comparison result comprises:
determining that the track type is a curve in response to the comparison result being that the target radian is greater than the radian threshold;
and determining that the track type is a straight line in response to the comparison result that the target radian is smaller than or equal to the radian threshold.
4. The method of claim 1, wherein determining a target sub-region corresponding to the sliding operation from the plurality of sub-regions according to the sliding trajectory comprises:
determining the positions of target touch points on the sliding track, wherein the positions of the target touch points corresponding to different track types are different;
and determining a subarea where the position of the target touch point is located from the subareas as the target subarea.
5. The method of claim 4, wherein determining the location of the target touch point on the sliding track comprises:
Responding to the track type as a curve, and determining the position of a point corresponding to the maximum curvature on the sliding track as the position of the target touch point;
and determining the ending position of the sliding track as the position of the target touch point in response to the track type being a straight line.
6. The method of claim 5, wherein determining the location of the point corresponding to the maximum curvature on the sliding track as the location of the target touch point comprises:
mapping the sliding track with a preset curve to obtain a target curve corresponding to the sliding track;
and determining the position of the point corresponding to the maximum curvature on the target curve as the position of the target touch point.
7. The method of claim 1, wherein dividing the touch area into the plurality of sub-areas based on the track type comprises:
responding to the track type as a curve, and dividing the touch area into three sub-areas;
and responding to the track type as a straight line, and dividing the touch area into six sub-areas.
8. The method of claim 7, wherein the three sub-regions comprise: the touch control device comprises a left sub-region positioned at the left side of the touch control region, a right sub-region positioned at the right side of the touch control region and an upper sub-region positioned above the touch control region and adjacent to both the left sub-region and the right sub-region.
9. The method of claim 8, wherein the target control manner corresponding to the left sub-region is used for controlling the virtual object to emit a left arc sphere; the target control mode corresponding to the right sub-region is used for controlling the virtual object to emit a right arc sphere; and the target control mode corresponding to the upper subarea is used for controlling the virtual object to emit the elevator ball.
10. The method of claim 7, wherein the six sub-regions comprise: the touch control device comprises an upper left sub-region positioned at the upper left corner of the touch control region, a lower left sub-region positioned at the lower left corner of the touch control region, an upper right sub-region positioned at the upper right corner of the touch control region, a lower right sub-region positioned at the lower right corner of the touch control region, an upper middle sub-region positioned above the touch control region and adjacent to both the upper left sub-region and the upper right sub-region, and a lower middle sub-region positioned below the touch control region and adjacent to both the lower left sub-region and the lower right sub-region.
11. The method of claim 10, wherein the target control manner corresponding to the upper left sub-region is used for controlling the virtual object to emit an upper left shot; the target control mode corresponding to the upper right sub-region is used for controlling the virtual object to emit an upper right shot ball; the target control mode corresponding to the middle and upper subareas is used for controlling the virtual object to emit forward shooting balls; the target control mode corresponding to the lower left subarea is used for controlling the virtual object to emit a lower left plain ball; the target control mode corresponding to the right lower subarea is used for controlling the virtual object to emit a right low-level ball; and the target control mode corresponding to the middle-lower subarea is used for controlling the forward low-level sphere of the virtual object.
12. A game control apparatus, wherein a graphical user interface is provided through a terminal device, wherein content displayed by the graphical user interface is at least partially a virtual scene, and wherein the virtual scene includes a virtual object controlled by the terminal device, the apparatus comprising:
the track type determining module is used for responding to the sliding operation aiming at the touch area in the controller and determining the track type of the sliding track corresponding to the sliding operation, wherein the controller is connected with the terminal equipment;
the region dividing module is used for dividing the touch region into a plurality of sub-regions based on the track type;
a region determining module, configured to determine a target sub-region corresponding to the sliding operation from the plurality of sub-regions according to the sliding track;
the control mode determining module is used for determining a target control mode corresponding to the target subarea;
and the control module is used for controlling the movement of the virtual object based on the target control mode.
13. A non-volatile storage medium, wherein a computer program is stored in the non-volatile storage medium, wherein the computer program is arranged to, when executed by a processor, perform the method of controlling a game as claimed in any one of claims 1 to 11.
14. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the control method of the game as claimed in any one of claims 1 to 11.
CN202211084449.1A 2022-09-06 2022-09-06 Game control method and device and electronic device Pending CN116251344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211084449.1A CN116251344A (en) 2022-09-06 2022-09-06 Game control method and device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211084449.1A CN116251344A (en) 2022-09-06 2022-09-06 Game control method and device and electronic device

Publications (1)

Publication Number Publication Date
CN116251344A true CN116251344A (en) 2023-06-13

Family

ID=86683172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211084449.1A Pending CN116251344A (en) 2022-09-06 2022-09-06 Game control method and device and electronic device

Country Status (1)

Country Link
CN (1) CN116251344A (en)

Similar Documents

Publication Publication Date Title
US11992760B2 (en) Virtual object control method and apparatus, terminal, and storage medium
US10821360B2 (en) Data processing method and mobile terminal
WO2022213521A1 (en) Method and apparatus for controlling movement of virtual object in game, electronic device, and storage medium
CN110075522A (en) The control method of virtual weapons, device and terminal in shooting game
CN106843681A (en) The progress control method of touch-control application, device and electronic equipment
CN114225372B (en) Virtual object control method, device, terminal, storage medium and program product
CN113908550A (en) Virtual character control method, nonvolatile storage medium, and electronic apparatus
CN114653059A (en) Method and device for controlling virtual character in game and non-volatile storage medium
CN113559519A (en) Game prop selection method and device, electronic equipment and storage medium
WO2024007675A1 (en) Virtual object switching method and apparatus, storage medium, and electronic apparatus
CN116251344A (en) Game control method and device and electronic device
CN116510287B (en) Game control method, game control device, electronic equipment and storage medium
WO2022170892A1 (en) Method and apparatus for controlling virtual object, device, storage medium, and program product
CN113680062B (en) Information viewing method and device in game
JP7419400B2 (en) Virtual object control method, device, terminal and computer program
CN113318430B (en) Method and device for adjusting posture of virtual character, processor and electronic device
CN114832371A (en) Method, device, storage medium and electronic device for controlling movement of virtual character
CN115089960A (en) Display control method and device in game and electronic equipment
CN104036133A (en) Chess game system
CN114504812A (en) Virtual role control method and device
JP2020043926A (en) Game program, method and information processor
CN117398691A (en) Virtual object control method and device, storage medium and electronic equipment
CN111701225B (en) Interactive control method and device in game system, storage medium and electronic device
WO2024152681A1 (en) Interaction method and apparatus based on virtual object, electronic device, and storage medium
WO2023231557A9 (en) Interaction method for virtual objects, apparatus for virtual objects, and device, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination