class Mallofneeds::Player

Included Modules

Defined in:

mallofneeds.cr

Constant Summary

SPEED = 4

Constructors

Instance Method Summary

Constructor Detail

def self.new(position) #

[View source]

Instance Method Detail

def alter_speed(multiplier) #

[View source]
def collides_with?(rect : SF::Rect) #

[View source]
def collision_rect #

[View source]
def draw(target, states) #

[View source]
def key_pressed(key) #

[View source]
def key_released(key) #

[View source]
def reset_speed #

[View source]
def update #

[View source]