Game Editor: Required folders

The game and game editor load resources from external folders. And these folders need to be present for them to work.

The only exception is when a game has been converted to be self-contained. In which case, it'll run as a single SWF file.


Folders needed to play a game
charset
This folder stores all the sprite sheets.
These are PNG files.
chipset
This folder stores all the tiles used by maps. These are PNG files.
levels
This folder contains level files created and edited by the game editor. They use a .lvl extension, but are really XML files.
Level data has this structure
after being decoded from XML.
music
This folder contains looping MP3 files.
Some songs optionally have intros.
Song intros have _intro appended to their names, and are automatically detected and loaded by the music system.
For example:
mySong.mp3
mySong_intro.mp3

If the game tries to play "mySong.mp3",
the music system automatically plays "mySong_intro.mp3" first.
sound
This folder contains short MP3 files.
swf
This is a miscellaneous folder for any Pictures and SWF files you want in the game. These can be used for anything.
Such as:
Title Screens, Animations, and even whole Programs coded as SWF files.
You could even program a battle system as a SWF file and simply place it in any game as needed.
game.swf: This file is the game itself.
database.xml: This optional file stores all non-level data such as the starting place and title screen. Each game has its own unique database.
(Some don't have a database at all)

Folders needed for the editor
In addition to all the files and folders above, the editor also needs these:
help
This folder contains HTML files used by the editor's help system.
(You're reading them now)
sprites
This folder contains SWF files that tell the editor how to edit this game's sprites.
Each game has its own "sprites" folder.
This is how it's setup.
editDatabase.swf: This optional file is loaded by the editor and tells it how to edit this game's "database.xml" file.
Each game has its own editDatabase.swf file.
(Some don't have a database at all)


Last updated: January 21, 2010