Physics and movement
figured out how to make proper collisions and movement. Also added some more fish.
Player movement
the player can move in all 4 directions, to do this, I use the Input.get_vector() function, and apply the force to the RigidBody of the player.
The player can also rotate, so it looks more natural - it also always applies a torque to always face forwards and it uses this messy code XD apply_torque(-(rotation*rotation*rotation) * delta * 1000000)
Enemy fish
at the time the enemy fishes just swim towards you.
Game idea
The game idea is the following - you have a target number you need to collect, each enemy fish has its own random number, that gets added to the current score. To pass to the next level, you need to collect exactly the target score, if you collect more, you loose.
This is my first game in godot btw )
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.