class

GameSFTemplate::Player

Inherits Reference < Object

Constants

AnimationFPS = 8
Sheet = "./assets/player.png"
Size = 128
Speed = 640

Constructors

new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0)
Source

Instance methods

animations
Source
draw(window : SF::RenderWindow)
Source
move(dx, dy)
Source
move_with_level(dx, dy)
Source
move_with_speed(frame_time, dx, dy)
Source
size
Source
update(frame_time, keys : Keys)
Source
update_movement(frame_time, keys : Keys)
Source