From 843bdbd9c2026e5990eff14c7c134ff8d6c6a8c5 Mon Sep 17 00:00:00 2001 From: IcECreAm777 Date: Sun, 9 Jul 2023 16:32:17 +0200 Subject: reset the velocity --- Scripts/scene_control.gd | 1 + 1 file changed, 1 insertion(+) (limited to 'Scripts') 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 -- cgit From 7f04ec29e49a3aa4bf816faf1175cdedb5bcc2c1 Mon Sep 17 00:00:00 2001 From: IcECreAm777 Date: Sun, 9 Jul 2023 17:05:20 +0200 Subject: level 2 --- Scripts/game.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Scripts') 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. -- cgit