game manager and data objects
This commit is contained in:
1 parent
e4be043988
commit
149ac083d4
38 files changed
+522
-122
No files matched your search
@@ -278,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"]
|
||||
+17
-3
@@ -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://ci10o5e0xpxm8" path="res://scenes/platform.tscn" id="6_80wa1"]
|
||||
[ext_resource type="PackedScene" uid="uid://cx6o8fh0fj8kl" path="res://scenes/coin.tscn" id="10_0oixj"]
|
||||
[ext_resource type="PackedScene" uid="uid://g7p0pn145hpe" path="res://scenes/badguy.tscn" id="11_bxgbq"]
|
||||
[ext_resource type="PackedScene" uid="uid://hg2l3bff115k" path="res://scenes/ui.tscn" id="12_x3t78"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_xg6qs"]
|
||||
texture = ExtResource("2_l22q1")
|
||||
@@ -612,9 +613,22 @@ position = Vector2(389, 58)
|
||||
[node name="coin4" parent="Coins" instance=ExtResource("10_0oixj")]
|
||||
position = Vector2(398, -40)
|
||||
|
||||
[node name="badguy" parent="." instance=ExtResource("11_bxgbq")]
|
||||
position = Vector2(153, 146)
|
||||
[node name="enemies" type="Node" parent="."]
|
||||
|
||||
[node name="badguy" parent="enemies" instance=ExtResource("11_bxgbq")]
|
||||
position = Vector2(304, 147)
|
||||
|
||||
[node name="badguy2" parent="enemies" instance=ExtResource("11_bxgbq")]
|
||||
position = Vector2(420, 51)
|
||||
|
||||
[node name="badguy3" parent="enemies" instance=ExtResource("11_bxgbq")]
|
||||
position = Vector2(155, 147)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" parent="CanvasLayer" instance=ExtResource("12_x3t78")]
|
||||
|
||||
[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"]
|
||||
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://hg2l3bff115k"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui.gd" id="1_4spu6"]
|
||||
|
||||
[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_4spu6")
|
||||
|
||||
[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"
|
||||
Reference in new issue
Block a user