Slight UI tweaks; Some Fish Cascade Fixes

This commit is contained in:
GitCosm0s
2026-02-14 18:01:27 -05:00
parent 8845c34c42
commit eef6033023
33 changed files with 20508 additions and 81 deletions

View File

@@ -1,16 +1,37 @@
extends AnimatedSprite2D
extends CharacterBody2D
var speed = 10
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
play('stand')
$FishTux.play('stand')
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _process(delta: float):
var velocity = Vector2.ZERO
var speed = 301
velocity.x += 0
if velocity.x > 0:
velocity = velocity.normalized() * speed
if speed > 300:
$FishTux.play('run')
$FishTux.scale.x = 1
else:
$FishTux.play('walk')
$FishTux.scale.x = 1
elif velocity.x < 0:
velocity = velocity.normalized() * speed
if speed > 300:
$FishTux.play('run')
$FishTux.scale.x = -1
else:
$FishTux.play('walk')
$FishTux.scale.x = -1
else:
$FishTux.play('stand')
position += velocity * delta
position = position.clamp(Vector2.ZERO, get_viewport_rect().size)
func movetofish(loc):
Vector2(loc, 660)