Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > bb8113fe14406042944874285ff4eac1 > files > 164

lib64allegro-devel-4.4.2-6.mga5.x86_64.rpm

To edit the level data of the Allegro demo game, we use the free and open source
tool Blender. You can obtain it here:

http://blender.org

Here are step by step instructions how it works:

1) Place the file ademo_export.py into your Blender scripts folder. It is the
export script which will convert from .blend format to the .txt format used by
the demo game. Under unix, the path will be:

~/.blender/scripts/ademo_export.py

2) Load the .blend file blender. Under unix, type this from the directory with
the level.blend file:

blender -w level.blend

(The -w is to use windowed modes, which I prefer.)

3) Edit the level. In the menu, under

Help -> Scripts Help Browser -> Export -> Allegro Demo Game Level

you will find some useful tips.

4) Save the file (use compression before committing). Export it as .txt from the
export menu, choosing Allegro Demo Game Level.

5) Update level.dat using level.txt, the new level should appear in the game.