meow
This commit is contained in:
parent
1e233d40cf
commit
4f4e703886
11 changed files with 145 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ extends CharacterBody2D
|
|||
@export var JUMP_VELOCITY = -450.0
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
func _process(delta: float) -> void:
|
||||
# Add the gravity.
|
||||
if not is_on_floor():
|
||||
velocity += get_gravity() * delta
|
||||
|
|
@ -23,3 +23,10 @@ func _physics_process(delta: float) -> void:
|
|||
velocity.x = move_toward(velocity.x, 0, SPEED)
|
||||
|
||||
move_and_slide()
|
||||
|
||||
|
||||
func _on_hitbox_area_entered(area: Area2D) -> void:
|
||||
#box event
|
||||
#laser event
|
||||
#sticky tape event
|
||||
pass # Replace with function body.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue