I love space and astronomy 🚀, and when I first learned how to create 3D applications with Three Js, the first thing I did was to create a gravity simulation using some 3d shapes.
It was so mesmerizing that I ended up developing an entire game on that concept.
One year later, I'm about to publish my first game. It's a simple game that lets you explore miniature celestial systems with your tiny spacecraft. It's more about exploration than solving puzzles. You'll encounter different celestial bodies, from planets to stars to supernovas and rogue asteroids.
A procedurally generated planet
I wrote a planet generator script that can create a wide range of planets.
The script generates planets at run time using web-workers.
A procedurally generated star and some asteroids
This project has been a playground for me where I practice things that I learn on my way. I wrote most pieces from scratch, from writing a simplified physics engine (sounds crazy but essentially, it's a simple Newtonian Physics using Euler integration) to procedurally generating planets and stars and various exotic materials using shader programs. I learned a lot while working on this project.
Right now, I'm giving some final touches to the game and will soon publish it on either Steam or Itch.