Projectile Weapon

made a gun that can kill the enemy.
This commit is contained in:
sam committed 2026-10-03 15:58:09 -06:00
1 parent 2315add8ec
commit 8bfa979f06
14 files changed
+202 -13

No files matched your search

+8 -3
View File
@@ -1,12 +1,14 @@
[gd_scene format=3 uid="uid://d1xirc54wud0s"]
[ext_resource type="PackedScene" uid="uid://cmtdq6tedv1mm" path="res://scenes/player.tscn" id="1_g7g4h"]
[ext_resource type="Script" uid="uid://87oh2y0i2muf" path="res://scenes/rigid_body_2d.gd" id="2_nd71p"]
[ext_resource type="Script" uid="uid://v7bcqfwryutg" path="res://scripts/test_scene.gd" id="1_j8ivh"]
[ext_resource type="PackedScene" uid="uid://dxx6mxv6x5yws" path="res://scenes/enemy.tscn" id="2_j8ivh"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(1116.25, 73)
[node name="test_scene" type="Node2D" unique_id=1970054744]
script = ExtResource("1_j8ivh")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1255479846]
offset_left = 2.0
@@ -17,10 +19,13 @@ offset_bottom = 606.0
[node name="player" parent="." unique_id=1596338883 instance=ExtResource("1_g7g4h")]
position = Vector2(64, 386)
[node name="floor" type="StaticBody2D" parent="." unique_id=866269158]
[node name="floor" type="StaticBody2D" parent="." unique_id=306980091]
collision_layer = 2
script = ExtResource("2_nd71p")
collision_mask = 5
[node name="CollisionShape2D" type="CollisionShape2D" parent="floor" unique_id=1146724072]
position = Vector2(561.125, 569)
shape = SubResource("RectangleShape2D_aqe1g")
[node name="enemy" parent="." unique_id=1471932521 instance=ExtResource("2_j8ivh")]
position = Vector2(695, 334)