The following tutorial demonstrates how to use tileedit and leveledit via the
command line. You can just as easily do all these things via the in-program
"File/Open" and "File/New" menu items.
Here's an introduction to using tileedit and leveledit
$ -- linux, etc instructions
C:\> -- windows instructions
first you need to be in the examples dir for this tutorial to
work
$ cd examples
C:\pgu> cd examples
$ tileedit tiles.tga 16 16
C:\pgu\examples> python ../scripts/tileedit tiles.tga 16 16
the next time you run tileedit, you will not need to provide
the width and height of the tiles
$ tileedit codes.tga 16 16
C:\pgu\examples> python ../scripts/tileedit codes.tga 16 16
the next time you run tileedit, you will not need to provide
the width and height of the codes
$ leveledit level.tga tiles.tga codes.tga 16 16
C:\pgu\examples> python ../scripts/leveledit level.tga tiles.tga codes.tga 16 16
the next time you run leveledit, you will not need to provide
the tiles, codes, and width and height of the tiles
This is the initialization function I created for
the game.
I use the tga_ methods to load up the tiles and level I created.