Added Level singleton to manage the (un)loading of levels and entrypoints

This commit is contained in:
ChaoticByte 2024-09-27 21:30:35 +02:00
parent 642e98b44e
commit 71eae88a33
No known key found for this signature in database
7 changed files with 80 additions and 22 deletions

3
levels/intro.tscn Normal file
View file

@ -0,0 +1,3 @@
[gd_scene format=3 uid="uid://c6w7lrydi43ts"]
[node name="Intro" type="Node2D"]

View file

@ -1,19 +0,0 @@
[gd_scene load_steps=3 format=3 uid="uid://ptqto8ctsp4u"]
[ext_resource type="PackedScene" uid="uid://ebb4pfxklatj" path="res://player/player.tscn" id="1_h1tob"]
[ext_resource type="PackedScene" uid="uid://cbynoofsjcl45" path="res://core/dynamic_polygon.tscn" id="2_83sm2"]
[node name="WakingUp" type="Node2D"]
[node name="Player" parent="." instance=ExtResource("1_h1tob")]
position = Vector2(400, 224)
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="DynamicPolygon" parent="StaticBody2D" instance=ExtResource("2_83sm2")]
polygon = PackedVector2Array(296, 288, 296, 368, 536, 368, 536, 336, 776, 336, 776, 400, 104, 400, 104, 360, 184, 360, 184, 304, 248, 304, 248, 288)
color = Color(0.235294, 0.607843, 0.643137, 1)
[node name="DynamicPolygon2" parent="StaticBody2D" instance=ExtResource("2_83sm2")]
polygon = PackedVector2Array(520, 96, 520, 280, 552, 280, 552, 32, 632, 32, 632, -8, 520, -8)
color = Color(0.236278, 0.606088, 0.644729, 1)