Method for drawing map in game
A technology for map drawing and games, which is applied in the fields of instruments, calculations, and electrical digital data processing, etc. It can solve problems such as inability to complete logic operations on game screens, low processing speed of mobile phones, and jumping frames on game screens, so as to sacrifice image quality and guarantee Fluidity, the effect of shortening the cycle time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0043] The present invention is a method for drawing maps in games. In order to make the purpose, technical solution, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.
[0044] At first, the method provided by the present invention is generally described:
[0045] The method provided by the present invention comprises steps:
[0046] Step (1): When drawing the background map for the first time, calculate the world coordinates of the starting point of the current map based on the world coordinates of the player's position and the screen size, obtain the corresponding surface pixel blocks in the current screen, and draw them sequentially;
[0047] Step (2): Save the current map of the previous game cycle as image data in memory;
[0048] Step (3): Obtain the world coordinates of the player in the next loop, and calculate the vertical and horizontal pixel diff...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 