CN109126134A - Game role moving method and device and electronic equipment - Google Patents

Game role moving method and device and electronic equipment Download PDF

Info

Publication number
CN109126134A
CN109126134A CN201811153417.6A CN201811153417A CN109126134A CN 109126134 A CN109126134 A CN 109126134A CN 201811153417 A CN201811153417 A CN 201811153417A CN 109126134 A CN109126134 A CN 109126134A
Authority
CN
China
Prior art keywords
game role
barrier
game
angle
role
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
CN201811153417.6A
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.)
Super Magic Cube Beijing Technology Co ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201811153417.6A priority Critical patent/CN109126134A/en
Publication of CN109126134A publication Critical patent/CN109126134A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a method and a device for moving a game role, electronic equipment and a storage medium, relates to the technical field of games, and aims to solve the problem that the game role slows down or stops after being attached to a wall or being in contact with other obstacles, so that the experience of a player is influenced. The game character moving method comprises the following steps: detecting whether a game character contacts an obstacle, wherein the game character moves in a first direction, the game character has a first speed value, the first direction is controlled by a user, and the first direction is used for representing the moving direction of the game character or the moving direction of the game character; and if the game character contacts the obstacle, adjusting the moving direction of the game character to be a second direction so that the game character moves according to the second direction and the first speed value, wherein the second direction is parallel to the contact surface of the obstacle.

Description

Moving method, device and the electronic equipment of game role
Technical field
The present invention relates to game technical field more particularly to a kind of moving method of game role, device, electronic equipment and Storage medium.
Background technique
The fast development of the terminals such as computer, mobile phone, tablet computer so that game industry is gradually risen, play game also gradually at For a kind of mode of people's amusement and recreation.Game currently on the market in the course of battle game role patch wall walk or and other It can slow down or stop after bar contact, influence the experience of player.Inventor has found the problem occur in the course of the research The reason is that, the game role velocity component perpendicular with wall or other barriers becomes zero after being hindered, lead to game angle Color bulk velocity, which reduces, even to be become zero, however in game course of battle, fight atmosphere is very dense and nervous, game role Movement speed reduces the action edge that can slow down player, drags the rhythm of slow player, reduces the game experiencing of player.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of moving method of game role for being able to ascend player experience, dress It sets, electronic equipment and storage medium.
In a first aspect, the embodiment of the present invention provides a kind of moving method of game role, comprising:
Whether detection game role contacts barrier;Wherein, the game role is moved along first direction, the game angle Color has first speed value, and for the first direction by user's control, the first direction is mobile for characterizing the game role Direction or the direction that will move of the game role;
If the game role contacts the barrier, the moving direction of the game role is adjusted to second party To;So that the game role is according to the second direction and mobile according to the first speed value, wherein the second direction It is parallel with the contact surface of the barrier.
With reference to first aspect, in a kind of embodiment of first aspect, if the game role contacts the barrier Hinder object, then the moving direction of the game role be adjusted to second direction, comprising:
Determine the angle of the contact surface of the first direction and the barrier;Wherein, described in the game role is used as The origin of first direction;
According to the angle, the moving direction of the game role is adjusted to the second direction.
With reference to first aspect, described according to the angle in the another embodiment of first aspect, by the game The moving direction of role is adjusted to the second direction, comprising:
If the angle is not equal to 90 degree, the moving direction of the game role is adjusted to the second direction;So that The angle that the second direction, the origin and the first direction are formed is acute angle;Wherein, the game role conduct The origin of the second direction.
With reference to first aspect, described according to the angle in the another embodiment of first aspect, by the game The moving direction of role is adjusted to the second direction, comprising:
If the angle is equal to 90 degree, the moving direction of the game role is adjusted to the second direction;Wherein, institute It states second direction and rotates clockwise 90 degree by the first direction and obtain.
With reference to first aspect, in another embodiment of first aspect, whether the detection game role contacts barrier Hinder object, comprising:
If scene of game is divided into dry lattice;It wherein, include the game role and described in the scene of game Barrier, the game role account for the size of one or more grids, and the barrier is occupied in the position of one or more grids It sets;
Obtain the first grid that the game role will be moved to;
Judge whether first grid is be overlapped with grid occupied by the barrier;
If overlapping, it is determined that the game role contacts the barrier.
Second aspect, the embodiment of the present invention provide a kind of mobile device of game role, comprising:
Detection module, for detecting whether game role contacts barrier;Wherein, the game role is moved along first direction Dynamic, the game role has first speed value, and for the first direction by user's control, the first direction is described for characterizing The direction that the mobile direction of game role or the game role will move;
Module is adjusted, if the barrier is contacted for the game role, by the moving direction of the game role It is adjusted to second direction;So that the game role is according to the second direction and mobile according to the first speed value, wherein The second direction is parallel with the contact surface of the barrier.
In conjunction with second aspect, in a kind of embodiment of second aspect, the adjustment module, comprising:
First determines submodule, the angle of the contact surface for determining the first direction and the barrier;Wherein, institute State origin of the game role as the first direction;
Adjusting submodule, for according to the angle, the moving direction of the game role to be adjusted to the second party To.
In conjunction with second aspect, in the another embodiment of second aspect, the adjusting submodule, comprising:
First angle adjusting submodule, if being not equal to 90 degree for the angle, by the moving direction of the game role It is adjusted to the second direction;So that the angle that the second direction, the origin and the first direction are formed is sharp Angle;Wherein, origin of the game role as the second direction.
In conjunction with second aspect, in the another embodiment of second aspect, the adjusting submodule, comprising:
Second angle adjusting submodule, if being equal to 90 degree for the angle, by the moving direction tune of the game role Whole is the second direction;Wherein, the second direction rotates clockwise 90 degree by the first direction and obtains.
In conjunction with second aspect, in another embodiment of second aspect, the detection module, comprising:
Submodule is divided, if for scene of game to be divided into dry lattice;It wherein, include the trip in the scene of game Play role and the barrier, the game role account for the size of one or more grids, and the barrier is occupied at one Or on the position of multiple grids;
Acquisition submodule, the first grid that will be moved to for obtaining the game role;
Judging submodule, for judging whether first grid is be overlapped with grid occupied by the barrier;
Second determines submodule, if for being overlapped, it is determined that the game role contacts the barrier.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: shell, processor, deposits Reservoir, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory setting On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing and can hold Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory The program answered, for executing aforementioned any method.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage Media storage has one or more program, and one or more of programs can be executed by one or more processor, with Realize aforementioned any method.
Moving method, device, electronic equipment and the storage medium of a kind of game role provided in an embodiment of the present invention, first Whether detection game role contacts barrier, wherein the game role is moved along first direction, the game role has the One velocity amplitude, the first direction by user's control, the first direction be used to characterize the mobile direction of the game role or The direction that the game role will move;If then the game role contacts the barrier, by the game role Moving direction be adjusted to second direction so that the game role is according to the second direction and according to the first speed value It is mobile, wherein the second direction is parallel with the contact surface of the barrier.In this way, game role touch barrier it Afterwards, the moving direction of game role is adjusted to the second direction parallel with barrier from original first direction and will not subtracted Speed (is equivalent to game role to disappear with the perpendicular velocity component of barrier, speed is all changed to the speed parallel with barrier Spend component direction), it is ensured that the action edge and rhythm of player enhances the game experiencing of player.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the moving method embodiment of game role of the invention;
Fig. 2 is the effect diagram using embodiment of the present invention method, wherein (a) is the first direction and barrier of game role Hinder the case where angle of the contact surface of object is not equal to 90 degree, is (b) contact surface of the first direction of game role and barrier The case where angle is equal to 90 degree;
Fig. 3 is the structure chart of the mobile device embodiment of game role of the invention;
Fig. 4 is the structural schematic diagram of electronic equipment one embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
On the one hand, the embodiment of the present invention provides a kind of moving method of game role, as shown in Figure 1, comprising:
Step 101: whether detection game role contacts barrier;Wherein, the game role is moved along first direction, institute Game role is stated with first speed value, the first direction is by user's control, and the first direction is for characterizing the game The direction that the mobile direction of role or the game role will move;
In this step, detection game role whether be in contact with peripheral obstacle, no matter game role or barrier There is the profile and border of oneself, once the two is in contact (distance zero), just illustrates that game role encounters barrier, press The game role velocity component perpendicular with barrier, which is hindered, if the prior art is changing to zero and causes game role whole Body speed reduces, and to avoid the phenomenon, need to execute subsequent step 102.
In this step, it may include step that whether the detection game role, which contacts barrier:
A1: if scene of game is divided into dry lattice;It wherein, include the game role and institute in the scene of game Barrier is stated, the game role accounts for the size of one or more grids, and the barrier is occupied in one or more grids On position;
Specifically, grid can be the grid of square, it can use several equidistant x wires and vertical line intersect Scene of game is carried out cutting division by the grid lines of formation, obtains the grid of several same sizes.
A2: the first grid that the game role will be moved to is obtained;
Specifically, the first direction of the game role controlled according to user, and the grid being currently located in conjunction with game role Case is set, and the first grid that game role will be moved to can be calculated.
A3: judge whether first grid is be overlapped with grid occupied by the barrier;
In scene of game, game role is mobile, so the grid occupied by it can constantly occur as it is moved Variation, and barrier is static, so the grid positions occupied by it does not change relatively.Grid occupied by barrier Can be previously obtained and save when barrier to be placed into scene of game, can also current time traverse scene of game and It obtains.
A4: if overlapping, it is determined that the game role contacts the barrier.
In this step, further, if not being overlapped, it is determined that the game role does not contact the barrier.
In this way, for particular game (one or more grid sizes can be accounted for rasterizing, game role, barrier occupies In one or more grid positions), by above-mentioned A1-A4 step, (rather than game role profile is judged by means of raster symbol-base Whether boundary contacts barrier profile and border), it more can quickly calculate whether game role contacts barrier, save fortune Evaluation time.
Step 102: if the game role contacts the barrier, the moving direction of the game role being adjusted to Second direction;So that the game role is according to the second direction and mobile according to the first speed value, wherein described the Two directions are parallel with the contact surface of the barrier.
In this way, after game role touches barrier, by the moving direction of game role from original first direction It is adjusted to the second direction parallel with barrier and will not slow down (to be equivalent to game role and the perpendicular speed of barrier point Amount disappears, and speed is all changed to the velocity component direction parallel with barrier), it is ensured that the action edge and rhythm of player increases The strong game experiencing of player.
In this step, for convenience determine second direction, it is preferred that if the game role contacts the barrier Hinder object, then the moving direction of the game role be adjusted to second direction, comprising:
Step 1021: determining the angle of the contact surface of the first direction and the barrier;Wherein, the game role Origin as the first direction;
Step 1022: according to the angle, the moving direction of the game role being adjusted to the second direction.
Further, the moving direction of the game role is adjusted to described according to the angle by the step 1022 Second direction may include:
If the angle is not equal to 90 degree, the moving direction of the game role is adjusted to the second direction;So that The angle that the second direction, the origin and the first direction are formed is acute angle;Wherein, the game role conduct The origin of the second direction.
I.e. as shown in Fig. 2 (a), 21 be barrier, and 22 be the first direction of game role, and 23 be the second party of game role To game role position (while origin as first direction and second direction) is 24, first direction 22 and barrier The angle of 21 contact surface is α, which is not equal to 90 degree, and the angle that second direction 23, origin 24 and first direction 22 are formed is big Small to be similarly α, which is acute angle, therefore at this point, second direction adjusted is left towards right side in Fig. 2 (a) illustrated embodiment Side is equivalent to game role and disappears with the perpendicular velocity component of barrier, maintains the velocity component parallel with barrier Direction (second direction towards the feeling that can force u-turn if left side to people), such direction adjustment rationally, with reality scene Degree of conformity is high, and player's acceptance is preferable.
Further, the moving direction of the game role is adjusted to according to the angle described in the step 1022 The second direction can also include:
If the angle is equal to 90 degree, the moving direction of the game role is adjusted to the second direction;Wherein, institute It states second direction and rotates clockwise 90 degree by the first direction and obtain.
I.e. as shown in Fig. 2 (b), 21 be barrier, and 22 ' be the first direction of game role, and 23 be the second of game role Direction, game role position (origin as first direction) are 24, the contact surface of first direction 22 ' and barrier 21 Angle is α, which is equal to 90 degree, therefore at this point, second direction 23 rotates clockwise 90 degree by first direction 22 ' obtains, in Fig. 2 (b) Second direction adjusted is equally towards right side in illustrated embodiment, in this way, after game role is come up perpendicular to barrier, It can be adjusted to the second direction towards right side parallel with barrier and will not slow down.Also, even if on 21 right side of barrier When having a vertical barrier still to corner formed here, it can also be adjusted by multiple such direction, user is made not slow down Walk out corner.
To sum up, in the embodiment of the present invention, whether detection game role first contacts barrier, wherein the game role edge First direction is mobile, and the game role has first speed value, and the first direction is used by user's control, the first direction In the direction that the direction or the game role that characterize the game role movement will move;If then the game role connects The barrier is touched, then the moving direction of the game role is adjusted to second direction, so that the game role is according to institute It states second direction and is moved according to the first speed value, wherein the second direction is parallel with the contact surface of the barrier. In this way, after game role touches barrier, by the moving direction of game role from original first direction be adjusted to The parallel second direction of barrier and will not slow down (be equivalent to game role and the perpendicular velocity component of barrier disappear, Speed is all changed to the velocity component direction parallel with barrier), it is ensured that the action edge and rhythm of player enhances player Game experiencing.
On the other hand, the embodiment of the present invention provides a kind of mobile device of game role, as shown in Figure 3, comprising:
Detection module 11, for detecting whether game role contacts barrier;Wherein, the game role is along first direction Mobile, the game role has first speed value, and the first direction is by user's control, and the first direction is for characterizing institute The direction that the direction or the game role for stating game role movement will move;
Module 12 is adjusted, if the barrier is contacted for the game role, by the mobile side of the game role To being adjusted to second direction;So that the game role is according to the second direction and mobile according to the first speed value, In, the second direction is parallel with the contact surface of the barrier.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill Art effect is similar, and details are not described herein again.
Preferably, the detection module 11, comprising:
Submodule is divided, if for scene of game to be divided into dry lattice;It wherein, include the trip in the scene of game Play role and the barrier, the game role account for the size of one or more grids, and the barrier is occupied at one Or on the position of multiple grids;
Acquisition submodule, the first grid that will be moved to for obtaining the game role;
Judging submodule, for judging whether first grid is be overlapped with grid occupied by the barrier;
Second determines submodule, if for being overlapped, it is determined that the game role contacts the barrier.
In this way, for particular game (one or more grid sizes can be accounted for rasterizing, game role, barrier occupies In one or more grid positions), (rather than judge whether game role profile and border contacts barrier by means of raster symbol-base Profile and border), it more can quickly calculate whether game role contacts barrier, save operation time.
For convenience determine second direction, it is preferred that the adjustment module 12, comprising:
First determines submodule, the angle of the contact surface for determining the first direction and the barrier;Wherein, institute State origin of the game role as the first direction;
Adjusting submodule, for according to the angle, the moving direction of the game role to be adjusted to the second party To.
Further, the adjusting submodule may include:
First angle adjusting submodule, if being not equal to 90 degree for the angle, by the moving direction of the game role It is adjusted to the second direction;So that the angle that the second direction, the origin and the first direction are formed is sharp Angle;Wherein, origin of the game role as the second direction.
It disappears, maintains parallel with barrier with the perpendicular velocity component of barrier in this way, being equivalent to game role Velocity component direction, direction adjustment is rationally, high with reality scene degree of conformity, and player's acceptance is preferable.
Further, the adjusting submodule can also include:
Second angle adjusting submodule, if being equal to 90 degree for the angle, by the moving direction tune of the game role Whole is the second direction;Wherein, the second direction rotates clockwise 90 degree by the first direction and obtains.
In this way, can be adjusted to parallel with barrier towards right side after game role is come up perpendicular to barrier Second direction and will not slow down.Also, even if can also be adjusted by multiple such direction when encountering corner, make user not What is slowed down walks out corner.
In another aspect, the embodiment of the present invention also provides a kind of electronic equipment, as shown in figure 4, Fig. 1 institute of the present invention may be implemented Show the process of embodiment of the method, which includes: shell 41, processor 42, memory 43, circuit board 44 and power circuit 45, wherein circuit board 44 is placed in the space interior that shell 41 surrounds, and processor 42 and memory 43 are arranged in circuit board 44 On;Power circuit 45, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 43 is for storing executable journey Sequence code;Processor 42 is run and executable program code pair by reading the executable program code stored in memory 43 The program answered, for executing method described in aforementioned either method embodiment.
Processor 42 to the specific implementation procedures of above-mentioned steps and processor 42 by operation executable program code come The step of further executing may refer to the description of embodiment of the method shown in Fig. 1 of the present invention, and details are not described herein.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
The embodiment of the present invention also provides a kind of computer readable storage medium, storage in the computer readable storage medium There is computer program, the computer program realizes that method described in any of the above-described embodiment of the method walks when being executed by processor Suddenly.
The embodiment of the present invention also provides a kind of application program, the application program be performed with realize the present invention either one The method that method embodiment provides.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively. Certainly, each unit/module function can be realized in the same or multiple software and or hardware in carrying out the present invention.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of moving method of game role characterized by comprising
Whether detection game role contacts barrier;Wherein, the game role is moved along first direction, the game role tool There is first speed value, for the first direction by user's control, the first direction is used to characterize the mobile side of the game role To or the direction that will move of the game role;
If the game role contacts the barrier, the moving direction of the game role is adjusted to second direction;With Keep the game role according to the second direction and mobile according to the first speed value, wherein the second direction and institute The contact surface for stating barrier is parallel.
2. the moving method of game role according to claim 1, which is characterized in that if the game role contacts The moving direction of the game role is then adjusted to second direction by the barrier, comprising:
Determine the angle of the contact surface of the first direction and the barrier;Wherein, the game role is as described first The origin in direction;
According to the angle, the moving direction of the game role is adjusted to the second direction.
3. the moving method of game role according to claim 2, which is characterized in that it is described according to the angle, by institute The moving direction for stating game role is adjusted to the second direction, comprising:
If the angle is not equal to 90 degree, the moving direction of the game role is adjusted to the second direction;So that described The angle that second direction, the origin and the first direction are formed is acute angle;Wherein, described in the game role is used as The origin of second direction.
4. the moving method of game role according to claim 2, which is characterized in that it is described according to the angle, by institute The moving direction for stating game role is adjusted to the second direction, comprising:
If the angle is equal to 90 degree, the moving direction of the game role is adjusted to the second direction;Wherein, described Two directions rotate clockwise 90 degree by the first direction and obtain.
5. the moving method of game role according to any one of claims 1-4, which is characterized in that the detection game angle Whether color contacts barrier, comprising:
If scene of game is divided into dry lattice;It wherein, include the game role and the obstacle in the scene of game Object, the game role account for the size of one or more grids, and the barrier occupies on the position of one or more grids;
Obtain the first grid that the game role will be moved to;
Judge whether first grid is be overlapped with grid occupied by the barrier;
If overlapping, it is determined that the game role contacts the barrier.
6. a kind of mobile device of game role characterized by comprising
Detection module, for detecting whether game role contacts barrier;Wherein, the game role is moved along first direction, The game role has first speed value, and the first direction is by user's control, and the first direction is for characterizing the trip The direction that the mobile direction of play role or the game role will move;
Module is adjusted, if contacting the barrier for the game role, the moving direction of the game role is adjusted For second direction;So that the game role is according to the second direction and mobile according to the first speed value, wherein described Second direction is parallel with the contact surface of the barrier.
7. the mobile device of game role according to claim 6, which is characterized in that the adjustment module, comprising:
First determines submodule, the angle of the contact surface for determining the first direction and the barrier;Wherein, the trip Origin of the play role as the first direction;
Adjusting submodule, for according to the angle, the moving direction of the game role to be adjusted to the second direction.
8. the mobile device of game role according to claim 7, which is characterized in that the adjusting submodule, comprising:
First angle adjusting submodule adjusts the moving direction of the game role if being not equal to 90 degree for the angle For the second direction;So that the angle that the second direction, the origin and the first direction are formed is acute angle;Its In, origin of the game role as the second direction.
9. the mobile device of game role according to claim 7, which is characterized in that the adjusting submodule, comprising:
The moving direction of the game role is adjusted to by second angle adjusting submodule if being equal to 90 degree for the angle The second direction;Wherein, the second direction rotates clockwise 90 degree by the first direction and obtains.
10. according to the mobile device of the game role any in claim 6-9, which is characterized in that the detection module, Include:
Submodule is divided, if for scene of game to be divided into dry lattice;It wherein, include the game angle in the scene of game Color and the barrier, the game role account for the size of one or more grids, and the barrier is occupied at one or more On the position of a grid;
Acquisition submodule, the first grid that will be moved to for obtaining the game role;
Judging submodule, for judging whether first grid is be overlapped with grid occupied by the barrier;
Second determines submodule, if for being overlapped, it is determined that the game role contacts the barrier.
CN201811153417.6A 2018-09-29 2018-09-29 Game role moving method and device and electronic equipment Pending CN109126134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811153417.6A CN109126134A (en) 2018-09-29 2018-09-29 Game role moving method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811153417.6A CN109126134A (en) 2018-09-29 2018-09-29 Game role moving method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN109126134A true CN109126134A (en) 2019-01-04

