Drawing walls in SDL for a 2d tile engine?
If I understand correctly...
Do a regular tile engine, and for each tile mark wether you can pass through it or not. You can make "walls" (or anything else you want) impassable. Then you just have to use a texture for a wall. The only thing you have to be careful of is when coding the character movement across the map; make sure to check of the tile the character is moving to is passable. If not then do not move the character.
Do a regular tile engine, and for each tile mark wether you can pass through it or not. You can make "walls" (or anything else you want) impassable. Then you just have to use a texture for a wall. The only thing you have to be careful of is when coding the character movement across the map; make sure to check of the tile the character is moving to is passable. If not then do not move the character.
SDL is a 2D API. You said Z-Axis...hence you want a 3D API, look into OpenGL. And there are tiles that can look like walls.
quote:Original post by com
But the problem is i need actual walls, not textures that look like walls.
Actuall walls only exist in the real world If you see a wall in a game it is a texture that looks like a wall...
So, see the above poster
quote:Original post by comDrywall, concrete or padded?
But the problem is i need actual walls, not textures that look like walls.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement