Handling dynamic walls

Hey all,

I’m currently putting together a tile based map and like most maps it involves walls. I’m trying to find either a tutorial or library or something that handles dynamic walls (e.g. a different image used if the wall is stand alone, linked in a direction, surrounded by other walls etc. etc.)

Does anyone know anything? My own Google searches have failed to turn up anything.

can you give more examples?
You can on each update cycle call a method on each tile and pass it’s neighbours as argument, and the tile decides the image that way.

http://www.saltgames.com/?p=184
http://www.gamedev.net/page/resources/_/technical/game-programming/tilemap-based-game-techniques-handling-terrai-r934

Fantastic, the bitwise method is just what I’m after.

Thanks very much :slight_smile:

Bookmarked.

Guess I have misunderstood the question, this is the generation of tiles for a static level.
I assumed you meant walls that dynamically change their image and maybe type.

I did, I can just refresh the wall score after each change.