- New placeholder slime sprite

- testing removing jump from player
This commit is contained in:
SnekInAScarf 2026-10-26 23:28:46 -07:00
parent 696a89d1ec
commit ca14c26a2d
4 changed files with 5 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -2,7 +2,7 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://bkfsga31umost" uid="uid://c3v26u2wh4it4"
path="res://.godot/imported/Player.png-54d4b13ac506f96b99814af866f299ae.ctex" path="res://.godot/imported/Player.png-54d4b13ac506f96b99814af866f299ae.ctex"
metadata={ metadata={
"vram_texture": false "vram_texture": false

View file

@ -41,6 +41,7 @@ func _physics_process(delta: float) -> void:
velocity.y += get_gravity().y * delta velocity.y += get_gravity().y * delta
# Jumping! And also jump buffering. # Jumping! And also jump buffering.
"""
if Input.is_action_just_pressed("jump") and not (is_on_floor() or is_on_wall()): if Input.is_action_just_pressed("jump") and not (is_on_floor() or is_on_wall()):
jumpBufferTimeLeft = TOTAL_JUMP_BUFFER_S jumpBufferTimeLeft = TOTAL_JUMP_BUFFER_S
print("start jump buffer") print("start jump buffer")
@ -51,6 +52,7 @@ func _physics_process(delta: float) -> void:
jumpBufferTimeLeft = 0.0 jumpBufferTimeLeft = 0.0
if jumpBufferTimeLeft > 0.0: if jumpBufferTimeLeft > 0.0:
jumpBufferTimeLeft -= delta jumpBufferTimeLeft -= delta
"""
# Quick setup for oozing up walls # Quick setup for oozing up walls
if verticalInput > 0 and is_on_wall(): if verticalInput > 0 and is_on_wall():

View file

@ -1,17 +1,16 @@
[gd_scene format=3 uid="uid://uaxviwb40nn8"] [gd_scene format=3 uid="uid://uaxviwb40nn8"]
[ext_resource type="Script" uid="uid://drxbt88sjb1y4" path="res://Characters/player.gd" id="1_eovys"] [ext_resource type="Script" uid="uid://drxbt88sjb1y4" path="res://Characters/player.gd" id="1_eovys"]
[ext_resource type="Texture2D" uid="uid://bkfsga31umost" path="res://Assets/Player.png" id="2_eovys"] [ext_resource type="Texture2D" uid="uid://c3v26u2wh4it4" path="res://Assets/Player.png" id="2_eovys"]
[sub_resource type="CircleShape2D" id="CircleShape2D_eovys"] [sub_resource type="CircleShape2D" id="CircleShape2D_eovys"]
radius = 8.062258
[node name="Player" type="CharacterBody2D" unique_id=150873177] [node name="Player" type="CharacterBody2D" unique_id=150873177]
script = ExtResource("1_eovys") script = ExtResource("1_eovys")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1511454314] [node name="Sprite2D" type="Sprite2D" parent="." unique_id=1511454314]
texture = ExtResource("2_eovys") texture = ExtResource("2_eovys")
offset = Vector2(0, -8) offset = Vector2(0, -6)
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1379572123] [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1379572123]
shape = SubResource("CircleShape2D_eovys") shape = SubResource("CircleShape2D_eovys")