- implementing biom change

- fixing typo in "highscore"
This commit is contained in:
megamichi 2024-10-18 16:34:51 +02:00
parent 520a5db2c6
commit 431fb8220e
24 changed files with 242 additions and 105 deletions

View file

@ -14,6 +14,7 @@ func die():
func start():
global_position = Vector2(21,91)
velocity = Vector2(0,0)
alive = true
func _physics_process(delta: float) -> void:
@ -25,7 +26,7 @@ func _physics_process(delta: float) -> void:
move_and_slide()
func _process(_delta: float) -> void:
if position.x < -20:
if position.x < 20 or position.y > 100:
if alive:
die()
@ -43,8 +44,9 @@ func _process(_delta: float) -> void:
$AnimationPlayer.play("walk")
func _collide_with_hindernis(_body: Node2D) -> void:
if alive:
die()
pass
#if alive:
# die()
func _color_slider_changed(value) -> void: