CN104933274B - A kind of fault-tolerance approach and device of rhythm sound and user's operation - Google Patents

A kind of fault-tolerance approach and device of rhythm sound and user's operation Download PDF

Info

Publication number
CN104933274B
CN104933274B CN201410098901.9A CN201410098901A CN104933274B CN 104933274 B CN104933274 B CN 104933274B CN 201410098901 A CN201410098901 A CN 201410098901A CN 104933274 B CN104933274 B CN 104933274B
Authority
CN
China
Prior art keywords
outpost
generated
tax office
rhythm sound
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410098901.9A
Other languages
Chinese (zh)
Other versions
CN104933274A (en
Inventor
王斌辅
魏旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410098901.9A priority Critical patent/CN104933274B/en
Priority to PCT/CN2015/074282 priority patent/WO2015139588A1/en
Publication of CN104933274A publication Critical patent/CN104933274A/en
Application granted granted Critical
Publication of CN104933274B publication Critical patent/CN104933274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • 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/54Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
    • 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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The invention discloses the fault-tolerance approaches and device of a kind of rhythm sound and user's operation, belong to Internet technical field.The method includes:Obtain the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated;Obtain the speed that user role currently moves;According to the corresponding rhythm sound reproduction time of the outpost of the tax office object to be generated and the speed that ought be advanced to, the generated time of the outpost of the tax office object to be generated is determined;The outpost of the tax office object to be generated is generated in the generated time of the determination, so that the user role, which reaches when the outpost of the tax office object to be generated executes user's operation, plays the corresponding rhythm sound of the outpost of the tax office object to be generated.Described device includes:First acquisition module, the second acquisition module, determining module and generation module.The present invention can be when user role be by outpost of the tax office object to be generated, the corresponding rhythm sound of outpost of the tax office object to be generated that makes terminal plays background music file include.

Description

A kind of fault-tolerance approach and device of rhythm sound and user's operation
Technical field
The present invention relates to Internet technical field, more particularly to the fault-tolerance approach and dress of a kind of rhythm sound and user's operation It sets.
Background technology
In order to enrich the free life of user, occurs many entertainment-oriented service at present, user can be transported by terminal These entertainment-oriented services go to bring enjoyment to oneself.For example, the cruel race class game currently occurred is exactly a kind of entertainment-oriented service, When user's running game, terminal is drawn and is shown the map of game, user role and generates outpost of the tax office obstacle on this map The outposts of the tax office such as object or outpost of the tax office gleanings object, while playing background music.User can operate the user role and move on this map Dynamic, when user role reaches some outpost of the tax office object, user executes user's operation to the outpost of the tax office object, while terminal plays are default Rhythm sound, so to realize rhythm matching.For example, being outpost of the tax office barrier, user when user role reaches some outpost of the tax office object Skip operation is executed with by the outpost of the tax office barrier, while the rhythm sound of terminal plays " touching ".
Wherein, in design games, designer determines each outpost of the tax office object that game includes on this map first Then position is controlled user role and is moved on this map with pre-set velocity, obtained user role and reach each outpost of the tax office object The time of position, the time that will reach the position of each outpost of the tax office object play as the corresponding rhythm sound of each outpost of the tax office object Time finally generates the music file for playing background music according to the corresponding rhythm sound reproduction time of each outpost of the tax office object. So when user's running game, terminal generates outpost of the tax office object according to the position of each outpost of the tax office object on map, and according to The music file plays background music.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
The speed of user's control user role movement may be different from pre-set velocity, and user role is caused to reach certain outpost of the tax office object The time of part rhythm sound reproduction time corresponding from the outpost of the tax office object is different, to be broadcast when user role reaches the outpost of the tax office object The background music put not is rhythm sound, and rhythm is caused to mismatch.
Invention content
In order to when user role reaches outpost of the tax office object to be generated, make what terminal plays background music file included to wait for The corresponding rhythm sound of outpost of the tax office object of generation, the present invention provides the fault-tolerance approaches and device of a kind of rhythm sound and user's operation. The technical solution is as follows:
A kind of fault-tolerance approach of rhythm sound and user's operation, the method includes:
Obtain the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated;
Obtain the speed that user role currently moves;
According to the corresponding rhythm sound reproduction time of the outpost of the tax office object to be generated and the speed currently moved, determine The generated time of the outpost of the tax office object to be generated;
The outpost of the tax office object to be generated is generated in the generated time of the determination, so that described in user role arrival Outpost of the tax office object to be generated plays the corresponding rhythm sound of the outpost of the tax office object to be generated when executing user's operation.
A kind of fault tolerance facility of rhythm sound and user's operation, described device include:
First acquisition module, for obtaining the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated;
Second acquisition module, the speed currently moved for obtaining user role;
Determining module, for according to the corresponding rhythm sound reproduction time of the outpost of the tax office object to be generated and it is described when Forward Dynamic speed determines the generated time of the outpost of the tax office object to be generated;
Generation module, for generating the outpost of the tax office object to be generated in the generated time of the determination, so that the use Family role reaches when the outpost of the tax office object to be generated executes user's operation and plays the object corresponding section in the outpost of the tax office to be generated Play sound.
In embodiments of the present invention, the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated is obtained;Obtain user angle The speed that color currently moves;According to be generated speed outpost of the tax office object corresponding rhythm sound reproduction time and currently moved, really The generated time of fixed outpost of the tax office object to be generated;Outpost of the tax office object to be generated is generated in determining generated time, so that user angle Color reaches when outpost of the tax office object to be generated executes user's operation and plays the corresponding rhythm sound of outpost of the tax office object to be generated.Due to basis Speed that the corresponding rhythm sound reproduction time of outpost of the tax office object and user role currently move determines outpost of the tax office object to be generated Generated time, when ensuring that user role reaches outpost of the tax office object to be generated, terminal plays background music file includes The corresponding rhythm sound of outpost of the tax office object to be generated.
Description of the drawings
Fig. 1 is the fault-tolerance approach flow chart of a kind of rhythm sound and user's operation that the embodiment of the present invention 1 provides;
Fig. 2-1 is the fault-tolerance approach flow chart of a kind of rhythm sound and user's operation that the embodiment of the present invention 2 provides;
Fig. 2-2 is the first boundary of one kind schematic diagram that the embodiment of the present invention 2 provides;
Fig. 2-3 is a kind of display window schematic diagram that the embodiment of the present invention 2 provides;
Fig. 3 is the fault tolerance facility structural schematic diagram of a kind of rhythm sound and user's operation that the embodiment of the present invention 3 provides.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment 1
Referring to Fig. 1, an embodiment of the present invention provides a kind of fault-tolerance approaches of rhythm sound and user's operation, including:
Step 101:Obtain the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated;
Step 102:Obtain the speed that user role currently moves;
Step 103:According to be generated speed outpost of the tax office object corresponding rhythm sound reproduction time and currently moved, determine The generated time of outpost of the tax office object to be generated;
Step 104:Outpost of the tax office object to be generated is generated in determining generated time so that user role reach it is to be generated Outpost of the tax office object plays the corresponding rhythm sound of outpost of the tax office object to be generated when executing user's operation.
Preferably, the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated is obtained, including:
From the object file of the outpost of the tax office, the corresponding rhythm sound reproduction time of outpost of the tax office object not generated, the outpost of the tax office object are searched File includes the corresponding rhythm sound reproduction time of outpost of the tax office object and configuration information;
From the rhythm sound reproduction time of lookup, when obtaining the broadcasting of the rhythm sound of the time difference minimum between current time Between;
The rhythm sound reproduction time of acquisition is determined as the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated.
Preferably, according to the rhythm sound reproduction time of acquisition and the speed currently moved, outpost of the tax office object to be generated is determined Generated time, including:
The speed according to current time and currently moved, determines whether user role is corresponding in outpost of the tax office object to be generated Outpost of the tax office object to be generated is reached when rhythm sound reproduction time;
If it is, current time to be determined as to the generated time of outpost of the tax office object to be generated.
Preferably, whether the speed moved according to current time and currently determines user role in outpost of the tax office object to be generated Outpost of the tax office object to be generated is reached when the corresponding rhythm sound reproduction time of part, including:
Obtain first position and first boundary second in the map of business of the user role in the map of business Set, the first boundary be terminal display window in user role the corresponding boundary of moving direction;
According to first position, the second position, current time and the speed currently moved, calculates user role and reach second The time set;
Compare time and the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated that user role reaches the second position, If the two is identical, it is determined that user role reaches to be generated in the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated Outpost of the tax office object.
Preferably, outpost of the tax office object to be generated is generated in determining generated time, including:
According to object corresponding rhythm sound reproduction time in the outpost of the tax office to be generated, obtained from the object file of the outpost of the tax office to be generated The configuration information of outpost of the tax office object;
According to the configuration information of acquisition, outpost of the tax office object to be generated is generated in the second place in determining generated time.
In embodiments of the present invention, the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated is obtained;Obtain user angle The speed that color currently moves;According to be generated speed outpost of the tax office object corresponding rhythm sound reproduction time and currently moved, really The generated time of fixed outpost of the tax office object to be generated;Outpost of the tax office object to be generated is generated in determining generated time, so that user angle Color reaches when outpost of the tax office object to be generated executes user's operation and plays the corresponding rhythm sound of outpost of the tax office object to be generated.Due to basis Speed that the corresponding rhythm sound reproduction time of outpost of the tax office object and user role currently move determines outpost of the tax office object to be generated Generated time, when ensuring that user role by outpost of the tax office object to be generated, in mobile terminal playing background music file Including the corresponding rhythm sound of outpost of the tax office object to be generated.
Embodiment 2
An embodiment of the present invention provides a kind of fault-tolerance approaches of rhythm sound and user's operation.Wherein, the embodiment of the present invention can , can be while user execute user's operation by this method in entertainment-oriented service to be applied to entertainment-oriented service, terminal Play rhythm sound.
Game is a kind of entertainment-oriented service, is illustrated by taking game as an example in embodiments of the present invention, other recreational industry The same game of business, just do not introduce one by one.The user role of user's control oneself moves on map, when user role reaches certain A outpost of the tax office object simultaneously executes correspondingly user's operation, while terminal plays rhythm sound to the outpost of the tax office object.
Outpost of the tax office object includes outpost of the tax office barrier and outpost of the tax office gleanings, can be to jump to the user's operation that outpost of the tax office barrier executes Jump operation, user role can skip the outpost of the tax office barrier when executing skip operation;The user's operation executed to outpost of the tax office gleanings can Think collection operation, outpost of the tax office gleanings can be collected by executing user role when collecting operation.Rhythm sound can be stress drumbeat or Preset note.
Referring to Fig. 2-1, this method includes:
Step 201:The outpost of the tax office object file of game is obtained, which includes at least each pass in the game The corresponding rhythm sound reproduction time of card object, configuration information and state;
Specifically, when user starts game in terminal, terminal obtains this step from the game data packet being locally stored Take the outpost of the tax office object file of game.
Game data packet includes at least outpost of the tax office object file, game map file and background music file etc..Background music File includes the corresponding rhythm sound of each outpost of the tax office object in the game.
When user starts game in terminal, terminal is drawn according to the map file of game and show the map of game with User role, while playing background music file.User can operate the user role and make the user role on the ground of game It is moved on figure.During the user role moves, terminal can generate the outpost of the tax office on the map of game as follows Object, and when the user role reaches the outpost of the tax office object, the outpost of the tax office object pair that terminal plays background music file includes The rhythm sound answered.
In the object file of the outpost of the tax office, object corresponding state in the outpost of the tax office is for identifying whether outpost of the tax office object has generated, Mei Geguan The original state of card object is all " not generating ".During after game startup and operation, when terminal generates some outpost of the tax office object When part, which is updated to " generation " by terminal in the object file of the outpost of the tax office.
For example, when user starts game A in terminal, terminal obtains game from the game data packet F1 being locally stored The outpost of the tax office object file of A, when which plays including at least the corresponding rhythm sound of each outpost of the tax office object in game A Between, configuration information and state, as shown in table 1.
Table 1
Rhythm sound reproduction time Configuration information State
00:10 S0 It does not generate
00:15 S1 It does not generate
…… …… ……
Wherein, after terminal obtains the outpost of the tax office object file played, the operation of 202-207 as follows is needed to determine The generated time of outpost of the tax office object to be generated, and outpost of the tax office object to be generated is generated in determining generated time, so that user angle When color is by outpost of the tax office object to be generated, object corresponding section in the outpost of the tax office to be generated that terminal plays background music file includes Play sound.
Step 202:From the outpost of the tax office object file of acquisition, when obtaining the corresponding rhythm sound of outpost of the tax office object to be generated and playing Between;
Specifically, from the outpost of the tax office object file of acquisition, search the stateful outpost of the tax office object for " not generating " it is corresponding Rhythm sound reproduction time calculates the time difference between each rhythm sound reproduction time of lookup and current time, obtains calculating The rhythm sound reproduction time is determined as object corresponding rhythm in the outpost of the tax office to be generated by the rhythm sound reproduction time of time difference minimum Sound reproduction time.
For example, from object file in the outpost of the tax office shown in table 1, the corresponding rhythm of outpost of the tax office object that state is " not generating " is searched Sound reproduction time.Calculate the time difference between each rhythm sound reproduction time searched and current time, it is assumed that the rhythm of lookup Sound reproduction time is 00:10 and 00:15, current time 00:05, then rhythm sound reproduction time 00:10 with current time 00:05 Between time difference be 5, rhythm sound reproduction time 00:15 with current time 00:Time difference between 05 is 10.Obtain calculating The rhythm sound reproduction time 00 of time difference minimum:10, by the rhythm sound reproduction time 00:10 are determined as outpost of the tax office object to be generated Corresponding rhythm sound reproduction time.
Step 203:Obtain the speed that user role currently moves;
Wherein, user role has Speed attribute, is recorded during when user's operation is played, user role is according to Speed attribute Speed moved on the map of game.When user increases the speed of user role, the speed category of terminal modifications user role Property, it is the speed after increasing to make the speed that the Speed attribute of user role records.When user reduces the speed of user role, eventually The Speed attribute of end modification user role, the speed after making the speed that the Speed attribute of user role records reduce.
The speed of acquisition is determined as user by this step specifically, the speed that the Speed attribute for obtaining user role records The speed that role currently moves.
For example, obtaining the speed 2cm/s of the Speed attribute record of user role, the speed 2cm/s of acquisition is determined as using The speed that family role currently moves.
Step 204:First position and first boundary of the user role in the map of game are obtained in the map of game The second position;
First boundary be terminal display window in user role the corresponding boundary of moving direction.Referring to Fig. 2-2, it is assumed that To the right for level, then the right side boundary of the display window of terminal is the moving direction pair of user role to the moving direction of user role The boundary answered, i.e. the first boundary are the right side boundary of the display window of terminal.Obtain the of user role in the map of game The second position of one position and right side boundary in the map of game, it is assumed that the first position of acquisition is in the map of game At 5cm, the second position is at the 15cm in the map of game.
Step 205:According to first position, the second position, current time and the speed currently moved, calculates user role and arrive Up to the time of the second position;
Wherein, outpost of the tax office object is generated at the position where the first boundary of the display window of terminal, i.e., second It is generated at position, so the time that calculated user role reaches the second position, which is user role, reaches outpost of the tax office object to be generated The time of part.
This step specifically, according to first position and the second position, calculate between first position and the second position away from From.According to the present speed of the distance of calculating and user role, the duration used in the user role arrival second position is calculated.Root According to the duration of current time and calculating, the time that user role reaches the second position is calculated.
For example, according to first position 5cm and second position 15cm, calculate first position 5cm and second position 15cm it Between distance be 10cm.According to the present speed 2cm/s of the distance 10cm of calculating and user role, user role arrival is calculated When a length of 5s at the 15cm of the second position.According to current time 00:05 and calculate duration 5s, calculate user role and arrive It is 00 up to the time at the 15cm of the second position:10.
Step 206:Compare time and the corresponding rhythm sound of outpost of the tax office object to be generated that user role reaches the second position Reproduction time, if the two is identical, it is determined that go out user role in object corresponding rhythm sound reproduction time in the outpost of the tax office to be generated When reach outpost of the tax office object to be generated;
Specifically, the time and the corresponding rhythm sound of outpost of the tax office object to be generated for comparing the user role arrival second position are broadcast The time is put, if the two is identical, it is determined that go out user role in the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated Outpost of the tax office object to be generated is reached, step 207 is executed;If the two differs, it is determined that going out user role cannot be to be generated Outpost of the tax office object corresponding rhythm sound reproduction time when reach outpost of the tax office object to be generated, then jump back to step 203, and in step 203 start to execute.
For example, comparing user role reaches time 00 at the 15cm of the second position:10 and outpost of the tax office object to be generated correspond to Rhythm sound reproduction time 00:10, and both compare identical, determine that user role is corresponding in outpost of the tax office object to be generated Rhythm sound reproduction time 00:Outpost of the tax office object to be generated is reached when 10.
Step 207:Current time is determined as to the generated time of outpost of the tax office object to be generated, and in determining generated time Generate outpost of the tax office object to be generated.
Specifically, current time is determined as to the generated time of outpost of the tax office object to be generated.According to outpost of the tax office object to be generated The rhythm sound reproduction time of part obtains the configuration information of corresponding outpost of the tax office object to be generated from the object file of the outpost of the tax office, according to The configuration information of acquisition generates outpost of the tax office object to be generated in the second place in determining generated time in current time.
Further, in the object file of the outpost of the tax office, also the state of outpost of the tax office object to be generated is updated to " generation ".
For example, by current time 00:05 is determined as the generated time of outpost of the tax office object to be generated.According to the outpost of the tax office to be generated The rhythm sound reproduction time 00 of object:10, corresponding outpost of the tax office object to be generated is obtained from object file in the outpost of the tax office as shown in Table 1 The configuration information S0 of part, according to the configuration information S0 of acquisition, in determining generated time, i.e. current time 00:05, in second Set the outpost of the tax office object that generation is to be generated at 15cm.
Further, as shown in table 2, in the object file of the outpost of the tax office, also the state of outpost of the tax office object to be generated is updated to " generation ".
Table 2
Rhythm sound reproduction time Configuration information State
00:10 S0 It has generated
00:15 S1 It does not generate
…… …… ……
Wherein, it after outpost of the tax office object file to be generated being generated in determining generated time, then jumps back under step 202 determination The generated time of one outpost of the tax office object to be generated.So make user role reach time of outpost of the tax office object to be generated with it is to be generated At the corresponding rhythm sound reproduction time of outpost of the tax office object it is identical, when thereby using family role by outpost of the tax office object to be generated, move The corresponding rhythm sound of outpost of the tax office object to be generated that dynamic terminal plays background music file includes.
Wherein, in embodiments of the present invention, for the outpost of the tax office object shown in current display window, due in current window User generally seldom changes the speed of user role movement in mouthful, so shown in user role reaches current display window When the object of the outpost of the tax office, terminal starts to play rhythm sound.If user user in current window changes the speed of user role movement Degree so that when to the outpost of the tax office object shown in excessively current display window, terminal played rhythm sound or from broadcasting user role Rhythm sound also poor a period of time, only cause in this case the user's operation that user executes outpost of the tax office object with rhythm sound not Matching, but not the outpost of the tax office object that other are not generated is had an impact.
For example, as Figure 2-3, in current display window, outpost of the tax office object 1 and 2 has been displayed, closed when user role reaches When card object 1, user makes user role skip outpost of the tax office object 1 to executing skip operation.After skipping outpost of the tax office object 1, user The speed for having slowed down user role movement, it is corresponding to played outpost of the tax office object 2 for terminal when user role being caused to reach outpost of the tax office object 2 Rhythm sound.For the outpost of the tax office object 3,4 and 5 etc. not generated, due to being all root in fault-tolerant 3,4 and 5 of rhythm sound and user's operation The speed moved in real time according to user role is come what is generated, so that user angle is when reaching outpost of the tax office object 3,4 and 5, terminal is broadcast Put the corresponding rhythm in outpost of the tax office object 3,4 and 5.
Therefore the corresponding rhythm sound of the outpost of the tax office object has just been played when user role reaches the outpost of the tax office object not yet.But The embodiment of the present invention according to the rhythm sound reproduction time of the current movement speed of user role and outpost of the tax office object to be generated come It determines the generated time of outpost of the tax office object to be generated and generates outpost of the tax office object to be generated in the generated time, to ensure that use Abnormal operation of the family role in current display window does not interfere with the outpost of the tax office object not yet generated.
In embodiments of the present invention, the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated is obtained;Obtain user angle The speed that color currently moves;According to be generated speed outpost of the tax office object corresponding rhythm sound reproduction time and currently moved, really The generated time of fixed outpost of the tax office object to be generated;Outpost of the tax office object to be generated is generated in determining generated time, so that user angle Color reaches when outpost of the tax office object to be generated executes user's operation and plays the corresponding rhythm sound of outpost of the tax office object to be generated.Due to basis Speed that the corresponding rhythm sound reproduction time of outpost of the tax office object and user role currently move determines outpost of the tax office object to be generated Generated time, when ensuring that user role reaches outpost of the tax office object to be generated, terminal plays background music file includes The corresponding rhythm sound of outpost of the tax office object to be generated.
Embodiment 3
Referring to Fig. 3, an embodiment of the present invention provides a kind of fault tolerance facilities of rhythm sound and user's operation, including:
First acquisition module 301, for obtaining the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated;
Second acquisition module 302, the speed currently moved for obtaining user role;
Determining module 303, for moving according to object corresponding rhythm sound reproduction time in the outpost of the tax office to be generated and currently Speed determines the generated time of outpost of the tax office object to be generated;
Generation module 304, for generating outpost of the tax office object to be generated in determining generated time, so that user role reaches Outpost of the tax office object to be generated plays the corresponding rhythm sound of outpost of the tax office object to be generated when executing user's operation.
Wherein, the first acquisition module 301 includes:
Searching unit, when being played for from the object file of the outpost of the tax office, searching the corresponding rhythm sound of the outpost of the tax office object not generated Between, outpost of the tax office object file includes the corresponding rhythm sound reproduction time of outpost of the tax office object and configuration information;
First acquisition unit, for from the rhythm sound reproduction time of lookup, obtaining the time difference between current time Minimum rhythm sound reproduction time;
First determination unit, for the rhythm sound reproduction time of acquisition to be determined as to object corresponding section in the outpost of the tax office to be generated Play sound reproduction time.
Wherein it is determined that module 303 includes:
Whether the second determination unit, the speed for according to current time and currently moving, determine user role to be generated At outpost of the tax office object corresponding rhythm sound reproduction time when reach outpost of the tax office object to be generated;
Third determination unit, the generated time for current time to be determined as to outpost of the tax office object to be generated.
Wherein, the second determination unit includes:
Subelement is obtained, for obtaining first position and first boundary of the user role in the map of business in business The second position in map, the first boundary be terminal display window in user role the corresponding boundary of moving direction;
Computation subunit, for according to first position, the second position, current time and the speed currently moved, calculating and using Family role reaches the time of the second position;
Comparing subunit, the time and outpost of the tax office object to be generated for comparing the user role arrival second position are corresponding Rhythm sound reproduction time, if the two is identical, it is determined that user role is played in object corresponding rhythm sound in the outpost of the tax office to be generated Outpost of the tax office object to be generated is reached when the time.
Wherein, generation module 304 includes:
Second acquisition unit is used for according to object corresponding rhythm sound reproduction time in the outpost of the tax office to be generated, from outpost of the tax office object The configuration information of outpost of the tax office object to be generated is obtained in file;
Generation unit, it is to be generated in second place generation in determining generated time for the configuration information according to acquisition At outpost of the tax office object.
In embodiments of the present invention, the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated is obtained;Obtain user angle The speed that color currently moves;According to be generated speed outpost of the tax office object corresponding rhythm sound reproduction time and currently moved, really The generated time of fixed outpost of the tax office object to be generated;Outpost of the tax office object to be generated is generated in determining generated time, so that user angle Color reaches when outpost of the tax office object to be generated executes user's operation and plays the corresponding rhythm sound of outpost of the tax office object to be generated.Due to basis Speed that the corresponding rhythm sound reproduction time of outpost of the tax office object and user role currently move determines outpost of the tax office object to be generated Generated time, when ensuring that user role reaches outpost of the tax office object to be generated, terminal plays background music file includes The corresponding rhythm sound of outpost of the tax office object to be generated.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of fault-tolerance approach of rhythm sound and user's operation, which is characterized in that the method includes:
Obtain the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated;
Obtain the speed that user role currently moves;
According to the corresponding rhythm sound reproduction time of the outpost of the tax office object to be generated and the speed currently moved, determine described in The generated time of outpost of the tax office object to be generated;
The outpost of the tax office object to be generated is generated in the generated time of the determination, so that user role arrival is described to be generated At outpost of the tax office object execute user's operation when play the corresponding rhythm sound of the outpost of the tax office object to be generated.
2. the method as described in claim 1, which is characterized in that acquisition object corresponding rhythm sound in the outpost of the tax office to be generated is broadcast It puts the time, including:
From the object file of the outpost of the tax office, the corresponding rhythm sound reproduction time of outpost of the tax office object not generated, the outpost of the tax office object text are searched Part includes the corresponding rhythm sound reproduction time of outpost of the tax office object and configuration information;
From the rhythm sound reproduction time of the lookup, when obtaining the broadcasting of the rhythm sound of the time difference minimum between current time Between;
The rhythm sound reproduction time of the acquisition is determined as the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated.
3. the method as described in claim 1, which is characterized in that the rhythm sound reproduction time according to the acquisition and described The speed currently moved determines the generated time of the outpost of the tax office object to be generated, including:
According to the current time and the speed currently moved, determine the user role whether in the pass to be generated The position of the outpost of the tax office object to be generated is reached when the corresponding rhythm sound reproduction time of card object;
If it is, the current time to be determined as to the generated time of the outpost of the tax office object to be generated.
4. method as claimed in claim 3, which is characterized in that described according to the current time and the speed currently moved Degree, determines the user role waits for described in whether being reached in the corresponding rhythm sound reproduction time of the outpost of the tax office object to be generated The position of the outpost of the tax office object of generation, including:
Obtain of first position and first boundary of the user role in the map of business in the map of the business Two positions, first boundary are the corresponding boundary of moving direction of user role described in the display window of terminal;
According to the first position, the second position, the current time and the speed currently moved, the use is calculated Family role reaches the time of the second position;
Compare time and the corresponding rhythm sound of the outpost of the tax office object to be generated that the user role reaches the second position Reproduction time, if the two is identical, it is determined that the user role is broadcast in the corresponding rhythm sound of the outpost of the tax office object to be generated The position of the outpost of the tax office object to be generated is reached when putting the time.
5. method as claimed in claim 4, which is characterized in that the generated time in the determination generates described to be generated Outpost of the tax office object, including:
According to the corresponding rhythm sound reproduction time of the outpost of the tax office object to be generated, from the outpost of the tax office object file described in acquisition The configuration information of outpost of the tax office object to be generated;
It is described to be generated in second place generation in the generated time of the determination according to the configuration information of the acquisition Outpost of the tax office object.
6. a kind of fault tolerance facility of rhythm sound and user's operation, which is characterized in that described device includes:
First acquisition module, for obtaining the corresponding rhythm sound reproduction time of outpost of the tax office object to be generated;
Second acquisition module, the speed currently moved for obtaining user role;
Determining module, for described moving according to the outpost of the tax office object to be generated corresponding rhythm sound reproduction time and currently Speed determines the generated time of the outpost of the tax office object to be generated;
Generation module, for generating the outpost of the tax office object to be generated in the generated time of the determination, so that the user angle Color reaches when the outpost of the tax office object to be generated executes user's operation and plays the corresponding rhythm sound of the outpost of the tax office object to be generated.
7. device as claimed in claim 6, which is characterized in that first acquisition module includes:
Searching unit, for from the object file of the outpost of the tax office, searching the corresponding rhythm sound reproduction time of outpost of the tax office object not generated, institute It includes the corresponding rhythm sound reproduction time of outpost of the tax office object and configuration information to state outpost of the tax office object file;
First acquisition unit, for from the rhythm sound reproduction time of the lookup, obtaining the time difference between current time Minimum rhythm sound reproduction time;
First determination unit, for the rhythm sound reproduction time of the acquisition to be determined as to object corresponding section in the outpost of the tax office to be generated Play sound reproduction time.
8. device as claimed in claim 6, which is characterized in that the determining module includes:
Second determination unit, for according to the current time and the speed currently moved, determining that the user role is The no position that the outpost of the tax office object to be generated is reached in the corresponding rhythm sound reproduction time of the outpost of the tax office object to be generated;
Third determination unit, the generated time for the current time to be determined as to the outpost of the tax office object to be generated.
9. device as claimed in claim 8, which is characterized in that second determination unit includes:
Subelement is obtained, for obtaining first position and first boundary of the user role in the map of business in the industry The second position in the map of business, first boundary are that the moving direction of user role described in the display window of terminal corresponds to Boundary;
Computation subunit, for described moving according to the first position, the second position, the current time and currently Speed calculates the time that the user role reaches the second position;
Comparing subunit reaches the time of the second position and the outpost of the tax office object to be generated for the user role The corresponding rhythm sound reproduction time of part, if the two is identical, it is determined that the user role is in the outpost of the tax office object to be generated The position of the outpost of the tax office object to be generated is reached when corresponding rhythm sound reproduction time.
10. device as claimed in claim 9, which is characterized in that the generation module includes:
Second acquisition unit is used for according to the corresponding rhythm sound reproduction time of the outpost of the tax office object to be generated, from the outpost of the tax office The configuration information of the outpost of the tax office object to be generated is obtained in object file;
Generation unit, for according to the configuration information of the acquisition, the determination generated time in the second place Generate the outpost of the tax office object to be generated.
CN201410098901.9A 2014-03-17 2014-03-17 A kind of fault-tolerance approach and device of rhythm sound and user's operation Active CN104933274B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410098901.9A CN104933274B (en) 2014-03-17 2014-03-17 A kind of fault-tolerance approach and device of rhythm sound and user's operation
PCT/CN2015/074282 WO2015139588A1 (en) 2014-03-17 2015-03-16 Fault tolerant method and apparatus for tempo sound and user operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410098901.9A CN104933274B (en) 2014-03-17 2014-03-17 A kind of fault-tolerance approach and device of rhythm sound and user's operation

Publications (2)

Publication Number Publication Date
CN104933274A CN104933274A (en) 2015-09-23
CN104933274B true CN104933274B (en) 2018-11-09

Family

ID=54120440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410098901.9A Active CN104933274B (en) 2014-03-17 2014-03-17 A kind of fault-tolerance approach and device of rhythm sound and user's operation

Country Status (2)

Country Link
CN (1) CN104933274B (en)
WO (1) WO2015139588A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106267818B (en) * 2016-08-03 2019-10-18 北京蜜柚时尚科技有限公司 A kind of method and device of dynamic adjustment Obstacle Position

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497447A (en) * 2011-12-26 2012-06-13 北京像素软件科技股份有限公司 Multi-user synchronization method of acousto-optic effect of network game scene level

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7297864B2 (en) * 2004-01-20 2007-11-20 Ssd Company Limited Image signal generating apparatus, an image signal generating program and an image signal generating method
JP4451174B2 (en) * 2004-03-15 2010-04-14 セイコーインスツル株式会社 Electronic metronome and method for presenting electronic metronome tempo
JP4187748B2 (en) * 2006-03-23 2008-11-26 株式会社コナミデジタルエンタテインメント Image generating apparatus, image generating method, and program
JP5251927B2 (en) * 2010-06-21 2013-07-31 日産自動車株式会社 Moving distance detection device and moving distance detection method
CN103520918A (en) * 2012-07-04 2014-01-22 雅马哈株式会社 Music game device and music game method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497447A (en) * 2011-12-26 2012-06-13 北京像素软件科技股份有限公司 Multi-user synchronization method of acousto-optic effect of network game scene level

Also Published As

Publication number Publication date
CN104933274A (en) 2015-09-23
WO2015139588A1 (en) 2015-09-24

Similar Documents

Publication Publication Date Title
US10456679B2 (en) Display of system-level achievements with real-time updating
CN104123398B (en) A kind of information-pushing method and device
JP4607972B2 (en) Advertisement providing system, advertisement providing method, and program
CN103605656B (en) A kind of method, apparatus for recommending music and a kind of mobile terminal
US9278288B2 (en) Automatic generation of a game replay video
US11973819B1 (en) Image recommendations for thumbnails for online media items based on user activity
US20130030812A1 (en) Apparatus and method for generating emotion information, and function recommendation apparatus based on emotion information
WO2017177630A1 (en) Method and device for recommending personalized information
CN104715770B (en) A kind of method for playing music and device
WO2017166647A1 (en) Navigation information pushing method and device, and apparatus
CN105009071A (en) Review system
EP2933737A1 (en) Search recommendation method and device
CN105376588B (en) A kind of net cast method, apparatus and electronic equipment
US20150065251A1 (en) Player generated content management
WO2014008048A2 (en) Personalized dynamic content delivery system
David Fabricated world class: Global university league tables, status differentiation and myths of global competition
US10462508B2 (en) Method of recommending personal broadcasting contents
US20150186509A1 (en) Power-efficient music playlist identification
CN112328136A (en) Comment information display method, comment information display device, comment information display equipment and comment information storage medium
CN109618229A (en) Association playback method, device, server and the storage medium of audio-video
CN104537011B (en) Sing arrangement method and device
CN103019575B (en) A kind of mobile terminal and information processing method thereof
WO2010123264A3 (en) Online community post search method and apparatus based on interactions between online community users and computer readable storage medium storing program thereof
CN104933274B (en) A kind of fault-tolerance approach and device of rhythm sound and user's operation
CN109756628A (en) Method and device for playing function key sound effect and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant