I built a small game where you write control algorithms to land a spacecraft in increasingly challenging scenarios.<p>The game starts simple - just control vertical thrust to hover. Later levels introduce rotational dynamics, thrust vectoring, and 2D movement. Each level saves your working solution for reference. The user input to be written using Rhai-script (<a href="https://rhai.rs/" rel="nofollow">https://rhai.rs/</a>).<p>Note that it <i>is</i> a bit heavy at ~38MiB and may not work well on mobile.<p>Try it at: <a href="https://www.thomasantony.com/gnc-trainer/" rel="nofollow">https://www.thomasantony.com/gnc-trainer/</a>
Code: <a href="https://github.com/thomasantony/gnc-trainer/">https://github.com/thomasantony/gnc-trainer/</a><p>The code can also be built natively and run directly on your machine.<p>This is something I hack on at random times and so feedback is welcome for things I can add/change. As time permits, I'm considering adding levels for more advanced concepts like precision landing and state estimation (including atmospheric flight).