chris_r
Active Member
- Joined
- Jun 16, 2004
- Messages
- 745
I'm (attempting to) code a platformer, hopefully in time for the pandora release. My coding experience is limited so I need a bit of advice.
So far I have a character (just a rectangle at the moment) that you can move left and right, some primitive jumping and rectangle collision detection.
What I need to design now is a format for storing and computing the levels, I can think of 2 ways but I don't know which would be better and thought i'd get some advice before starting.
My first idea is the obvious tilemap design. This obviously gives the game a very retro feel and all the tiles are the same size etc. But this does make collision detection a lot easier.
My second idea was having a background image and then rectangle dimensions/placements stored in a file.
The image would be displayed and the rectangles would define the places where the character collides (walls, platforms etc.)
Taking into consideration things like memory requirements/processor speed/ease of programming (remember I am not too experienced) what would you recommend as the best idea for the level format.
Alternatively if there is a better way to do this, I would also like to hear about that.
So far I have a character (just a rectangle at the moment) that you can move left and right, some primitive jumping and rectangle collision detection.
What I need to design now is a format for storing and computing the levels, I can think of 2 ways but I don't know which would be better and thought i'd get some advice before starting.
My first idea is the obvious tilemap design. This obviously gives the game a very retro feel and all the tiles are the same size etc. But this does make collision detection a lot easier.
My second idea was having a background image and then rectangle dimensions/placements stored in a file.
The image would be displayed and the rectangles would define the places where the character collides (walls, platforms etc.)
Taking into consideration things like memory requirements/processor speed/ease of programming (remember I am not too experienced) what would you recommend as the best idea for the level format.
Alternatively if there is a better way to do this, I would also like to hear about that.