summaryrefslogtreecommitdiff
path: root/Sprite.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Sprite.gd')
-rw-r--r--Sprite.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/Sprite.gd b/Sprite.gd
new file mode 100644
index 0000000..c55df61
--- /dev/null
+++ b/Sprite.gd
@@ -0,0 +1,12 @@
+extends Sprite
+
+var angular_speed = PI
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ pass # Replace with function body.
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(delta):
+ rotation += angular_speed * delta
+