Projectiles are summoned using the sequence command projectile: ID, start_cell, end_cell
.
Creating Projectiles
Projectiles are created in the Lecode.S_TBS.Config.Projectiles
section of the configuration file
. The format of a projectile is the following:
"ID": {
filename: "string",
adapt_angle: true / false,
speed: value,
jump: value
},
The filename
option can be replaced with
anim: [id, width, height]
A projectile's graphic can be a file or an animation. If it's an animation, the engine needs to know the approximate width and height of the projectile.
if adapt_angle
is true, the projectile’s angle will be adapted to face the target while traveling.