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.
Files needed to play a game
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)
You could delete it, but the help system won't display anything if you do. If you want to reduce the editor's filesize, you can delete the demostration videos in this folder.
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 they're setup.
Files needed for the editor
basis.png: This is needed because it's the default chipset for the editor. However, you don't have to use it
in any games.
editDatabase.swf:
This optional file is loaded by the editor and tells it how to create and edit this game's "database.xml" file. Each game has a different database editor.
(Some don't have one at all)
defaultSprite.exe: This tool is used to define how each sprite looks within the editor. Using DefaultSprite.exe

Last updated: April 27, 2010