1 decade ago by aclelland
Hi,
I'm trying to add a level name to my level files so that I can display a sort of "The Haunted House Complete!" message at the end of each level.
Initially I thought of just adding it into the JSON for each level in the .js file that the level editor creates. This works fine as long as I don't save the map since the editor removes my custom JSON data :(
My other solution is to add an extra parameter to the game.loadLevel method which takes a level name but this doesn't seem very neat since the name of Level 2 needs to be stored in the Level 1 map file.
Any other suggestions or am I missing something in weltmeister to do what I want :)
Thanks,
Alan
I'm trying to add a level name to my level files so that I can display a sort of "The Haunted House Complete!" message at the end of each level.
Initially I thought of just adding it into the JSON for each level in the .js file that the level editor creates. This works fine as long as I don't save the map since the editor removes my custom JSON data :(
My other solution is to add an extra parameter to the game.loadLevel method which takes a level name but this doesn't seem very neat since the name of Level 2 needs to be stored in the Level 1 map file.
Any other suggestions or am I missing something in weltmeister to do what I want :)
Thanks,
Alan