Asteroids, harpoon, part failure - Devblog #12

posted in Astero Inc. - Devblog for project Astero Inc.
Published June 12, 2020
Advertisement

Day 11 - “Harpoon”, Day 12 - “Immune”

Yes, again one day later. Unfortunately I was unable to finish yesterday.

Asteroids

Now there are asteroids in game. They are spinning rock-like things, you might see in space while flying. Creating them was simple. Graphics, rotation speed and displaying code similar to ship's code did the thing. There are no collisions and I think there won't be collision system.

Harpoon

You can now “hunt” asteroids down with harpoons. Simply hover mouse over asteroid and press “h”. If you are close enough, the asteroid will disappear. In the future it will be dragged by harpoon and you will be able to gather resources from it, but so far it just disappears. This time I used the code quite similar to radar system and docking system.

Part failure

Now, after some time parts will be able to break. They will simply stop working. This was quite simple. Just checking if this:

love.math.random(1, math.max(10, self.type.failure_immunity_level*game.failure_factor/self.used_time))

returns 1. Of course there were problems while development and the biggest one was… that I gave test value to incorrect engine. It took about 10 minutes to get to the solution. Also, due to delay, devblog now will be synchronized with event day! Besides, I worked a bit on my math lib's fraction system. I don't know if it's going to be useful, but still.

0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement