Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 Lamp system #5

Open
bitbrain opened this issue Nov 9, 2019 · 0 comments
Open

💡 Lamp system #5

bitbrain opened this issue Nov 9, 2019 · 0 comments
Assignees
Labels
⭐ feature A new feature 🎥 graphics Something graphics related 🗺 tiled TiledMap editor work

Comments

@bitbrain
Copy link
Owner

bitbrain commented Nov 9, 2019

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
@bitbrain bitbrain added ⭐ feature A new feature 🎥 graphics Something graphics related 🗺 tiled TiledMap editor work labels Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ feature A new feature 🎥 graphics Something graphics related 🗺 tiled TiledMap editor work
Projects
None yet
Development

No branches or pull requests

2 participants