Saturday, January 19, 2008

File loading

Today I investigated how to save and load maps using text files. In class we just used File I/O to load a text file and display it in the screen, so I don't really know anything about this.

I got the game to read the player's initial position and the level exit position.

My idea is to have each map text file structured like this:
[Begin]
2 3
[End]
4 5
[Blocks] //normal blocks coords
3 4 3 5 3 6 ..........
[Small_Right_Triangles] //
..........
etc etc

No comments: