organized coins and enemies
This commit is contained in:
1 parent
b94006c28e
commit
753efaa3d3
30 files changed
+185
-62
No files matched your search
@@ -528,10 +528,6 @@ script = ExtResource("1_77wyw")
|
||||
|
||||
[node name="Timer" type="Timer" parent="SceneManager"]
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" parent="CanvasLayer" instance=ExtResource("1_l1h5o")]
|
||||
|
||||
[node name="TileMap" type="TileMap" parent="."]
|
||||
tile_set = SubResource("TileSet_47g5u")
|
||||
format = 2
|
||||
@@ -571,13 +567,6 @@ PUSH_FORCE = 550
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="CharacterBody2D"]
|
||||
|
||||
[node name="BoxTrapTrigger" parent="." instance=ExtResource("7_i5ol2")]
|
||||
position = Vector2(126, -57)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="BoxTrapTrigger"]
|
||||
shape = SubResource("CircleShape2D_j8ltg")
|
||||
debug_color = Color(0.72549, 0.309804, 0.905882, 0.419608)
|
||||
|
||||
[node name="crates" type="Node" parent="."]
|
||||
|
||||
[node name="crate1" parent="crates" instance=ExtResource("5_u8rgi")]
|
||||
@@ -586,6 +575,29 @@ position = Vector2(-22, -30)
|
||||
[node name="boxtrap" type="Node2D" parent="crates"]
|
||||
position = Vector2(131, -175)
|
||||
|
||||
[node name="coins" type="Node" parent="."]
|
||||
|
||||
[node name="coin" parent="coins" instance=ExtResource("10_mo30d")]
|
||||
position = Vector2(79, 88)
|
||||
|
||||
[node name="coin2" parent="coins" instance=ExtResource("10_mo30d")]
|
||||
position = Vector2(177, 87)
|
||||
|
||||
[node name="enemies" type="Node" parent="."]
|
||||
|
||||
[node name="badguy" parent="enemies" instance=ExtResource("11_ghgxt")]
|
||||
position = Vector2(-28, 84)
|
||||
|
||||
[node name="badguy2" parent="enemies" instance=ExtResource("11_ghgxt")]
|
||||
position = Vector2(270, -12)
|
||||
|
||||
[node name="BoxTrapTrigger" parent="." instance=ExtResource("7_i5ol2")]
|
||||
position = Vector2(126, -57)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="BoxTrapTrigger"]
|
||||
shape = SubResource("CircleShape2D_j8ltg")
|
||||
debug_color = Color(0.72549, 0.309804, 0.905882, 0.419608)
|
||||
|
||||
[node name="MovingPlatform" parent="." instance=ExtResource("6_bcgm6")]
|
||||
position = Vector2(472, -21)
|
||||
|
||||
@@ -595,21 +607,10 @@ libraries = {
|
||||
}
|
||||
autoplay = "move"
|
||||
|
||||
[node name="coin" parent="." instance=ExtResource("10_mo30d")]
|
||||
position = Vector2(79, 88)
|
||||
[node name="UICanvas" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="coin2" parent="." instance=ExtResource("10_mo30d")]
|
||||
position = Vector2(177, 87)
|
||||
|
||||
[node name="badguy" parent="." instance=ExtResource("11_ghgxt")]
|
||||
position = Vector2(-28, 84)
|
||||
|
||||
[node name="badguy2" parent="." instance=ExtResource("11_ghgxt")]
|
||||
position = Vector2(270, -12)
|
||||
[node name="UI" parent="UICanvas" instance=ExtResource("1_l1h5o")]
|
||||
|
||||
[connection signal="timeout" from="SceneManager/Timer" to="SceneManager" method="_on_timer_timeout"]
|
||||
[connection signal="playerDead" from="CharacterBody2D" to="SceneManager" method="resetGame"]
|
||||
[connection signal="areatrigger" from="BoxTrapTrigger" to="SceneManager" method="_on_area_2d_areatrigger"]
|
||||
[connection signal="coinCollected" from="coin" to="SceneManager" method="coinCollected"]
|
||||
[connection signal="coinCollected" from="coin2" to="SceneManager" method="coinCollected"]
|
||||
[connection signal="playerDamage" from="badguy" to="SceneManager" method="_on_badguy_player_damage"]
|
||||
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://w7al4r6vnaye"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://w7al4r6vnaye"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui.gd" id="1_fbdq6"]
|
||||
[ext_resource type="FontFile" uid="uid://dt362md65hx83" path="res://graphics/fonts/PixelOperator8.ttf" id="2_gopna"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -27,6 +28,8 @@ size_flags_horizontal = 3
|
||||
|
||||
[node name="Health" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_gopna")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Health : 100"
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
@@ -35,6 +38,8 @@ size_flags_horizontal = 3
|
||||
|
||||
[node name="Coins" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_gopna")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Coins : 0
|
||||
"
|
||||
horizontal_alignment = 2
|
||||
Reference in new issue
Block a user