game manager and data objects
This commit is contained in:
1 parent
d4b5181c01
commit
6fcd33bb18
43 files changed
+582
-145
No files matched your search
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://whe4bf2tp6ro"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui.gd" id="1_piw7r"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_piw7r")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Health" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
text = "Health"
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Coins" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer2"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
text = "Coins"
|
||||
@@ -258,10 +258,8 @@ metadata/_edit_group_ = true
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_a6t6h")
|
||||
animation = &"death"
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame = 9
|
||||
frame_progress = 1.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 3)
|
||||
@@ -280,3 +278,5 @@ position = Vector2(16, -6)
|
||||
|
||||
[node name="MarkerLeft" type="Node2D" parent="."]
|
||||
position = Vector2(-16, -6)
|
||||
|
||||
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
|
||||
+38
-21
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=19 format=3 uid="uid://y083suj12rld"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://y083suj12rld"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_77wyw"]
|
||||
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
|
||||
@@ -11,6 +11,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://i3l8y3rbx4o1" path="res://scenes/platform.tscn" id="6_t5a05"]
|
||||
[ext_resource type="PackedScene" uid="uid://7e5lm5ck08k8" path="res://scenes/coin.tscn" id="10_yjg5o"]
|
||||
[ext_resource type="PackedScene" uid="uid://dvied5dxkc7e0" path="res://scenes/badguy.tscn" id="11_ovphn"]
|
||||
[ext_resource type="PackedScene" uid="uid://whe4bf2tp6ro" path="res://scenes/UI.tscn" id="12_pvhor"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_xg6qs"]
|
||||
texture = ExtResource("2_l22q1")
|
||||
@@ -606,65 +607,81 @@ autoplay = "move"
|
||||
[node name="BoxTrap" type="Node2D" parent="."]
|
||||
position = Vector2(304, -140)
|
||||
|
||||
[node name="coins" type="Node" parent="."]
|
||||
[node name="Coins" type="Node" parent="."]
|
||||
|
||||
[node name="coin" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(208, -11)
|
||||
|
||||
[node name="coin2" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin2" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(407, -138)
|
||||
|
||||
[node name="coin3" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin3" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(459, -139)
|
||||
|
||||
[node name="coin4" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin4" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(-16, -9)
|
||||
|
||||
[node name="coin5" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin5" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(-95, -74)
|
||||
|
||||
[node name="coin6" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin6" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(48, -44)
|
||||
|
||||
[node name="coin7" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin7" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(264, 83)
|
||||
|
||||
[node name="coin8" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin8" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(312, 83)
|
||||
|
||||
[node name="coin9" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin9" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(357, 82)
|
||||
|
||||
[node name="coin10" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin10" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(306, -42)
|
||||
|
||||
[node name="coin11" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin11" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(397, 83)
|
||||
|
||||
[node name="coin12" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin12" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(467, 20)
|
||||
|
||||
[node name="coin13" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin13" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(494, 20)
|
||||
|
||||
[node name="coin14" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin14" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(527, -110)
|
||||
|
||||
[node name="coin15" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin15" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(536, -44)
|
||||
|
||||
[node name="coin16" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin16" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(560, -44)
|
||||
|
||||
[node name="coin17" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin17" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(584, -44)
|
||||
|
||||
[node name="coin18" parent="coins" instance=ExtResource("10_yjg5o")]
|
||||
[node name="coin18" parent="Coins" instance=ExtResource("10_yjg5o")]
|
||||
position = Vector2(218, 83)
|
||||
|
||||
[node name="badguy" parent="." instance=ExtResource("11_ovphn")]
|
||||
[node name="enemies" type="Node" parent="."]
|
||||
|
||||
[node name="badguy" parent="enemies" instance=ExtResource("11_ovphn")]
|
||||
position = Vector2(179, 84)
|
||||
|
||||
[node name="badguy2" parent="enemies" instance=ExtResource("11_ovphn")]
|
||||
position = Vector2(559, -46)
|
||||
|
||||
[node name="badguy3" parent="enemies" instance=ExtResource("11_ovphn")]
|
||||
position = Vector2(-95, -78)
|
||||
|
||||
[node name="badguy4" parent="enemies" instance=ExtResource("11_ovphn")]
|
||||
position = Vector2(419, -140)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" parent="CanvasLayer" instance=ExtResource("12_pvhor")]
|
||||
|
||||
[connection signal="timeout" from="GameController/Timer" to="GameController" method="resetWorld"]
|
||||
[connection signal="deathComplete" from="CharacterBody2D" to="GameController" method="_on_death_complete"]
|
||||
[connection signal="areatrigger" from="AreaTrigger" to="GameController" method="_on_area_2d_areatrigger"]
|
||||
[connection signal="body_entered" from="AreaTrigger" to="AreaTrigger" method="_on_body_entered"]
|
||||
Reference in new issue
Block a user