Tweaks
This commit is contained in:
@@ -40,7 +40,6 @@ func _physics_process(_delta) -> void:
|
||||
|
||||
#process coyote and jump buffers
|
||||
if buffer_grounded > 0 and buffer_jumping > 0:
|
||||
print(buffer_grounded, " ", buffer_jumping)
|
||||
velocity.y = -JUMP_FORCE
|
||||
buffer_grounded = 0
|
||||
buffer_jumping = 0
|
||||
|
||||
49
BoxBoy/BoxBoy.tscn
Normal file
49
BoxBoy/BoxBoy.tscn
Normal file
@@ -0,0 +1,49 @@
|
||||
[gd_scene load_steps=7 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"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nxogm"]
|
||||
atlas = ExtResource("2_0yqgk")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_u3cyc"]
|
||||
atlas = ExtResource("2_0yqgk")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_y2354"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nxogm")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"idle",
|
||||
"speed": 1.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_u3cyc")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"idle_glance",
|
||||
"speed": 1.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ulcgi"]
|
||||
radius = 14.0
|
||||
height = 32.0
|
||||
|
||||
[node name="BoxBoy" type="CharacterBody2D"]
|
||||
script = ExtResource("1_av86f")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_y2354")
|
||||
animation = &"idle"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CapsuleShape2D_ulcgi")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
|
||||
Reference in New Issue
Block a user