Greenheart / swipeforfuture.com

Solving the climate crisis, one swipe at a time 🌍🔥
https://swipeforfuture.com
GNU General Public License v3.0
6 stars 1 forks source link

Re-implement dev tools for new GameScenario #116

Closed Muthaias closed 3 years ago

Muthaias commented 4 years ago

We want to re-implement the dev tools (i.e state logging) in a cleaner less intrusive way. This can be done by extending the class BasicGameScenario and overriding selected function adding logging or a stream to a developer toolbar.

Greenheart commented 4 years ago

Idea: activate dev tools automatically for localhost:

// Enable DEV_TOOLS for local development by default to improve DX
// window.DEV_TOOLS_ACTIVE = window.location.hostname.includes('localhost')

important note: use window global state for bonus points 🏆

Greenheart commented 3 years ago

Improved dev tools could (in addition to the simple debug logger) be added using the new WorldStateExtensions https://github.com/Greenheart/swipeforfuture.com/blob/master/src/game/WorldStateExtensions.ts