Class Cookie
Parent: Powerup
The cookie is a 3-live-up item that is typically used to make the user aware he has successfully reached a particularly hard-to-reach location. Do not overuse it! Use it sparely!
Also note that the cookie is immune to gravity — wherever you place it, it will just hang there and not fall down. This facility can be used to innocently hide it behind clouds so it looks like a part of the level background.
Class Methods
new
new() → a_cookie
Creates a new cookie powerup with the default values.
Instance Methods
activate!
activate!()
Apply the item to Alex. Doing so will destroy the cookie in any case, but note that applying it does not necessarily cause it to have an effect on Alex. If Alex already has 99 lifes, it will just cause points.