CN112742023A - Control method and system of virtual gyroscope - Google Patents
Control method and system of virtual gyroscope Download PDFInfo
- Publication number
- CN112742023A CN112742023A CN202110044399.3A CN202110044399A CN112742023A CN 112742023 A CN112742023 A CN 112742023A CN 202110044399 A CN202110044399 A CN 202110044399A CN 112742023 A CN112742023 A CN 112742023A
- Authority
- CN
- China
- Prior art keywords
- virtual
- gyroscope
- information
- interaction
- transmitting
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000003993 interaction Effects 0.000 claims abstract description 111
- 230000002452 interceptive effect Effects 0.000 claims abstract description 29
- 230000005540 biological transmission Effects 0.000 claims description 26
- 230000008569 process Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 14
- 230000000452 restraining effect Effects 0.000 claims description 13
- 230000033001 locomotion Effects 0.000 claims description 8
- 238000000926 separation method Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 6
- 230000002829 reductive effect Effects 0.000 claims description 6
- 230000007123 defense Effects 0.000 claims description 5
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000004048 modification Effects 0.000 claims description 3
- 238000012986 modification Methods 0.000 claims description 3
- 230000002441 reversible effect Effects 0.000 claims description 3
- 230000007423 decrease Effects 0.000 claims description 2
- 230000007246 mechanism Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 17
- 230000000694 effects Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000002045 lasting effect Effects 0.000 description 2
- 230000000670 limiting effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000012937 correction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/57—Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/822—Strategy games; Role-playing games
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/64—Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/807—Role playing or strategy games
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to a control method of a virtual gyroscope, wherein the control method of the gyroscope comprises the following steps: displaying a virtual interactive scene, wherein the virtual interactive scene comprises a virtual gyroscope, a virtual map and a virtual transmitter, and the virtual gyroscope comprises a first virtual gyroscope and a second virtual gyroscope; under the condition that first interaction information is received, displaying a virtual booster, wherein the first interaction information is information of dragging any position in a virtual interaction scene; determining the transmitting position and the first transmitting rotating speed of the virtual gyroscope on the virtual map according to the first interactive information; receiving second interaction information, wherein the second interaction information is information of any position in the dragging virtual interaction scene after the first interaction information is received; through the application, the problem that the operation mechanism of virtual gyro emission is too complicated is solved, and the operability and the interestingness of virtual gyro emission are improved.
Description
Technical Field
The present application relates to the field of game development, and in particular, to a method, a system, a computer device, and a storage medium for controlling a virtual gyroscope.
Background
With the popularity of animation fighting gyros and ACG works derived from the fighting gyros, a hot tide of a virtual gyro is aroused. At present, with the development of mobile internet technology, the proportion of hand games occupied in the game industry is increasing; due to the great interest of the public in virtual gyros and related products, a batch of mobile games related to the virtual gyros appear.
In the related art, a player operates a virtual top through a UI interface of a game system; entering a Quick Time Event interface after the launching position of the virtual gyroscope is selected; the player determines the time for launching the virtual gyroscope according to the position of the sighting center in the preset moving area, and the game system determines the launching success rate according to the position of the sighting center in the preset moving area during launching; for example, when the collimation point is located at the middle position of the preset area, the transmission success rate is highest. However, the method is complicated in process, the whole launching process is dull and has a split feeling, and in addition, the method can only control the rotation time of the virtual gyroscope, so that the interestingness is poor.
At present, no effective solution is provided aiming at the problem that the operation mechanism of virtual gyro emission in a virtual gyro game is too complicated.
Disclosure of Invention
The embodiment of the application provides a control method, a control device, a control system, computer equipment and a computer readable storage medium of a virtual gyroscope, and aims to at least solve the problem that an operation mechanism of virtual gyroscope emission in a virtual gyroscope game in the related art is too complicated.
In a first aspect, an embodiment of the present application provides a method for controlling a virtual gyroscope, where the method includes:
displaying a virtual interactive scene, wherein the virtual interactive scene comprises a virtual gyroscope, a virtual map and a virtual transmitter, and the virtual gyroscope comprises a first virtual gyroscope and a second virtual gyroscope;
displaying a virtual booster under the condition of receiving first interaction information, wherein the first interaction information is information of dragging any position in the virtual interaction scene;
determining the transmitting position and the first transmitting rotating speed of the virtual gyroscope on the virtual map according to the first interactive information;
receiving second interaction information, wherein the second interaction information is information for releasing and dragging any position in the virtual interaction scene after the first interaction information is received;
acquiring the interaction time of the second interaction information, and determining a gain multiple by the virtual gain device according to the interaction time;
and calculating the product of the first transmitting rotating speed and the gain multiple to generate a second transmitting rotating speed, generating a transmitting instruction according to the second transmitting rotating speed and the transmitting position, and transmitting the virtual gyroscope to the virtual map based on the transmitting instruction.
In some embodiments, determining the transmission position and the first transmission rotation speed of the virtual gyroscope on the virtual map according to the first interaction information comprises:
determining a first pointing arrow according to a dragging distance and a dragging direction in the first interaction information, wherein the length root of the first pointing arrow increases with the increase of the dragging distance, and the first pointing arrow does not increase with the increase of the dragging distance any more under the condition that the dragging distance is greater than a dragging distance threshold;
generating a second directional arrow in the reverse direction of the first directional arrow, acquiring the end point position of the second directional arrow, namely determining the transmitting position, acquiring the additional rotating speed multiple added by the second directional arrow and performing product calculation with the preset rotating speed of the virtual gyroscope to generate a first transmitting rotating speed; the length of the second directional arrow is a first preset multiple of the length of the first directional arrow, and the length of the second directional arrow is smaller than that of the first directional arrow.
In some of these embodiments, the virtual booster includes a virtual scroll axis and a virtual scroll cursor, wherein the virtual scroll cursor reciprocates on the virtual scroll axis at a preset movement speed.
In some of these embodiments, the reciprocating motion of the virtual scroll cursor on the virtual scroll axis at the preset movement speed comprises:
and determining a preset moving speed of the virtual rolling cursor according to the dragging distance in the first interactive information, and reciprocating on the virtual rolling shaft at the preset moving speed, wherein the preset moving speed is increased along with the increase of the dragging distance.
In some of these embodiments, the virtual booster determining the gain multiple based on the interaction time comprises:
the virtual scroll cursor stops moving at the interaction time and stays at a staying position on the virtual scroll axis;
the gain factor decreases with an increase in a separation distance, wherein the separation distance is a distance of the stop position from the virtual scroll axis center position.
In some embodiments, after determining the transmission position of the virtual gyroscope on the virtual map according to the first interaction information, the method further comprises:
dividing the virtual map into an inner circle area, an outer circle area and an off-site area, wherein the range of the off-site area is larger than that of the outer circle area, and the range of the outer circle area is larger than that of the inner circle area;
under the condition that the transmitting position is located in the inner circle area in the virtual map, the endurance property of the virtual gyroscope is improved to be a second preset multiple of an initial value;
under the condition that the transmitting position is located in the outer circle area in the virtual map, the attacking force attribute of the virtual gyroscope is improved to be a third preset multiple of an initial value;
presenting, by a client, retransmission information in the event that the transmission location is located in the offsite area in the virtual map, wherein the retransmission information is used to prompt modification of the transmission location.
In some embodiments, after the generating of the transmission instruction according to the second transmission rotation speed and the transmission position and before the transmitting of the virtual gyroscope to the virtual map based on the transmission instruction, the method further includes:
presenting type information of the first virtual gyro and the second virtual gyro through a client and performing opening collision settlement under the condition that the first virtual gyro and the second virtual gyro collide in a ground process, wherein the ground process is a process that the virtual gyro leaves from the virtual transmitter to land on the virtual map;
the opening collision settlement comprises the following steps: acquiring a gram relation between the first virtual gyroscope and the second virtual gyroscope;
under the condition that the first virtual gyroscope and the second virtual gyroscope have a restraining relationship, the endurance attribute, the attack attribute and the defense attribute of the first virtual gyroscope are reduced, and restraining attack information is presented through a client;
and presenting collision information through a client under the condition that the first virtual gyroscope and the second virtual gyroscope have no restraining relation.
In a second aspect, an embodiment of the present application provides a control system for a virtual gyroscope, where the system includes: the device comprises a display module, a receiving module and a processing module;
the display module is used for displaying a virtual interactive scene, wherein the virtual interactive scene comprises a virtual gyroscope, a virtual map and a virtual transmitter, and the virtual gyroscope comprises a first virtual gyroscope and a second virtual gyroscope;
the receiving module is used for receiving first interaction information and second interaction information, wherein the first interaction information is information dragging any position in the virtual interaction scene, the transmitting position and the first transmitting rotating speed of the virtual gyroscope on the virtual map are determined according to the first interaction information, and the second interaction information is information dragging any position in the virtual interaction scene after the first interaction information is received;
the display module is used for displaying a virtual booster under the condition of receiving the first interactive information;
the processing module is used for acquiring the interaction time of the second interaction information, determining a gain multiple according to the interaction time, calculating the product of the first transmitting rotating speed and the gain multiple to generate a second transmitting rotating speed, generating a transmitting instruction according to the second transmitting rotating speed and a transmitting position, and transmitting the virtual gyroscope to the virtual map based on the transmitting instruction.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the control method of the virtual gyroscope according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for controlling a virtual gyroscope as described in the first aspect.
Compared with the related technology, the control method of the virtual gyroscope provided by the embodiment of the application displays the virtual interactive scene, wherein the virtual interactive scene comprises the virtual gyroscope, the virtual map and the virtual emitter, and the virtual gyroscope comprises the first virtual gyroscope and the second virtual gyroscope; under the condition that the first interaction information is received, displaying a virtual gain device, and determining the transmitting position of the virtual gyroscope on the virtual map according to the first interaction information; receiving second interaction information and acquiring interaction time of the second interaction information, wherein the virtual gain device determines a gain multiple according to the interaction time; and generating a transmitting instruction according to the transmitting position and the gain multiple, and transmitting the virtual gyroscope to the transmitting position based on the transmitting instruction. The problem of the operating mechanism of virtual top transmission too loaded down with trivial details is solved, the maneuverability and the interest of virtual top transmission have been promoted.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is an application environment diagram of a control method of a virtual gyroscope according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for controlling a virtual gyroscope according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a virtual interaction scenario of an embodiment of the application;
FIG. 4 is a schematic diagram of determining a first launch velocity and a launch position in an embodiment of the present application;
FIG. 5 is a schematic diagram of a scene map according to an embodiment of the application;
FIG. 6 is a block diagram of a virtual gyro control method according to an embodiment of the present application;
fig. 7 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The control method of the virtual gyroscope provided by the application can be applied to the application environment shown in fig. 1, fig. 1 is an application environment schematic diagram of the control method of the virtual gyroscope according to the embodiment of the application, as shown in fig. 1, a terminal 10 communicates with a server 11 through a network, the terminal 10 uploads data generated by a game client to the server 11, and meanwhile, data from other terminals 10 are obtained from the server 11; the terminal 10 is installed with an application client that runs the control method of the virtual gyro of the present embodiment. A user may output first interaction information and second interaction information for controlling the virtual gyroscope through external devices such as a touch screen, an entity button, a keyboard, a mouse, and the like on the terminal 10, and further control the virtual gyroscope to execute a corresponding operation instruction in the application client, where the first interaction information is information of any position in a dragged virtual interaction scene, and the second interaction information is information of any position in the dragged virtual interaction scene released after receiving the first interaction information. It should be noted that, a Player may control a virtual gyro to perform information interaction with a Non-Player Character (Non-Player Character), which is referred to as NPC for short, and may also control the virtual gyro to perform information interaction with a Player Character from another terminal; further, the terminal 10 may be a smart phone, a tablet computer, a desktop computer, a notebook computer, and an intelligent wearable device; the server 11 may be an independent server or a server cluster composed of a plurality of servers.
The application provides a control method of a virtual gyroscope, fig. 2 is a flowchart of the control method of the virtual gyroscope according to the embodiment of the application, and as shown in fig. 2, the flowchart includes the following steps:
step S201, displaying a virtual interactive scene, wherein the virtual interactive scene comprises a virtual gyroscope, a virtual map and a virtual emitter, and the virtual gyroscope comprises a first virtual gyroscope and a second virtual gyroscope; fig. 3 is a schematic diagram of a virtual interaction scenario according to an embodiment of the present application, and as shown in fig. 3, before transmission, a virtual gyro is installed on a virtual transmitter, and a player is prompted by a prompt message how to operate the virtual gyro. The virtual gyro may be controlled by a computer-controlled NPC character or a player-controlled character. Further, the virtual interactive scene also includes attribute information of the virtual gyroscope, where the attribute information may be but is not limited to identification information of the virtual gyroscope, a life value (HP), a rotation speed value (RPM), and other main attribute information, and may also be additional attribute information of attack power, defense power, and endurance, and the identification information is specifically a top view angle icon of the virtual gyroscope;
step S202, displaying a virtual gaining device under the condition of receiving first interaction information, wherein the first interaction information is information of dragging any position in a virtual interaction scene; it should be noted that the first interaction information is continuous information, for example, the player long presses the virtual interaction interface on the terminal 10 and continuously drags, or continuously slides after clicking through the mouse, and when the finger or mouse click is released, the first interaction information is terminated. In addition, the virtual booster displayed on the terminal 10 includes a virtual rolling axis and a virtual rolling cursor, wherein the virtual rolling cursor moves back and forth on the virtual rolling axis at a preset moving speed, further, the preset moving speed of the virtual rolling cursor is determined by the dragging distance in the first interactive information, and the larger the dragging distance is, the faster the preset moving speed is;
step S203, determining the transmitting position and the first transmitting rotation speed of the virtual gyroscope on the virtual map according to the first interaction information includes: determining a first pointing arrow according to the dragging distance and the dragging direction in the first interaction information, wherein the length root of the first pointing arrow increases with the increase of the dragging distance; it should be noted that, in the case that the dragging distance is greater than the dragging distance threshold, the first pointing arrow does not increase following the increase of the dragging distance. It should be noted that the first pointing arrow does not extend beyond the upper limit, but continues to change direction along with the dragging direction; and then, generating a second directional arrow in the reverse direction of the first directional arrow, and acquiring the end position of the second directional arrow as the emission position, wherein the length of the second directional arrow is a first preset multiple of the length of the first directional arrow, and the first preset multiple is determined by the skilled in the art according to actual requirements. For example: the first preset multiple is 50%, and when the length of the first directional arrow is 100, the length of the second directional arrow is 50; it will be appreciated that the length of the second directional arrow is reduced in accordance with the multiple of the length of the first directional arrow; in addition, the first pointing arrow may also be used to determine an additional rotation speed of the virtual top, for example, the longer the dragging distance of the player, i.e., the longer the first pointing arrow, the greater the additional rotation speed obtained by the virtual top, and sum the preset rotation speed and the additional rotation speed to determine the first transmission rotation speed. Optionally, the additional rotation speed sets an upper proportional threshold, for example, in a case that the upper proportional threshold is 50%, the additional rotation speed raised by the player to the virtual gyro by lengthening the dragging distance cannot exceed 50% of the preset rotation speed of the virtual gyro at maximum. It should be noted that the preset rotation speed of the virtual gyroscope in this embodiment is configured by a developer according to the specific situations of the virtual gyroscope and the virtual transmitter;
step S204, receiving second interactive information, wherein the second interactive information is information of any position in the dragged virtual interactive scene after the first interactive information is received; acquiring the interaction time of the second interaction information, and determining a gain multiple by the virtual gain device according to the interaction time; it should be noted that the first interaction information described in step S203 is information for the player to drag the virtual interaction interface, and correspondingly, when the player cancels or releases dragging the virtual interaction interface, the second interaction information is output; in addition, the time when the player cancels or releases the dragging is the interaction time, and further, the determining the gain multiple by the virtual gaining device according to the interaction time comprises: stopping the motion of the virtual scroll cursor at the moment of the interaction time and staying at a staying position on the virtual scroll axis; determining a gain multiple according to the following distance, wherein the distance is the distance between the staying position of the cursor and the center position of the virtual rolling axis, and the smaller the distance is, the larger the gain multiple is;
step S205, generating a launch instruction according to the second launch rotation speed and the launch position, and launching the virtual gyroscope to a virtual map based on the launch instruction, wherein the launch instruction is generated according to the second launch rotation speed and the launch position, for example, the player a drags a first directional arrow of 100%, obtains an additional rotation speed of 50%, and finally obtains a gain multiple of 80% through the gain multiplier, and the generated launch instruction includes: obtaining 50% rotation speed 80% to 40% rotation speed;
through the above steps S201 to S205, compared with the method of transmitting the virtual gyroscope through multiple interfaces and operation steps in the related art, the embodiment can implement the transmission operation of the virtual gyroscope through the simple gesture operation of the user, and in addition, different transmission effects can be generated according to the specific situation of the operation gesture. The virtual gyro launching method provided by the embodiment solves the problem that the launching operation steps of the virtual gyro in the related technology are complicated, and improves the operation convenience of a player.
In some embodiments, fig. 4 is a schematic diagram of determining a first transmission rotation speed and a transmission position according to an embodiment of the present disclosure, and as shown in fig. 4, a player drags an arbitrary position in a virtual interaction scene to generate a first directional arrow and a second directional arrow, where a direction of the first directional arrow is consistent with a dragging direction of the player, and a length of the first directional arrow increases with an increase in a dragging distance of the player, and at the same time, in a direction opposite to the first directional arrow, a second directional arrow is generated and changes with a change of the first directional arrow, and a length of the second directional arrow is calculated by taking a product of the first directional arrow and a first preset multiple, and optionally, the first preset multiple is 50%; it should be noted that, when the second interaction information is received, that is, the player cancels the dragging, the end position of the second directional arrow is the launch position; in addition, the first transmitting rotation speed is calculated by taking the product of the extra rotation speed and the preset rotation speed, for example: the preset rotating speed of the virtual gyroscope A is 2100, the extra rotating speed of the player for dragging and lifting is 50%, and then the transmitting rotating speed is as follows: 2100+2100 × 50% ═ 3150.
In some of the embodiments, upon receiving the first interaction signal, a virtual booster appears in the virtual interaction scene, the virtual booster comprising a virtual scroll axis and a virtual scroll cursor, the virtual scroll cursor reciprocating on the virtual scroll axis at a preset movement speed; the larger the dragging distance is, the faster the preset moving speed of the virtual rolling cursor is, and the virtual rolling cursor just stops at the moment when the player cancels the dragging; then, determining a gain multiple by judging the distance between the staying position of the virtual scroll cursor and the center position of the virtual scroll axis, wherein the larger the distance is, the smaller the value of the gain multiple is obtained, and further, at the client, a transmission feedback result can be popped up based on the distance, for example: when the separation distance is in the first interval, the client displays "perfect", when the separation distance is in the second interval, the client displays "good", and when the separation distance is in the third interval, the client displays "refuel", it should be noted that the first interval, the second interval, and the third interval are arranged in the order of numerical values from small to large, wherein the specific numerical values involved have no core influence on the embodiment, and are not repeated here.
In some embodiments, fig. 5 is a schematic diagram of a scene map according to an embodiment of the present application, and as shown in fig. 5, after determining a transmitting position of a virtual gyroscope on the virtual map according to the first interaction information, the virtual map is divided into an inner circle region, an outer circle region and an off-site region, where an area of the off-site region is larger than that of the outer circle region, and an area of the outer circle region is larger than that of the inner circle region; under the condition that the transmitting position is located in an inner ring area in the virtual map, the endurance property of the virtual gyroscope is improved to be a second preset multiple of the initial value; and under the condition that the transmitting position is located in the outer circle area in the virtual map, the attacking force attribute of the virtual gyroscope is increased to be a third preset multiple of the initial value. It should be noted that, in this embodiment, in order to simulate a virtual gyroscope battle scene as real as possible, after the virtual gyroscope is launched, the rotation speed is gradually reduced until it is 0, and the virtual gyroscope stops rotating; correspondingly, the lasting force attribute is an attribute describing the speed reduction of the rotating speed, and the higher the lasting force attribute is, the slower the reduction of the rotating speed of the virtual gyroscope is. In addition, the attack force attribute is an attribute describing that the virtual gyro causes damage to the fighting virtual gyro, wherein the expression of causing the damage may be to lower the HP (life value) of the counterpart. It is understood that when the HP of the virtual gyro is 0, the virtual gyro stops rotating. Furthermore, the endurance attribute and the attack attribute in this embodiment are also affected by the virtual booster, and after the virtual gyroscope is launched to the virtual map, the obtained endurance attribute and attack attribute need to be multiplied by the gain multiple to generate an actual attribute value; for example, when player B releases virtual gyros B1 and B2, the virtual scroll cursor stays in the second interval on the virtual scroll axis, the gain multiple obtained by the player is 80%, after launch, virtual gyro B1 stays at the outer circle position in the scene map and obtains 25% of attack force, virtual gyro B2 stays at the inner circle position in the scene map and obtains 50% of endurance force, wherein the initial value of the attack force of B1 is 100, and the initial value of the endurance force of B2 is 100; the actual attribute values generated by the client calculation are: b1 attack force: 100+100 × 25% × 80% ═ 120, B2 proof stress: 100+100 × 50% × 80% ═ 140. In addition, in the event that the transmission location is located in an off-site area in the virtual map, retransmission information is presented by the client, wherein the retransmission information is used to prompt correction of the transmission location.
In some embodiments, after a transmitting instruction is generated according to the second transmitting rotating speed and the transmitting position and before the virtual gyroscope is transmitted to the virtual map based on the transmitting instruction, in the case that the first virtual gyroscope and the second virtual gyroscope collide in the process of going down, the type information of the first virtual gyroscope and the second virtual gyroscope is presented through the client, and the settlement of the collision of opening is carried out, wherein the process of going down is the process that the virtual gyroscope leaves from the virtual transmitter to fall on the virtual map; the type information may be an attack type, a persistence type, a defense type, and the like configured according to a preset rule. In addition, the opening collision settlement includes: acquiring a restraining relation between the first virtual gyroscope and the second virtual gyroscope; under the condition that the first virtual gyroscope and the second virtual gyroscope have a restraining relationship, the endurance attribute and/or the attack attribute and/or the defense attribute of the first virtual gyroscope are/is reduced, and restraining attack information is presented through the client; the constraint relationship is configured by a developer according to a certain preset rule, for example, if the virtual gyro a is aggressive and the virtual gyro B is persistent, then B is constrained by a, and further, the related attribute value of B is reduced. Optionally, the restraining attack information may be arrow animation that rises or falls in the virtual gyro type information, which is used to describe a restraining relationship, or may be a special effect that the restrained virtual gyro has been attacked and shakes, or may be a text effect that describes restraining attack. In addition, under the condition that the first virtual gyro and the second virtual gyro are not in a restraining relation, a collision special effect is presented through the client, the collision special effect can be that the two collided virtual gyros bounce for a certain distance, and then the process of going to the ground is finished and the ground falls on the virtual map.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The present embodiment further provides a virtual gyro control system, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the system is omitted here. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a virtual gyro control method according to an embodiment of the present application, and as shown in fig. 6, the system includes a display module 61, a receiving module 62, and a processing module 63;
the display module 61 is configured to display a virtual interactive scene, where the virtual interactive scene includes a virtual gyroscope, a virtual map, and a virtual transmitter, and the virtual gyroscope includes a first virtual gyroscope and a second virtual gyroscope;
the receiving module 62 is configured to receive first interaction information and second interaction information, where the first interaction information is information of any position in a dragged virtual interaction scene, a transmitting position and a first transmitting rotation speed of the virtual gyroscope on the virtual map are determined according to the first interaction information, and the second interaction information is information of any position in the dragged virtual interaction scene released after the first interaction information is received;
the display module 61 is further configured to display the virtual booster in case of receiving the first interaction information;
the processing module 63 is configured to obtain interaction time of the second interaction information, determine a gain multiple according to the interaction time, calculate a product of the first transmitting rotation speed and the gain multiple to generate a second transmitting rotation speed, generate a transmitting instruction according to the second transmitting rotation speed and the transmitting position, and transmit the virtual gyroscope to the virtual map based on the transmitting instruction.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a virtual gyro control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, fig. 7 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application, and as shown in fig. 7, there is provided an electronic device, which may be a server, and an internal structure diagram of which may be as shown in fig. 7. The electronic device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the electronic device is used for storing data. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a virtual gyro control method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the electronic devices to which the subject application may be applied, and that a particular electronic device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for controlling a virtual gyroscope, the method comprising:
displaying a virtual interactive scene, wherein the virtual interactive scene comprises a virtual gyroscope, a virtual map and a virtual transmitter, and the virtual gyroscope comprises a first virtual gyroscope and a second virtual gyroscope;
displaying a virtual booster under the condition of receiving first interaction information, wherein the first interaction information is information of dragging any position in the virtual interaction scene;
determining the transmitting position and the first transmitting rotating speed of the virtual gyroscope on the virtual map according to the first interactive information;
receiving second interaction information, wherein the second interaction information is information for releasing and dragging any position in the virtual interaction scene after the first interaction information is received;
acquiring the interaction time of the second interaction information, and determining a gain multiple by the virtual gain device according to the interaction time;
and calculating the product of the first transmitting rotating speed and the gain multiple to generate a second transmitting rotating speed, generating a transmitting instruction according to the second transmitting rotating speed and the transmitting position, and transmitting the virtual gyroscope to the virtual map based on the transmitting instruction.
2. The method of claim 1, wherein determining the transmission position and the first transmission rotation speed of the virtual gyroscope on the virtual map according to the first interaction information comprises:
determining a first pointing arrow according to a dragging distance and a dragging direction in the first interaction information, wherein the length root of the first pointing arrow increases with the increase of the dragging distance, and the first pointing arrow does not increase with the increase of the dragging distance any more under the condition that the dragging distance is greater than a dragging distance threshold;
generating a second directional arrow in the reverse direction of the first directional arrow, acquiring the end point position of the second directional arrow, namely determining the transmitting position, acquiring the additional rotating speed multiple added by the second directional arrow and performing product calculation with the preset rotating speed of the virtual gyroscope to generate a first transmitting rotating speed; the length of the second directional arrow is a first preset multiple of the length of the first directional arrow, and the length of the second directional arrow is smaller than that of the first directional arrow.
3. The method of claim 1, wherein the virtual booster comprises a virtual scroll axis and a virtual scroll cursor, wherein the virtual scroll cursor reciprocates on the virtual scroll axis at a preset movement speed.
4. The method of claim 3, wherein the reciprocating motion of the virtual scroll cursor on the virtual scroll axis at a preset movement speed comprises:
and determining a preset moving speed of the virtual rolling cursor according to the dragging distance in the first interactive information, and reciprocating on the virtual rolling shaft at the preset moving speed, wherein the preset moving speed is increased along with the increase of the dragging distance.
5. The method of claim 1, wherein the virtual booster determining a gain multiple based on the interaction time comprises:
the virtual scroll cursor stops moving at the interaction time and stays at a staying position on the virtual scroll axis;
the gain factor decreases with an increase in a separation distance, wherein the separation distance is a distance of the stop position from the virtual scroll axis center position.
6. The method of claim 1, wherein after determining the transmission position of the virtual gyroscope on the virtual map according to the first interaction information, the method further comprises:
dividing the virtual map into an inner circle area, an outer circle area and an off-site area, wherein the range of the off-site area is larger than that of the outer circle area, and the range of the outer circle area is larger than that of the inner circle area;
under the condition that the transmitting position is located in the inner circle area in the virtual map, the endurance property of the virtual gyroscope is improved to be a second preset multiple of an initial value;
under the condition that the transmitting position is located in the outer circle area in the virtual map, the attacking force attribute of the virtual gyroscope is improved to be a third preset multiple of an initial value;
presenting, by a client, retransmission information in the event that the transmission location is located in the offsite area in the virtual map, wherein the retransmission information is used to prompt modification of the transmission location.
7. The method of any one of claims 1 or 6, wherein after generating a launch instruction according to the second launch speed and launch location, and before launching the virtual top to the virtual map based on the launch instruction, the method further comprises:
presenting type information of the first virtual gyro and the second virtual gyro through a client and performing opening collision settlement under the condition that the first virtual gyro and the second virtual gyro collide in a ground process, wherein the ground process is a process that the virtual gyro leaves from the virtual transmitter to land on the virtual map;
the opening collision settlement comprises the following steps: acquiring a gram relation between the first virtual gyroscope and the second virtual gyroscope;
under the condition that the first virtual gyroscope and the second virtual gyroscope have a restraining relationship, the endurance attribute, the attack attribute and the defense attribute of the first virtual gyroscope are reduced, and restraining attack information is presented through a client;
and presenting collision information through a client under the condition that the first virtual gyroscope and the second virtual gyroscope have no restraining relation.
8. A control system for a virtual gyroscope, the system comprising: the device comprises a display module, a receiving module and a processing module;
the display module is used for displaying a virtual interactive scene, wherein the virtual interactive scene comprises a virtual gyroscope, a virtual map and a virtual transmitter, and the virtual gyroscope comprises a first virtual gyroscope and a second virtual gyroscope;
the receiving module is used for receiving first interaction information and second interaction information, wherein the first interaction information is information dragging any position in the virtual interaction scene, the transmitting position and the first transmitting rotating speed of the virtual gyroscope on the virtual map are determined according to the first interaction information, and the second interaction information is information dragging any position in the virtual interaction scene after the first interaction information is received;
the display module is used for displaying a virtual booster under the condition of receiving the first interactive information;
the processing module is used for acquiring the interaction time of the second interaction information, determining a gain multiple according to the interaction time, calculating the product of the first transmitting rotating speed and the gain multiple to generate a second transmitting rotating speed, generating a transmitting instruction according to the second transmitting rotating speed and a transmitting position, and transmitting the virtual gyroscope to the virtual map based on the transmitting instruction.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a method of controlling a virtual gyro according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing a method for controlling a virtual top according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110044399.3A CN112742023B (en) | 2021-01-13 | 2021-01-13 | Control method and system of virtual gyroscope |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110044399.3A CN112742023B (en) | 2021-01-13 | 2021-01-13 | Control method and system of virtual gyroscope |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112742023A true CN112742023A (en) | 2021-05-04 |
CN112742023B CN112742023B (en) | 2024-01-09 |
Family
ID=75651227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110044399.3A Active CN112742023B (en) | 2021-01-13 | 2021-01-13 | Control method and system of virtual gyroscope |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112742023B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160026253A1 (en) * | 2014-03-11 | 2016-01-28 | Magic Leap, Inc. | Methods and systems for creating virtual and augmented reality |
CN108604120A (en) * | 2016-05-11 | 2018-09-28 | 谷歌有限责任公司 | The input of gyro mouse and touch input are combined to navigate in enhancing and/or reality environment |
CN109240484A (en) * | 2017-07-10 | 2019-01-18 | 北京行云时空科技有限公司 | Exchange method, device and equipment in a kind of augmented reality system |
-
2021
- 2021-01-13 CN CN202110044399.3A patent/CN112742023B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160026253A1 (en) * | 2014-03-11 | 2016-01-28 | Magic Leap, Inc. | Methods and systems for creating virtual and augmented reality |
CN108604120A (en) * | 2016-05-11 | 2018-09-28 | 谷歌有限责任公司 | The input of gyro mouse and touch input are combined to navigate in enhancing and/or reality environment |
CN109240484A (en) * | 2017-07-10 | 2019-01-18 | 北京行云时空科技有限公司 | Exchange method, device and equipment in a kind of augmented reality system |
Non-Patent Citations (1)
Title |
---|
迎风长肉: "Created with Cocos | 电魂《螺旋勇士》重现童年经典!", Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/170014478> * |
Also Published As
Publication number | Publication date |
---|---|
CN112742023B (en) | 2024-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11250660B2 (en) | Graphical user interface for a gaming system | |
EP3939681A1 (en) | Virtual object control method and apparatus, device, and storage medium | |
JP7528265B2 (en) | INTERACTIVE INFORMATION PROCESSING METHOD, DEVICE, TERMINAL, AND PROGRAM | |
KR20140006642A (en) | Method for processing user gesture input in online game | |
US12059620B2 (en) | Method and apparatus for selecting virtual object interaction mode, device, medium, and product | |
KR20140135276A (en) | Method and Apparatus for processing a gesture input on a game screen | |
CN112742023B (en) | Control method and system of virtual gyroscope | |
KR20240039111A (en) | Method for providing item enhancement service in game | |
EP3984608A1 (en) | Method and apparatus for controlling virtual object, and terminal and storage medium | |
US20240245991A1 (en) | Game control method, electronic device, and computer-readable storage medium | |
CN118662888A (en) | Virtual resource acquisition method and device, electronic equipment and storage medium | |
CN116832438A (en) | Virtual object control method, device, terminal and storage medium | |
CN116832445A (en) | Virtual character control method, device, equipment and medium | |
CN116999826A (en) | Game control method, game control device, electronic equipment and storage medium | |
CN115999142A (en) | Game control method, device, medium and equipment | |
CN117122896A (en) | Virtual character control method, device, equipment and storage medium | |
CN118161864A (en) | Virtual skill processing method and device, electronic equipment and storage medium | |
CN117753007A (en) | Interactive processing method and device for virtual scene, electronic equipment and storage medium | |
CN116262176A (en) | Information interaction method, device, electronic equipment and storage medium | |
CN115089968A (en) | Operation guiding method and device in game, electronic equipment and storage medium |
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 |