gdquest-demos / godot-2d-space-game

A 2D space exploration and mining game made with Godot and our AI framework
MIT License
837 stars 109 forks source link

Add debug tools for faster testing #33

Open NathanLovato opened 4 years ago

NathanLovato commented 4 years ago

We could use some tools to test the game faster, e.g. a developer's panel with some switches and buttons. Here are the problems I've had:

  1. It takes time to navigate around the map just to encounter pirates or find asteroids to dock on
  2. We have to mine and/or unload to the station to test upgrades
  3. We need to stop and restart the game to regenerate the map
  4. We need to restart the game to tweak the player's stats and balance the game

Suggestions for tools

Have a debug mode setting to unlock the debug tools.

1. Navigation and stats

2. Testing upgrades

Have a button to unlock upgrades instantly

3. Testing the map generation

Have a button to regenerate the map?

4. Balancing player base stats

For this one I don't know. Changing values in the Stats resource on the player doesn't seem to reload ingame. It should ideally work with the inspector, but I'm not sure how to make it work. It might be due to the way I implemented the stats.

If there's no way to make hot reload work, at least we can have sliders to play with values in a dev panel.