Family

ID=64813691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811153417.6A Pending CN109126134A (en) 2018-09-29 2018-09-29 Game role moving method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109126134A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109806578A (en) * 2019-01-21 2019-05-28 广州立而方电子科技有限公司 Bravely rush three pass game machines and method for gaming
CN110743161A (en) * 2019-10-16 2020-02-04 腾讯科技(深圳)有限公司 Virtual object control method, device, terminal and storage medium
CN111957040A (en) * 2020-09-07 2020-11-20 网易(杭州)网络有限公司 Method and device for detecting shielding position, processor and electronic device
CN112221147A (en) * 2020-10-15 2021-01-15 网易(杭州)网络有限公司 Obstacle avoidance method in game scene, electronic device and machine-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104784932A (en) * 2015-04-13 2015-07-22 四川天上友嘉网络科技有限公司 Path finding method for game role
CN104941180A (en) * 2014-03-31 2015-09-30 北京畅游天下网络技术有限公司 Collision detecting method and device for 2D games
CN105056528A (en) * 2015-07-23 2015-11-18 珠海金山网络游戏科技有限公司 Virtual character moving method and apparatus
US20160306542A1 (en) * 2015-04-14 2016-10-20 Flying Wisdom Studios Navigating virtual environments
CN106540451A (en) * 2016-11-17 2017-03-29 腾讯科技(深圳)有限公司 The control method for movement of actor model, device and method of data synchronization, system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104941180A (en) * 2014-03-31 2015-09-30 北京畅游天下网络技术有限公司 Collision detecting method and device for 2D games
CN104784932A (en) * 2015-04-13 2015-07-22 四川天上友嘉网络科技有限公司 Path finding method for game role
US20160306542A1 (en) * 2015-04-14 2016-10-20 Flying Wisdom Studios Navigating virtual environments
CN105056528A (en) * 2015-07-23 2015-11-18 珠海金山网络游戏科技有限公司 Virtual character moving method and apparatus
CN106540451A (en) * 2016-11-17 2017-03-29 腾讯科技(深圳)有限公司 The control method for movement of actor model, device and method of data synchronization, system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
万书帆等: "《"Unity游戏开发实用教程》", 《"UNITY游戏开发实用教程》 *
刘剑卓: "《Android***开发从入门到精通》", 《ANDROID***开发从入门到精通》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109806578A (en) * 2019-01-21 2019-05-28 广州立而方电子科技有限公司 Bravely rush three pass game machines and method for gaming
CN110743161A (en) * 2019-10-16 2020-02-04 腾讯科技(深圳)有限公司 Virtual object control method, device, terminal and storage medium
CN111957040A (en) * 2020-09-07 2020-11-20 网易(杭州)网络有限公司 Method and device for detecting shielding position, processor and electronic device
CN111957040B (en) * 2020-09-07 2024-02-23 网易(杭州)网络有限公司 Detection method and device for shielding position, processor and electronic device
CN112221147A (en) * 2020-10-15 2021-01-15 网易(杭州)网络有限公司 Obstacle avoidance method in game scene, electronic device and machine-readable storage medium
CN112221147B (en) * 2020-10-15 2024-03-22 网易(杭州)网络有限公司 Obstacle avoidance method in game scene, electronic equipment and machine-readable storage medium

