logame team mailing list archive
-
logame team
-
Mailing list archive
-
Message #00044
Re: Level Editor again!
Hi,
I've no problem with the refactoring you did, it's a definite
improvement :) Go ahead and merge it with the main branch.
Paul
On Sun, 2009-10-25 at 18:08 +0100, Benjamin Klüglein wrote:
> Hi,
>
> I did some small refactorings to the editor. Mainly it's now not longer
> saving/loading the levels to/from the config folder and that the file
> name is not taken from the levels name in the file, which led to 2
> copies from testlevel.yaml because the name in the file was Test Level.
> Hope you don't mind me messing around in the editor code. :-)
> I pushed it to a branch
> (https://code.launchpad.net/~logame/logame/editor-refactorings ) so that
> you can check if you're ok with the changes. I'll merge the changes
> then.
>
> Ben
>
>
> Am Dienstag, den 13.10.2009, 20:15 +0100 schrieb Paul Elms:
> > 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
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~logame
> > Post to : logame@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~logame
> > More help : https://help.launchpad.net/ListHelp
>
Follow ups
References