TEXTE AVANT FILTRAGE
(The player casting a Fireball)
Mana Regeneration
To regenerate mana over time is as easy as creating a Trigger that invokes an Actions object as soon as the game starts. These Actions are:
Increase the Mana attribute by 5
Wait 0.1 seconds
Restart the Actions object
This sequence will ensure that every 0.1 seconds, the player’s mana attribute will increase by a small portion.
Fireball Spell
To cast the Fireball we first need to know if there is enough mana in the player’s gauge. To do so, we simply uTEXTE APRES FILTRAGE
width : largeur de la vignette en px,
raz : nombre de vignette sur une seule ligne. Juste après la Nième(raz) vignette, un
est inséré.