Hi,people:
Actually it's very nice to write one game with only one level, but would be better if get more level and more challenge, so anyone knows how to design the game levels? My game only has one level :(
Thanks for the help :)
Printable View
Hi,people:
Actually it's very nice to write one game with only one level, but would be better if get more level and more challenge, so anyone knows how to design the game levels? My game only has one level :(
Thanks for the help :)
You would have to come up with a format for your levels, you could use FILE I/O.
Im making an RPG game and my *.map files look like this:
01|01|01|01|04|01|01|01|01 etc.
My program reads this, and makes 01 blit the image of a grass tile and 04 blit the image of a house tile.
THANX!!:D
How about the enemies and sprite or other elements? randomly put them after each level or just follow the instruction in the *.map file?
Enemies and sprites can be hard coded ( always same place ), or random. If you pick them random, make sure you don't put them on another sprite or a tree or something that you didn't intend for.