# Examples

This section should contain some intersting examples of how things can be done with the scripting language.

TODO: Add some (more) interesting example uses of the scripting language here.

This shows how create a flag which gives time as a reward instead of point when it is taken. In this case the player gets 10 bonus seconds by taking the flag.

    (define my-flag (add-flag 100 100 0 1 0.1))
    (time-on-death my-flag 10.0)

And as you can see this trick works for many different types of animated objects like Mr Black's, Babies, Birds, Cactuses and even the player object himself!

    (define my-flag (new-mr-black 100.5 100.5))
    (time-on-death my-flag 10.0)