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

+21
View File
@@ -0,0 +1,21 @@
[gd_scene format=3 uid="uid://baiayu1xn68g0"]
[ext_resource type="Script" uid="uid://7hy57dacf4nh" path="res://projecile.gd" id="1_c8fcr"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(44, 44)
[node name="projectile" type="Area2D" unique_id=478503233]
collision_layer = 8
collision_mask = 4
script = ExtResource("1_c8fcr")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1569566086]
self_modulate = Color(0, 0, 0, 1)
offset_top = -1.0
offset_right = 40.0
offset_bottom = 39.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1408698135]
position = Vector2(20, 19)
shape = SubResource("RectangleShape2D_aqe1g")