If you don't understand something : david.fauthoux@free.fr
If you've done some modifications, SEND
ME YOUR ADDONS !
The game read a .ini file (usually bomb.ini) and you can modify it : it is a text file divided in [section] wich contains id:value. Look for the id you want to change and try... try... try...
Don't be afrait to change this file ! It is auto-correcting when it can, and the game writes out the errors : so, try and try again...!!!
With the .ini file, you can modify everything from the background pictures to the speed of the words blow, the word colors, all the sounds of the game, the messages, the keys, etc... and even the links from an interface page to another ! All, all the game !!
A
note : you can run game with a specific .ini file ; Example
: ./bomb ini/bomb.francais.ini
Another
note : my advice is to watch bomb.ini with emacs editor
(there is a good config in src/.emacs : copy it in /root/) and type in
emacs : alt-x makefile-mode.
Important : This html page speaks about modifying bomb.ini, it is very powerful, yes, but you can use another very powerful technology (!) if you are C++ programmer : the Addon technology
HOW TO... with bomb.ini...
Before beginning, an important note : the black color is reserved in ALL animation for translucent color... (if you want black ? make dark grey with rgb values > 10)
Add interface pages, add Bonhomme (playing character), add Fond (level)...
But know that you can make a lot of other things ! Watch in your bomb.ini...
...How to !
We will add an animation on the first interface page, a looped animation from the gif file Sprite/poisson.gif. Open bomb.ini and find [Page] follow by the id "id:bomb o bomb", we will complete this page : add the line : loop anim:./Sprite/poisson.gif. If you run the game, you will see that the animation is very fast and in the corner : the game has created default values. Three lines has been added to bomb.ini :
loop anim slow:...
pos loop anim j:...
pos loop anim i:...
Write the wanted values here (example 5 for loop anim slow). Ok ! You can add like this all the animations you want in the game ! The engine will create lacking values...
Note for [Fond] and [Bonhomme] and [Sound] : You can add sounds and sprites without destroying the old sounds and sprites : the game will try to draw from the list randomly. Example : add anim bombe:Sprite/poisson.gif in a [Fond] : the bomb animation is a fish ! Add another id anim bombe:Sprite/bombe.gif and the bomb animation is a fish or a bomb...!
...How to !
We will add a sound for the bomb, a crazy sound. Open bomb.ini and find [Sound]. Add the id sound bombe:Sound/PICKIN.raw. The bombs will play musik now !
Note for [Fond] and [Bonhomme] and [Sound] : You can add sounds and sprites without destroying the old sounds and sprites : the game will try to draw from the list randomly. Example : add sound bombe:Sound/PICKIN.raw in a [Fond] : the bombs will play musik in this level ! Add another id sound bombe:Sound/Boum0.raw and the bombs will play musik... or not !
IMPORTANT : at the moment, the engine loads raw sounds and not wav sounds (it will come...) : you must save your files as RAW 11025 Hz, 8 bits, unsigned.
How to change the speed ?
Look for the line speed:25 in bomb.ini. This is the speed when
snail is switched on. Put 10, run the game and switch the speed to snail...!
How to change the words ? I want to traduce...
Look for the ids mot and strip. Change all the sentences you want.
You can create your own languaged bomb.ini : copy the bomb.ini file in ini/bomb.language.ini
and run the game ./bomb ini/bomb.language.ini. (replacing "language"
by "spanish" or other...)
...How to !
To add Page, Bonhomme or Fond, the easiest way is to use the Addon technology with pre-written scripts : see Addon technology (if you are tired, watch the quick start in the section you want)...
If you don't understand something : david.fauthoux@free.fr
If you've done some modifications, SEND ME YOUR ADDONS !