/gorgontimers

Keep track of when you looted a chest, and show how much longer until you can loot it again

Primary LanguageHTML

Gorgon Timers

Made with:
HTML, CSS, JS

paulb-h.github.io/gorgontimers/

Description

An app to keep track of timers in an online game

Details

There are chests within dungeons that you can loot every (x) hours.

The MVP will be a list of chests for each dungeon, where you can click on a chest to mark it as looted.

When you do so:

  • Set a "lastLooted" property on the according chest item to the current UNIX timestamp
  • Start a global interval to run every 1 second and update the remaining time on any active timers, based on the chests timer, and lastLooted

The MVP does not need any images, however I would like to turn the map into an SVG, then layer some clickable elements over the chest icons, and also display the timer for the chest right below it.