CN112973113A - Display method, system, device and computer storage medium for mobile unit - Google Patents

Display method, system, device and computer storage medium for mobile unit Download PDF

Info

Publication number
CN112973113A
CN112973113A CN202110353570.9A CN202110353570A CN112973113A CN 112973113 A CN112973113 A CN 112973113A CN 202110353570 A CN202110353570 A CN 202110353570A CN 112973113 A CN112973113 A CN 112973113A
Authority
CN
China
Prior art keywords
mobile unit
parameter
determining
speed
steering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110353570.9A
Other languages
Chinese (zh)
Inventor
洪乃林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tiantianlaiwan Technology Co ltd
Original Assignee
Shenzhen Tiantianlaiwan 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 Shenzhen Tiantianlaiwan Technology Co ltd filed Critical Shenzhen Tiantianlaiwan Technology Co ltd
Priority to CN202110353570.9A priority Critical patent/CN112973113A/en
Publication of CN112973113A publication Critical patent/CN112973113A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/33Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using wide area network [WAN] connections
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/211Input arrangements for video game devices characterised by their sensors, purposes or types using inertial sensors, e.g. accelerometers or gyroscopes
    • 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

Landscapes

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

Abstract

The invention discloses a display method of a mobile unit, which comprises the following steps: acquiring setting information issued by a server, wherein the setting information comprises a random function, a generation parameter and original speed information of a mobile unit; determining a speed parameter of the mobile unit according to the original speed information, and determining a steering parameter of the mobile unit according to the random function; and generating the mobile unit according to the generation parameters, and controlling the mobile unit to move according to the speed parameters and the steering parameters. The invention also discloses a display system, equipment and a computer storage medium of the mobile unit. The invention reduces the frequent interaction between the server and the client and realizes the synchronization of the same mobile unit of different clients.

Description

Display method, system, device and computer storage medium for mobile unit
Technical Field
The present invention relates to the field of data synchronization, and more particularly, to a display method, system, device, and computer storage medium for a mobile unit.
Background
When multiple ends play the same online game, the mobile state of the mobile unit changes continuously, and in order to synchronize the display of the player terminals, the mobile state of the mobile unit needs to be synchronized in real time.
Disclosure of Invention
The invention mainly aims to provide a display method, a display system, display equipment and a computer storage medium of a mobile unit, and aims to solve the technical problem of abnormal synchronization of the mobile unit between different clients caused by frequent interaction between the clients and a server.
To achieve the above object, the present invention provides a display method of a mobile unit, the display method of the mobile unit comprising the steps of:
acquiring setting information issued by a server, wherein the setting information comprises a random function, a generation parameter and original speed information of a mobile unit;
determining a speed parameter of the mobile unit according to the original speed information, and determining a steering parameter of the mobile unit according to the random function;
and generating the mobile unit according to the generation parameters, and controlling the mobile unit to move according to the speed parameters and the steering parameters.
Optionally, the random function includes a random seed and a variation factor, and the step of determining the steering parameter of the mobile unit according to the random function includes:
and generating a random value according to the random seed and the variation factor, and determining the steering parameter of the mobile unit according to the random value.
Optionally, the setting information further includes a turning angle range and a turning opportunity range of the mobile unit, and the step of determining the turning parameter of the mobile unit according to the random value includes:
and determining the rotation angle of the mobile unit in the rotation angle range according to the random value, and determining the steering time of the mobile unit in the steering time range according to the random value.
Optionally, the step of controlling the movement of the mobile unit according to the speed parameter and the steering parameter comprises:
and when the current time reaches the steering opportunity, controlling the mobile unit to move according to the speed parameter and the rotation angle.
Optionally, the setting information further includes a screen parameter and a life cycle of the mobile unit, the original speed information includes an original moving speed and an original angular speed, and the determining the speed parameter of the mobile unit according to the original speed information includes:
determining a simulated movement period of the mobile unit according to the original movement speed and the original angular speed, the steering parameter, and the screen parameter;
determining a real moving speed of the mobile unit according to the simulated moving period, the life cycle and the original moving speed;
determining a true angular velocity of the mobile unit from the simulated movement period, the life cycle, and the original angular velocity.
Optionally, the step of determining a simulated movement period of the mobile unit according to the original speed information, the steering parameter and the screen parameter comprises:
simulating the moving process of the mobile unit according to the original speed information, the steering parameter and the screen parameter;
and determining the simulated moving time of the moving process, and determining the simulated moving period of the mobile unit according to the simulated moving time.
Optionally, before the step of generating the mobile unit according to the generation parameter, the method further includes:
when a position change instruction issued by the server is received, updating the generation parameters of the mobile unit corresponding to the identification according to the mobile unit identification carried by the position change instruction and the new generation position, and taking the updated generation parameters as new generation parameters;
said step of generating said mobile unit in accordance with said generation parameters comprises:
generating the mobile unit according to the new generation parameters.
In order to achieve the above object, the present invention also provides a display system of a mobile unit, comprising:
the receiving module is used for acquiring setting information issued by a server, wherein the setting information comprises a random function, a generation parameter and original speed information;
a first determining module for determining a velocity parameter of the mobile unit based on the raw velocity information;
a second determining module for determining a steering parameter of the mobile unit according to the random function;
a generation module for generating the mobile unit according to the generation parameters;
and the moving module is used for controlling the moving unit to move according to the speed parameter and the steering parameter.
Further, to achieve the above object, the present invention also provides a display device of a mobile unit, comprising: memory, a processor and a display program of a mobile unit stored on the memory and executable on the processor, wherein the display program of the mobile unit when executed by the processor implements the steps of the display method of the mobile unit as described above.
In addition, to achieve the above object, the present invention also provides a computer storage medium having a display program of a mobile unit stored thereon, the display program of the mobile unit implementing the steps of the display method of the mobile unit as described above when executed by a processor.
The method comprises the steps that a client side obtains setting information uniformly configured by a server side for a mobile unit, wherein the setting information comprises the corresponding relation between the mobile unit and a generation parameter, original speed information and a random function of the mobile unit, and the generation parameters of the same mobile unit are the same, so that the mobile units are generated in different client sides in the same way; the random function and the original speed information of the same mobile unit are the same, so that the moving tracks of the same mobile unit of different clients are random and the same, and the same mobile unit is used for obtaining the same setting information issued by the server before the generation of different clients, so that the generation and the movement of the mobile units of different clients are synchronous, the frequent interaction between the clients and the server in the generation and the movement processes of the mobile units is reduced, the abnormity and the flow consumption when the clients and the server are synchronous are reduced, and the synchronization of the same mobile unit among different clients is realized.
Drawings
Fig. 1 is a schematic diagram of an apparatus configuration of a hardware operating environment related to a display method of a mobile unit according to the present invention;
FIG. 2 is a flowchart illustrating a display method of a mobile unit according to a first embodiment of the present invention;
FIG. 3 is a schematic view of a fishing game scenario of the first embodiment of FIG. 2;
FIG. 4 is a flowchart illustrating a display method of a mobile unit according to a fourth embodiment of the present invention;
FIG. 5 is a functional block diagram of a display system of a mobile unit according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, dynamic video Experts compress standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, dynamic video Experts compress standard Audio Layer 3) player, a portable computer, and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 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.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a display program of a mobile unit.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a display program for the mobile unit stored in the memory 1005 and perform the following operations:
acquiring setting information issued by a server, wherein the setting information comprises a random function, a generation parameter and original speed information of a mobile unit;
determining a speed parameter of the mobile unit according to the original speed information, and determining a steering parameter of the mobile unit according to the random function;
and generating the mobile unit according to the generation parameters, and controlling the mobile unit to move according to the speed parameters and the steering parameters.
Further, the random function includes a random seed and a variation factor, and the processor 1001 may be configured to call a display program of the mobile unit stored in the memory 1005, and perform the following operations:
and generating a random value according to the random seed and the variation factor, and determining the steering parameter of the mobile unit according to the random value.
Further, the setting information further includes a turning angle range and a turning timing range of the mobile unit, and the processor 1001 may be configured to call a display program of the mobile unit stored in the memory 1005, and perform the following operations:
and determining the rotation angle of the mobile unit in the rotation angle range according to the random value, and determining the steering time of the mobile unit in the steering time range according to the random value.
Further, the processor 1001 may be configured to invoke a display program of the mobile unit stored in the memory 1005 and perform the following operations:
and when the current time reaches the steering opportunity, controlling the mobile unit to move according to the speed parameter and the rotation angle.
Further, the setting information further includes screen parameters and a life cycle of the mobile unit, the original speed information includes an original moving speed and an original angular speed, and the processor 1001 may be configured to call a display program of the mobile unit stored in the memory 1005 and perform the following operations:
determining a simulated movement period of the mobile unit according to the original movement speed and the original angular speed, the steering parameter, and the screen parameter;
determining a real moving speed of the mobile unit according to the simulated moving period, the life cycle and the original moving speed;
determining a true angular velocity of the mobile unit from the simulated movement period, the life cycle, and the original angular velocity.
Further, the processor 1001 may be configured to invoke a display program of the mobile unit stored in the memory 1005 and perform the following operations:
simulating the moving process of the mobile unit according to the original speed information, the steering parameter and the screen parameter;
and determining the simulated moving time of the moving process, and determining the simulated moving period of the mobile unit according to the simulated moving time.
Further, the processor 1001 may call a network operation control application stored in the memory 1005, and also perform the following operations:
when a position change instruction issued by the server is received, updating the generation parameters of the mobile unit corresponding to the identification according to the mobile unit identification carried by the position change instruction and the new generation position, and taking the updated generation parameters as new generation parameters;
generating the mobile unit according to the new generation parameters.
Referring to fig. 2, fig. 2 is a flowchart illustrating a display method of a mobile unit according to a first embodiment of the present invention, where the display method of the mobile unit includes:
step S10, obtaining the setting information issued by the server, where the setting information includes the random function, the generation parameter, and the original speed information of the mobile unit.
In the prior art, frame synchronization is generally used for synchronizing data of different clients (the data transmission unit of a data link layer is a frame, data is transmitted frame by frame, the frame is delimited from the beginning to the end, and a receiving end can accurately distinguish the beginning and the end of a frame from a received bit stream to ensure the synchronization of data exchange between adjacent nodes). However, due to different performances of different client systems, such as differences in hardware capability and software function, or interference in transmission between the client and the server, the capabilities of the sender and the receiver for processing data are different, so that synchronization between the sender and the receiver is abnormal. Moreover, the frame synchronization controls the transmission flow, and when a game with complicated content setting and constantly changing player information is played, a large amount of flow is consumed when different clients synchronize with the server (the client constantly records the game state and transmits the game state to the server, and the server issues the game state of other clients), and when the flow between the client and the server exceeds the frame synchronization flow control, the abnormality such as untimely synchronization of the mobile units between different clients is caused, and the game experience of the user is deteriorated.
In this context, the present embodiment provides a technical means for synchronizing the mobile units at different clients and making the mobile units have a certain randomness in their moving states by uniformly configuring the mobile units with the setting information and combining the mobile units with the random function.
Specifically, the setting information obtained by different clients is the same, and the setting information is configured for the mobile unit in advance by the server, and includes the corresponding relationship between the mobile unit and its generation parameters, the original speed information, and the random function. The generation parameters of the mobile units are the same, so that the generation of the same mobile unit at different clients is synchronous, the random function and the original speed information of the same mobile unit are the same, and the moving tracks of the mobile units can be random and the same. In the embodiment, the same mobile unit is enabled to acquire the same setting information issued by the server before the generation of different clients, so that the generation and the movement of the mobile units of different clients are synchronous, frequent interaction between the clients and the server in the generation and movement processes of the mobile units is reduced, the synchronization of the mobile units among the clients is realized, and the random function ensures that the movement state of the mobile unit has certain randomness.
It can be understood that the setting information may also include other preset information for the client, such as screen parameters, a screen center area, and the like. The generation parameters are used for generating the mobile unit, and may include the generation time and the generation position of the mobile unit, and may also include information such as the generation posture; the original speed information is used for determining the moving speed of the mobile unit at the client; the random function is used to generate random numbers, and the mobile unit can move to a certain random effect by combining the mobile unit with the random function.
Certainly, in order to facilitate the interaction between the client and the server, the setting information may be set as a table, and an identifier of the mobile unit may also be set, before the game starts, the server issues the table to the client (when the client installs the game) in a unified manner, and when the user enters the game, the mobile units of different clients acquire the content corresponding to the identifier in the table, so that the same mobile unit is synchronized at different clients.
Step S20, determining the velocity parameter of the mobile unit according to the original velocity information, and determining the steering parameter of the mobile unit according to the random function.
It should be noted that the original speed information is a fixed value preset in the setting information, and is not the actual moving speed of the mobile unit, in order to make the moving process of the mobile unit more real, the speed parameter actually presented to the mobile unit is a value generated by re-judging according to the original speed, the turning parameter is a reference for changing the direction during the moving process of the mobile unit, and a random function is assigned to the turning parameter of the mobile unit, so that the turning parameter obtained by the mobile unit has a certain randomness, thereby preventing the mobile unit from moving all the time along a single direction, and making the turning of the mobile unit in moving have randomness.
And step S30, generating the mobile unit according to the generation parameters, and controlling the mobile unit to move according to the speed parameters and the steering parameters.
By controlling the mobile unit to move according to the determined speed parameter and the steering parameter, the moving track of the mobile unit can be obtained, so that the mobile unit seen by the client is dynamic.
It is understood that the user hardly feels the time difference during the program processing, that is, the user sees that the generation and the movement of the mobile unit are synchronized, and therefore, the order of generating the mobile unit according to the generation parameter and controlling the movement of the mobile unit according to the speed parameter and the steering parameter in step S30 is not limited.
For ease of understanding, the fish in the fishing game is illustrated as a mobile unit, and the game scenario for synchronization between specific clients is shown in fig. 3, while fig. 3 represents a scenario within a room in the fishing game, where the mobile unit includes shark F1 and octopus F2, with region A, B, C, D as the user location.
When the user enters the game, the step S10 is executed, sharks F1 and octopus F2 in different clients receive the same setting information which is sent by the server in a unified way, wherein the setting information comprises respective generation parameters, random functions and original speed information; further, step S20 is executed, the shark F1 and the octopus F2 determine their speed parameters according to the original speed information received by the server and determine their steering parameters according to a random function; further, step S30 is performed to generate sharks F1 and octopus F2 at different clients' synchronizations according to their respective generation parameters, and to move synchronously at different clients according to their respective speed parameters and steering parameters determined at step S20. It can be understood that, since the turning parameters are generated according to random functions, the turning processes of the sharks F1 and the octopus F2 in the embodiment have randomness, and the random movement trajectories of the sharks F1 and the octopus F2 at different clients do not depend on frame synchronization, but are synchronized according to the same random functions configured for the same sharks F1 and the same octopus F2.
Of course, a plurality of sharks and a plurality of octopuses can be set by using the same steps, and a fish group (shark group or octopus group) with a synchronous movement track can be generated in the game scene by setting the same random function.
Further, based on the first embodiment, a second embodiment of the present invention is proposed, in which the random function includes a random seed and a variation factor, and the step S20 includes:
and step S21, generating a random value according to the random seed and the variation factor, and determining the steering parameter of the mobile unit according to the random value.
In the prior art, a bezier curve (a smooth curve drawn according to coordinates of points at any position) is generally used to preset the moving track of the mobile unit, however, in this way, the mobile unit will present the same and regular movement in each life cycle, which results in reduced playability of the game.
Therefore, in this embodiment, a random seed and a variation factor of a random function are introduced, so that the steering parameter of the mobile unit has an irregular moving track.
It should be noted that the random seed is an initial value in a random function, the mobile unit obtains the random function to generate a random value, the random value may be generated to include one or more values by artificially setting a value taking number, and the random values generated by the same random function of the mobile unit in different clients are the same by setting a fixed random seed for the random function.
However, the random function generates random values according to the random seed, and the random values are repeated in the circulation process of the random function, so that the turning of the mobile unit is random but regular, for example, in the case of a plurality of identical mobile units, the movement rules of the plurality of mobile units after being generated at any time are identical, even, in the same mobile unit, when the random function circulates for a plurality of times, the random seeds of the random function are identical, so that the generated random values are identical, and the movement track of the same mobile unit can be regularly circulated.
Therefore, in this embodiment, the time parameter is used as the first variation factor, the random function varies with time, and the cycle process of the random function reselects a random value within the value range, so that the mobile unit acquires a new steering parameter, thereby avoiding the steering parameter acquired by the mobile unit from having regularity, and further increasing the randomness of the movement of the mobile unit.
Taking the random function as a linear function for example, the relationship between the random value y generated by the random function and the random seed x is y (x) ═ x, and after a time parameter is specified, if an elapsed time t is specified, the relationship between the random value and the random seed is y (xt) ═ xt. In the case where the same random seed x is provided, the same Y value is obtained every time Y (x) ═ x is executed, and since the elapsed time is changed, the different Y value is obtained every time Y (xt) ═ xt is executed, and further, Y (a) ═ a is obtained by making a ═ xt, it can be understood that the random seed a of the random function Y (a) is changed, and the random value generated by the random function has randomness.
To assist understanding, referring to fig. 3, for example, assuming that the random seed issued by the server is 2 when the current shark F1 is obtained, the random function takes 5 integers from 1 to 10, the random seed of the octopus F2 takes 3, and the random function takes 6 floating points from 1 to 2, then the turning parameters of the shark F1 and the octopus F2 are selected according to the random result of the shark F1 (2, 3, 5, 5, 1) and the random result of the octopus F2 (1.1123, 1.2342, 1.2546, 1.1365, 1.8546, 1.6594), and when the change factor is that the elapsed time has elapsed for 3 seconds, the current random seed of the shark F1 becomes 6, and the current random seed of the shark F2 becomes 9, and then the respective random functions thereof generate a new set of random values, so as to update the turning parameters of the shark F1 and the shark F2, so that the client 1 and the octopus F2 respectively obtain turning parameters different from 3 seconds, and further random trajectories of the sharks have further movement trajectories, and the moving tracks of the two times before and after the time are different.
Of course, in other embodiments, other first variation factors, such as the number of cycles of the random function, may be set.
Further, the setting information further includes a turning angle range and a turning timing range of the mobile unit, and the step S21 includes:
step S211, determining the rotation angle of the mobile unit within the rotation angle range according to the random value, and determining the steering timing of the mobile unit within the steering timing range according to the random value.
It should be noted that the steering parameters include a turning angle and a steering timing, and a random value is changed continuously due to a change of time, so that a certain range is set for the turning angle and the turning timing, and the steering parameters selected by the random value every time are different as much as possible. The range of the rotation angle can be selected within 0 to 360 degrees, and it should be understood that the range of the rotation angle can be selected to be applicable to a two-dimensional plane and also to a three-dimensional space. The steering timing is a time limit for the turning angle during the movement of the mobile unit.
Moreover, the rotation angle range and the steering timing range are set, so that the rotation angle and the rotation timing of the mobile unit have selectivity and controllability. If the rotation angle range is set, the phenomenon that the rotation angle is too large, such as unreasonable rotation angles of 270 degrees, 360 degrees and the like can be avoided artificially, and the mobile unit can be moved to a designated area by limiting the angle range.
Of course, the rotation angle range and the steering time range also ensure that under the condition that a plurality of mobile units or a random function of one mobile unit circulates for a plurality of times, the result of each selection is different, so that the same mobile unit or different mobile units have different movement tracks when repeatedly moving, the game experience of the user is improved, and the game fun is increased.
Referring to fig. 3, in the setup information configured at the server, the range of the rotation angle of the shark F1 is a1(10 ° to 20 °), the turn timing H1 is once every (1 to 5) seconds, the range of the rotation angle of the octopus F2 is a1(10 ° to 90 °), the turn timing H2 is once every (0.5 to 3) seconds, the shark F1 obtains the rotation angles (12 °, 14 °, 15 °, 15 °, and 18 °) every (1, 3, 2, 2, 4) seconds from the random seed (2, 3, 5, 5, 1), and the same applies, the octopus F2 also obtains a set of the rotation angles and turn timings from the random seed, and selects the corresponding range by a random function, so that the moving trajectory of the moving unit has randomness.
It will be appreciated that the rotation angle of the different types of fish will be rotated at different times. Like shark F1 and octopus F2, because the size of shark F1 is relatively great, because of avoiding appearing less angle when setting up the scope of turned angle to shark F1, avoid causing shark F1 to move with unusual gesture, accord with user's actual experience, it is the same, set up its corresponding attribute in order to satisfy user experience and accord with actual conditions to each type of fish and can understand, consequently no longer give unnecessary details.
Further, step S30 includes:
and step S31, when the current time reaches the steering opportunity, controlling the moving unit to move according to the speed parameter and the rotation angle.
It can be understood that, since the turn timings selected by the random functions are different, the client needs to determine the turn timing, and when it is detected that the current timing matches the turn timing, the mobile unit is controlled to turn, and as the turn timing of the shark F1 in the above embodiment, the elapsed time of the moving process of the mobile unit needs to be timed every (1, 3, 2, 2, 4) second rotation angle (12 °, 14 °, 15 °, 15 °, 18 °).
By determining the turning timing, the mobile unit which reaches the turning timing and does not reach the turning timing can be distinguished, thereby controlling the mobile unit to move, enabling a user to feel that the turning of the mobile unit is different, and increasing the random effect of the game when a plurality of mobile units are arranged.
Further, based on the foregoing embodiments, a third embodiment of the present invention is proposed, in which the setting information further includes screen parameters and a life cycle of the mobile unit, the original speed information includes an original moving speed and an original angular speed, and the step S20 further includes:
step S22, determining a simulated moving period of the moving unit according to the original moving speed and the original angular speed, the steering parameter, and the screen parameter.
It can be understood that the angular velocity is a velocity when the mobile unit rotates, and in order to control the mobile unit to rotate in a reasonable rotation manner, an original angular velocity is preset in the setting information, thereby avoiding an abrupt rotation manner of the mobile unit.
It should be noted that, the acquisition of the screen parameters is not limited, for example, fixed screen parameters may be preset artificially in the setting information, or for example, the screen parameters may be obtained after the screen data of the user is extracted by the acquisition program for setting the screen parameters.
And step S23, determining the real moving speed of the mobile unit according to the simulated moving period, the life cycle and the original moving speed.
Step S24, determining the real angular velocity of the mobile unit according to the simulated movement period, the life cycle and the original angular velocity.
It should be noted that the lifecycle refers to the time from generation to movement of the mobile unit out of the screen.
It can be understood that, since the selection of the turning timing and the turning angle is random, there may be a case where the life cycle of the mobile unit does not coincide with the period of the actual movement, which may cause an abnormal movement of the mobile unit, such as a case where the mobile unit stops on the screen or disappears suddenly after the completion of the moving process in the life cycle, and the real moving speed and the real angular speed of the mobile unit are determined by simulating the moving period, and since the simulated moving period is determined according to the changed turning parameters, the moving speed and the angular speed of the mobile unit are changed, which not only increases the randomness of the moving process of the mobile unit, but also prevents the occurrence of an abnormality in the moving process of the mobile unit.
It should be noted that, according to the lifecycle delivered by the server, the specific calculation method for calculating the actual moving speed and the actual angular speed of the mobile unit is as follows: the real moving speed is (life cycle/simulated moving period) original moving speed, and the real angular speed is (life cycle/simulated moving period) original angular speed.
In this manner, the speed parameters of the same mobile unit in different clients can be made to vary and synchronized.
Further, step S22 includes:
step S221, simulating the moving process of the mobile unit according to the original speed information, the steering parameter and the screen parameter;
step S222, determining a simulated moving time of the moving process, and determining a simulated moving period of the mobile unit according to the simulated moving time.
By simulating the moving process of the mobile unit in advance, the simulated moving period after the mobile unit selects the steering parameters according to the random function can be determined, so that the real moving speed under the current steering parameters is determined. It will be appreciated that as the trajectory of the mobile unit is varied, the timing of the movement is more accurate than calculating the time from the distance, speed and time information.
Specifically, in an embodiment, referring to fig. 3, taking a 5.8-inch screen as an example of screen parameters, it is assumed that the original moving speed V1 of the shark F1 is 84.48mm/s, the original angular speed W1 is 20rad/s, the lifecycle is 5 s/time (the time from generation to moving out of the screen, regeneration is 5 seconds), the original moving speed V2 of the octopus F2 is 100mm/s, and the original angular speed W2 is 200 rad/s.
According to the steering parameters acquired by the shark F1, motion is simulated by using V1 and W1, and the moving process timing from the generation position as a starting point to the movement outside the screen as an ending point is calculated, and assuming that the simulated moving time of the shark F1 moving from the generation position to the outside of the screen is 10s, the simulated moving period of the shark F1 can be determined to be 10 s/time, and according to the formula, the real moving speed is (life cycle/simulated moving period) equal to the original moving speed, and the real angular speed is (life cycle/simulated moving period) equal to the original angular speed, so that the real moving speed of the shark F1 can be 42.24mm/s, and similarly, the real angular speed of the shark F1 can be calculated to be 100rad/s, and the real moving speed and the real angular speed of the octopus F2 can be calculated.
Based on the foregoing embodiment, a fourth embodiment of the present invention is proposed, and referring to fig. 4, before the step of generating the mobile unit according to the generation parameter, the display method of the mobile unit further includes:
step S25, when receiving the position change instruction sent by the server, updating the generation parameter of the mobile unit corresponding to the identifier according to the mobile unit identifier carried by the position change instruction and the new generation position, and using the updated generation parameter as the new generation parameter;
said step of generating said mobile unit in accordance with said generation parameters comprises:
step S301, generating the mobile unit according to the new generation parameters.
Specifically, referring to fig. 3, an embodiment is described by way of example, when a user enters a seat a during a game, the server detects A, C that there is a user in the area, selects a location in the area a to update the generation parameter of octopus F2, selects a location in the area C to update the generation parameter of shark F1, and displays the shark F1 and octopus F2 on the screen according to their respective updated generation locations (new generation parameters), so as to ensure that there is fish generation near the user in area A, C.
Of course, since the user seat of the server is fixed, the fish generation position can be set near the user area A, B, C, D in the setting information, and the user is no longer detected whether the seat number is present, so that the consumed flow for continuously detecting the user position information is reduced, and the fish generation near the user is ensured.
Of course, the location change instruction includes, but is not limited to, the server side generating according to the user's location, level, equipment and other factors.
It should be noted that the mobile unit identifier is used to identify the mobile unit, and the setting information may be set to have an identifier I1 of shark F1 and an identifier I2 of octopus F2, and when the server issues the shark F1 and the octopus F2 to the client, the server also carries its own numbers I1 and I2, and further, after receiving the setting information issued by the server, the client may issue the random function, the generation parameter, and the original speed information of the shark F1 and the octopus F2 according to the corresponding identifiers.
The mobile unit is identified so that the server can rapidly identify the mobile unit, the efficiency of the client for acquiring the content issued by the server is improved, and the synchronization effect between the clients is more accurate and rapid.
Further, the generation parameter includes a generation position and a generation time of the mobile unit, the setting information further includes a screen designation area, and the step S30 further includes:
step S32, displaying the mobile unit facing the screen designation area at the generation time and the generation position according to the screen designation area.
Referring to fig. 3, an embodiment is provided, in this embodiment, a shark F1 obtains a corresponding generation position L1 and a generation time T1 in the setting information, and an octopus F2 obtains a corresponding generation position L2 and a corresponding generation time T2 in the setting information, a circular area with screen center coordinates as a center is used as a screen designation area C1, in order to ensure that the mobile unit passes through the screen designation area C1, during generation, the shark F1 and the octopus F2 are generated toward C1, and the shark F1 and the octopus F2 pass through C1 by limiting a rotation angle range (for example, the shark F1 keeps linear motion as much as possible by controlling the rotation angle range), so that users are ensured to share the mobile unit, and fairness of the game is embodied.
Certainly, the method for selecting the designated area of the screen is not limited, for example, a vertex of the screen is selected to establish a rectangular coordinate system, the central coordinate of the screen is determined according to the shape of the screen, the central coordinate is taken as a circle center, the width of the screen is selected 1/2 as a diameter, and a circular area is calculated.
Of course, the designated area includes, but is not limited to, taking the center of the screen, and the shape of the designated area includes, but is not limited to, designating a circular area, a rectangular area, a polygonal area, and the like.
Those skilled in the art will appreciate that the display mode of the mobile unit may be used in a variety of applications including, but not limited to, fishing games, as well as other scenarios, such as the display of shooting targets in shooting games, the display of animals and plants in game scenarios, and so forth.
In order to achieve the above object, as shown in fig. 5, the present invention also provides a display system of a mobile unit, comprising:
the receiving module 10 is configured to obtain setting information issued by a server, where the setting information includes a random function, a generation parameter, and original speed information;
a first determining module 20 for determining a speed parameter of the mobile unit based on the raw speed information;
a second determining module 30 for determining a steering parameter of the mobile unit according to the random function;
a generating module 40 for generating the mobile unit according to the generation parameters;
and a moving module 50 for controlling the moving unit to move according to the speed parameter and the steering parameter.
Optionally, the random function includes a random seed and a variation factor, and the second determining module is further configured to:
and generating a random value according to the random seed and the variation factor, and determining the steering parameter of the mobile unit according to the random value.
Optionally, the setting information further includes a turning angle range and a turning opportunity range of the mobile unit, and the second determining module is further configured to:
and determining the rotation angle of the mobile unit in the rotation angle range according to the random value, and determining the steering time of the mobile unit in the steering time range according to the random value.
Optionally, the moving module is further configured to:
and when the current time reaches the steering opportunity, controlling the mobile unit to move according to the speed parameter and the rotation angle.
Optionally, the setting information further includes screen parameters and a life cycle of the mobile unit, the original speed information includes an original moving speed and an original angular speed, and the first determining module is further configured to:
determining a simulated movement period of the mobile unit according to the original movement speed and the original angular speed, the steering parameter, and the screen parameter;
determining a real moving speed of the mobile unit according to the simulated moving period, the life cycle and the original moving speed;
determining a true angular velocity of the mobile unit from the simulated movement period, the life cycle, and the original angular velocity.
Optionally, the first determining module is further configured to:
simulating the moving process of the mobile unit according to the original speed information, the steering parameter and the screen parameter;
determining a simulated movement time of the movement process, determining a simulated movement period of the mobile unit based on the simulated movement time
Optionally, the second determining module is further configured to:
when a position change instruction issued by the server is received, updating the generation parameters of the mobile unit corresponding to the identification according to the mobile unit identification carried by the position change instruction and the new generation position, and taking the updated generation parameters as new generation parameters;
the generation module is further configured to:
generating the mobile unit according to the new generation parameters.
The present invention also provides a display apparatus of a mobile unit, the display apparatus of the mobile unit including: the display program of the mobile unit is executed by the processor to implement the steps of the display method of the mobile unit, and the method implemented when the display program of the mobile unit is executed by the processor may refer to each embodiment of the display method of the mobile unit of the present invention, and will not be described herein again.
The invention also provides a computer storage medium.
The computer storage medium of the present invention stores thereon a display program for a mobile unit, which when executed by a processor implements the steps of the display method for a mobile unit as described above.
The method implemented when the display program of the mobile unit running on the processor is executed may refer to various embodiments of the display method of the mobile unit of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for displaying a mobile unit, the method comprising:
acquiring setting information issued by a server, wherein the setting information comprises a random function, a generation parameter and original speed information of a mobile unit;
determining a speed parameter of the mobile unit according to the original speed information, and determining a steering parameter of the mobile unit according to the random function;
and generating the mobile unit according to the generation parameters, and controlling the mobile unit to move according to the speed parameters and the steering parameters.
2. The display method of claim 1, wherein the random function includes a random seed and a variation factor, and wherein determining the steering parameter of the mobile unit based on the random function comprises:
and generating a random value according to the random seed and the variation factor, and determining the steering parameter of the mobile unit according to the random value.
3. The display method of a mobile unit according to claim 2, wherein the setting information further includes a turning angle range and a turning timing range of the mobile unit, and the step of determining the turning parameter of the mobile unit based on the random value includes:
and determining the rotation angle of the mobile unit in the rotation angle range according to the random value, and determining the steering time of the mobile unit in the steering time range according to the random value.
4. The method of displaying on a mobile unit of claim 3, wherein said step of controlling movement of said mobile unit based on said speed parameter and steering parameter comprises:
and when the current time reaches the steering opportunity, controlling the mobile unit to move according to the speed parameter and the rotation angle.
5. The display method of a mobile unit according to claim 1, wherein the setting information further includes a screen parameter and a life cycle of the mobile unit, the original speed information includes an original moving speed and an original angular speed, and the step of determining the speed parameter of the mobile unit according to the original speed information includes:
determining a simulated movement period of the mobile unit according to the original movement speed and the original angular speed, the steering parameter, and the screen parameter;
determining a real moving speed of the mobile unit according to the simulated moving period, the life cycle and the original moving speed;
determining a true angular velocity of the mobile unit from the simulated movement period, the life cycle, and the original angular velocity.
6. The display method of claim 5, wherein said step of determining a simulated movement cycle of said mobile unit based on said raw speed information, said steering parameter and said screen parameter comprises:
simulating the moving process of the mobile unit according to the original speed information, the steering parameter and the screen parameter;
and determining the simulated moving time of the moving process, and determining the simulated moving period of the mobile unit according to the simulated moving time.
7. The method of displaying of a mobile unit according to any of claims 1 to 6, wherein said step of generating said mobile unit according to said generation parameter is preceded by the further step of:
when a position change instruction issued by the server is received, updating the generation parameters of the mobile unit corresponding to the identification according to the mobile unit identification carried by the position change instruction and the new generation position, and taking the updated generation parameters as new generation parameters;
said step of generating said mobile unit in accordance with said generation parameters comprises:
generating the mobile unit according to the new generation parameters.
8. A display system for a mobile unit, the display system comprising:
the receiving module is used for acquiring setting information issued by a server, wherein the setting information comprises a random function, a generation parameter and original speed information;
a first determining module for determining a velocity parameter of the mobile unit based on the raw velocity information;
a second determining module for determining a steering parameter of the mobile unit according to the random function;
a generation module for generating the mobile unit according to the generation parameters;
and the moving module is used for controlling the moving unit to move according to the speed parameter and the steering parameter.
9. A display device of a mobile unit, characterized in that the display device of the mobile unit comprises: a memory, a processor, and a display program for a mobile unit stored on the memory and operable on the processor, wherein:
the display program of the mobile unit, when executed by the processor, implements the steps of the display method of the mobile unit according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a display program of a mobile unit, which when executed by a processor implements the steps of the display method of a mobile unit according to any one of claims 1 to 7.
CN202110353570.9A 2021-03-31 2021-03-31 Display method, system, device and computer storage medium for mobile unit Pending CN112973113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110353570.9A CN112973113A (en) 2021-03-31 2021-03-31 Display method, system, device and computer storage medium for mobile unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110353570.9A CN112973113A (en) 2021-03-31 2021-03-31 Display method, system, device and computer storage medium for mobile unit

Publications (1)

Publication Number Publication Date
CN112973113A true CN112973113A (en) 2021-06-18

Family

ID=76338772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110353570.9A Pending CN112973113A (en) 2021-03-31 2021-03-31 Display method, system, device and computer storage medium for mobile unit

Country Status (1)

Country Link
CN (1) CN112973113A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110065508A1 (en) * 2009-09-14 2011-03-17 Konami Digital Entertainment Co., Ltd Game device, control method for game device, and information storage medium
CN109587540A (en) * 2018-12-07 2019-04-05 武汉瓯越网视有限公司 A kind of control method of object, device, terminal and storage medium
CN109876438A (en) * 2019-02-20 2019-06-14 腾讯科技(深圳)有限公司 Method for displaying user interface, device, equipment and storage medium
CN110339563A (en) * 2019-07-09 2019-10-18 腾讯科技(深圳)有限公司 The generation method and device of virtual objects, storage medium and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110065508A1 (en) * 2009-09-14 2011-03-17 Konami Digital Entertainment Co., Ltd Game device, control method for game device, and information storage medium
CN109587540A (en) * 2018-12-07 2019-04-05 武汉瓯越网视有限公司 A kind of control method of object, device, terminal and storage medium
CN109876438A (en) * 2019-02-20 2019-06-14 腾讯科技(深圳)有限公司 Method for displaying user interface, device, equipment and storage medium
CN110339563A (en) * 2019-07-09 2019-10-18 腾讯科技(深圳)有限公司 The generation method and device of virtual objects, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US11376501B2 (en) Method and apparatus for displaying marker element in virtual scene, computer device, and computer-readable storage medium
CN109901894B (en) Progress bar image generation method and device and storage medium
CN103076880B (en) Method and the terminal of page turning is controlled during a kind of terminal browsing pages
CN107124416B (en) Multi-avatar position synchronization system, method, device, electronic device and storage medium
CN106780674B (en) Lens moving method and device
CN104703036B (en) A kind of method, apparatus and system of synchronized multimedia file playback progress
JP2009061277A (en) Input terminal emulator for gaming device
CN108771866B (en) Virtual object control method and device in virtual reality
JP2021511585A (en) Viewing angle adjustment methods and devices, storage media, and electronic devices
US20210042980A1 (en) Method and electronic device for displaying animation
CN105938629B (en) Information processing method and electronic equipment
CN112891943B (en) Lens processing method and device and readable storage medium
US6756984B1 (en) Object displaying method, a recording medium and game apparatus
US9134865B2 (en) Touch input system, touch input apparatus, storage medium and touch input control method, for displaying a locus of a line on a display by performing an input operation on an input terminal device
US20170153864A1 (en) Synchronization Object Determining Method, Apparatus, and System
CN112206515B (en) Game object state switching method, device, equipment and storage medium
CN113485626A (en) Intelligent display device, mobile terminal and display control method
CN110898430B (en) Sound source positioning method and device, storage medium and electronic device
CN113411684A (en) Video playing method and device, storage medium and electronic equipment
CN106919322B (en) Method and device for controlling virtual lens in game
CN111897437A (en) Cross-terminal interaction method and device, electronic equipment and storage medium
CN112973113A (en) Display method, system, device and computer storage medium for mobile unit
CN114849238B (en) Animation execution method, device, equipment and medium
CN115461707B (en) Video acquisition method, electronic device and storage medium
CN112565866B (en) Focus control method, system, device 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210618

RJ01 Rejection of invention patent application after publication