scene manager

This commit is contained in:
2024-10-19 22:42:43 +02:00
parent c0304fdadd
commit cda6d33582
14 changed files with 275 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=34 format=3 uid="uid://4ubk6w44h4s2"]
[gd_scene load_steps=33 format=3 uid="uid://4ubk6w44h4s2"]
[ext_resource type="Script" path="res://script/Player.cs" id="1_gmlsd"]
[ext_resource type="Texture2D" uid="uid://bo4q2rvn056p3" path="res://model/PatrickIdle1.png" id="2_w2lj6"]
@@ -10,7 +10,6 @@
[ext_resource type="Texture2D" uid="uid://b5mfnew4kh6ht" path="res://model/PatrickLeft1.png" id="5_vnnjt"]
[ext_resource type="Texture2D" uid="uid://dyi5a1hlwio71" path="res://model/Glitch4.png" id="6_73f32"]
[ext_resource type="Texture2D" uid="uid://bu5nnr2x4co38" path="res://model/PatrickLeft2.png" id="6_jii6b"]
[ext_resource type="PackedScene" uid="uid://cru3yl7laeiem" path="res://scene/principal.tscn" id="6_plp4a"]
[ext_resource type="Texture2D" uid="uid://doavv8drnetm" path="res://model/PatrickRight1.png" id="7_xptin"]
[ext_resource type="Texture2D" uid="uid://dbey2oeyhxsq8" path="res://model/PatrickRight2.png" id="8_m32jm"]
[ext_resource type="Texture2D" uid="uid://dxepey1fkkhhv" path="res://model/DiabeteMeter1.png" id="9_0ohl3"]
@@ -399,7 +398,7 @@ limit_smoothed = true
position_smoothing_enabled = true
rotation_smoothing_speed = 7.0
[node name="menu" parent="Camera2D" node_paths=PackedStringArray("anim") instance=ExtResource("3_6uvd0")]
[node name="menu" parent="Camera2D" node_paths=PackedStringArray("anim", "player") instance=ExtResource("3_6uvd0")]
visible = false
offset_left = -47.0
offset_top = -60.0
@@ -407,7 +406,7 @@ offset_right = -47.0
offset_bottom = -60.0
scale = Vector2(0.334, 0.334)
anim = NodePath("../../anim")
principal = ExtResource("6_plp4a")
player = NodePath("../..")
[node name="door_view" parent="Camera2D" instance=ExtResource("4_0vwed")]
visible = false

View File

@@ -1,9 +1,8 @@
[gd_scene load_steps=9 format=3 uid="uid://cru3yl7laeiem"]
[gd_scene load_steps=8 format=3 uid="uid://cru3yl7laeiem"]
[ext_resource type="Texture2D" uid="uid://mr6hi8icwyle" path="res://model/Trick or treatBG.png" id="1_4oira"]
[ext_resource type="Script" path="res://script/Principal.cs" id="1_5hpqm"]
[ext_resource type="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="2_ab0tu"]
[ext_resource type="PackedScene" uid="uid://1tfopbwug3ht" path="res://scene/city.tscn" id="2_qp7s0"]
[ext_resource type="StyleBox" uid="uid://cl1mx7tnohwg6" path="res://themes/back_principal.tres" id="5_tyto3"]
[ext_resource type="Texture2D" uid="uid://cf12hst5y4gfr" path="res://model/Credit.png" id="6_px85q"]
@@ -23,7 +22,6 @@ grow_vertical = 2
script = ExtResource("1_5hpqm")
sub = NodePath("sub")
credit = NodePath("credit")
play = ExtResource("2_qp7s0")
[node name="TrickOrTreatBg" type="Sprite2D" parent="."]
texture = ExtResource("1_4oira")

6
scene/scene_manager.tscn Normal file
View File

@@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://chc2do7pc6ews"]
[ext_resource type="Script" path="res://script/SceneManager.cs" id="1_mayof"]
[node name="SceneManager" type="Node"]
script = ExtResource("1_mayof")