Added NPC ArrowGirl

This commit is contained in:
2026-03-11 14:42:01 +11:00
parent a9f1fd48c9
commit 935125de83
11 changed files with 122 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ func _physics_process(_delta) -> void:
buffer_jumping -= 1
#process coyote and jump buffers
if buffer_grounded > 0 and buffer_jumping > 0:
if buffer_grounded > 0 and buffer_jumping > 0 and just_bounced == false:
velocity.y = -JUMP_FORCE
buffer_grounded = 0
buffer_jumping = 0

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=3 uid="uid://dndbf44fkm2ww"]
[gd_scene format=3 uid="uid://dndbf44fkm2ww"]
[ext_resource type="Script" uid="uid://c2x51mppxugpn" path="res://BoxBoy/BoxBoy.gd" id="1_av86f"]
[ext_resource type="Texture2D" uid="uid://bpjhq0b2dae1d" path="res://BoxBoy/BoxBoy.png" id="2_0yqgk"]
@@ -34,15 +34,15 @@ animations = [{
radius = 14.0
height = 32.0
[node name="BoxBoy" type="CharacterBody2D"]
[node name="BoxBoy" type="CharacterBody2D" unique_id=904940283]
script = ExtResource("1_av86f")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=660463739]
sprite_frames = SubResource("SpriteFrames_y2354")
animation = &"idle"
metadata/_edit_lock_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1250358515]
shape = SubResource("CapsuleShape2D_ulcgi")
metadata/_edit_lock_ = true