Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2008-09-24
BEIJING KINGSOFT SOFTWARE
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In mobile online games, due to the low processing speed and small memory of the mobile phone, it takes a long time to draw a map with the above method when implementing a game with complex screens, which will result in the inability to complete all logical operations within a game loop And the display of the game screen will enter the next game loop, making the game screen appear to have jumping frames and animation delays

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for drawing map in game
  • Method for drawing map in game
  • Method for drawing map in game

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an image display technique, for drawing map in game, wherein it comprises: judging if said present map is first drawn, if it is, obtaining the map pixel block, to draw; or else, storing the map data of last game cycle; in next game cycle, calculating the longitudinal-transverse pixel difference between last and next game cycles, and extracting out stored map data of last game cycle, to draw based on pixel difference; then using said map block as unit to draw non-displayed part of stored map data. The invention can avoid drawing same parts of last and next game cycles, to reduce the logic calculation and save time, without affecting image quality.

Description

technical field [0001] The invention relates to the technical field of image display, in particular to a map drawing method in games. Background technique [0002] With the continuous upgrading of games, people's requirements for game screens are getting higher and higher. The game process is a time-period cycle called a game cycle. In each game cycle, a game logic operation and game screen drawing are performed. Game screens generally consist of static screens and dynamic screens. The static picture refers to the background map of the game. A game usually has a world map, and the coordinates are set in pixels. In order to save storage resources and reuse map parts, the world map is divided into squares of the same size, called surface tiles. The world map can also be further divided into level maps according to the logic of the game. For example, if the player successfully passes through the level, enter Go to another level, load a new level map, or the world map is divi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F19/00
Inventor 张宝晖
Owner BEIJING KINGSOFT SOFTWARE