Projectile Weapon
made a gun that can kill the enemy. # Conflicts: # scenes/enemy.tscn # scenes/player.tscn # scenes/test_scene.tscn # scripts/UltimatePlatformerController.gd
This commit is contained in:
1 parent
2ecc24ae71
commit
90111f8b39
14 files changed
+166
-63
No files matched your search
+22
-40
@@ -5,16 +5,13 @@
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_d2by0"]
|
||||
size = Vector2(111, 105)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
|
||||
size = Vector2(114.5, 109)
|
||||
|
||||
[node name="player" type="CharacterBody2D" unique_id=1596338883]
|
||||
collision_mask = 6
|
||||
script = ExtResource("1_3vyb7")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=42689460]
|
||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=1060028972]
|
||||
offset_right = 111.0
|
||||
offset_bottom = 105.0
|
||||
offset_bottom = 104.0
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=440932344]
|
||||
|
||||
@@ -22,41 +19,26 @@ offset_bottom = 105.0
|
||||
position = Vector2(55.5, 52.5)
|
||||
shape = SubResource("RectangleShape2D_d2by0")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="." unique_id=680224441]
|
||||
collision_mask = 4
|
||||
[node name="ColorRect2" type="ColorRect" parent="." unique_id=1595777933]
|
||||
offset_left = 2.0
|
||||
offset_top = -33.0
|
||||
offset_right = 28.0
|
||||
offset_bottom = -8.0
|
||||
color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=736937610]
|
||||
position = Vector2(55.25, 52.5)
|
||||
shape = SubResource("RectangleShape2D_aqe1g")
|
||||
[node name="ColorRect3" type="ColorRect" parent="." unique_id=261143567]
|
||||
offset_left = 82.0
|
||||
offset_top = -33.0
|
||||
offset_right = 108.0
|
||||
offset_bottom = -8.0
|
||||
color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="health" type="Control" parent="." unique_id=1976293596]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
[node name="ColorRect4" type="ColorRect" parent="." unique_id=1858187239]
|
||||
offset_left = 42.0
|
||||
offset_top = -33.0
|
||||
offset_right = 68.0
|
||||
offset_bottom = -8.0
|
||||
color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="health" unique_id=110340136]
|
||||
self_modulate = Color(1, 0, 0, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 3.0
|
||||
offset_top = -42.0
|
||||
offset_right = 26.0
|
||||
offset_bottom = -20.0
|
||||
|
||||
[node name="ColorRect2" type="ColorRect" parent="health" unique_id=1043497392]
|
||||
self_modulate = Color(1, 0, 0, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 37.0
|
||||
offset_top = -42.0
|
||||
offset_right = 60.0
|
||||
offset_bottom = -20.0
|
||||
|
||||
[node name="ColorRect3" type="ColorRect" parent="health" unique_id=175994440]
|
||||
self_modulate = Color(1, 0, 0, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 70.0
|
||||
offset_top = -42.0
|
||||
offset_right = 93.0
|
||||
offset_bottom = -20.0
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|
||||
[node name="Marker2D" type="Marker2D" parent="." unique_id=1559032825]
|
||||
position = Vector2(112, 38)
|
||||
Reference in new issue
Block a user