Directory structure

Here you will find the all the folder and files you can edit or create to make a game. Click on the image to expand it and see all the directory structure of the engine.

/
Root directory of the game.
 * STG - The binary (STG.exe in windows) double click this to run the game.
 * config.xml - Definition of game settings.
 * log - Log of the last game run, you can find here the errors in the XML. If you want to report a bug please send this file right after the game crashed.

chars/
Under this directory you can create as playable characters as you want separated by folders. Always remember to add the new characters to config.xml with the same name as the folder so the engine recognizes it.
 * sounds/ - You can place all the character's sound effects here.
 * sprites/ - You can place all the character's sprites here.
 * bullets.xml - Definition of the character's bullets.
 * main.xml - Definition of characters specific attributes such as the hitboxes, velocity and sprites.
 * patterns.xml - Definition of the bullet's patterns.
 * preview.png - Preview of the player on the character select menu.
 * thumbnail.png - Thumbnail of the player on the character select menu.
 * life_bar.png - Life bar container.

stages/
Under this directory you can create as stages as you want separated by folders. Always remember to add the new stages to config.xml with the same name as the folder so the engine recognizes it. Additionaly you create the stage boss under this file.


 * images/ - Stage image files (.png).
 * main.xml - Stage animations and backgrounds.
 * music.ogg - Stage theme.
 * Enemy/bullets.xml - Enemy bullets.
 * Enemy/main.xml - Definition of the main attributes of the enemy.
 * Enemy/modifiers.xml - Modify the enemy variables such as velocity and angle.
 * Enemy/patterns.xml - Pattern if the bullets.
 * Enemy/sounds/ - Enemy dound files (.ogg).
 * Enemy/sprites/ - Enemy images files (.png).
 * Enemy/life_bar.png - Life bar container.

menu/
The menus are defined in the SVG format. You can open them and edit them isung inkscape.
 * main_menu.svg
 * no_portrait.png - Image shown in the character select menu when there are not enough protraits.
 * audio/back.ogg - Sound played when a menu is closed.
 * audio/move.ogg - Sound played when the menu curosor is moved.
 * audio/move_char.ogg - Sound played when the character select cursor is moved.
 * audio/music.ogg - Menu music.
 * audio/select.ogg - Sound played when a button is pressed.
 * audio/select_char.ogg - Sound played when a character is selected.

misc/
You place here the global game assets
 * font.ttf - the global font of the game
 * dialogue_bg.png - the global dialogues of the game
 * You can place here the wining and losing animations images