Added 2 new hitboxes for muzzle damage and powerup grab radius; reduced

player damage hitbox substantially
This commit is contained in:
Henry 2026-04-03 14:29:39 +01:00
parent 7cca37a881
commit 8196e664cd

View file

@ -76,8 +76,14 @@ animations = [{
"speed": 15.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qlg0r"]
size = Vector2(24, 10)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tuyoq"]
size = Vector2(24, 30)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dqkch"]
size = Vector2(10, 11)
size = Vector2(6, 5.75)
[node name="Player" type="Area2D" unique_id=652131079]
script = ExtResource("1_g2els")
@ -103,9 +109,22 @@ sprite_frames = SubResource("SpriteFrames_3v2ag")
animation = &"stock"
autoplay = "stock"
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=485826453]
position = Vector2(0, -3.5)
[node name="MuzzleBox" type="CollisionShape2D" parent="." unique_id=1042837273]
unique_name_in_owner = true
position = Vector2(0, -17)
shape = SubResource("RectangleShape2D_qlg0r")
disabled = true
debug_color = Color(1, 0.5058824, 0.21960784, 0.41960785)
[node name="HelpBox" type="CollisionShape2D" parent="." unique_id=938667427]
position = Vector2(0, 3)
shape = SubResource("RectangleShape2D_tuyoq")
debug_color = Color(0, 1, 0, 0.41960785)
[node name="HitBox" type="CollisionShape2D" parent="." unique_id=485826453]
position = Vector2(0, 2)
shape = SubResource("RectangleShape2D_dqkch")
debug_color = Color(0.9843137, 0, 0, 0.80784315)
[node name="WeaponCooldown" type="Timer" parent="." unique_id=269678170]