abstract class RPG::Character
- RPG::Character
- RPG::Collidable
- Reference
- Object
Direct Known Subclasses
Defined in:
rpg/character.crConstant Summary
-
BodyColor =
SF::Color.new(217, 160, 102)
-
ShadowSprite =
"./assets/sprites/shadow.png"
-
Sheet =
"./assets/sprites/player.png"
-
Speed =
320
-
SpriteHeight =
96
-
SpriteWidth =
64
Constructors
Instance Method Summary
- #add_animation(name, row, frames, fps_factor, loops, flip_horizontal = false)
- #animate_move(dx, dy)
- #animations : GSF::Animations
- #draw(window : SF::RenderWindow)
- #draw_shadow(window)
- #init_animations
- #move(dx, dy)
- #shadow_sprite : SF::Sprite
- #update(frame_time)