Vehicle selection and basic menu concept test Flight Race #buildandplay #spaceship #spaceshipgame #lego #legospace
youtu.be/82EnWgAO1zM
A little early morning work on #spaceshipGame https://codesandbox.io/s/n7xj5ro8vm
Instead of using React Context and useState to store the position and rotation information, I switched to just putting it in a JavaScript array that is mutated and exported. This isn't as React-idiomatic...
My #spaceshipGame is starting to feel like a clone of Endless Sky or Escape Velocity. The camera is locked to a top-down follow perspective and the ship has a lot more inertia, so rotating it doesn't change its velocity. https://codesandbox.io/s/ky13n4kl3
You can now thrust forward. Rotate the ship using wasdqe and thrust using i+k. https://codesandbox.io/s/ky13n4kl3 #spaceshipGame
I've collocated my update function to operate on all of the spaceships that are currently rendered (there's only one now). I also expanded my physics to use acceleration for rotation, so the rotation movement is much smoother. https://codesandbox.io/s/ky13n4kl3 #spaceshipGame