Skip to content

💡 Lamp system #5

@bitbrain

Description

@bitbrain

Create a lamp system which supports the following flow:

  1. define a light switch as a game object within tiled with a Lamp switch id
  2. define lights and set the Lamp switch id on the lights
  3. within Java, load all lamps and create a mapping from lamp switch to lamp (new Lamp class and LampSwitch class required)
  4. The player should be able to toggle the light switch when close (within collision maybe?)

Additionally, the lights should have the following features:

  • on, off or broken
  • life (infinite, by default, can be configured within Tiled (configurable in seconds?). Once a lamp is on, the life depletes then it bursts and breaks. Switching the lamp off stops the depletion process until switched on again

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions