CN109126135B - Virtual shooting method, computer storage medium and terminal - Google Patents

Virtual shooting method, computer storage medium and terminal Download PDF

Info

Publication number
CN109126135B
CN109126135B CN201810982821.8A CN201810982821A CN109126135B CN 109126135 B CN109126135 B CN 109126135B CN 201810982821 A CN201810982821 A CN 201810982821A CN 109126135 B CN109126135 B CN 109126135B
Authority
CN
China
Prior art keywords
goal
shooting
player
goal area
current
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.)
Active
Application number
CN201810982821.8A
Other languages
Chinese (zh)
Other versions
CN109126135A (en
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.)
Guangzhou Yaowan Entertainment Network Technology Co ltd
Original Assignee
Guangzhou Yaowan Entertainment Network Technology 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 Guangzhou Yaowan Entertainment Network Technology Co ltd filed Critical Guangzhou Yaowan Entertainment Network Technology Co ltd
Priority to CN201810982821.8A priority Critical patent/CN109126135B/en
Publication of CN109126135A publication Critical patent/CN109126135A/en
Application granted granted Critical
Publication of CN109126135B publication Critical patent/CN109126135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • A63F13/573Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game using trajectories of game objects, e.g. of a golf ball according to the point of impact
    • 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/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • 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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/812Ball games, e.g. soccer or baseball
    • 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/60Methods for processing data by generating or executing the game program
    • A63F2300/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car
    • A63F2300/646Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car for calculating the trajectory of an object
    • 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/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8011Ball

Abstract

The invention provides a virtual shooting method, a computer storage medium and a terminal, wherein the virtual shooting method comprises the following steps: acquiring a shooting instruction of a ball control player; displaying a goal picture, wherein the goal picture comprises a plurality of goal areas preset in a goal area; acquiring a selected goal area; and playing the shooting action according to the current football position information, the selected goal area and the attributes of the players, and fitting the shooting track. According to the invention, the goal area is preset with the plurality of goal areas, so that a user can select different goal areas, thereby adjusting the shooting route, increasing the diversity and the interestingness of the shooting effect, and being beneficial to the user to more fully exert tactical coordination capability.

Description

