- New placeholder slime sprite
- testing removing jump from player
This commit is contained in:
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 |
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bkfsga31umost"
|
||||
uid="uid://c3v26u2wh4it4"
|
||||
path="res://.godot/imported/Player.png-54d4b13ac506f96b99814af866f299ae.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ func _physics_process(delta: float) -> void:
|
|||
velocity.y += get_gravity().y * delta
|
||||
|
||||
# Jumping! And also jump buffering.
|
||||
"""
|
||||
if Input.is_action_just_pressed("jump") and not (is_on_floor() or is_on_wall()):
|
||||
jumpBufferTimeLeft = TOTAL_JUMP_BUFFER_S
|
||||
print("start jump buffer")
|
||||
|
|
@ -51,6 +52,7 @@ func _physics_process(delta: float) -> void:
|
|||
jumpBufferTimeLeft = 0.0
|
||||
if jumpBufferTimeLeft > 0.0:
|
||||
jumpBufferTimeLeft -= delta
|
||||
"""
|
||||
|
||||
# Quick setup for oozing up walls
|
||||
if verticalInput > 0 and is_on_wall():
|
||||
|
|
|
|||
|
|
@ -1,17 +1,16 @@
|
|||
[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="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"]
|
||||
radius = 8.062258
|
||||
|
||||
[node name="Player" type="CharacterBody2D" unique_id=150873177]
|
||||
script = ExtResource("1_eovys")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1511454314]
|
||||
texture = ExtResource("2_eovys")
|
||||
offset = Vector2(0, -8)
|
||||
offset = Vector2(0, -6)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1379572123]
|
||||
shape = SubResource("CircleShape2D_eovys")
|
||||
|
|
|
|||
Loading…
Reference in a new issue