diff options
author | Jonas Bernard <public.jbernard@web.de> | 2021-04-26 21:04:01 +0200 |
---|---|---|
committer | Jonas Bernard <public.jbernard@web.de> | 2021-04-26 21:04:01 +0200 |
commit | 52f19ebb7a2804a7807471502a073f157483398a (patch) | |
tree | 99e391c446a29fe1153caf19655f5629b53c2304 /scenes/levels/base_level.gd | |
parent | 9bd876beab4c131a57bcffc066c2e0bd1e8c0907 (diff) | |
download | ldjam48-52f19ebb7a2804a7807471502a073f157483398a.tar.gz ldjam48-52f19ebb7a2804a7807471502a073f157483398a.tar.bz2 ldjam48-52f19ebb7a2804a7807471502a073f157483398a.zip |
j
Diffstat (limited to 'scenes/levels/base_level.gd')
-rw-r--r-- | scenes/levels/base_level.gd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd index 68e0ccb..3c52029 100644 --- a/scenes/levels/base_level.gd +++ b/scenes/levels/base_level.gd @@ -8,6 +8,7 @@ onready var _health_bar = $Camera2D/healthbar onready var _last_camera_location : Vector2 = $Camera2D.position const _levels = [ preload("res://scenes/levels/hearts_introduce.tscn"), + preload("res://scenes/levels/typeracer_explain.tscn"), preload("res://scenes/levels/typeracer.tscn"), preload("res://scenes/levels/reactiontest.tscn"), preload("res://scenes/levels/pixel/PixelDefender.tscn"), @@ -71,7 +72,7 @@ func _unload_current_level(): yield(get_tree(), "idle_frame") # todo animation here? post mortem func _delayed_delete(c): - yield(get_tree().create_timer(10.0), "timeout") + yield(get_tree().create_timer(5.0), "timeout") c.queue_free() func _load_current_level(): if _loaded_level != null: |