Game Traits
floere edited this page Sep 14, 2010
·
12 revisions
Use it_is
, it_is_a
, and it_has
to install Traits in your Thing
s and Sprite
s.
it_is_a Controllable, Generator
it_is ShortLived
it_has Lives
Moveable
Attachable (see Pod)
Controllable
Damaging
Trait: Generator # Your rocket needs to generate smoke, from time to time.
Trait: Lives # You want something to have multiple lives. Nine for a cat, for example.
Moveable
Trait: Pod (see Attachable) # Sometimes a Machinegun needs to be mounted on a jeep. Or a sheep?
Shooter
ShortLived
Trait: Shot # Bullets, grenades, rockets, explosive sheep.
Targetable
Targeting
Targeting::Closest
Trait: Turnable # You need your car, spaceship to turn. Or your ring of fire. No wait, that’s “burn”.
Trait: UserInterface # You need a simple text that tells your player how many lives he still has. Or how high his spaceship is.