Sign in to follow this  
wicked357

Drawing the game map?

Recommended Posts

I am making a Pac-Man clone, and I have been working on putting it all on paper, how would I go about doing the map drawing and collision based on the map, I am not looking for something complicated, more or so the easiest way to achieve this by creating a hard coded level.

Share this post


Link to post
Share on other sites
Here is the problem I have with tile, is that the Pac-Man map has many different tile sizes and if you were to set up a tile size the map wouldn't fit together right at all, or you will be testing collision with 4*8x8 tiles for every single tile based on apperance, I thought about tile but don't see how I could efficiently implement this in, and thinking there has to be another way this was accomplished. Thanks for the idea though and anymore is greatly appreciated.

Share this post


Link to post
Share on other sites
It's just tiles. Break the tiles up so that there is a single common tile size. Some tiles will occupy more than one tile space. You can have variations of the same tile such as a corner piece, to make things more reusable.

For a more complicated game you could use line and box primitives to define the world. But i seriously recommend just tiles.

Share this post


Link to post
Share on other sites
thx for the suggestions I have yet to actually program a tile based game yet, you know of any good links to get me started I am using C++ for this venture and possibly SFML or SDL not sure which I would prefer SFML though.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this