Devlog #03: AI Ship & Weapons!
This devlog marks a very important milestone in this game. I am pleased to announce, there is finally something to do now! With this latest update, I have added an EXTREMELY smart (its not) AI ship which flies around chasing you, and also a cannon to shoot it down with.
The AI Ship
For now, the AI ship is the same mesh as the player’s ship, but that will be changed later. As for the AI part, it simply uses an interpolate_with() line which gets the AI’s current location and the player’s current location, and puts out a transform for the velocity to use. It also pulls away just before hitting the player to not collide
For the health system, it simply has 2 CollisionMesh3D nodes in an Area3D which detects when the bullet’s CollisionMesh3D enters, and then subtracts 10 from the total health, and hides the enemy ship when health reaches 0
Weapons
Of course the best part of the whole update is having weapons! Sadly, they are a bit lacking since it is literally just a small point that shoots (very glowy) projectiles at mach Jesus. The bullets also have their own CollisionMesh3D to interact with ships and OmniLight3D to add to their glowyness.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.