← Back to team overview

logame team mailing list archive

Level Editor again!

 

Hi all,

Well, at last I have completed the level editor!  It is now fully
functional even if it lacks a little finesse :)

I thought I had better let the list know what I have done as it is quite
major and changes the way games and the editor are started..

So, I have removed the start_game.sh and editor.sh scripts and replaced
them with one logame.sh script. To start the game with the default test
level just type ./logame.sh from the main directory.  
To start the game with an alternative level (you need to make one
first!) use ./logame.sh -l config/LEVEL.yaml where LEVEL is replaced by
the filename of your level.
To start the editor to create a new level use ./logame.sh -c
media/images/filename_of_background.png "Name of Level" ie: you need to
supply 2 things, the filename of the background image (which should be
in media/images) and a name for your level.  It can be anything you
want, but if you are want spaces or other chars that upset the shell,
then use quotes around the name.
Once you have designed your level, hit Save and it will be saved using
the name you gave (with spaces replaced by underscores) as a filename
with a .yaml extension to the config directory.
To modify this level later type: ./logame -m config/filename.yaml and
the editor will load it.

For help with the options or to see the long options type: ./logame -h

Any comments or problems , let me know.  Now all we need are some
graphics... :)

Paul 




Follow ups