CN112169332B - Display method, device and equipment of 2D map and storage medium - Google Patents

Display method, device and equipment of 2D map and storage medium Download PDF

Info

Publication number
CN112169332B
CN112169332B CN202010927102.3A CN202010927102A CN112169332B CN 112169332 B CN112169332 B CN 112169332B CN 202010927102 A CN202010927102 A CN 202010927102A CN 112169332 B CN112169332 B CN 112169332B
Authority
CN
China
Prior art keywords
map
layer
moving speed
background
intelligent agent
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
CN202010927102.3A
Other languages
Chinese (zh)
Other versions
CN112169332A (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.)
Duoyi Network Co ltd
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Guangzhou Duoyi Network Co ltd
Original Assignee
Duoyi Network Co ltd
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Guangzhou Duoyi Network 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 Duoyi Network Co ltd, GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD, Guangzhou Duoyi Network Co ltd filed Critical Duoyi Network Co ltd
Priority to CN202010927102.3A priority Critical patent/CN112169332B/en
Publication of CN112169332A publication Critical patent/CN112169332A/en
Application granted granted Critical
Publication of CN112169332B publication Critical patent/CN112169332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program

Landscapes

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

Abstract

The invention discloses a display method of a 2D map, which comprises the following steps: receiving a map position of an agent; dividing the map position into an intelligent object paste layer and a background paste layer; the intelligent object paste layer is positioned on the upper layer of the background paste layer, and the background paste layer comprises at least one paste layer; respectively determining the moving speed of the intelligent agent sticker layer and the moving speed of the background sticker layer according to the received target position of the intelligent agent and a preset game interface requirement; and respectively moving the intelligent body sticker layer and the background sticker layer according to the moving speed of the intelligent body sticker layer and the moving speed of the background sticker layer, so that the moving track of the current intelligent body in the map is displayed on a game interface. The embodiment of the invention also provides a display device, equipment and a storage medium of the 2D map, which can effectively solve the problem that the 2D lens in the prior art is lack of layering.

Description

Display method, device and equipment of 2D map and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a 2D map.
Background
At present, a terminal such as a mobile phone and a tablet computer can run an application program of a game, in many games, the game is often required to be played according to a map, one is to render an environment and a building in a game world onto a 2D map, cut the map, and then lay the map on a screen according to a position. The map processed in this way is only a static map, and the user experience is poor due to lack of layering sense when moving the shot. And the other method is to adopt a 3D map, make each building and the like in the game world into a 3D model respectively, and render the models together when the game runs. However, maps often have many buildings, and rendering numerous 3D models in a game brings huge performance overhead, and is easy to cause the problem of mortgage and even flash back.
Disclosure of Invention
The embodiment of the invention provides a display method, a display device, display equipment and a storage medium of a 2D map, which can effectively solve the problem that a 2D lens in the prior art is lack of layering.
An embodiment of the present invention provides a method for displaying a 2D map, including:
receiving a map position of an agent;
dividing the map position into an intelligent object paste layer and a background paste layer; the intelligent object paste layer is positioned on the upper layer of the background paste layer, and the background paste layer comprises at least one paste layer;
respectively determining the moving speed of the intelligent agent sticker layer and the moving speed of the background sticker layer according to the received target position of the intelligent agent and a preset game interface requirement;
respectively moving the intelligent agent map layer and the background map layer according to the moving speed of the intelligent agent map layer and the moving speed of the background map layer, so that the moving track of the current intelligent agent in the map is displayed on a game interface;
the receiving of the map location of the intelligent agent specifically includes: analyzing the current position of the intelligent agent according to the map position;
the determining the moving speed of the intelligent agent sticker layer and the moving speed of the background sticker layer according to the received target position of the intelligent agent and a preset game interface requirement specifically comprises: and when the distance between the target position of the intelligent agent and the current position is larger than a preset moving distance threshold value, re-receiving a map layer corresponding to the target position, and respectively determining the moving speed of the intelligent agent map layer and the moving speed of the background map layer according to preset game interface requirements.
As an improvement of the foregoing solution, after the dividing the map location into an agent map layer and a background map layer, before determining the moving speed of the agent map layer and the moving speed of the background map layer according to the received target location of the agent and a preset game interface requirement, further includes:
and respectively carrying out blocking processing on the intelligent agent paste layer and the background paste layer.
As an improvement of the foregoing solution, the determining, according to the received target position of the agent and a preset game interface requirement, the moving speed of the agent map layer and the moving speed of the background map layer respectively includes:
and when the distance between the target position of the intelligent agent and the current position is not greater than a preset moving distance threshold value, respectively determining the moving speed of the intelligent agent paste layer and the moving speed of the background paste layer according to preset game interface requirements.
As an improvement of the above scheme, the preset game interface requirements include: a first game interface state and a second game interface state;
correspondingly, the determining the moving speed of the intelligent object sticker layer and the moving speed of the background sticker layer according to the preset game interface requirements specifically includes:
controlling the moving speed of the intelligent object paste layer to be smaller than the moving speed of the background paste layer according to the state of the first game interface;
and controlling the moving speed of the intelligent object paste layer not to be less than the moving speed of the background paste layer according to the state of the second game interface.
As an improvement of the above solution, before the map location where the receiving agent is located, the method further includes:
and calling a virtual camera in the game scene to load the game scene.
Another embodiment of the present invention correspondingly provides a display device for a 2D map, including:
the receiving module is used for receiving the map position of the intelligent agent;
the map processing module is used for dividing the map position into an intelligent agent paste layer and a background paste layer; the intelligent object paste picture layer is positioned on the upper layer of the background paste picture layer, and the background paste picture layer comprises at least one paste picture layer;
the map layer speed configuration module is used for respectively determining the moving speed of the map layer of the intelligent agent and the moving speed of the map layer of the background paste according to the received target position of the intelligent agent and preset game interface requirements;
the map display module is used for respectively moving the intelligent agent sticker layer and the background sticker layer according to the moving speed of the intelligent agent sticker layer and the moving speed of the background sticker layer so as to display the moving track of the current intelligent agent in the map on a game interface;
wherein, the receiving module comprises: the position processing module is used for analyzing the current position of the intelligent agent according to the map position;
the map layer speed configuration module comprises: and the first moving speed processing module is used for receiving the map layer corresponding to the target position again when the distance between the target position of the intelligent agent and the current position is greater than a preset moving distance threshold value, and respectively determining the moving speed of the map layer of the intelligent agent and the moving speed of the map layer of the background map according to preset game interface requirements.
Another embodiment of the present invention provides a display apparatus for a 2D map, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the processor implements the display method for the 2D map according to the embodiment of the present invention.
Another embodiment of the present invention provides a storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, a device where the computer-readable storage medium is located is controlled to execute the method for displaying a 2D map according to the above-described embodiment of the present invention.
Compared with the prior art, the method for displaying the 2D map disclosed by the embodiment of the invention divides the map into the intelligent agent paste layer and the background paste layer according to the map position of the intelligent agent, and then determines the moving speed of the moving layer of the intelligent agent paste layer and the moving speed of the background paste layer according to the target position of the intelligent agent and the preset game interface requirement, so that the intelligent agent and the background can move at different moving speeds, the 2D map is rich in layering, meanwhile, a plurality of 3D models do not need to be rendered, the loading process of a game is smoother, and the map display is more complete.
Drawings
Fig. 1 is a schematic flow chart illustrating a method for displaying a 2D map according to an embodiment of the present invention;
fig. 2 is a specific schematic diagram of a display method of a 2D map according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a display device for a 2D map according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a display device for a 2D map according to an embodiment of the present invention.
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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Referring to fig. 1-2, a flow chart of a method for displaying a 2D map according to an embodiment of the present invention is shown.
An embodiment of the present invention provides a method for displaying a 2D map, including:
and S10, receiving the map position of the intelligent agent.
It should be noted that the method is performed by a display device of the 2D map. The agent can be a game object and can also be other characters which can move in the game. The map position comprises environmental information in a preset range of the current intelligent agent, and the preset range is specifically the interface size of the current terminal equipment. It can be understood that every time a map position is received, map information within a preset range is correspondingly acquired.
S20, dividing the map position into an intelligent agent paste layer and a background paste layer; the intelligent object paste layer is located on the upper layer of the background paste layer, and the background paste layer comprises at least one layer of paste layer.
It should be noted that the map location is divided into an agent map layer and a background map layer. And the background paste layer may be divided into several paste layers. For example, a building and the sky in the background can be split into different map layers, so that the 2D map has a more hierarchical sense. It is understood that the division may be performed as needed, and is not limited herein. In this embodiment, the configuration file is stored in the memory, and the configuration file is stored corresponding to the allocation of the map layer of the storage map. For example, the whole block map (with size M × N) is divided into M rows and N columns of squares, and the central anchor point position (x, y) of each block map is determined.
And S30, respectively determining the moving speed of the intelligent agent paste layer and the moving speed of the background paste layer according to the received target position of the intelligent agent and preset game interface requirements.
It should be noted that the target position of the agent is set by the user on the game interface. After the user selects the target location, the processor receives the movement instruction and determines the movement coordinates of the agent.
And S40, respectively moving the intelligent body map layer and the background map layer according to the moving speed of the intelligent body map layer and the moving speed of the background map layer, so that the moving track of the current intelligent body in the map is displayed on a game interface.
Specifically, the method sequentially renders the intelligent object paste layers on the game interface according to the moving speed of the intelligent object paste layers and the moving speed of the background paste layers.
In summary, the map is divided into an agent overlay layer and a background overlay layer according to the map position of the agent, and then the moving speed of the moving layer of the agent overlay layer and the moving speed of the background overlay layer are determined according to the target position of the agent and the preset game interface requirement, so that the agent and the background can move at different moving speeds, and the 2D map is rich in layering sense, and meanwhile, a plurality of 3D models do not need to be rendered, so that the loading process of the game is smoother, and the map display is more complete.
As an improvement of the foregoing solution, after the dividing the map location into an agent map layer and a background map layer, before determining the moving speed of the agent map layer and the moving speed of the background map layer according to the received target location of the agent and a preset game interface requirement, further includes:
and S21, respectively carrying out blocking processing on the intelligent body paste layer and the background paste layer.
Specifically, each map layer is partitioned, so that the situation that too large map textures are loaded to a memory at one time and only parts which need to be displayed are loaded can be avoided, the display process is more flow, and the user experience is improved.
In this embodiment, each paste layer is divided into blocks on average, each block is not greater than 256 × 256 pixels, and the blocks can be seamlessly spliced. It should be noted that the block size of each map layer may be different or the same, and the block size is set as needed, which is not limited herein.
As an improvement of the above scheme, the receiving a map location where an agent is located specifically includes:
and S11, resolving the current position of the intelligent agent according to the map position.
In this embodiment, when the current map position of the agent is received, the map itself corresponds to the coordinate system, so that the corresponding coordinate can be queried only according to the map position.
As an improvement of the above scheme, the determining, according to the received target position of the agent and a preset game interface requirement, a moving speed of the agent sticker layer and a moving speed of the background sticker layer respectively includes:
and when the distance between the target position of the intelligent agent and the current position is larger than a preset moving distance threshold value, re-receiving a map layer corresponding to the target position, and respectively determining the moving speed of the intelligent agent map layer and the moving speed of the background map layer according to preset game interface requirements.
Specifically, after receiving a target position selected by a user (i.e., receiving an instruction to move to the target position), the corresponding coordinates are queried according to the target position. If the distance between the current position and the target position is larger than the preset moving distance threshold, it indicates that the moving range of the agent exceeds the range displayed by the current game interface, and therefore, the map layer corresponding to the target position needs to be received again. And then determining the moving speed of the intelligent object paste layer and the moving speed of the background paste layer according to the preset game interface requirement. Therefore, the display effect of the game interface is more layered. It should be noted that the distance between the current position and the target position may be a linear distance or a displacement distance, and is not limited herein. The preset moving distance threshold is set in advance according to a number of experiments, and is not limited herein.
As an improvement of the above scheme, the determining, according to the received target position of the agent and a preset game interface requirement, a moving speed of the agent sticker layer and a moving speed of the background sticker layer respectively includes:
and when the distance between the target position of the intelligent agent and the current position is not larger than a moving distance threshold value, respectively determining the moving speed of the intelligent agent paste layer and the moving speed of the background paste layer according to preset game interface requirements.
Specifically, after receiving a target position selected by a user (i.e., receiving an instruction to move to the target position), the corresponding coordinates are queried according to the target position. If the distance between the current position and the target position is not larger than the preset moving distance threshold, it indicates that the moving range of the intelligent agent does not exceed the display range of the current game interface, and the moving speed of the intelligent agent paste layer and the moving speed of the background paste layer are determined only according to the preset game interface requirement.
As an improvement of the above solution, the preset game interface requirements include: a first game interface state and a second game interface state.
Correspondingly, the determining the moving speed of the intelligent object sticker layer and the moving speed of the background sticker layer according to the preset game interface requirements specifically includes:
and controlling the moving speed of the intelligent object paste layer to be smaller than the moving speed of the background paste layer according to the state of the first game interface.
And controlling the moving speed of the intelligent object paste layer not to be less than the moving speed of the background paste layer according to the state of the second game interface.
Specifically, the first game interface state is a display effect of a close view, and the second game interface state is a display effect of a long view.
In the game, the speed of the general game object is constant, that is, the moving speed is set to be constant, and the moving speed of the smart sticker layer is set to be good. The moving speed of the background paste layer is set according to the effect of the game interface to be displayed, and the moving speed of the background paste layer is the value with the optimal effect selected in the game development process, which is not limited herein. It can be understood that, when the game is developed, it is set that when the game is moved to a target position, a game interface requirement is corresponding, so that when a user plays the game, a corresponding display effect can be obtained when the user selects one target position.
As an improvement of the above solution, before the map location where the receiving agent is located, the method further includes:
and calling a virtual camera in the game scene to load the game scene.
In this embodiment, the virtual camera angle oblique angle of 45 degrees is rendered in alignment with the main character, and it is understood that the angle of the virtual camera is different according to the type of the game, and is not limited herein.
In the game, the simulation lens is required to move along with the player, and at the moment, the lens of the game is kept unchanged, and the game object moves in the opposite direction of the current moving speed relative to the map, so that the simulation lens can move along with the player.
Illustratively, two pasted image layers are taken as an example for explanation, the smart agent pasted image layer is an upper pasted image layer, the background pasted image layer is a lower pasted image layer, and p refers to a pixel unit pixel.
Overlay layer size 3994 × 2588, texture format RGBA4444, file format png, divided into slices each having a size not exceeding 256 × 256, for a total of 16 × 11 blocks. The lower layer map layer size 2386 x 1018, texture format RGB565, file format jpg, divided into tiles each size of 256 x 256 or less, for a total of 10 x 4 tiles. The moving speed of the upper map is v1=210p/s, and the moving speed of the lower map is v2=150p/s. The refresh threshold of the map is the distance of 1 block, i.e. over 256p, the map that needs to be loaded is refreshed once.
Fig. 3 is a schematic structural diagram of a display device for a 2D map according to an embodiment of the present invention.
An embodiment of the present invention correspondingly provides a display device for a 2D map, including:
the receiving module 10 is configured to receive a map location where an agent is located.
The map processing module 20 is configured to divide the map location into an intelligent agent map layer and a background map layer; the intelligent object paste picture layer is located on the upper layer of the background paste picture layer, and the background paste picture layer comprises at least one layer of paste picture layer.
And a map layer speed configuration module 30, configured to determine, according to the received target position of the agent and a preset game interface requirement, a moving speed of the agent map layer and a moving speed of the background map layer, respectively.
And the map display module 40 is configured to move the smart body map layer and the background map layer respectively according to the moving speed of the smart body map layer and the moving speed of the background map layer, so that a moving track of the current smart body in the map is displayed on a game interface.
According to the display device of the 2D map, the map is divided into the intelligent body paste layer and the background paste layer according to the map position of the intelligent body, and the moving speed of the moving layer of the intelligent body paste layer and the moving speed of the background paste layer are determined according to the target position of the intelligent body and the preset game interface requirement, so that the intelligent body and the background can move at different moving speeds, the 2D map is rich in layering, meanwhile, a plurality of 3D models do not need to be rendered, the loading process of a game is smoother, and the map display is more complete.
As an improvement of the above scheme, the apparatus further includes:
and the block processing module is used for respectively carrying out block processing on the intelligent agent paste layer and the background paste layer.
As an improvement of the above scheme, the receiving module 10 includes:
and the position processing module is used for analyzing the current position of the intelligent agent according to the map position.
As an improvement of the above solution, the mapping layer speed configuration module 30 includes:
and the first moving speed processing module is used for receiving the map layer corresponding to the target position again when the distance between the target position of the intelligent agent and the current position is greater than a preset moving distance threshold value, and respectively determining the moving speed of the map layer of the intelligent agent and the moving speed of the map layer of the background map according to preset game interface requirements.
As an improvement of the above solution, the mapping layer speed configuration module 30 includes:
and the second moving speed processing module is used for respectively determining the moving speed of the intelligent agent paste layer and the moving speed of the background paste layer according to preset game interface requirements when the distance between the target position of the intelligent agent and the current position is not greater than a preset moving distance threshold value.
As an improvement of the above solution, the apparatus further comprises:
and the game scene loading module is used for calling the virtual camera in the game scene to load the game scene.
Fig. 4 is a schematic view of a display device for a 2D map according to an embodiment of the present invention. The display device of the 2D map of the embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. The processor implements the steps in each of the above embodiments of the method for displaying a 2D map when executing the computer program. Alternatively, the processor implements the functions of the modules/units in the above device embodiments when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution process of the computer program in the display device of the 2D map.
The display device of the 2D map may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing device. The display device of the 2D map may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the schematic diagram is merely an example of a display device for a 2D map and does not constitute a limitation of a display device for a 2D map, and may include more or fewer components than shown, or some components in combination, or different components, for example, the display device for a 2D map may also include input and output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the display device of the 2D map, the various parts of the display device of the entire 2D map being connected by various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the display device of the 2D map by operating or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the 2D map display device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (8)

1. A method for displaying a 2D map, comprising:
receiving a map position of an intelligent agent;
dividing the map position into an intelligent object map layer and a background map layer; the intelligent object paste picture layer is positioned on the upper layer of the background paste picture layer, and the background paste picture layer comprises at least one paste picture layer;
respectively determining the moving speed of the intelligent agent sticker layer and the moving speed of the background sticker layer according to the received target position of the intelligent agent and a preset game interface requirement;
respectively moving the intelligent agent sticker layer and the background sticker layer according to the moving speed of the intelligent agent sticker layer and the moving speed of the background sticker layer, so that the moving track of the current intelligent agent in the map is displayed on a game interface;
the receiving of the map location of the intelligent agent specifically includes: analyzing the current position of the intelligent agent according to the map position;
the determining the moving speed of the intelligent agent sticker layer and the moving speed of the background sticker layer according to the received target position of the intelligent agent and a preset game interface requirement specifically comprises: and when the distance between the target position of the intelligent agent and the current position is larger than a preset moving distance threshold value, re-receiving a map layer corresponding to the target position, and respectively determining the moving speed of the intelligent agent map layer and the moving speed of the background map layer according to preset game interface requirements.
2. The method for displaying a 2D map according to claim 1, wherein after the dividing the map location into an agent map layer and a background map layer, before determining a moving speed of the agent map layer and a moving speed of the background map layer according to the received target location of the agent and a preset game interface requirement, respectively, further comprises:
and respectively carrying out blocking processing on the intelligent agent paste layer and the background paste layer.
3. The method for displaying a 2D map according to claim 1, wherein the determining the moving speed of the smart agent overlay and the moving speed of the background overlay according to the received target location of the smart agent and a preset game interface requirement respectively comprises:
and when the distance between the target position of the intelligent agent and the current position is not larger than a preset moving distance threshold value, respectively determining the moving speed of the intelligent agent paste layer and the moving speed of the background paste layer according to preset game interface requirements.
4. The display method of a 2D map according to claim 1 or 3,
the preset game interface requirements comprise: a first game interface state and a second game interface state;
correspondingly, the determining the moving speed of the intelligent object sticker layer and the moving speed of the background sticker layer according to the preset game interface requirements specifically includes:
controlling the moving speed of the intelligent object paste layer to be smaller than the moving speed of the background paste layer according to the state of the first game interface;
and controlling the moving speed of the intelligent object paste layer not to be less than the moving speed of the background paste layer according to the state of the second game interface.
5. The method of displaying a 2D map as claimed in claim 1, further comprising, prior to the receiving the map location of the agent:
and calling a virtual camera in the game scene to load the game scene.
6. A display device for a 2D map, comprising:
the receiving module is used for receiving the map position of the intelligent agent;
the map processing module is used for dividing the map position into an intelligent agent paste layer and a background paste layer; the intelligent object paste picture layer is positioned on the upper layer of the background paste picture layer, and the background paste picture layer comprises at least one paste picture layer;
the map layer speed configuration module is used for respectively determining the moving speed of the map layer of the intelligent agent and the moving speed of the map layer of the background paste according to the received target position of the intelligent agent and preset game interface requirements;
the map display module is used for respectively moving the intelligent agent sticker layer and the background sticker layer according to the moving speed of the intelligent agent sticker layer and the moving speed of the background sticker layer so as to display the moving track of the current intelligent agent in the map on a game interface;
wherein, the receiving module comprises: the position processing module is used for analyzing the current position of the intelligent agent according to the map position;
the map layer speed configuration module comprises: and the first moving speed processing module is used for receiving the map layer corresponding to the target position again when the distance between the target position of the intelligent agent and the current position is greater than a preset moving distance threshold value, and respectively determining the moving speed of the map layer of the intelligent agent and the moving speed of the map layer of the background map according to preset game interface requirements.
7. A display device for a 2D map, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the display method for a 2D map according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the method of displaying a 2D map according to any one of claims 1 to 5.
CN202010927102.3A 2020-09-07 2020-09-07 Display method, device and equipment of 2D map and storage medium Active CN112169332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010927102.3A CN112169332B (en) 2020-09-07 2020-09-07 Display method, device and equipment of 2D map and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010927102.3A CN112169332B (en) 2020-09-07 2020-09-07 Display method, device and equipment of 2D map and storage medium

Publications (2)

Publication Number Publication Date
CN112169332A CN112169332A (en) 2021-01-05
CN112169332B true CN112169332B (en) 2022-12-02

Family

ID=73925777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010927102.3A Active CN112169332B (en) 2020-09-07 2020-09-07 Display method, device and equipment of 2D map and storage medium

Country Status (1)

Country Link
CN (1) CN112169332B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104784931B (en) * 2015-04-21 2018-07-06 广州多益网络股份有限公司 A kind of mark of game object, method for selecting and device
CN106683037A (en) * 2015-11-06 2017-05-17 阿里巴巴集团控股有限公司 Method and equipment for three-dimensional visualized movement of track data
CN108664231B (en) * 2018-05-11 2021-02-09 腾讯科技(深圳)有限公司 Display method, device, equipment and storage medium of 2.5-dimensional virtual environment
IL261237B2 (en) * 2018-07-31 2023-10-01 Cloud Wise Ltd Method and system for real-time vehicle location and in-vehicle tracking device

Also Published As

Publication number Publication date
CN112169332A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
US10499035B2 (en) Method and system of displaying a popping-screen
CN107358649B (en) Processing method and device of terrain file
CN109377546B (en) Virtual reality model rendering method and device
US10311548B2 (en) Scaling render targets to a higher rendering resolution to display higher quality video frames
US20170154468A1 (en) Method and electronic apparatus for constructing virtual reality scene model
CN110163831B (en) Method and device for dynamically displaying object of three-dimensional virtual sand table and terminal equipment
CN110047123B (en) Map rendering method, map rendering device, storage medium and computer program product
CN110148203B (en) Method and device for generating virtual building model in game, processor and terminal
CN114531553B (en) Method, device, electronic equipment and storage medium for generating special effect video
CN107423366B (en) Carousel graph switching method and device
CN111583378B (en) Virtual asset processing method and device, electronic equipment and storage medium
CN112634414A (en) Map display method and device
CN111290680B (en) List display method, device, terminal and storage medium
CN110930492B (en) Model rendering method, device, computer readable medium and electronic equipment
CN115063518A (en) Track rendering method and device, electronic equipment and storage medium
CN114782648A (en) Image processing method, image processing device, electronic equipment and storage medium
WO2024060949A1 (en) Method and apparatus for augmented reality, device, and storage medium
CN112169332B (en) Display method, device and equipment of 2D map and storage medium
CN111569418B (en) Rendering method, device and medium for content to be output and electronic equipment
CN109598800A (en) A kind of three-dimensional electronic sand table display methods, device, equipment and storage medium
KR102108244B1 (en) Image processing method and device
CN111790151A (en) Method and device for loading object in scene, storage medium and electronic equipment
US11769466B2 (en) Image display method and apparatus, device, and storage medium
CN116452704A (en) Method and device for generating lens halation special effect, storage medium and electronic device
CN113724364B (en) Setting method and device for realizing shielding and rendering-free body by utilizing polygons

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