🐥

GDScript "hello world"

2024/10/10に公開
extends Sprite2D

var speed = 400
var angular_speed = PI

func _init():
	print("Hello, world!")

func _process(delta):
	rotation += angular_speed * delta

	var velocity = Vector2.UP.rotated(rotation) * speed

	position += velocity * delta

参考にした記事
https://docs.godotengine.org/ja/4.x/getting_started/step_by_step/index.html

Discussion