Tuesday, April 24, 2007
Big Maps
So I changed the tile drawing code so that the player is always in the center of the screen. It will now load a map much bigger than the drawable screen and just pick the tiles it needs.
I also added collision detection. It should prevent the player from moving too far off screen, since that will cause some null pointer errors. It will also prevent the player from walking over walls, water, and mountains.
A little bit on map design. For this game there will need to be at least 7 tiles on every side that the player can't get access to. So like the player could be on an island and have 7 tiles of water off the shore. This is because the screen has to draw 7 tiles past the character and it needs you to place those 7 tiles so it doesn't freak out and crash. The other thing is that you can create rectangular map like 25 tiles high and 300 wide. This will allow me to create a bit more flexible world.
Next up I will be working on the chat box to give me a place to toss debugging info and a place to put combat info and conversation info. I will also finish up the character stats info and finish up the health/mana bars.
Screenshot 3
Screenshot 4