A little game where you can crash into the planet or the asteroids.
https://snapcraft.io/fractalattack
- https://github.com/mrbid/FractalAttack/tree/FractalComets2
- https://github.com/mrbid/FractalAttack/tree/FractalComets
If this version does not run smoothly you will have to try the Initial Release here which has no comets. There is also a web version of the initial release here.
I have unlocked Y axis rotations to allow full 360+ and sample the Y axis in the view matrix to detect an inversion and flip the controls once an inversion is detected, although obviously gimbal lock is apparent when Y and Z align so I lock rotations in the X axis (around Z) between a threshold to avoid that clunky and tactally confusing transition. Also Y axis transversals are now relative to the view direction and not the global axis.