Drawing walls in SDL for a 2d tile engine?

Started by
6 comments, last by com 21 years, 3 months ago
How would i go about drawing some simple walls in SDl for my 2d based tile engine?
Advertisement
what?
As in draw in the z axis i guess so i can draw some simple wall tiles in SDL.
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.
That's just my understanding; I could be wrong.
But the problem is i need actual walls, not textures that look like walls.
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.
Sup guys?
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 com
But the problem is i need actual walls, not textures that look like walls.
Drywall, concrete or padded?

--------------------------~The Feature Creep of the Family~

This topic is closed to new replies.

Advertisement