aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts')
-rw-r--r--Scripts/game.gd3
-rw-r--r--Scripts/scene_control.gd1
2 files changed, 3 insertions, 1 deletions
diff --git a/Scripts/game.gd b/Scripts/game.gd
index 95ca24a..c9beed2 100644
--- a/Scripts/game.gd
+++ b/Scripts/game.gd
@@ -9,7 +9,8 @@ var scenes = [
preload("res://Levels/Tut01.tscn"),
preload("res://Levels/Tut02.tscn"),
preload("res://Levels/Tut03.tscn"),
- preload("res://Levels/Level1.tscn")
+ preload("res://Levels/Level1.tscn"),
+ preload("res://Levels/Level2.tscn")
]
# Called when the node enters the scene tree for the first time.
diff --git a/Scripts/scene_control.gd b/Scripts/scene_control.gd
index c4d42ec..453853c 100644
--- a/Scripts/scene_control.gd
+++ b/Scripts/scene_control.gd
@@ -64,6 +64,7 @@ func reset_level():
car.global_position = start.global_position
car.global_rotation = start.rotation;
+ car.velocity = Vector2.ZERO
current_time = 0.0