Post #5: Your First GDScript
If you are new to Godot, but not new to programming, I'm curious what you think about GDScript? It seems to give good flexibility, while still giving the creator the ability to do complicated things (like managing their own memory). However, I much prefer strongly typed languages, and whitespace rules are not my preference. So, there are pros and cons... but I'm looking forward to working with it more!
Here's my first pass at the initial Godot scripting tutorial you can find here:
extends Sprite2D
var speed = 400
var angular_speed = PI
func _process(delta):
rotation += angular_speed * delta
var velocity = Vector2.UP.rotated(rotation) * speed
position += velocity * delta
>
Pretty simple and fun to work with!