class

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 = "")
Source

Instance methods

add_animation(name, row, frames, fps_factor, loops, flip_horizontal = false)
Source
animate_move(dx, dy)
Source
animations
Source
draw(window : SF::RenderWindow)
Source
draw_shadow(window)
Source
init_animations
Source
move(dx, dy)
Source
shadow_sprite
Source
update(frame_time)
Source