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:
sam committed 2026-10-03 16:08:19 -06:00
1 parent 2ecc24ae71
commit 90111f8b39
14 files changed
+166 -63

No files matched your search

+7 -4
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="PackedScene" uid="uid://bjk1cmuogswyd" path="res://scenes/enemy.tscn" id="2_j8ivh"]
[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,12 +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
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="floor" unique_id=1471932521 instance=ExtResource("2_j8ivh")]
position = Vector2(527, 311)
[node name="enemy" parent="." unique_id=1471932521 instance=ExtResource("2_j8ivh")]
position = Vector2(695, 334)