class IntroCrSf::Player

Defined in:

intro_cr_sf/player.cr

Constant Summary

Sheet = "./assets/player.png"
Speed = 15

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32 = 0, y : Int32 = 0) #

[View source]

Instance Method Detail

def animations : GSF::Animations #

[View source]
def draw(window : SF::RenderWindow) #

[View source]
def move(dx : Int32, dy : Int32) #

[View source]
def update(frame_time, keys : Keys) #

[View source]
def update_movement(keys : Keys) #

[View source]
def x : Int32 #

[View source]
def y : Int32 #

[View source]