summaryrefslogtreecommitdiffhomepage
path: root/Racing-Game/Engine.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Racing-Game/Engine.gd')
-rw-r--r--Racing-Game/Engine.gd13
1 files changed, 13 insertions, 0 deletions
diff --git a/Racing-Game/Engine.gd b/Racing-Game/Engine.gd
new file mode 100644
index 0000000..46c8298
--- /dev/null
+++ b/Racing-Game/Engine.gd
@@ -0,0 +1,13 @@
+extends RigidBody2D
+
+# Declare member variables here. Examples:
+# var a = 2
+# var b = "text"
+
+# 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):
+ set_rotation(get_node("../../CarBody").get_rotation())