sampleGifts top-level property
What a pickup in this game's levels may give.
Implementation
final GiftRegistry sampleGifts = GiftRegistry(<Gift>[
const HealthGift(),
const ArmourGift(),
const AmmoGift('bullets', AmmoType.bullets, defaultAmount: 20.0),
const AmmoGift('shells', AmmoType.shells, defaultAmount: 8.0),
const AmmoGift('rockets', AmmoType.rockets, defaultAmount: 4.0),
const KeyGift(),
const PowerUpGift('invulnerability', defaultAmount: 20.0),
const PowerUpGift('berserk', defaultAmount: 30.0),
// Shows what walks behind the walls, as silhouettes, for as long as it
// lasts. A gift rather than a setting so that seeing through a wall is a
// thing the level hands out and takes back — see `Inventory.hasSensor`.
const PowerUpGift('sensor', defaultAmount: 30.0),
]);