CN108509132B - Position progress bar display method and device and readable storage medium - Google Patents

Position progress bar display method and device and readable storage medium Download PDF

Info

Publication number
CN108509132B
CN108509132B CN201810273950.XA CN201810273950A CN108509132B CN 108509132 B CN108509132 B CN 108509132B CN 201810273950 A CN201810273950 A CN 201810273950A CN 108509132 B CN108509132 B CN 108509132B
Authority
CN
China
Prior art keywords
progress bar
area
distance
game
position progress
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810273950.XA
Other languages
Chinese (zh)
Other versions
CN108509132A (en
Inventor
林强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Electronic Soul Network Technology Co Ltd
Original Assignee
Hangzhou Electronic Soul Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Electronic Soul Network Technology Co Ltd filed Critical Hangzhou Electronic Soul Network Technology Co Ltd
Priority to CN201810273950.XA priority Critical patent/CN108509132B/en
Publication of CN108509132A publication Critical patent/CN108509132A/en
Application granted granted Critical
Publication of CN108509132B publication Critical patent/CN108509132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/0485Scrolling or panning
    • G06F3/04855Interaction with scrollbars
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention provides a position progress bar display method and device and a readable storage medium. The game scene comprises a first activity area, a second activity area and a position progress bar of a game role, and the first position progress bar and the second position progress bar are spliced to form the position progress bar. According to the scheme, the position information of the current game role in a game scene is firstly acquired, the position area where the game role is located is determined according to the position information, the distance information from the game role to the second activity area is calculated according to the determined position area, the position parameter of the game role on the position progress bar is calculated according to the calculated distance information and the length proportion between the first position progress bar and the second position progress bar, and finally the position of the game role is displayed at the corresponding position on the position progress bar based on the position parameter. Therefore, the scheme occupies small screen space, does not need a player to perform complex operation of switching for many times, and greatly improves game experience of the player.

Description

Position progress bar display method and device and readable storage medium
Technical Field
The invention relates to the technical field of games, in particular to a position progress bar display method and device and a readable storage medium.
Background
In many Multiplayer Online tactical sports Games (MOBA Games for short), exploring maps, war misting and the like are important links for determining game victory or defeat and increasing game experience of players. In the game process, the member objects participating in the game are often in a moving state, a plurality of game areas are generally available in the game, such as an external dangerous area and an internal safe area, and in order to give a prompt to the current area of the player, the current coordinates of the player are generally displayed on a scene map separately. However, in the practical application process, the scene map occupies a large part of the terminal screen, and the current player often needs to repeatedly perform operations such as switching the view field and the like to observe the moving position and the moving condition of the current position, so as to determine the propulsion strategy of the current game. That is to say, the player position information display method adopted in the existing game application has the problems of complex display and troublesome operation of the player, and the game experience of the player is seriously influenced.
Disclosure of Invention
In order to overcome the above disadvantages in the prior art, an object of the present invention is to provide a position progress bar display method, device and readable storage medium, which prompt the coordinate position of a game character in a current game scene through a position progress bar, occupy a small screen space, and greatly improve the game experience of a player without requiring the player to perform complex operations of switching for many times.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
with reference to the first aspect, an embodiment of the present invention provides a position progress bar display method, which is applied to a game client, where a game scene runs on the game client, the game scene includes a first activity area, a second activity area, and a position progress bar of a game character, the first activity area surrounds the second activity area along a predetermined speed, the first activity area and the second activity area are both in geometric shapes with the same shape, the position progress bar includes a first position progress bar corresponding to the first activity area and a second position progress bar corresponding to the second activity area, and the first position progress bar and the second position progress bar are spliced to form the position progress bar, and the method includes:
acquiring position information of a current game role in the game scene;
determining the current position area of the game role according to the position information;
calculating distance information from the game character to the second activity area according to the determined position area;
calculating the position parameters of the game role on the position progress bar according to the calculated distance information and the length proportion between the first position progress bar and the second position progress bar;
displaying the position of the game character at a corresponding position on the position progress bar based on the position parameter.
With reference to the second aspect, an embodiment of the present invention further provides a position progress bar display device, which is applied to a game client, where a game scene runs on the game client, the game scene includes a first activity area, a second activity area, and a position progress bar of a game character, the first activity area surrounds the second activity area along a predetermined speed, the first activity area and the second activity area are both in geometric shapes with the same shape, the position progress bar includes a first position progress bar corresponding to the first activity area and a second position progress bar corresponding to the second activity area, and the first position progress bar and the second position progress bar are spliced to form the position progress bar, and the device includes:
the acquisition module is used for acquiring the position information of the current game role in the game scene;
the determining module is used for determining the current position area of the game role according to the position information;
the first calculation module is used for calculating the distance information from the game role to the second activity area according to the determined position area;
the second calculation module is used for calculating the position parameters of the game role on the position progress bar according to the calculated distance information and the length proportion between the first position progress bar and the second position progress bar;
and the display module is used for displaying the position of the game role at the corresponding position on the position progress bar based on the position parameter.
With reference to the third aspect, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored, and when the computer program is executed, the method for displaying the position progress bar is implemented.
Compared with the prior art, the invention has the following beneficial effects:
the embodiment of the invention provides a position progress bar display method and device and a readable storage medium. The game scene comprises a first activity area, a second activity area and a position progress bar of a game role, and the first position progress bar and the second position progress bar are spliced to form the position progress bar. According to the scheme, the position information of the current game role in a game scene is firstly acquired, the position area where the game role is located is determined according to the position information, the distance information from the game role to the second activity area is calculated according to the determined position area, the position parameter of the game role on the position progress bar is calculated according to the calculated distance information and the length proportion between the first position progress bar and the second position progress bar, and finally the position of the game role is displayed at the corresponding position on the position progress bar based on the position parameter. Therefore, the coordinate position of the game role in the current game scene is prompted through the position progress bar, the occupied screen space is small, the complex operation of multiple switching by the player is not needed, and the game experience of the player is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a block diagram schematically illustrating a game client according to an embodiment of the present invention;
FIG. 2 is a functional block diagram of a position progress bar display device according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for displaying a position progress bar according to an embodiment of the present invention;
FIG. 4 is a scene diagram of a game scene according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a position progress bar according to an embodiment of the present invention;
FIG. 6a is a schematic diagram of a region division of the game scene shown in FIG. 4 according to an embodiment of the present invention;
FIG. 6b is an illustrative diagram of a game character located in a first location area in the game scene shown in FIG. 4;
FIG. 6c is an illustrative diagram of a game character located in a second location area of the game scene shown in FIG. 4;
FIG. 6d is an illustrative diagram of a game character located in a second activity area of the game scene shown in FIG. 4;
FIG. 7 is a schematic view of another game scenario provided by an embodiment of the present invention;
FIG. 8a is a schematic diagram of a region division of the game scene shown in FIG. 7 according to an embodiment of the present invention;
FIG. 8b is an illustrative diagram of a game character located in a first location area in the game scene shown in FIG. 7;
FIG. 8c is an illustrative diagram of a game character located in a second location area within the game scene shown in FIG. 7;
FIG. 8d is an illustration of a game character located in a second activity area of the game scene shown in FIG. 7.
Icon: 100-a game client; 110-a bus; 120-a processor; 130-a storage medium; 140-bus interface; 150-a network adapter; 160-a user interface; 200-position progress bar display means; 210-an obtaining module; 220-a determination module; 230-a first calculation module; 240-a second calculation module; 250-display module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Referring to fig. 1, a block diagram of a game client according to an embodiment of the present invention is further provided. The game client may send or receive signals over a wired or wireless network, for example, or may process or store signals in a physical storage state, such as in memory. Each game client may be an electronic device comprising hardware, software, or embedded logic elements, or a combination of two or more such elements, and capable of performing the appropriate functions implemented or supported by the game client. Optionally, the game client may be a device with wireless transceiving function, including an indoor or outdoor, handheld, wearable or vehicle-mounted device.
As shown in FIG. 1, the game client 100 may be implemented by a bus 110 as a general bus architecture. The bus 110 may include any number of interconnecting buses and bridges depending on the specific application of the game client 100 and the overall design constraints. Bus 110 connects various circuits together, including processor 120, storage medium 130, and bus interface 140. Alternatively, the game client 100 may connect a network adapter 150 or the like via the bus 110 using the bus interface 140. The network adapter 150 may be used to implement signal processing functions of a physical layer in the game client 100, and implement transmission and reception of radio frequency signals through an antenna. The user interface 160 may connect external devices such as: a keyboard, a display, a mouse or a joystick, etc. The bus 110 may also connect various other circuits such as timing sources, peripherals, voltage regulators, or power management circuits, which are well known in the art, and therefore, will not be described in detail.
Alternatively, the game client 100 may be configured as a general purpose processing system, such as what is commonly referred to as a chip, including: one or more microprocessors providing processing functions, and an external memory providing at least a portion of storage medium 130, all connected together with other support circuits through an external bus architecture.
Alternatively, the game client 100 may be implemented using an ASIC (application specific integrated circuit) having a processor 120, a bus interface 140, a user interface 160; and at least a portion of the storage medium 130 integrated in a single chip, or the game client 100 may be implemented using one or more FPGAs (field programmable gate arrays), PLDs (programmable logic devices), controllers, state machines, gate logic, discrete hardware components, any other suitable circuitry, or any combination of circuitry capable of performing the various functions described throughout this disclosure.
Among other things, processor 120 is responsible for managing bus 110 and general processing (including the execution of software stored on storage medium 130). Processor 120 may be implemented using one or more general-purpose processors and/or special-purpose processors. Examples of processor 120 include microprocessors, microcontrollers, DSP processors, and other circuits capable of executing software. Software should be construed broadly to mean instructions, data, or any combination thereof, whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise.
Storage medium 130 is shown in FIG. 1 as being separate from processor 120, however, one skilled in the art will readily appreciate that storage medium 130, or any portion thereof, may be located outside of game client 100. Storage medium 130 may include, for example, a transmission line, a carrier waveform modulated with data, and/or a computer product separate from the wireless node, which may be accessed by processor 120 via bus interface 140. Alternatively, the storage medium 130, or any portion thereof, may be integrated into the processor 120, e.g., may be a cache and/or general purpose registers.
The processor 120 may execute the above embodiments, specifically, the storage medium 130 stores a position progress bar display device 200 therein, and the processor 120 may be configured to execute the position progress bar display device 200.
Referring to fig. 2, a functional block diagram of the position progress bar display apparatus 200 according to an embodiment of the present invention is shown, where the position progress bar display apparatus 200 includes:
the obtaining module 210 is configured to obtain position information of a current game role in the game scene.
The determining module 220 is configured to determine a current location area where the game character is located according to the location information.
A first calculating module 230, configured to calculate distance information between the game character and the second activity area according to the determined location area.
The second calculating module 240 is configured to calculate a position parameter of the game character on the position progress bar according to the calculated distance information and a length ratio between the first position progress bar and the second position progress bar.
A display module 250, configured to display the position of the game character at a corresponding position on the position progress bar based on the position parameter.
Referring to fig. 3, a schematic flow chart of a method for displaying a position progress bar according to an embodiment of the present invention is shown, where the method is executed by the game client 100 shown in fig. 1, and each functional module included in the position progress bar display apparatus 200 is described in detail below with reference to fig. 3. It should be noted that the position progress bar display method provided by the embodiment of the present invention is not limited by the specific sequence shown in fig. 3 and described below. The position progress bar display method can be realized by the following steps:
step S210, obtaining position information of the current game role in the game scene. In this embodiment, the step S210 is executed by the obtaining module 210.
In this embodiment, a game scene, for example as shown in fig. 4, is run on the game client 100, the game scene includes a first activity area, a second activity area, and a position progress bar of a game character, the first activity area surrounds the second activity area along a predetermined speed, and the first activity area and the second activity area are both geometric shapes having the same shape.
In the game scenario shown in fig. 4, the first activity area and the second activity area are both quadrilateral, and the first activity area may include a transition area, and each area boundary of the transition area surrounds the second activity area along a predetermined speed and gradually decreases, so that the first activity area surrounds the second activity area.
As shown in fig. 5, the position progress bar may include a first position progress bar corresponding to the first activity area and a second position progress bar corresponding to the second activity area, and the first position progress bar and the second position progress bar are spliced to form the position progress bar, where a length ratio between the first position progress bar and the second position progress bar is always a fixed ratio, and the fixed ratio may be set according to an actual situation.
The position progress bar can be used for displaying the position parameters of the current position of the game role, occupies small screen space, does not influence the game process of a game player, and is convenient for the game player to clearly know the current position. Specifically, the position parameter may be a numerical parameter between 0 and 1, and when the game character is located outside the first activity area or located at the boundary of the first activity area, the position parameter is 0.
Step S220, determining the current position area of the game role according to the position information. In this embodiment, the step S220 is executed by the determining module 220.
In this embodiment, as shown in fig. 6a, taking the first active area and the second active area as an example, the first active area may include a first location area and a second location area, the first location area is a location area intersecting with a boundary of the second active area, such as A, B, C, D shown in fig. 6a, and the second location area is a location area intersecting with a point of the second active area, such as E, F, G, H shown in fig. 6 a.
And step S230, calculating the distance information between the game character and the second activity area according to the determined position area. In this embodiment, the step S230 is executed by the first calculating module 230.
Step S240, calculating a position parameter of the game character on the position progress bar according to the calculated distance information and the length ratio between the first position progress bar and the second position progress bar. In this embodiment, the step S240 is executed by the second calculating module 240.
In detail, if the determined position area is the first position area, a first distance between the position of the game character and a target boundary and a second distance between a boundary of the first position area opposite to the target boundary and the target boundary are calculated, and the first distance and the second distance are used as the distance information, wherein the target boundary is a boundary where the first position area and the second activity area intersect. For example, as shown in fig. 6b, the area where the game character is currently located is an area a, that is, the first location area, and at this time, a first distance L from the location where the game character is located to the boundary between the area a and the first activity area, that is, the arrow distance shown in fig. 6b, and a second distance S from the boundary of the area a opposite to the target boundary, that is, the distance from the upper boundary to the lower boundary of the area a, are calculated. The first distance L and the second distance S serve as the distance information.
Then, calculating a distance ratio L/S of the first distance L and the second distance S, calculating a position ratio of the first position progress bar to the position progress bar according to a length ratio between the first position progress bar and the second position progress bar, taking the length ratio between the first position progress bar and the second position progress bar as 3:1 as an example, the position ratio of the first position progress bar to the position progress bar is 3/4, and finally calculating a position parameter W of the game character on the position progress bar as (1-L/S) × 3/4 according to the distance ratio and the position ratio.
Or, if the determined position area is the second position area, two first distances between the position of the game character and a target boundary and two second distances between a boundary of the second position area opposite to the target boundary and the target boundary are calculated, and the two first distances and the two second distances are used as the distance information, wherein the target boundary is two boundaries where the first position area and the second active area intersect. For example, as shown in fig. 6c, the area where the game character is currently located is an F area, that is, the second location area, at this time, two first distances from the location where the game character is located to two boundaries where the F area intersects with the second activity area point are calculated, that is, La and Lb, that is, two arrow distances shown in fig. 6c, respectively, and two second distances from a boundary of the F area opposite to the target boundary, that is, Sa and Sb, that is, a distance from an upper boundary to a lower boundary of the F area and a distance from a left boundary to a right boundary of the F area, respectively. The first distances La and Lb, and the second distances Sa and Sb are the distance information.
Then, respectively calculating the distance ratio of each first distance to the corresponding second distance to obtain two distance ratios La/Sa and Lb/Sb, and selecting the maximum ratio of the two distance ratios as a target distance ratio. And calculating the position proportion of the first position progress bar in the position progress bar according to the length proportion between the first position progress bar and the second position progress bar, taking the length proportion between the first position progress bar and the second position progress bar as 3:1 as an example, the position proportion of the first position progress bar in the position progress bar is 3/4, and finally calculating the position parameter W of the game character on the position progress bar according to the target distance ratio and the position proportion, wherein the position parameter W is (1-max (La/Sa, Lb/Sb)). 3/4, and the meaning of max (La/Sa, Lb/Sb) is the larger value of La/Sa and Lb/Sb.
Or, if the determined position area is the second activity area, calculating a first distance between the position of the game character and the center of gravity of the second activity area, and a plurality of second distances between the center of gravity of the second activity area and each boundary of the second activity area, and calculating a plurality of component distances of the first distance in each boundary direction of the second activity area, where the plurality of component distances and the plurality of second distances are used as the distance information. For example, as shown in fig. 6d, when the area where the game character is currently located is the second activity area, a distance between the position where the game character is located and the center of gravity is calculated to be L, where a component distance of L in the vertical direction is La, a component distance of L in the horizontal direction is Lb, a vertical distance of the upper boundary of the second activity area and the center of gravity is Sa, a vertical distance of the left boundary of the safety area and the center of gravity is Sb, and the component distances La and Lb and the second distances Sa and Sb are the distance information.
Then, respectively calculating the distance ratio of each first distance to the corresponding second distance to obtain a plurality of distance ratios, namely La/Sa and Lb/Sb, then selecting the maximum ratio of the plurality of distance ratios as a target distance ratio, and calculating the first position ratio of the first position progress bar to the position progress bar and the second position ratio of the second position progress bar to the position progress bar according to the length ratio between the first position progress bar and the second position progress bar, taking the length ratio between the first position progress bar and the second position progress bar as 3:1 as an example, the position ratio of the first position progress bar to the position progress bar is 3/4, and the position ratio of the second position progress bar to the position progress bar is 1/4, and finally, calculating a position parameter W (3/4 + (1-max (La/Sa, Lb/Sb)). times. 1/4 of the game character on the position progress bar according to the target distance ratio, the first position proportion and the second position proportion.
The position parameters of the game role in the current game scene can be calculated through the calculation steps.
The above scenario is described in another game scenario. Referring to fig. 7, in the game scene shown in fig. 7, the first active area and the second active area are both hexagonal. With further reference to fig. 8a, the first activity area may include a first location area, which is a location area that intersects the second activity area boundary, such as a shown in fig. 8a, and a second location area, which is a location area that intersects the second activity area point, such as B, C shown in fig. 6 a.
As shown in fig. 8b, the area where the game character is currently located is an area a, that is, the first location area, and at this time, a first distance L from the location where the game character is located to the boundary between the area a and the first activity area, that is, the arrow distance shown in fig. 6b, and a second distance S from the boundary of the area a opposite to the target boundary, that is, the distance from the upper boundary to the lower boundary of the area a, are calculated. The first distance L and the second distance S serve as the distance information.
Then, calculating a distance ratio L/S of the first distance L and the second distance S, calculating a position ratio of the first position progress bar to the position progress bar according to a length ratio between the first position progress bar and the second position progress bar, taking the length ratio between the first position progress bar and the second position progress bar as 3:1 as an example, the position ratio of the first position progress bar to the position progress bar is 3/4, and finally calculating a position parameter W of the game character on the position progress bar as (1-L/S) × 3/4 according to the distance ratio and the position ratio.
Or, as shown in fig. 8c, the area where the game character is currently located is a B area, that is, the second location area, at this time, two first distances from the location where the game character is located to two boundaries where the B area intersects with the second activity area point are calculated, that is, La and Lb, that is, two arrow distances shown in fig. 8c, and two second distances from a boundary where the B area is opposite to the target boundary, that is, a distance from a right upper boundary of the F area to a right upper boundary of the second activity area, and a distance from the right boundary of the F area to a right upper boundary of the second activity area. The first distances La and Lb, and the second distances Sa and Sb are the distance information.
Then, respectively calculating the distance ratio of each first distance to the corresponding second distance to obtain two distance ratios La/Sa and Lb/Sb, and selecting the maximum ratio of the two distance ratios as a target distance ratio. And calculating the position proportion of the first position progress bar in the position progress bar according to the length proportion between the first position progress bar and the second position progress bar, taking the length proportion between the first position progress bar and the second position progress bar as 3:1 as an example, the position proportion of the first position progress bar in the position progress bar is 3/4, and finally calculating the position parameter W of the game character on the position progress bar according to the target distance ratio and the position proportion, wherein the position parameter W is (1-max (La/Sa, Lb/Sb)). 3/4, and the meaning of max (La/Sa, Lb/Sb) is the larger value of La/Sa and Lb/Sb.
Still alternatively, as shown in fig. 6d, the area where the game character is currently located is the second activity area, and then the distance between the position where the game character is located and the center of gravity is calculated to be L, where the component distances of L in the directions of the boundaries of the second activity area are L1, L2, and L3.. the perpendicular distances of the boundaries of the second activity area to the center of gravity are S1, S2, and S3.. the component distances L1, L2, and L3.. the second distances S1, S2, and S3.. the distances are the distance information.
Then, respectively calculating a distance ratio of each first distance to the corresponding second distance to obtain a plurality of distance ratios, namely L1/S1, L2/S2, and L3/S3.. to obtain a plurality of distance ratios, then selecting a maximum ratio of the distance ratios as a target distance ratio, and calculating a first position ratio of the first position progress bar to the position progress bar and a second position ratio of the second position progress bar to the position progress bar according to a length ratio between the first position progress bar and the second position progress bar, taking a length ratio between the first position progress bar and the second position progress bar as 3:1 as an example, a position ratio of the first position progress bar to the position progress bar is 3/4, and a position ratio of the second position progress bar to the position progress bar is 1/4, and finally, calculating a position parameter W (3/4 + (1-max (L1/S1, L2/S2, L3/S3.) 1/4) of the game character on the position progress bar according to the target distance ratio, the first position proportion and the second position proportion.
And step S250, displaying the position of the game character at the corresponding position on the position progress bar based on the position parameter. In this embodiment, the step S250 is executed by the display module 250.
In this embodiment, after the position parameter is calculated, the position of the game character is displayed at the corresponding position on the position progress bar based on the position parameter, for example, taking the length ratio between the first position progress bar and the second position progress bar as 3:1 as an example, if the calculated position parameter is between 0 and 3/4, it indicates that the game character is located in the first activity area, wherein the larger the position parameter, the closer it is to the second activity area. If the calculated location parameter is between 3/4-1, then the game character is indicated to be located in the second activity zone, wherein the greater the location parameter, the further it is from the first acquisition zone. Based on the scheme, the coordinate position of the game role in the current game scene is prompted through the position progress bar, the occupied screen space is small, and the complex operation of switching for many times by a player is not needed. Meanwhile, the game player can know the position of the game player in the game scene clearly, the current advancing strategy of the game is determined, and the game experience of the player is greatly improved.
Further, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored, and when the computer program is executed, the method for displaying a position progress bar is implemented.
In summary, embodiments of the present invention provide a method and an apparatus for displaying a position progress bar, and a readable storage medium. The game scene comprises a first activity area, a second activity area and a position progress bar of a game role, and the first position progress bar and the second position progress bar are spliced to form the position progress bar. According to the scheme, the position information of the current game role in a game scene is firstly acquired, the position area where the game role is located is determined according to the position information, the distance information from the game role to the second activity area is calculated according to the determined position area, the position parameter of the game role on the position progress bar is calculated according to the calculated distance information and the length proportion between the first position progress bar and the second position progress bar, and finally the position of the game role is displayed at the corresponding position on the position progress bar based on the position parameter. Therefore, the coordinate position of the game role in the current game scene is prompted through the position progress bar, the occupied screen space is small, the complex operation of multiple switching by the player is not needed, and the game experience of the player is greatly improved.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Alternatively, all or part of the implementation may be in software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (9)

1. A position progress bar display method is applied to a game client, a game scene runs on the game client, the game scene comprises a first activity area, a second activity area and a position progress bar of a game role, the first activity area surrounds the second activity area along a preset speed, the first activity area and the second activity area are both in geometric shapes with the same shape, the position progress bar comprises a first position progress bar corresponding to the first activity area and a second position progress bar corresponding to the second activity area, the first position progress bar and the second position progress bar are spliced to form the position progress bar, the first activity area comprises a first position area and a second position area, and the first position area is a position area intersected with the boundary of the second activity area, the second location area is a location area that intersects the second activity area point, the method comprising:
acquiring position information of a current game role in the game scene;
determining the current position area of the game role according to the position information;
calculating distance information from the game character to the second activity area according to the determined position area;
calculating the position parameters of the game role on the position progress bar according to the calculated distance information and the length proportion between the first position progress bar and the second position progress bar;
displaying the position of the game character at a corresponding position on the position progress bar based on the position parameter.
2. The position progress bar display method according to claim 1, wherein the step of calculating distance information of the game character to the second activity area according to the determined position area includes:
if the determined position area is the first position area, calculating a first distance between the position of the game character and a target boundary and a second distance between a boundary of the first position area opposite to the target boundary and the target boundary, wherein the first distance and the second distance are used as the distance information, and the target boundary is a boundary where the first position area and the second movement area intersect.
3. The position progress bar display method according to claim 2, wherein the step of calculating the position parameter of the game character on the position progress bar based on the calculated distance information and the length ratio between the first position progress bar and the second position progress bar comprises:
calculating a distance ratio of the first distance and the second distance;
calculating the position proportion of the first position progress bar in the position progress bar according to the length proportion between the first position progress bar and the second position progress bar;
and calculating the position parameters of the game role on the position progress bar according to the distance ratio and the position proportion.
4. The position progress bar display method according to claim 1, wherein the step of calculating distance information of the game character to the second activity area according to the determined position area further comprises:
if the determined position area is the second position area, calculating two first distances between the position of the game character and a target boundary, and two second distances between a boundary of the second position area opposite to the target boundary and the target boundary, wherein the two first distances and the two second distances are used as the distance information, and the target boundary is two boundaries where the first position area and the second activity area intersect.
5. The position progress bar display method according to claim 4, wherein the step of calculating the position parameter of the game character on the position progress bar based on the calculated distance information and the length ratio between the first position progress bar and the second position progress bar comprises:
respectively calculating the distance ratio of each first distance to the corresponding second distance to obtain two distance ratios;
selecting the maximum ratio of the two distance ratios as a target distance ratio;
calculating the position proportion of the first position progress bar in the position progress bar according to the length proportion between the first position progress bar and the second position progress bar;
and calculating the position parameters of the game role on the position progress bar according to the target distance ratio and the position proportion.
6. The position progress bar display method according to claim 1, wherein the step of calculating distance information of the game character to the second activity area according to the determined position area further comprises:
if the determined position area is the second activity area, calculating a first distance from the position of the game character to the gravity center of the second activity area, and a plurality of second distances from the gravity center of the second activity area to each boundary of the second activity area;
calculating a plurality of component distances of the first distance in each boundary direction of the second active region, the plurality of component distances and the plurality of second distances as the distance information.
7. The position progress bar display method according to claim 6, wherein the step of calculating the position parameter of the game character on the position progress bar based on the calculated distance information and the length ratio between the first position progress bar and the second position progress bar comprises:
respectively calculating the distance ratio of each first distance to the corresponding second distance to obtain a plurality of distance ratios;
selecting a maximum ratio of the plurality of distance ratios as a target distance ratio;
calculating a first position proportion of the first position progress bar in the position progress bar and a second position proportion of the second position progress bar in the position progress bar according to a length proportion between the first position progress bar and the second position progress bar;
and calculating the position parameters of the game role on the position progress bar according to the target distance ratio, the first position proportion and the second position proportion.
8. A position progress bar display device is applied to a game client, a game scene runs on the game client, the game scene comprises a first activity area, a second activity area and a position progress bar of a game role, the first activity area surrounds the second activity area along a preset speed, the first activity area and the second activity area are both in geometric shapes with the same shape, the position progress bar comprises a first position progress bar corresponding to the first activity area and a second position progress bar corresponding to the second activity area, the first position progress bar and the second position progress bar are spliced to form the position progress bar, the first activity area comprises a first position area and a second position area, and the first position area is a position area intersected with the boundary of the second activity area, the second location area is a location area that intersects the second activity area point, the apparatus comprising:
the acquisition module is used for acquiring the position information of the current game role in the game scene;
the determining module is used for determining the current position area of the game role according to the position information;
the first calculation module is used for calculating the distance information from the game role to the second activity area according to the determined position area;
the second calculation module is used for calculating the position parameters of the game role on the position progress bar according to the calculated distance information and the length proportion between the first position progress bar and the second position progress bar;
and the display module is used for displaying the position of the game role at the corresponding position on the position progress bar based on the position parameter.
9. A readable storage medium, wherein a computer program is stored in the readable storage medium, and when executed, the computer program implements the position progress bar display method according to any one of claims 1 to 7.
CN201810273950.XA 2018-03-29 2018-03-29 Position progress bar display method and device and readable storage medium Active CN108509132B (en)

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 CN108509132A (en) 2018-09-07
CN108509132B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111481929B (en) * 2020-05-18 2023-04-07 网易(杭州)网络有限公司 Virtual character information display method and device, electronic equipment and computer medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4116039B2 (en) * 2006-01-27 2008-07-09 株式会社スクウェア・エニックス GAME DEVICE, 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
CN102881218B (en) * 2012-08-20 2016-10-05 温州璞牛装饰工程有限公司 Shop recruits the method for building up of outdoor scene facade shopping guide's map
US9911272B2 (en) * 2015-09-24 2018-03-06 King.Com Ltd. 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
CN107132981B (en) * 2017-03-27 2019-03-19 网易(杭州)网络有限公司 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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
终结者2审判日荒野大逃杀官方安卓版;无;《乐游网》;20170929;第1-4页 *

Also Published As

Publication number Publication date
CN108509132A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
US10232253B2 (en) Game method, game terminal, and game system utilizing map data
CN107835148B (en) Game role control method, device and system and game client
CN107952243B (en) Path determining method and device
CN108171797B (en) Grid object generation method and device
CN107952241B (en) Rendering control method and device and readable storage medium
JP5952667B2 (en) Message management apparatus, message management method, and program
US20140316700A1 (en) Systems and Methods for Path Finding
CN106693365B (en) A kind of quick transfer approach of game object and device
CN106802664B (en) Unmanned aerial vehicle headless mode flight control method and unmanned aerial vehicle
US20160026355A1 (en) Accessible chart navigation using object neighborhood
CN111135561A (en) Game role display method, device, storage medium and electronic equipment
EP3214458A1 (en) Computer-implemented method for displaying reception status of beacon on electronic map
CN112619143B (en) Role identification display method, device, equipment and storage medium
CN108509132B (en) Position progress bar display method and device and readable storage medium
KR101866657B1 (en) System and method for providing game
CN108268504A (en) A kind of method and apparatus for the region of search for dividing point of interest
CN115903831A (en) Vehicle driving control method and device, vehicle and storage medium
EP3605459A1 (en) Three-dimensional data generation device, three-dimensional data generation method, three-dimensional data generation program, and computer-readable recording medium having three-dimensional data generation program recorded thereon
CN107823886B (en) Occlusion attribute configuration method and device and readable storage medium
CN103984515A (en) Position information display device, position information display method and monitoring terminal
CN108282737A (en) A kind of antenna adjusting method and equipment
CN113413588B (en) Game task processing method and device, electronic equipment and storage medium
CN110113712B (en) Positioning processing method and device
CN114669052A (en) Game control method, device, equipment and storage medium
US20170277362A1 (en) Method and electronic device for controlling focus box

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