aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
authorLibravatar perivesta <>2023-07-09 17:22:56 +0200
committerLibravatar perivesta <>2023-07-09 17:22:56 +0200
commit9a0e01f91ae85f0c812aa02f9586ab7fd3f7153d (patch)
treefafc525dce42e8ef5be81a862cf1f4849b121fee /Scripts
parented34022bfcee20f8679927dcbd360679cd645db4 (diff)
parent7f04ec29e49a3aa4bf816faf1175cdedb5bcc2c1 (diff)
download2023-9a0e01f91ae85f0c812aa02f9586ab7fd3f7153d.tar.gz
2023-9a0e01f91ae85f0c812aa02f9586ab7fd3f7153d.tar.bz2
2023-9a0e01f91ae85f0c812aa02f9586ab7fd3f7153d.zip
Merge branch 'master' of bunny.garden:jam/gmtk/2023
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