I'm not going to spec this out too much because this is really Jeremy's brainchild... But the idea is for levels to be generated from a text grid. One would use mostly just normal qwerty keyboard characters, arranged in a grid, to draw a level layout. The characters would map to whatever the level designer wanted, declared somewhere else in the file. Then, that map file would be passed to the Level constructor, much like we do with level config files now, and the constructor would loop through each character and instantiate the corresponding obj, if there is one. The obj's x,y coords in the level would be based on the character's position in the map.
I'm not going to spec this out too much because this is really Jeremy's brainchild... But the idea is for levels to be generated from a text grid. One would use mostly just normal qwerty keyboard characters, arranged in a grid, to draw a level layout. The characters would map to whatever the level designer wanted, declared somewhere else in the file. Then, that map file would be passed to the Level constructor, much like we do with level config files now, and the constructor would loop through each character and instantiate the corresponding obj, if there is one. The obj's
x,y
coords in the level would be based on the character's position in the map.So something like this:
...With an accompanying legend, which may look something like this:
That would create a level with 2 platforms, each 3 blocks long, and a trampoline to get up there.
Notes
(Well, actually just one note)