From b996560f5bc4165447179df3f5196addbd487c59 Mon Sep 17 00:00:00 2001 From: Jonas Bernard Date: Mon, 26 Apr 2021 18:15:08 +0200 Subject: dunno --- scenes/levels/base_level.gd | 2 +- scenes/levels/base_level.tscn | 1 - scenes/levels/reactiontest.tscn | 8 +++++++- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'scenes/levels') diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd index b374705..66085c5 100644 --- a/scenes/levels/base_level.gd +++ b/scenes/levels/base_level.gd @@ -67,7 +67,7 @@ func _unload_current_level(): yield(get_tree(), "idle_frame") # todo animation here? post mortem func _delayed_delete(c): - yield(get_tree().create_timer(2.0), "timeout") + yield(get_tree().create_timer(10.0), "timeout") c.queue_free() func _load_current_level(): if _loaded_level != null: diff --git a/scenes/levels/base_level.tscn b/scenes/levels/base_level.tscn index e2d57ba..6681a7d 100644 --- a/scenes/levels/base_level.tscn +++ b/scenes/levels/base_level.tscn @@ -41,7 +41,6 @@ position = Vector2( 571.642, -311.599 ) text = "Menu" [node name="PauseMenu" parent="Camera2D" instance=ExtResource( 5 )] - [connection signal="done" from="Camera2D" to="." method="_on_Camera2D_done"] [connection signal="on_click" from="Camera2D/MenuButton" to="." method="_on_MenuButton_on_click"] [connection signal="unpause" from="Camera2D/PauseMenu" to="." method="_on_PauseMenu_unpause"] diff --git a/scenes/levels/reactiontest.tscn b/scenes/levels/reactiontest.tscn index 41031e3..fc85dbc 100644 --- a/scenes/levels/reactiontest.tscn +++ b/scenes/levels/reactiontest.tscn @@ -1,13 +1,19 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://scenes/levels/reactiontest.gd" type="Script" id=1] [ext_resource path="res://components/button.tscn" type="PackedScene" id=2] [ext_resource path="res://fonts/Flipps_Theme.tres" type="Theme" id=3] +[ext_resource path="res://textures/colors/light_blue.png" type="Texture" id=4] [node name="Level2" type="Node2D"] position = Vector2( 640, 320 ) script = ExtResource( 1 ) +[node name="Sprite" type="Sprite" parent="."] +position = Vector2( -54.0326, 16.9514 ) +scale = Vector2( 931.209, 615.489 ) +texture = ExtResource( 4 ) + [node name="ButtonHolder" type="Node2D" parent="."] [node name="Button" parent="ButtonHolder" instance=ExtResource( 2 )] -- cgit