PointClickEngine::Characters::SpriteController
Inherits Reference < Object
Manages sprite loading, scaling, and rendering for characters
The SpriteController handles all sprite-related operations including:
- Sprite loading and initialization
- Scale calculation and management
- Position synchronization
- Rendering coordination
Constructors
new(position : RL::Vector2, size : RL::Vector2)
SourceInstance methods
after_yaml_deserialize(ctx : YAML::ParseContext)
Called after YAML deserialization to restore sprite state
load_spritesheet(path : String, frame_width : Int32, frame_height : Int32)
Loads a spritesheet for character animation
update_position(new_position : RL::Vector2)
Updates sprite position to match character position