Asteroid hit the Star

After some time, I returned to development. I mainly focused on improving AI, the economy, and performance. And of course, I also had some fun with the physics engine along the way.

Clouds generator

It took me longer than I want to admit, but I now have the first version of the Clouds generator. It even handles animation for spawning and despawning.

Improved Sun

I improved the Sun’s corona graphics. Now the ambient light has a greater reach. Also, all objects receive heat damage when they get too close.

Harpoon

I had some fun with Box2D and implemented a grappling hook. It was quite a challenge to make the physics reasonably stable. The rope is composed of multiple small segments held together by distance joints. The rope can also break if it is overstretched or hit by bullets.

Sun physic and visuals

I had to take a break from AI, so I improved the sun’s physics and visuals. Of course, entering the sun’s corona will cause some damage in the future. The sun is composed of multiple connected boxes and a circular core. Then, a force is applied to each box to keep it at the desired distance.