CN108509132A - Position progress bar display methods, device and readable storage medium storing program for executing - Google Patents
Position progress bar display methods, device and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN108509132A CN108509132A CN201810273950.XA CN201810273950A CN108509132A CN 108509132 A CN108509132 A CN 108509132A CN 201810273950 A CN201810273950 A CN 201810273950A CN 108509132 A CN108509132 A CN 108509132A
- Authority
- CN
- China
- Prior art keywords
- progress bar
- zone
- action
- distance
- game
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
- G06F3/04855—Interaction with scrollbars
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A kind of position progress bar display methods of offer of the embodiment of the present invention, device and readable storage medium storing program for executing.Wherein, include the position progress bar of the first zone of action, the second zone of action and game role, first position progress bar and second position progress bar splicing composition position progress bar in scene of game.This programme obtains location information of the going game role in scene of game first, and the band of position that game role is currently located is determined according to location information, further according to the range information of determining band of position calculating game role to the second zone of action, then according to the length ratio between calculated distance information and first position progress bar and second position progress bar, location parameter of the game role on the progress bar of position is calculated, the position that corresponding position of the location parameter on the progress bar of position shows game role is finally based on.This programme occupies that screen space is small as a result, without the complex operations that player is repeatedly switched, significant increase player gaming experience.
Description
Technical field
The present invention relates to game technical field, in particular to a kind of position progress bar display methods, device and readable
Storage medium.
Background technology
In the numerous more online tactics athletic game of people (Multiplayer Online Battle Arena Games, abbreviations
MOBA plays) in, explore map, Fog of War etc. is to determine game victory or defeat and increase the critically important of player gaming experience
Link.In game process, the member object participated usually is in mobile status, and multiple Game Zones are generally had in game
Domain, such as external danger zone and internal safety zone, it is general at present in order to give player's prompt for being currently located region
Using individually showing player's changing coordinates on a scene map.But in actual application, it is limited to end
The limitation for holding screen generally requires current player multiplicating and holds since scene map can occupy the significant portion of terminal screen
The row switching operations such as the visual field just it is observed that shift position and the situation of movement of current location, and then are determined currently to be carried out
Game Policies for development.That is, there is display in the player position method for information display employed in existing game application
Complicated, player exercises trouble problem, seriously affects player gaming experience.
Invention content
In order to overcome above-mentioned deficiency in the prior art, the purpose of the present invention is to provide a kind of position progress bar display sides
Method, device and readable storage medium storing program for executing prompt coordinate position of the game role in current game scene by position progress bar, account for
It is small according to screen space, without the complex operations that player is repeatedly switched, significant increase player gaming experience.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
With reference to first aspect, the embodiment of the present invention provides a kind of position progress bar display methods, is applied to game client,
Operation has scene of game on the game client, includes the first zone of action, the second zone of action in the scene of game
And the position progress bar of game role, first zone of action surround second zone of action, and institute along predetermined speed
State the geometric form that the first zone of action and second zone of action are same shape, the position progress bar includes described the
The corresponding second position progress bar of the corresponding first position progress bar in one zone of action and second zone of action, described first
Position progress bar and second position progress bar splicing form the position progress bar, the method includes:
Obtain location information of the going game role in the scene of game;
The band of position that the game role is currently located is determined according to the positional information;
According to the determining band of position calculate the game role to second zone of action range information;
According between calculated distance information and the first position progress bar and the second position progress bar
Length ratio, calculate location parameter of the game role on the position progress bar;
Corresponding position based on the location parameter on the position progress bar shows the position of the game role.
In conjunction with second aspect, the embodiment of the present invention also provides a kind of position progress bar display device, is applied to game client
It holds, being run on the game client has scene of game, includes the first zone of action, the second behaviour area in the scene of game
The position progress bar of domain and game role, first zone of action surround second zone of action along predetermined speed, and
First zone of action and the geometric form that second zone of action is same shape, the position progress bar include described
The corresponding second position progress bar of the corresponding first position progress bar in first zone of action and second zone of action, described
One position progress bar and second position progress bar splicing form the position progress bar, and described device includes:
Acquisition module, for obtaining location information of the going game role in the scene of game;
Determining module, the band of position being currently located for determining the game role according to the positional information;
First computing module, for calculating the game role to second zone of action according to the determining band of position
Range information;
Second computing module, for according to calculated distance information and the first position progress bar and described the
Length ratio between two position progress bars calculates location parameter of the game role on the position progress bar;
Display module, for showing the trip based on corresponding position of the location parameter on the position progress bar
The position of play role.
In conjunction with the third aspect, the embodiment of the present invention also provides a kind of readable storage medium storing program for executing, is deposited in the readable storage medium storing program for executing
Computer program is contained, the computer program, which is performed, realizes above-mentioned position progress bar display methods.
In terms of existing technologies, the invention has the advantages that:
A kind of position progress bar display methods of offer of the embodiment of the present invention, device and readable storage medium storing program for executing.Wherein, sports ground
Include the position progress bar of the first zone of action, the second zone of action and game role in scape, first position progress bar and
Second position progress bar splicing composition position progress bar.This programme obtains position of the going game role in scene of game first
Information, and the band of position that game role is currently located is determined according to location information, calculate trip further according to the determining band of position
Play role to the second zone of action range information, then according to calculated distance information and first position progress bar and
Length ratio between the progress bar of the second position calculates location parameter of the game role on the progress bar of position, is finally based on position
Set the position that corresponding position of the parameter on the progress bar of position shows game role.It prompts to swim by position progress bar as a result,
Coordinate position of the play role in current game scene occupies the complicated behaviour that screen space is small, is repeatedly switched without player
Make, significant increase player gaming experience.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of structural schematic block diagram of game client provided in an embodiment of the present invention;
Fig. 2 is a kind of functional block diagram of progress bar display device in position provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of progress bar display methods in position provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of a scenario of scene of game provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of position progress bar provided in an embodiment of the present invention;
Fig. 6 a are a kind of region segmentation schematic diagram of scene of game shown in Fig. 4 provided in an embodiment of the present invention;
Fig. 6 b be game role be located at the first position region in scene of game shown in Fig. 4 illustrate schematic diagram;
Fig. 6 c be game role be located at the second position region in scene of game shown in Fig. 4 illustrate schematic diagram;
Fig. 6 d be game role be located at the second zone of action in scene of game shown in Fig. 4 illustrate schematic diagram;
Fig. 7 is another schematic diagram of a scenario of scene of game provided in an embodiment of the present invention;
Fig. 8 a are a kind of region segmentation schematic diagram of scene of game shown in Fig. 7 provided in an embodiment of the present invention;
Fig. 8 b be game role be located at the first position region in scene of game shown in Fig. 7 illustrate schematic diagram;
Fig. 8 c be game role be located at the second position region in scene of game shown in Fig. 7 illustrate schematic diagram;
Fig. 8 d be game role be located at the second zone of action in scene of game shown in Fig. 7 illustrate schematic diagram.
Icon:100- game clients;110- buses;120- processors;130- storage mediums;140- bus interface;
150- network adapter;160- user interfaces;The positions 200- progress bar display device;210- acquisition modules;220- determining modules;
The first computing modules of 230-;The second computing modules of 240-;250- display modules.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Usually herein
The component of the embodiment of the present invention described and illustrated in place's attached drawing can be arranged and be designed with a variety of different configurations.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
Referring to Fig. 1, further, the structure diagram of game client is provided for the embodiment of the present invention.The game visitor
Family end can be sent or be received signal by modes such as wired or wireless networks, or can be in such as memory by signal
Handle or be stored as physical store state.Each game client can be include hardware, software or embedded logic element or
The electronic device of the combination of this two or more class component, and it is able to carry out the suitable work(implemented by game client or supported
Energy.Optionally, the game client can be a kind of equipment with radio transmission-receiving function, including indoor or outdoors, it is hand-held,
Wearing or mobile unit.
As shown in Figure 1, the game client 100 can make general bus architecture to realize by bus 110.
According to the concrete application of game client 100 and overall design constraints condition, bus 110 may include that any number of interconnection is total
Line and bridge joint.Bus 110 is electrically connected to various together, these circuits include processor 120, storage medium 130 and bus
Interface 140.Optionally, game client 100 can use bus interface 140 to wait network adapter 150 and connect via bus 110
It connects.Network adapter 150 can be used for realizing the signal processing function of physical layer in game client 100, and be realized by antenna
Radiofrequency signal sends and receives.User interface 160 can connect external equipment, such as:Keyboard, display, mouse or behaviour
Vertical pole etc..Bus 110 can also connect various other circuits, such as timing source, peripheral equipment, voltage regulator or power management
Circuit etc., these circuits are known in the art, therefore are no longer described in detail.
It can replace, game client 100 may also be configured to generic processing system, such as be commonly referred to as chip, this is general
Processing system includes:The one or more microprocessors of processing function are provided, and at least part of storage medium 130 is provided
External memory, it is all these all to be linked together by external bus architecture and other support circuits.
Alternatively, game client 100 can be realized using following:With processor 120, bus interface 140, use
The ASIC (application-specific integrated circuit) of family interface 160;And it is integrated at least part of the storage medium 130 in one single chip,
Alternatively, game client 100 can be realized using following:One or more FPGA (field programmable gate array), PLD (can
Programmed logic device), controller, state machine, gate logic, discrete hardware components, any other suitable circuit or can hold
The arbitrary combination of the circuit of row various functions described in the whole text of the invention.
Wherein, processor 120 is responsible for bus 110 and general processing and (including executes and be stored on storage medium 130
Software).Processor 120 can be realized using one or more general processors and/or application specific processor.Processor 120
Example includes microprocessor, microcontroller, dsp processor and the other circuits for being able to carry out software.It should be by software broadly
Be construed to indicate instruction, data or its it is arbitrary combine, regardless of being called it as software, firmware, middleware, microcode, hard
Part description language or other.
Storage medium 130 is illustrated as detaching with processor 120 in Fig. 1, however, those skilled in the art be easy to it is bright
In vain, storage medium 130 or its arbitrary portion can be located at except game client 100.For example, storage medium 130 can wrap
Include transmission line, the carrier waveform modulated with data, and/or the computer product separated with radio node, these media
To be accessed by bus interface 140 by processor 120.Alternatively, storage medium 130 or its arbitrary portion are desirably integrated into
In processor 120, for example, it may be cache and/or general register.
The processor 120 can perform above-described embodiment, specifically, position progress is stored in the storage medium 130
Display device 200, the processor 120 can be used for executing the position progress bar display device 200.
Referring to Fig. 2, for a kind of function module of above-mentioned position progress bar display device 200 provided in an embodiment of the present invention
Figure, the position progress bar display device 200 may include:
Acquisition module 210, for obtaining location information of the going game role in the scene of game.
Determining module 220, the band of position being currently located for determining the game role according to the positional information.
First computing module 230, for calculating the game role to second activity according to the determining band of position
The range information in region.
Second computing module 240, for according to calculated distance information and the first position progress bar and institute
The length ratio between the progress bar of the second position is stated, location parameter of the game role on the position progress bar is calculated.
Display module 250, for showing institute based on corresponding position of the location parameter on the position progress bar
State the position of game role.
Referring to Fig. 3, for a kind of flow diagram of progress bar display methods in position provided in an embodiment of the present invention, it is described
Method game client 100 shown in Fig. 1 executes, and includes to the position progress bar display device 200 with reference to Fig. 3
Each function module be described in detail.It should be noted that progress bar display methods in position provided in an embodiment of the present invention
It is not limitation with Fig. 3 and particular order as described below.The position progress bar display methods can be achieved by the steps of:
Step S210 obtains location information of the going game role in the scene of game.In the present embodiment, the step
S210 is executed by the acquisition module 210.
Being run in the present embodiment, on the game client 100 has scene of game, such as shown in Fig. 4, the scene of game
In include the first zone of action, the second zone of action and game role position progress bar, first zone of action edge
Predetermined speed surrounds second zone of action, and first zone of action and second zone of action are same shape
Geometric form.
In scene of game shown in Fig. 4, first zone of action and second zone of action are quadrangle, institute
It states the first zone of action and may include that a transitional region, each region boundary of the transitional region surround described second along predetermined speed
Zone of action, and be gradually reduced so that first zone of action surrounds second zone of action.
As shown in figure 5, the position progress bar may include the corresponding first position progress bar in first zone of action and
The corresponding second position progress bar in second zone of action, the first position progress bar and the second position progress bar are spelled
Connect the composition position progress bar, wherein the length ratio between the first position progress bar and the second position progress bar
Example is always fixed proportion, which can be configured according to actual conditions.
The position progress bar can be used for showing the location parameter that is currently located of game role, and it is small to occupy screen space,
The game process of game player is not influenced, and has a clear understanding of present position convenient for game player.Specifically, the position ginseng
Number can be the digital parameters between 0 to 1, when game role is located at outside first zone of action, or positioned at described first
When the boundary of zone of action, location parameter 0.
Step S220 determines the band of position that the game role is currently located according to the positional information.The present embodiment
In, step S220 is executed by the determining module 220.
It is quadrangle with first zone of action and second zone of action as shown in Figure 6 a in the present embodiment
For, first zone of action may include first position region and second position region, the first position region for institute
State the band of position of the second zone of action boundary intersection, such as A, B, C, D shown in Fig. 6 a, the second position region be with
The band of position of the second zone of action point intersection, such as E, F, G, H shown in Fig. 6 a.
Step S230, the distance for calculating the game role to second zone of action according to the determining band of position are believed
Breath.In the present embodiment, step S230 is executed by first computing module 230.
Step S240, according to calculated distance information and the first position progress bar and the second position into
The length ratio between item is spent, location parameter of the game role on the position progress bar is calculated.It, should in the present embodiment
Step S240 is executed by second computing module 240.
In detail, however, it is determined that the band of position be the first position region, then calculate the position residing for the game role
The first distance between object boundary and the first position region boundary opposite with the object boundary are set to described
Second distance between object boundary, first distance and the second distance are as the range information, wherein the mesh
Mark boundary is the boundary that the first position region is intersected with second zone of action.Such as shown in Fig. 6 b, the game role
It is a-quadrant namely the first position region to be currently located region, calculate at this time the location of game role to a-quadrant with
Arrow distance and the a-quadrant shown in the first distance L namely Fig. 6 b between the boundary of first zone of action with
The opposite boundary of the object boundary is to the coboundary of second distance S namely a-quadrant between the object boundary to lower boundary
Distance.The first distance L and the second distance S are as the range information.
Then, the distance ratio L/S for calculating the first distance L and the second distance S, further according to the first position
Length ratio between progress bar and the second position progress bar calculates the first position progress bar and accounts for the position progress
The position proportional of item, with the length ratio between the first position progress bar and the second position progress bar for 3:For 1,
The position proportional that the first position progress bar accounts for the position progress bar is then 3/4, finally according to the distance ratio and institute
It states position proportional and calculates location parameter W=(1-L/S) * 3/4 of the game role on the position progress bar.
Or, however, it is determined that the band of position be the second position region, then calculate the position residing for the game role
Two the first distances and the second position region between the object boundary boundary opposite with the object boundary is set to arrive
Two second distances between the object boundary, described two first distances and described two second distances are as the distance
Information, wherein the object boundary is two boundaries that the first position region is intersected with the second zone of action point.Example
As fig. 6 c, it is the regions F namely the second position region which, which is currently located region, calculates game angle at this time
Two the first distances between two boundaries that the location of color intersects to the regions F with the second zone of action point, respectively
For two arrow distances shown in La and Lb namely Fig. 6 c and the regions the F boundary opposite with the object boundary to institute
State two second distances between object boundary, the distance and a left side of the coboundary in respectively Sa and the regions Sb namely F to lower boundary
Distance of the boundary to right margin.The first distance La and Lb and the second distance Sa and Sb are as the range information.
Then, the distance ratio for calculating separately each first distance and the corresponding second distance, obtains two
Distance ratio La/Sa and Lb/Sb select the maximum ratio in described two distance ratios as target range ratio.Further according to
Length ratio between the first position progress bar and the second position progress bar calculates the first position progress bar and accounts for
The position proportional of the position progress bar, with the length ratio between the first position progress bar and the second position progress bar
Example is 3:For 1, the position proportional that the first position progress bar accounts for the position progress bar is then 3/4, last according to
Target calculates location parameter W=of the game role on the position progress bar away from distance ratio and the position proportional
(1-max (La/Sa, Lb/Sb)) * 3/4, max (La/Sa, Lb/Sb) is meant that, the higher value in value La/Sa and Lb/Sb.
Or, however, it is determined that the band of position be second zone of action, then calculate the position residing for the game role
The center of gravity of the first distance and second zone of action between the center of gravity of second zone of action is set to described second
Multiple second distances on each boundary of zone of action, and calculate first distance second zone of action each side
Multiple component distances in boundary direction, the multiple component distance and the multiple second distance are as the range information.Such as
Shown in Fig. 6 d, it is second zone of action which, which is currently located region, calculates position residing for the game role at this time
It is L to set at a distance from center of gravity, and the component distances of wherein L in the vertical direction are La, and the component distances of L in the horizontal direction are
The vertical range of Lb, second zone of action coboundary and center of gravity is Sa, and the safety zone left margin is vertical with center of gravity
Distance is Sb, and described component distance La, Lb and described second distance Sa, Sb are then the range information.
Then, the distance ratio for calculating separately each first distance and the corresponding second distance, obtains multiple
Then distance ratio namely La/Sa and Lb/Sb select the maximum ratio in the multiple distance ratio as target range ratio
Value, and the first position is calculated according to the length ratio between the first position progress bar and the second position progress bar
Progress bar accounts for the first position ratio of the position progress bar and the second position progress bar accounts for the position progress bar
Second position ratio, with the length ratio between the first position progress bar and the second position progress bar for 3:For 1,
The position proportional that the first position progress bar accounts for the position progress bar is then 3/4, and the second position progress bar accounts for described
The position proportional of position progress bar is then 1/4, finally according to the target range ratio, the first position ratio and described the
Two position proportionals calculate location parameter W=3/4+ (1-max (La/Sa, Lb/ of the game role on the position progress bar
Sb))*1/4。
Location parameter of the game role in current game scene can be calculated by above-mentioned calculating step.
Said program is illustrated with another scene of game below.Referring to Fig. 7, scene of game shown in Fig. 7
In, first zone of action and second zone of action are hexagon.It lives further combined with refering to Fig. 8 a, described first
Dynamic region may include that first position region and second position region, the first position region are and second zone of action side
The band of position of boundary's intersection, such as A shown in Fig. 8 a, the second position region are to intersect with the second zone of action point
The band of position, such as B, C shown in Fig. 6 a.
As shown in Figure 8 b, it is a-quadrant namely the first position region which, which is currently located region, is counted at this time
The location of game role is calculated to the first distance L namely Fig. 6 b institutes between a-quadrant and the boundary of first zone of action
The arrow distance and the a-quadrant the shown boundary opposite with the object boundary to second between the object boundary away from
Distance from the coboundary of S namely a-quadrant to lower boundary.The first distance L and the second distance S are as the distance
Information.
Then, the distance ratio L/S for calculating the first distance L and the second distance S, further according to the first position
Length ratio between progress bar and the second position progress bar calculates the first position progress bar and accounts for the position progress
The position proportional of item, with the length ratio between the first position progress bar and the second position progress bar for 3:For 1,
The position proportional that the first position progress bar accounts for the position progress bar is then 3/4, finally according to the distance ratio and institute
It states position proportional and calculates location parameter W=(1-L/S) * 3/4 of the game role on the position progress bar.
Or as shown in Figure 8 c, the game role be currently located region be B area namely the second position region,
Two between two boundaries that the location of game role intersects to B area with the second zone of action point are calculated at this time
Two arrow distances and the B area shown in first distance, respectively La and Lb namely Fig. 8 c and the object boundary
To two second distances between the object boundary, the upper right boundary in respectively Sa and the regions Sb namely F is arrived on opposite boundary
The right of the right margin in the distance on the upper right boundary of second zone of action and the regions F to second zone of action
The distance on boundary.The first distance La and Lb and the second distance Sa and Sb are as the range information.
Then, the distance ratio for calculating separately each first distance and the corresponding second distance, obtains two
Distance ratio La/Sa and Lb/Sb select the maximum ratio in described two distance ratios as target range ratio.Further according to
Length ratio between the first position progress bar and the second position progress bar calculates the first position progress bar and accounts for
The position proportional of the position progress bar, with the length ratio between the first position progress bar and the second position progress bar
Example is 3:For 1, the position proportional that the first position progress bar accounts for the position progress bar is then 3/4, last according to
Target calculates location parameter W=of the game role on the position progress bar away from distance ratio and the position proportional
(1-max (La/Sa, Lb/Sb)) * 3/4, max (La/Sa, Lb/Sb) is meant that, the higher value in value La/Sa and Lb/Sb.
Or as shown in fig 6d, it is second zone of action which, which is currently located region, calculates institute at this time
It is L, points of the wherein L on each boundary direction of second zone of action at a distance from center of gravity to state game role present position
Span from for L1, L2, L3......, each boundary of second zone of action to the vertical range of center of gravity be S1, S2,
S3......, described component distance L1, L2, L3...... and described second distance S1, S2, S3...... are then that the distance is believed
Breath.
Then, the distance ratio for calculating separately each first distance and the corresponding second distance, obtains multiple
Distance ratio namely L1/S1, L2/S2, L3/S3......, then select maximum ratio in the multiple distance ratio as
Target range ratio, and institute is calculated according to the length ratio between the first position progress bar and the second position progress bar
State that first position progress bar accounts for the first position ratio of the position progress bar and the second position progress bar accounts for institute's rheme
The second position ratio for setting progress bar, with the length ratio between the first position progress bar and the second position progress bar
It is 3:For 1, it is 3/4 that the first position progress bar, which accounts for the position proportional of the position progress bar then, the second position into
The position proportional that degree item accounts for the position progress bar is then 1/4, finally according to the target range ratio, first position ratio
Example and the second position ratio calculate location parameter W=3/4+ (1-max of the game role on the position progress bar
(L1/S1, L2/S2, L3/S3......)) * 1/4.
Step S250, the corresponding position based on the location parameter on the position progress bar show the game angle
The position of color.In the present embodiment, step S250 is executed by the display module 250.
In the present embodiment, after above-mentioned location parameter is calculated, based on the location parameter in the position progress bar
On corresponding position show the position of the game role, for example, with the first position progress bar and the second position
Length ratio between progress bar is 3:For 1, if the location parameter being calculated then shows this between 0-3/4
Game role is located in first zone of action, and wherein location parameter is bigger, closer from second zone of action.If
The location parameter being calculated is between 3/4-1, then then show that the game role is located in second zone of action, wherein
Location parameter is bigger, and it is remoter to obtain region from described first.Based on said program, game role is prompted by position progress bar
Coordinate position in current game scene occupies the complex operations that screen space is small, is repeatedly switched without player.Together
When, it can be clear from oneself position in scene of game convenient for game player, and then determine the trip currently carried out
The Policies for development of play, significant increase player gaming experience.
Further, the embodiment of the present invention also provides a kind of readable storage medium storing program for executing, is stored in the readable storage medium storing program for executing
Computer program, the computer program, which is performed, realizes above-mentioned position progress bar display methods.
In conclusion a kind of position progress bar display methods of offer of the embodiment of the present invention, device and readable storage medium storing program for executing.Its
In, include the position progress bar of the first zone of action, the second zone of action and game role, first position in scene of game
Progress bar and second position progress bar splicing composition position progress bar.This programme obtains going game role in scene of game first
In location information, and the band of position that game role is currently located is determined according to location information, further according to determining position area
Domain calculates game role to the range information of the second zone of action, then according to calculated distance information and first position
Length ratio between progress bar and second position progress bar calculates location parameter of the game role on the progress bar of position, most
The corresponding position based on location parameter on the progress bar of position shows the position of game role afterwards.Pass through position progress as a result,
Item prompts coordinate position of the game role in current game scene, and it is small to occupy screen space, is repeatedly switched without player
Complex operations, significant increase player gaming experience.
In embodiment provided by the present invention, it should be understood that disclosed device and method, it can also be by other
Mode realize.Device and method embodiment described above is only schematical, for example, the flow chart in attached drawing and frame
Figure shows the system frame in the cards of the system of multiple embodiments according to the present invention, method and computer program product
Structure, function and operation.In this regard, each box in flowchart or block diagram can represent a module, section or code
A part, the part of the module, section or code includes one or more for implementing the specified logical function
Executable instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be with not
It is same as the sequence marked in attached drawing generation.For example, two continuous boxes can essentially be basically executed in parallel, they have
When can also execute in the opposite order, this is depended on the functions involved.It is also noted that in block diagram and or flow chart
Each box and the box in block diagram and or flow chart combination, the special of function or action as defined in executing can be used
Hardware based system realize, or can realize using a combination of dedicated hardware and computer instructions.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion
Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It can replace, can be realized wholly or partly by software, hardware, firmware or its arbitrary combination.When
When using software realization, can entirely or partly it realize in the form of a computer program product.The computer program product
Including one or more computer instructions.It is all or part of when loading on computers and executing the computer program instructions
Ground is generated according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special purpose computer,
Computer network or other programmable devices.The computer instruction can store in a computer-readable storage medium, or
Person is transmitted from a computer readable storage medium to another computer readable storage medium, for example, the computer instruction
Wired (such as coaxial cable, optical fiber, digital subscriber can be passed through from a web-site, computer, server or data center
Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or data
Center is transmitted.The computer readable storage medium can be that any usable medium that computer can access either is wrapped
The data storage devices such as server, the data center integrated containing one or more usable mediums.The usable medium can be magnetic
Property medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk
Solid State Disk (SSD)) etc.
It should be noted that herein, term " including ", " including " or its any other variant are intended to non-row
Its property includes, so that the process, method, article or equipment including a series of elements includes not only those elements, and
And further include the other elements being not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that including institute
State in the process, method, article or equipment of element that there is also other identical elements.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Profit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent requirements of the claims
Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
Claims (10)
1. a kind of position progress bar display methods, which is characterized in that be applied to game client, run on the game client
Have scene of game, include in the scene of game the first zone of action, the second zone of action and game role position into
Spend item, first zone of action surrounds second zone of action along predetermined speed, and first zone of action with it is described
Second zone of action is the geometric form of same shape, and the position progress bar includes first zone of action corresponding first
The corresponding second position progress bar of position progress bar and second zone of action, the first position progress bar and described second
Position progress bar splicing forms the position progress bar, the method includes:
Obtain location information of the going game role in the scene of game;
The band of position that the game role is currently located is determined according to the positional information;
According to the determining band of position calculate the game role to second zone of action range information;
According to the length between calculated distance information and the first position progress bar and the second position progress bar
Degree ratio calculates location parameter of the game role on the position progress bar;
Corresponding position based on the location parameter on the position progress bar shows the position of the game role.
2. progress bar display methods in position according to claim 1, which is characterized in that first zone of action includes the
One band of position and second position region, the first position region are the position area intersected with second zone of action boundary
Domain, the second position region are the band of position intersected with the second zone of action point.
3. progress bar display methods in position according to claim 2, which is characterized in that described according to the determining band of position
The step of calculating range information of the game role to second zone of action, including:
If it is determined that the band of position be the first position region, then calculate the location of described game role arrive object boundary
Between the first distance and the first position region boundary opposite with the object boundary between the object boundary
Second distance, first distance and the second distance are as the range information, wherein the object boundary is described
The boundary that first position region is intersected with second zone of action.
4. progress bar display methods in position according to claim 3, which is characterized in that described according to calculated distance
Length ratio between information and the first position progress bar and the second position progress bar, calculates the game role
The location parameter on the position progress bar the step of, including:
Calculate the distance ratio of first distance and the second distance;
The first position is calculated according to the length ratio between the first position progress bar and the second position progress bar
Progress bar accounts for the position proportional of the position progress bar;
Position ginseng of the game role on the position progress bar is calculated according to the distance ratio and the position proportional
Number.
5. progress bar display methods in position according to claim 2, which is characterized in that described according to the determining band of position
The step of calculating range information of the game role to second zone of action further include:
If it is determined that the band of position be the second position region, then calculate the location of described game role arrive object boundary
Between two the first distances and the second position region boundary opposite with the object boundary to the object boundary
Between two second distances, described two first distances and described two second distances are as the range information, wherein institute
It is two boundaries that the first position region is intersected with the second zone of action point to state object boundary.
6. progress bar display methods in position according to claim 5, which is characterized in that described according to calculated distance
Length ratio between information and the first position progress bar and the second position progress bar, calculates the game role
The location parameter on the position progress bar the step of, including:
The distance ratio for calculating separately each first distance and the corresponding second distance, obtains two distance ratios;
Select the maximum ratio in described two distance ratios as target range ratio;
The first position is calculated according to the length ratio between the first position progress bar and the second position progress bar
Progress bar accounts for the position proportional of the position progress bar;
Position of the game role on the position progress bar is calculated according to the target range ratio and the position proportional
Set parameter.
7. progress bar display methods in position according to claim 2, which is characterized in that described according to the determining band of position
The step of calculating range information of the game role to second zone of action further include:
If it is determined that the band of position be second zone of action, then calculate the location of described game role arrive described second
The center of gravity of the first distance and second zone of action between the center of gravity of zone of action is to the every of second zone of action
Multiple second distances on a boundary;
Calculate first distance each boundary direction of second zone of action multiple component distances, the multiple point
Span from the multiple second distance as the range information.
8. progress bar display methods in position according to claim 7, which is characterized in that described according to calculated distance
Length ratio between information and the first position progress bar and the second position progress bar, calculates the game role
The location parameter on the position progress bar the step of, including:
The distance ratio for calculating separately each first distance and the corresponding second distance, obtains multiple distance ratios;
Select the maximum ratio in the multiple distance ratio as target range ratio;
The first position is calculated according to the length ratio between the first position progress bar and the second position progress bar
Progress bar accounts for the first position ratio of the position progress bar and the second position progress bar accounts for the position progress bar
Second position ratio;
The game role is calculated according to the target range ratio, the first position ratio and the second position ratio to exist
Location parameter on the position progress bar.
9. a kind of position progress bar display device, which is characterized in that be applied to game client, run on the game client
Have scene of game, include in the scene of game the first zone of action, the second zone of action and game role position into
Spend item, first zone of action surrounds second zone of action along predetermined speed, and first zone of action with it is described
Second zone of action is the geometric form of same shape, and the position progress bar includes first zone of action corresponding first
The corresponding second position progress bar of position progress bar and second zone of action, the first position progress bar and described second
Position progress bar splicing forms the position progress bar, and described device includes:
Acquisition module, for obtaining location information of the going game role in the scene of game;
Determining module, the band of position being currently located for determining the game role according to the positional information;
First computing module, for according to the determining band of position calculate the game role to second zone of action away from
From information;
Second computing module, for according to calculated distance information and the first position progress bar and the second
The length ratio between progress bar is set, location parameter of the game role on the position progress bar is calculated;
Display module, for showing the game angle based on corresponding position of the location parameter on the position progress bar
The position of color.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter in the readable storage medium storing program for executing
Calculation machine program is performed the position progress bar display methods realized described in any one of claim 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810273950.XA CN108509132B (en) | 2018-03-29 | 2018-03-29 | Position progress bar display method and device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810273950.XA CN108509132B (en) | 2018-03-29 | 2018-03-29 | Position progress bar display method and device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108509132A true CN108509132A (en) | 2018-09-07 |
CN108509132B CN108509132B (en) | 2020-06-16 |
Family
ID=63379226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810273950.XA Active CN108509132B (en) | 2018-03-29 | 2018-03-29 | Position progress bar display method and device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108509132B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111481929A (en) * | 2020-05-18 | 2020-08-04 | 网易(杭州)网络有限公司 | Virtual character information display method and device, electronic equipment and computer medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070191096A1 (en) * | 2006-01-27 | 2007-08-16 | Kabushiki Kaisha Square Enix (Also Trading As Square Enix Co., Ltd.) | Game apparatus, game progressing method, program, and recording medium |
US20090070699A1 (en) * | 2007-09-07 | 2009-03-12 | Alexis Birkill | Keeping Track of Progress Bar Position During an Extended Task in a Computer System |
CN102252619A (en) * | 2011-04-21 | 2011-11-23 | 中国民航大学 | Displacement distance measuring and displaying system in airplane berthing process |
CN102640101A (en) * | 2009-12-02 | 2012-08-15 | 三星电子株式会社 | Method and apparatus for providing user interface |
CN102881218A (en) * | 2012-08-20 | 2013-01-16 | 郎启红 | Signage real-scene elevation shopping guide map and establishment method for same |
CN102918359A (en) * | 2010-04-09 | 2013-02-06 | 通腾科技股份有限公司 | Navigation or mapping apparatus and method |
CN103208205A (en) * | 2013-03-20 | 2013-07-17 | 北京航空航天大学 | Vehicle safety driving early warning method based on vehicle internet |
CN103727948A (en) * | 2012-10-16 | 2014-04-16 | 北京掌行通信息技术有限公司 | Real-time guidance method for bus taking navigation |
CN105511763A (en) * | 2016-02-02 | 2016-04-20 | 上海逗屋网络科技有限公司 | Method and device for moving target object based on touch control operation |
CN105827959A (en) * | 2016-03-21 | 2016-08-03 | 深圳市至壹科技开发有限公司 | Geographic position-based video processing method |
US20170092057A1 (en) * | 2015-09-24 | 2017-03-30 | King.Com Limited | Controlling a user interface of a computer device |
CN106774872A (en) * | 2016-12-09 | 2017-05-31 | 网易(杭州)网络有限公司 | Virtual reality system, virtual reality exchange method and device |
CN107132981A (en) * | 2017-03-27 | 2017-09-05 | 网易(杭州)网络有限公司 | Display control method and device, storage medium, the electronic equipment of game picture |
CN107744659A (en) * | 2017-10-10 | 2018-03-02 | 杭州电魂网络科技股份有限公司 | Character location display methods and device |
-
2018
- 2018-03-29 CN CN201810273950.XA patent/CN108509132B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070191096A1 (en) * | 2006-01-27 | 2007-08-16 | Kabushiki Kaisha Square Enix (Also Trading As Square Enix Co., Ltd.) | Game apparatus, game progressing method, program, and recording medium |
US20090070699A1 (en) * | 2007-09-07 | 2009-03-12 | Alexis Birkill | Keeping Track of Progress Bar Position During an Extended Task in a Computer System |
CN102640101A (en) * | 2009-12-02 | 2012-08-15 | 三星电子株式会社 | Method and apparatus for providing user interface |
CN102918359A (en) * | 2010-04-09 | 2013-02-06 | 通腾科技股份有限公司 | Navigation or mapping apparatus and method |
CN102252619A (en) * | 2011-04-21 | 2011-11-23 | 中国民航大学 | Displacement distance measuring and displaying system in airplane berthing process |
CN102881218A (en) * | 2012-08-20 | 2013-01-16 | 郎启红 | Signage real-scene elevation shopping guide map and establishment method for same |
CN103727948A (en) * | 2012-10-16 | 2014-04-16 | 北京掌行通信息技术有限公司 | Real-time guidance method for bus taking navigation |
CN103208205A (en) * | 2013-03-20 | 2013-07-17 | 北京航空航天大学 | Vehicle safety driving early warning method based on vehicle internet |
US20170092057A1 (en) * | 2015-09-24 | 2017-03-30 | King.Com Limited | Controlling a user interface of a computer device |
CN105511763A (en) * | 2016-02-02 | 2016-04-20 | 上海逗屋网络科技有限公司 | Method and device for moving target object based on touch control operation |
CN105827959A (en) * | 2016-03-21 | 2016-08-03 | 深圳市至壹科技开发有限公司 | Geographic position-based video processing method |
CN106774872A (en) * | 2016-12-09 | 2017-05-31 | 网易(杭州)网络有限公司 | Virtual reality system, virtual reality exchange method and device |
CN107132981A (en) * | 2017-03-27 | 2017-09-05 | 网易(杭州)网络有限公司 | Display control method and device, storage medium, the electronic equipment of game picture |
CN107744659A (en) * | 2017-10-10 | 2018-03-02 | 杭州电魂网络科技股份有限公司 | Character location display methods and device |
Non-Patent Citations (1)
Title |
---|
无: "终结者2审判日荒野大逃杀官方安卓版", 《乐游网》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111481929A (en) * | 2020-05-18 | 2020-08-04 | 网易(杭州)网络有限公司 | Virtual character information display method and device, electronic equipment and computer medium |
CN111481929B (en) * | 2020-05-18 | 2023-04-07 | 网易(杭州)网络有限公司 | Virtual character information display method and device, electronic equipment and computer medium |
Also Published As
Publication number | Publication date |
---|---|
CN108509132B (en) | 2020-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11893217B2 (en) | Method and apparatus for aiming at virtual object, device, and storage medium | |
CN109794064A (en) | Interact plot implementation method, device, terminal and storage medium | |
US9017169B2 (en) | Franchise mechanic for interactive social games | |
US20140335954A1 (en) | Server device, and non-transitory computer-readable storage medium storing game program | |
US20140325070A1 (en) | Usage consumption for an invitee of a cloud system | |
CN107952241A (en) | Render control method, device and readable storage medium storing program for executing | |
KR20180117534A (en) | Information processing device, game program, and information processing method | |
CN109568951A (en) | Special display effect method of adjustment and device | |
CN108434737A (en) | Game element display methods, device and readable storage medium storing program for executing | |
US8821279B2 (en) | Game server, game controlling method thereof, non-transitory computer-readable medium and game system | |
CN115779433A (en) | Method, device, terminal and storage medium for controlling virtual object release technology | |
JP2015085084A (en) | Information processing device and game program | |
CN108509132A (en) | Position progress bar display methods, device and readable storage medium storing program for executing | |
CN113499586B (en) | Information prompting method and device in game, electronic equipment and storage medium | |
KR102286433B1 (en) | Method and system for game using skill succession in sports game | |
CN113018861B (en) | Virtual character display method and device, computer equipment and storage medium | |
CN110652727A (en) | Layered game design to present incentives | |
JP2022173458A (en) | Control program, control method, and computer | |
US20140155160A1 (en) | Gaming system providing a destructible game object mechanic | |
JP2016185283A (en) | Server system, game system, and program | |
CN106861191A (en) | Method, apparatus and system that game attributes update | |
KR101398087B1 (en) | Method and apparatus for compensating user input on touch-screen, Method for compensating user input in on-line game | |
JP2015173977A (en) | game method and game system | |
KR101401624B1 (en) | Method and apparatus for managing information of possessing character of sports game | |
US11893600B2 (en) | Reward provision device, reward provision method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |