Wall in Allegro

Hello everyone.
I started to learn Allegro library in C++, which is specialized for game development.
But I can't find answer to this question anywhere - how can I create a wall, so character can't walk the wall through?
Nobody?
Hi, I use allegro for most of my development.
You need to do collision checking. I'm going to assume your character is rectangular, and the wall is vertical:
Your character has hit a wall, if:
character.x-wall.x<wall.width+character.width
Topic archived. No new replies allowed.