Loffen
Well-known member
My questions list:
1. What is the best map format?
I have seen tilebased games use mapformats like this:
MyMap;10;5
1111111111
1000000001
1002222001
1000000001
1111111111
The first line is the config line and the rest: 0 = grass, 1 = wall, 2 = water, etc..... Is this a good map format?
2. Storing maps in memory...
I read in some free chapter of a book, they stored each tile in an own vertexbuffer. But somewhere else i read that they stored the whole map in a vertexbuffer and just moved the vertexbuffer or something... Whats the best way here??
3. Displaying maps
Whats the best way to display maps?? When the player moves around, should i move the map or the camera and player?
4. Players (and buildnings ?)
1. What is the best map format?
I have seen tilebased games use mapformats like this:
MyMap;10;5
1111111111
1000000001
1002222001
1000000001
1111111111
The first line is the config line and the rest: 0 = grass, 1 = wall, 2 = water, etc..... Is this a good map format?
2. Storing maps in memory...
I read in some free chapter of a book, they stored each tile in an own vertexbuffer. But somewhere else i read that they stored the whole map in a vertexbuffer and just moved the vertexbuffer or something... Whats the best way here??
3. Displaying maps
Whats the best way to display maps?? When the player moves around, should i move the map or the camera and player?
4. Players (and buildnings ?)
- Should i put all players/units in one vertexbuffer or in separate?
- If I put all players in one vertexbuffer can i still moev and rotate each of them??
- Should i put all buildnings in one vertexbuffer? Some of the buildnings as the super automated turret need to rotate a little. Can i do this if all are in one vertexbuffer?