Similar Documents

Publication Publication Date Title
CN106155553B (en) Virtual object motion control method and device
CN109126134A (en) Game role moving method and device and electronic equipment
EP3750608A1 (en) Sound reproduction method and device, storage medium and electronic device
US10290153B2 (en) Dynamic haptic retargeting
CN104801043B (en) Method and device for controlling scene sound effect
CN109550247A (en) Virtual scene method of adjustment, device, electronic equipment and storage medium in game
CN107096230B (en) message display processing method and device
CN105446525A (en) Method for controlling behavior of game role
CN106621331B (en) A kind of game object performance objective switching method and apparatus
US20220193545A1 (en) Program, game control method, and information processing apparatus
CN107930105A (en) Information processing method and device, storage medium, electronic equipment
CN103019442B (en) A kind of method of touch-screen response and terminal
CN105607851A (en) Scene control method and device for touch terminal
CN109550242B (en) Method and device for controlling virtual character in game
CN110251941B (en) Game picture self-adaption method and device, electronic equipment and storage medium
CN111249735A (en) Path planning method and device of control object, processor and electronic device
CN107277581B (en) A kind of video broadcasting method and its device, mobile terminal
CN110420463A (en) The control method and device of virtual objects, electronic equipment, storage medium in game
US10983602B2 (en) Identifying an input device
CN105807936B (en) Information processing method and electronic equipment
CN113198179A (en) Virtual object steering control method and device, storage medium and electronic equipment
CN109316739B (en) Three-dimensional position selection method and device in game scene
CN107596690B (en) Interface display method and terminal equipment
KR101417947B1 (en) Method for processing user gesture input in online game
CN112774204B (en) Role collision avoidance method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200929

Address after: No.2202, 1st floor, building 2, No.7 Shixing street, Shijingshan District, Beijing 100041 (cluster registration)

Applicant after: Super magic cube (Beijing) Technology Co.,Ltd.

Address before: 100085 Beijing City, Haidian District Road 33, two floor East Xiaoying

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

TA01 Transfer of patent application right