RPG::Character
Inherits RPG::Collidable < Reference < Object
Constants
BodyColor = SF::Color.new(217, 160, 102)
ShadowSprite = "./assets/sprites/shadow.png"
Sheet = "./assets/sprites/player.png"
Speed = 320
SpriteHeight = 96
SpriteWidth = 64
Constructors
new(x = 0, y = 0, dialog_key = "")
SourceInstance methods
add_animation(name, row, frames, fps_factor, loops, flip_horizontal = false)
Sourceanimate_move(dx, dy)
Sourceanimations
Sourcedraw(window : SF::RenderWindow)
Sourcedraw_shadow(window)
Sourceinit_animations
Sourcemove(dx, dy)
Sourceshadow_sprite
Sourceupdate(frame_time)
Source