smashball/classes/state/level_state.gd
2025-11-18 15:07:09 -03:00

33 lines
609 B
GDScript

class_name LevelState extends State
const PAUSED = "Paused"
const STARTING = "Starting"
const SCORING = "Scoring"
var level: Level
func _ready() -> void:
await owner.ready
level = owner as Level
assert(level != null, "The LevelState state type must be used only in the level scene. It needs the owner to be a Level node.")
func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void:
pass
func _exit() -> void:
pass
func _handle_input(_event: InputEvent) -> void:
pass
func _state_update(_delta: float) -> void:
pass
func _state_physics_update(_delta: float) -> void:
pass