Virtual shooting method, computer storage medium and terminal
Technical Field
The invention relates to the technical field of computers, in particular to a virtual shooting method, a computer storage medium and a terminal.
Background
The existing virtual ball games, such as soccer, have many characters and are tense in playing courses, and when they are applied to small-screen terminals such as mobile phones, the control devices such as a mouse, a keyboard, a handle, etc. are lacked, and the touch area of the touch screen is limited, etc., so that the control of the player and the playing process by the user is very limited. If the operations such as automatic moving of the player and automatic selection of a shooting point (namely a goal area) of shooting are realized only through an inherent intelligent algorithm of the game, the game cannot be matched with moving according to the strategy expected by the player, so that the tactical command space of the player is limited; moreover, the game is excessively dependent on intelligent algorithms, and the dependence on the computing capability of the terminal equipment is increased.
Disclosure of Invention
The invention provides a virtual shooting method, a computer storage medium and a terminal aiming at the defects of the existing mode, and aims to solve the problem that a user cannot control a shooting goal area in a virtual ball game.
The invention provides a virtual shooting method, which comprises the following steps:
acquiring a shooting instruction of a ball control player;
displaying a goal picture, wherein the goal picture comprises a plurality of goal areas preset in a goal area;
acquiring a selected goal area;
and playing the shooting action according to the current football position information, the selected goal area and the attributes of the players, and fitting the shooting track.
Further, the shooting instruction is input through a touch button of a touch screen; the display goal picture includes:
and displaying the goal picture at the position of the touch button.
Further, the obtaining the selected goal area includes:
acquiring a selection instruction of the goal area, and determining the currently selected goal area according to the selection instruction;
rendering the currently selected goal area;
and acquiring a confirmation instruction for determining the goal area, and taking the goal area corresponding to the confirmation instruction as the selected goal area.
Further, the obtaining the selected goal area includes:
acquiring a touch dragging instruction within the range of the goal area;
taking the goal area where the touch point in the touch dragging instruction is located as the currently selected goal area;
rendering the currently selected goal area;
and acquiring a goal area where the touch point is located when the touch dragging instruction is finished, and taking the goal area as a selected goal area.
Furthermore, the goal area is a rectangle, the rectangle is divided into a plurality of sub-rectangles which are regularly arranged, and each sub-rectangle corresponds to one goal area.
Further, after the obtaining the selected goal area, the method further includes:
and generating a virtual preview shooting route according to the current football position information and the selected goal area.
Further, the current football position information comprises one or more of position coordinates of a current football and a motion state of the current football; the player attributes include one or more of a player's current position coordinates, a player's current orientation, a player's current motion state, or a player's current goal accuracy.
Further, according to the present position coordinate of the player, the present football position information, the selected goal area, player's attribute broadcast action of shooting to the fitting trajectory of shooting includes:
acquiring the central point position coordinate of the selected goal area, the maximum distance value between the central point position coordinate and the edge of the goal area, and the current goal shooting accuracy of a player;
multiplying the shooting accuracy by the maximum distance value to obtain a first distance; taking the position coordinate of the central point as a circle center, taking the first distance as a radius, and randomly acquiring a point from the circle as a shooting center coordinate;
acquiring the current orientation of the player, the current motion state of the player and the current shooting accuracy of the player, obtaining a deviation value according to the current orientation of the player and the current motion state of the player, and multiplying the deviation value by the current shooting accuracy of the player to obtain the actual shooting accuracy;
multiplying the actual shooting accuracy by a preset distance value to obtain a second distance; taking the shooting center coordinate as a circle center, taking the second distance as a radius, and randomly acquiring a point from the circle as an actual shooting coordinate;
generating a shooting track according to the current football position information and the actual shooting coordinates;
and playing the shooting action and fitting the shooting track.
The invention also provides a virtual shooting device, which comprises:
the shooting instruction module is used for acquiring shooting instructions of the ball control players;
the goal area display module is used for displaying goal pictures, and each goal picture comprises a plurality of goal areas preset in a goal area;
the goal area confirming module is used for acquiring the selected goal area;
and the shooting fitting module is used for playing the shooting action according to the current football position information, the selected goal area and the player attributes and fitting the shooting track.
The present invention also proposes a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the virtual shooting method according to any one of the preceding claims.
The invention also proposes a terminal, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the steps of the virtual shoot method of any preceding claim.
According to the invention, the goal area is preset with the plurality of goal areas, so that a user can select different goal areas, thereby adjusting the route of shooting and improving the tension and controllability of shooting; meanwhile, the diversity and the interestingness of the shooting effect are increased, the tactical coordination capability of a user can be fully exerted, and the user experience is improved; and moreover, the shooting track can be fitted according to the current football position information, the selected goal area and the attributes of the players, so that the diversity and the interestingness of the shooting effect are further improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart illustrating a virtual shooting method according to a first embodiment of the present invention;
FIG. 2 is a schematic interface diagram of a touch button according to a preferred embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
It will be understood by those skilled in the art that, unless otherwise specified, the singular forms "a", "an", "the" and "the" may include the plural forms as well, and the "first" and "second" used herein are only used to distinguish one technical feature from another and are not intended to limit the order, number, etc. of the technical features. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, "terminal" as used herein includes both devices that are wireless signal receivers, devices that have only wireless signal receivers without transmit capability, and devices that include receive and transmit hardware, devices that have receive and transmit hardware capable of performing two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" or "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. As used herein, a "terminal Device" may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, or a smart tv, a set-top box, etc.
The invention provides a virtual shooting method, which is convenient for a user to quickly select a required goal area and fit a shooting track. The virtual shooting method can be applied to various virtual games such as football, ice hockey, hockey and the like, and for convenience of description, the invention only takes the football as an example to illustrate the specific implementation mode of the virtual shooting method, but does not influence the application of the virtual shooting method in other virtual games.
The first embodiment, as shown in fig. 1, comprises the following steps:
step S10: acquiring a shooting instruction of a ball control player;
step S20: displaying a goal picture, wherein the goal picture comprises a plurality of goal areas preset in a goal area;
step S30: acquiring a selected goal area;
step S40: and playing the shooting action according to the current football position information, the selected goal area and the attributes of the players, and fitting the shooting track.
Wherein each step is as follows:
step S10: and acquiring a shooting instruction of the ball control player.
The ball control players may include the players with the current ball, for example the players with the goal in the football; the ball control players can also comprise players who can touch the ball body in the process of multi-person ball grabbing. For example, when a football in a football game is in the air-flight phase, the ball control players may include players who can touch the football with their heads or feet. If a plurality of players can touch the ball in one-time ball grabbing process, the time from the current action of each player to the touch of the ball can be calculated, the calculated time is used as the predicted ball touch time, and the player with the shortest predicted ball touch time is used as the ball control player. For example, in a football match, a player with a current ball may serve as the ball control player, and when the ball control player passes another opponent player, if the opponent player can touch the ball, the opponent player may input the shoot instruction within a time period in which the opponent player can touch the ball, and may serve as the temporary ball control player; for another example, if a football passes through a player who can shoot by means of heading or hooking, the player can also be used as the temporary ball control player to input the shooting instruction within the time when the player can touch the football.
In the process of one-time ball snatching, if a plurality of players can touch the ball body, the player touching the ball body first can be used as the ball control player. For example, in a soccer game, if an aggressor player attacks at a position close to a goal, there may be a plurality of aggressor players who can shoot the goal, and the plurality of players input the shooting instruction, the player who first touches the soccer may be regarded as the ball control player, and the subsequent steps are executed according to the shooting instruction of the ball control player; although other players input the shooting instruction, the player does not actually touch the football according to the shooting instruction, so the player can only perform the action of shooting, but does not perform the subsequent steps of fitting the shooting track and the like.
The shooting instruction can be input in various modes such as a keyboard, a mouse, a mechanical control key, a handle, a rocker, voice, a virtual touch key and the like.
Step S20: and displaying a goal picture, wherein the goal picture comprises a plurality of goal areas preset in a goal area.
After the shooting instruction is obtained, the ball control player can kick the ball to the goal; however, according to different or different situations of the court, the ball control players generally need to select a proper goal area to improve the probability of goal. For example, the player may direct the ball toward a corner that is remote from the goalkeeper, or may select the minimum shooting route for the goalkeeper. If the ball control players need to select the goal area on the actual goal of the virtual game field, the operation difficulty of the users is greatly improved, the current game visual angle of the users is not necessarily suitable for viewing the actual goal, the complete goal can be seen only through the switching of pictures or visual angles, and the goal shooting difficulty is further improved. After the goal shooting instruction is obtained, the goal picture is directly displayed, and a plurality of goal areas are preset in the goal area, so that the goal area can be conveniently selected by a user, and the speed of selecting the goal areas by the user is greatly improved.
The goal screen may include only the virtual goal area or may include the projected positions of the goal area and the current goalkeeper in the goal area, so that the ball control players intentionally avoid the goalkeeper when selecting the goal area. The goal picture can be displayed as a orthographic projection picture of a goal area, and can also display the colors of a goal, a net and the like according to the situation, or display the visual effects of rendering, decoration and the like according to different requirements.
Step S30: a selected goal area is obtained.
The user can select the required goal area through various modes such as a keyboard, a mouse, a mechanical control key, a handle, a rocker, voice, a virtual touch key and the like, and the finally selected goal area is used as the selected goal area. In order to facilitate the user to view the currently selected goal area, the invention further provides another embodiment: the obtaining a selected goal area, comprising:
acquiring a selection instruction of the goal area, and determining the currently selected goal area according to the selection instruction;
rendering the currently selected goal area;
and acquiring a confirmation instruction for determining the goal area, and taking the goal area corresponding to the confirmation instruction as the selected goal area.
According to the embodiment, a plurality of selection instructions input by the user can be sequentially acquired, and the currently selected goal area is rendered, so that the user can quickly know the currently selected goal point according to the rendering condition. And when the user confirms the current rendered goal area, taking the current rendered goal area as the selected goal area.
The rendering effect may include adding a preset background color to the currently selected goal area, or thickening a border of the currently selected goal area, and the like. When the user loses the ball control right during selecting the goal area and becomes a player without controlling the goal, the goal picture can become the gray of the non-selectable goal area so that the user can timely know that the ball control right is lost; within the preset time when the goal picture is changed into gray, or when a user clicks a region outside the goal picture, the goal picture disappears, so that the user organizes players to continue to perform subsequent operations, and the goal picture changed into gray is prevented from shielding the game picture. The rendering effect, the goal picture corresponding to the lost ball control right, and other visual effects can be changed according to specific requirements, and are not repeated herein.
Step S40: and playing the shooting action according to the current football position information, the selected goal area and the attributes of the players, and fitting the shooting track.
The current soccer location information may include one or more of location coordinates of a current soccer ball and a motion state of the current soccer ball. When the user or the system selects the goal area, a goal path can be fitted according to the position coordinates of the current soccer ball and the selected goal area. Further, the shooting path is not only related to the position coordinates of the current football and the goal area, but also related to the motion state of the current football, for example, a football resting on the court and a football rolling on the court at a high speed, and the effect of the players will be different when shooting with the same force and direction; therefore, the invention can also fit the shooting track according to the motion state of the current football.
The player attributes include one or more of a player's current position coordinates, a player's current orientation, a player's current motion state, or a player's current goal accuracy. When the attributes of the players are different, the shooting effect will be different when the football in the same state is shot. For example, when a player faces a football from the side and faces the football from the front, the kicking posture and strength will affect the accuracy and speed of the goal; when the player backs to the football, the shooting effect is greatly reduced, even the player cannot shoot; the state of the player when shooting at the penalty point and shooting in the attack will also affect the accuracy and strength of the shot. For example, in a part of football games, each player can preset different personalized parameters such as age, physical strength value, endurance value, service life and the like, so that each player has different advantages and disadvantages when playing the ball, and therefore the user can fully play tactical organization and adjustment capability through the allocation combination of the players, the control capability of the player on the whole team is improved, and the interest and the challenge of the game are increased. In order to simplify the influence of the personalized parameters of the player on the goal shooting, the present embodiment may only select the current goal shooting accuracy of the player as the reference parameter for fitting the goal shooting trajectory, so as to improve the fitting speed of the goal shooting trajectory.
The shooting action can include preset in multiple shooting actions such as the inside shovel of system penetrates, sweeps, fills up and penetrates, volley shot, overhead shoot, hang and penetrate, first football shoot, outer instep shoot, work as ball control sportsman shoots, can be according to ball control sportsman's attribute with the play of current football position information is selected at the system at the predetermined shooting action of system. The shot trajectory may also vary depending on the selected shot motion.
In an embodiment of the present invention, if the goal player inputs a goal instruction, the football is in a rolling state, and if the football rolls out of the boundary of the court when the goal area is selected, a goal-shooting failure action can be played according to the current football position information, and a failed goal-shooting track can be fitted. In another embodiment, if the goal area is selected by the ball control player, the football is in the court boundary, and the ball control player shoots with the heading action, the shooting track can be fitted according to the heading shooting action, the shooting accuracy of the ball control player, the preset force value of the heading shooting, the current football position information and the selected goal area, so that the shooting effect of the user presents different shooting effects according to different information such as the attributes of the player, the shooting action and the selected goal area, and the diversification and the interestingness of the ball games are improved.
In the embodiment, the goal area is preset with the plurality of goal areas, so that a user can select different goal areas, thereby adjusting the route of shooting and improving the tension and controllability of shooting; meanwhile, the diversity and the interestingness of the shooting effect are increased, the tactical coordination capability of a user can be fully exerted, and the user experience is improved; and moreover, the shooting track can be fitted according to the current football position information, the selected goal area and the attributes of the players, so that the diversity and the interestingness of the shooting effect are further improved.
When the virtual ball game is used on a touch device terminal, for example, a touch screen mobile phone, the input instruction mainly depends on the click of the user on the touch screen, so the invention also provides another embodiment: the shooting instruction is input through a touch button of a touch screen; the display goal picture includes:
and displaying the goal picture at the position of the touch button.
In the embodiment, the goal picture is directly displayed at the position of the touch button, so that the switching of the game main picture to the position of the actual goal in the virtual game can be avoided, the switching of the game main picture or the switching of the game visual angle can be avoided, and the bad visual experience caused by the switching of the main picture or the switching of the visual angle can be reduced; moreover, the user can continuously select the goal area at the position of the touch button without changing the operation posture, so that the operation difficulty of the user is reduced; meanwhile, the goal picture is displayed at the position of the touch button, the goal picture can be prevented from shielding a game main picture, a user can select the goal area and check the change of game situation at any time, and the goal area is more suitable for being selected or more effective attack is organized.
In an embodiment of the invention, the shooting button corresponding to the shooting instruction may be located at a position where the touch button is located. Referring to fig. 2, the touch button may include a key a, a key B, a key C, and a key D, where each key corresponds to a different control instruction; if the key C corresponds to a shooting button, after a user clicks the key C, the key C becomes the goal picture, so that the user can continuously select the goal area at the position of the shooting button without switching the operation posture; meanwhile, when the position of the touch button is fixed, blind operation of a user is facilitated, so that the operation efficiency of the user is improved, and the competitive performance and the interestingness of a game are improved.
In order to facilitate the user to input the selected goal area, the present invention further provides another embodiment, wherein the obtaining the selected goal area comprises:
acquiring a touch dragging instruction within the range of the goal area;
taking the goal area where the touch point in the touch dragging instruction is located as the currently selected goal area;
rendering the currently selected goal area;
and acquiring a goal area where the touch point is located when the touch dragging instruction is finished, and taking the goal area as a selected goal area.
In this embodiment, the instruction for selecting the goal area may be a touch dragging instruction within the scope of the goal area. For example, when the user terminal is a mobile phone and a user touches a touch screen within the goal area range on a mobile phone screen, the goal area where the touch point is located is used as the currently selected goal area; if the touch point of the user is continuously pressed on the screen of the mobile phone and dragged to other goal areas, corresponding to an instruction for switching the currently selected goal area; in the dragging process, when the goal area where the touch point is located changes, the rendered goal area will also change accordingly. When the touch point of the user moves to the required goal area, the goal area is selected, the user can stop dragging and leave the selected goal area, and the goal area where the touch point is located serves as the selected goal area when the touch dragging instruction is finished.
According to the embodiment, the goal of selecting, switching and confirming the goal area can be achieved through the touch dragging action, the user operation is simplified, and the user efficiency is improved. In some embodiments, a user can select and switch the goal area by clicking the touch screen with a finger and dragging; after the goal area that needs when choosing, the user only need loosen the finger and can confirm the goal area of selection and shoot, and convenient operation is succinct.
In a further embodiment of the present invention, the goal area is a rectangle, and the rectangle is divided into a plurality of sub-rectangles arranged regularly, and each sub-rectangle corresponds to one of the goal areas. In this embodiment, the rectangular goal area is divided into a plurality of regularly arranged goal areas, which is beneficial for a user to quickly select a position to be shot. The regular arrangement mode can be in the forms of four-grid, nine-grid, twelve-grid and the like, and is convenient for a user to select. For example, the goal area may be divided into nine goal regions in a nine-grid arrangement for easy user selection. The number of the goal areas can be determined according to the size of a display screen of the user terminal or the operational performance of the terminal and other factors.
In the present invention, after acquiring the selected goal area, the method further includes:
and generating a virtual preview shooting route according to the current football position information and the selected goal area so as to facilitate a user to confirm the area which the shooting route may pass through. For example, when the user selects the goal area, the golfer may be engaged in an attack or pass according to the virtual preview shooting route to increase the probability of a goal.
In some embodiments, the preview shooting route can be generated in real time during the process that the user selects the goal entering area; when the user switches the selected goal area, the preview shooting route is correspondingly changed, so that the user can quickly know the areas and the players which are possibly passed by the user in the shooting process, the user can select the most appropriate goal area, and the user can more effectively attack the goal area. When the actual shot path is also related to the ball player's shooting actions and attributes, the actual shot path may be different from the virtual preview shot path.
In another embodiment of the present invention, the playing a goal shooting action according to the current position coordinates of the player, the current football position information, the selected goal area, the attributes of the player, and fitting the goal shooting track includes:
acquiring the central point position coordinate of the selected goal area, the maximum distance value between the central point position coordinate and the edge of the goal area, and the current goal shooting accuracy of a player;
multiplying the shooting accuracy by the maximum distance value to obtain a first distance; taking the position coordinate of the central point as a circle center, taking the first distance as a radius, and randomly acquiring a point from the circle as a shooting center coordinate;
acquiring the current orientation of the player, the current motion state of the player and the current shooting accuracy of the player, obtaining a deviation value according to the current orientation of the player and the current motion state of the player, and multiplying the deviation value by the current shooting accuracy of the player to obtain the actual shooting accuracy;
multiplying the actual shooting accuracy by a preset distance value to obtain a second distance; taking the shooting center coordinate as a circle center, taking the second distance as a radius, and randomly acquiring a point from the circle as an actual shooting coordinate;
generating a shooting track according to the current football position information and the actual shooting coordinates;
and playing the shooting action and fitting the shooting track.
The current shooting accuracy of the player can be a preset accuracy or an accuracy calculated according to preset personalized parameters of the player; and the shooting center coordinate is a first time point, and the point is taken as a shooting point of the selected goal entering area. The current orientation of the player may include the angle of orientation of the player to the ball and/or the orientation of the player relative to the goal, and the actual shooting coordinates are taken as the second point and taken as the end point of the shooting trajectory.
This embodiment has provided a concrete mode of fitting shooting track, accessible the central point position coordinate in goal district the size in goal district the present shooting accuracy of sportsman, the present orientation of sportsman, the present motion state of sportsman the final terminal point of shooting track is confirmed to the present shooting accuracy of sportsman for the shooting effect more is close true ball match, has increased the variety of shooting effect, has improved the controllability of user to the shooting effect, has increased the enjoyment of ball game.
The invention also provides a virtual shooting device, which comprises:
the shooting instruction module is used for acquiring shooting instructions of the ball control players;
the goal area display module is used for displaying goal pictures, and each goal picture comprises a plurality of goal areas preset in a goal area;
the goal area confirming module is used for acquiring the selected goal area;
and the shooting fitting module is used for playing the shooting action according to the current football position information, the selected goal area and the player attributes and fitting the shooting track.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the above virtual shooting methods. The storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer). Which may be a read-only memory, magnetic or optical disk, or the like.
An embodiment of the present invention further provides a terminal, where the terminal includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the steps of the virtual shoot method of any one of the above.
As shown in fig. 3, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and details of the technology are not disclosed, please refer to the method portion of the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a server, and the like, taking the terminal as the mobile phone as an example:
fig. 3 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to fig. 3, the cellular phone includes: radio Frequency (RF) circuitry 1510, memory 1520, input unit 1530, display unit 1540, sensor 1550, audio circuitry 1560, wireless fidelity (Wi-Fi) module 1570, processor 1580, and power supply 1590. Those skilled in the art will appreciate that the handset configuration shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 3:
the RF circuit 1510 may be configured to receive and transmit signals during information transmission and reception or during a call, and in particular, receive downlink information of a base station and then process the received downlink information to the processor 1580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1510 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 1510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1520 may be used to store software programs and modules, and the processor 1580 performs various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 1520. The memory 1520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a game execution program, etc.) required for at least one function, and the like; the storage data area may store data (such as game models and data) created according to the use of the mobile phone, and the like. Further, the memory 1520 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 1530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on or near the touch panel 1531 using any suitable object or accessory such as a finger or a stylus) and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1580, and can receive and execute commands sent by the processor 1580. In addition, the touch panel 1531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1530 may include other input devices 1532 in addition to the touch panel 1531. In particular, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 1540 may include a Display panel 1541, and optionally, the Display panel 1541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1531 may cover the display panel 1541, and when the touch panel 1531 detects a touch operation on or near the touch panel 1531, the touch operation is transmitted to the processor 1580 to determine the type of the touch event, and then the processor 1580 provides a corresponding visual output on the display panel 1541 according to the type of the touch event. Although in fig. 3, the touch panel 1531 and the display panel 1541 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1531 and the display panel 1541 may be integrated to implement the input and output functions of the mobile phone.
The handset can also include at least one sensor 1550, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1541 according to the brightness of ambient light and a proximity sensor that turns off the display panel 1541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1560, speaker 1561, and microphone 1562 may provide an audio interface between a user and a cell phone. The audio circuit 1560 may transmit the electrical signal converted from the received audio data to the speaker 1561, and convert the electrical signal into a voiceprint signal by the speaker 1561 and output the voiceprint signal; on the other hand, the microphone 1562 converts the collected voiceprint signals to electrical signals, which are received by the audio circuit 1560 and converted to audio data, which are processed by the audio data output processor 1580 and passed through the RF circuit 1510 for transmission to, for example, another cell phone, or for output to the memory 1520 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 1570, and provides wireless broadband internet access for the user. Although fig. 3 shows a Wi-Fi module 1570, it is understood that it does not belong to the essential constitution of the handset and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1520 and calling data stored in the memory 1520, thereby integrally monitoring the mobile phone. Optionally, the processor 1580 may include one or more processing units; preferably, the processor 1580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, and the like, and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor may not be integrated into the processor 1580.
The handset also includes a power supply 1590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1580 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It should be understood that each functional unit in the embodiments of the present invention may be integrated into one processing module, each unit may exist alone physically, or two or more units may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (9)

1. A virtual shooting method, comprising:
acquiring a shooting instruction of a ball control player;
displaying a goal picture, wherein the goal picture comprises a plurality of goal areas preset in a goal area;
acquiring a selected goal area;
playing a shooting action according to the current football position information, the selected goal area and the attributes of the players, and fitting a shooting track; acquiring the position coordinate of the central point of the selected goal area, the maximum distance value between the position coordinate of the central point and the edge of the goal area, and the current goal shooting accuracy of a player;
multiplying the shooting accuracy by the maximum distance value to obtain a first distance; taking the position coordinate of the central point as a circle center, taking the first distance as a radius, and randomly acquiring a point from the circle as a shooting center coordinate;
acquiring the current orientation of the player, the current motion state of the player and the current shooting accuracy of the player, obtaining a deviation value according to the current orientation of the player and the current motion state of the player, and multiplying the deviation value by the current shooting accuracy of the player to obtain the actual shooting accuracy;
multiplying the actual shooting accuracy by a preset distance value to obtain a second distance; taking the shooting center coordinate as a circle center, taking the second distance as a radius, and randomly acquiring a point from the circle as an actual shooting coordinate;
generating a shooting track according to the current football position information and the actual shooting coordinates;
and playing the shooting action and fitting the shooting track.
2. The method of claim 1, wherein the shooting instruction is input through a touch button of a touch screen; the display goal picture includes:
and displaying the goal picture at the position of the touch button.
3. The method of claim 1, wherein said obtaining a selected goal region comprises:
acquiring a selection instruction of the goal area, and determining the currently selected goal area according to the selection instruction;
rendering the currently selected goal area;
and acquiring a confirmation instruction for determining the goal area, and taking the goal area corresponding to the confirmation instruction as the selected goal area.
4. The method of claim 1, wherein said obtaining a selected goal region comprises:
acquiring a touch dragging instruction within the range of the goal area;
taking the goal area where the touch point in the touch dragging instruction is located as the currently selected goal area;
rendering the currently selected goal area;
and acquiring a goal area where the touch point is located when the touch dragging instruction is finished, and taking the goal area as a selected goal area.
5. A method according to claim 1, wherein the goal region is a rectangle, the rectangle being divided into a plurality of regularly arranged sub-rectangles, each sub-rectangle corresponding to one of the goal regions.
6. The method of claim 1, wherein after obtaining the selected goal region, further comprising:
and generating a virtual preview shooting route according to the current football position information and the selected goal area.
7. The method of claim 1, wherein the current soccer ball location information includes one or more of location coordinates of a current soccer ball and a motion state of the current soccer ball; the player attributes include one or more of a player's current position coordinates, a player's current orientation, a player's current motion state, or a player's current goal accuracy.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the virtual shooting method according to any one of claims 1 to 7.
9. A terminal, characterized in that the terminal comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the steps of the virtual shoot method as claimed in any one of claims 1 to 7.
CN201810982821.8A 2018-08-27 2018-08-27 Virtual shooting method, computer storage medium and terminal Active CN109126135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810982821.8A CN109126135B (en) 2018-08-27 2018-08-27 Virtual shooting method, computer storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810982821.8A CN109126135B (en) 2018-08-27 2018-08-27 Virtual shooting method, computer storage medium and terminal

Publications (2)

Publication Number Publication Date
CN109126135A CN109126135A (en) 2019-01-04
CN109126135B true CN109126135B (en) 2021-12-17

Family

ID=64828319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810982821.8A Active CN109126135B (en) 2018-08-27 2018-08-27 Virtual shooting method, computer storage medium and terminal

Country Status (1)

Country Link
CN (1) CN109126135B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109847368B (en) * 2019-03-25 2023-05-26 网易(杭州)网络有限公司 Information processing method and device, storage medium and electronic equipment
CN110753267B (en) * 2019-09-27 2020-12-29 珠海格力电器股份有限公司 Display control method and device and display
CN113713377A (en) * 2021-09-01 2021-11-30 网易(杭州)网络有限公司 Projection game control method, projection game control device, electronic device, and storage medium
CN115212570A (en) * 2022-07-18 2022-10-21 网易(杭州)网络有限公司 Virtual game control method, device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2655339Y (en) * 2003-09-28 2004-11-10 上海科技馆 Apparatus for acquiring football sports trace when simulating football shooting at goal
CN105833512A (en) * 2016-06-06 2016-08-10 刘庆斌 System and method for teaching, training and competing defending and counterattacking techniques and tactics of football shooting and counter-shooting
CN105983225A (en) * 2016-06-08 2016-10-05 南京景曜智能科技有限公司 Shooting training device based on 3D machine vision

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5738809B2 (en) * 2012-07-31 2015-06-24 株式会社コナミデジタルエンタテインメント GAME DEVICE, GAME DEVICE CONTROL METHOD, GAME SYSTEM, GAME SYSTEM CONTROL METHOD, AND PROGRAM
CN106991358A (en) * 2016-01-20 2017-07-28 上海慧体网络科技有限公司 The algorithm that automatic identification football match based on panoramic video is scored
CN106606857A (en) * 2016-02-29 2017-05-03 简极科技有限公司 Locating-based football match technical statistics method
CN107335206A (en) * 2017-05-03 2017-11-10 成都仁颐越立科技有限公司 A kind of real-time point system of mobile phone ball match

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2655339Y (en) * 2003-09-28 2004-11-10 上海科技馆 Apparatus for acquiring football sports trace when simulating football shooting at goal
CN105833512A (en) * 2016-06-06 2016-08-10 刘庆斌 System and method for teaching, training and competing defending and counterattacking techniques and tactics of football shooting and counter-shooting
CN105983225A (en) * 2016-06-08 2016-10-05 南京景曜智能科技有限公司 Shooting training device based on 3D machine vision

Also Published As

Publication number Publication date
CN109126135A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109126135B (en) Virtual shooting method, computer storage medium and terminal
CN111773696B (en) Virtual object display method, related device and storage medium
CN109568950B (en) Multi-role and multi-skill game control method, storage medium and terminal
CN109568965B (en) Target unit moving method, device, storage medium and terminal
CN109173250B (en) Multi-role control method, computer storage medium and terminal
CN109568938B (en) Multi-resource game touch operation method and device, storage medium and terminal
CN109173249B (en) Virtual pass method, computer storage medium and terminal
CN106774907A (en) A kind of method and mobile terminal that virtual objects viewing area is adjusted in virtual scene
CN111491197B (en) Live content display method and device and storage medium
CN108043020A (en) Game gestural control method, dual-screen mobile terminal and computer readable storage medium
CN107453766B (en) Antenna switching control method, multi-antenna terminal and computer readable storage medium
CN107241644B (en) Image processing method and device during a kind of net cast
CN109218842B (en) Virtual gift interaction method and device, computer storage medium and terminal
CN109568954B (en) Weapon type switching display method and device, storage medium and terminal
CN109343773B (en) Control method and device of portable touch equipment, storage medium and terminal
CN109718545B (en) Object control device and method
US20160066119A1 (en) Sound effect processing method and device thereof
CN108024134B (en) Live broadcast-based data analysis method and device and terminal equipment
CN108287650A (en) One-handed performance method based on mobile terminal and mobile terminal
CN109107160B (en) Animation interaction method and device, computer storage medium and terminal
CN112691367B (en) Data processing method and related device
CN111686447A (en) Method and related device for processing data in virtual scene
CN107562303B (en) Method and device for controlling element motion in display interface
CN110339561A (en) A kind of shooting game optimization method, terminal and computer readable storage medium
CN106582006A (en) Method and device for shooting game interaction based on virtual reality

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
GR01 Patent grant
GR01 Patent grant