Week6, Game Manager, Data objects
This commit is contained in:
1 parent
21253ccc12
commit
b73c6f882f
148 files changed
+794
-92
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"]
|
||||
+16
-2
@@ -1,6 +1,7 @@
|
||||
[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://e5mxcrgrfcbb" path="res://scenes/ui.tscn" id="1_kf5nh"]
|
||||
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwb83f7uoweuy" path="res://graphics/Terrain (32x32).png" id="2_l22q1"]
|
||||
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
|
||||
@@ -521,6 +522,10 @@ _data = {
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" parent="CanvasLayer" instance=ExtResource("1_kf5nh")]
|
||||
|
||||
[node name="GameController" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("1_77wyw")
|
||||
@@ -607,9 +612,18 @@ position = Vector2(-23, 63)
|
||||
[node name="Area2D4" parent="Coins" instance=ExtResource("10_vpc4p")]
|
||||
position = Vector2(237, 61)
|
||||
|
||||
[node name="Badguy" parent="." instance=ExtResource("11_3ypx6")]
|
||||
[node name="Enemies" type="Node" parent="."]
|
||||
|
||||
[node name="Badguy" parent="Enemies" instance=ExtResource("11_3ypx6")]
|
||||
position = Vector2(-3, 83)
|
||||
|
||||
[node name="Badguy2" parent="Enemies" instance=ExtResource("11_3ypx6")]
|
||||
position = Vector2(331, -45)
|
||||
|
||||
[node name="Badguy3" parent="Enemies" instance=ExtResource("11_3ypx6")]
|
||||
position = Vector2(106, -45)
|
||||
|
||||
[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,39 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://e5mxcrgrfcbb"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui.gd" id="1_6l2l3"]
|
||||
|
||||
[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_6l2l3")
|
||||
|
||||
[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"
|
||||
horizontal_alignment = 2
|
||||
Reference in new issue
Block a user