Offscreen Podoboos don't score points (#715)

This commit is contained in:
jdaster64 2025-11-09 12:20:41 -05:00 committed by GitHub
parent 6c47d255b0
commit f37e752ba6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,10 @@ func calculate_jump_height() -> float:
const SMOKE_PARTICLE = preload("uid://d08nv4qtfouv1")
func flag_die() -> void:
die()
if $VisibleOnScreenEnabler2D.is_on_screen():
die()
else:
queue_free()
func die() -> void:
killed.emit()