class GSF::Movable

Defined in:

gsf/movable.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Float32 | Int32, y : Float32 | Int32) #

[View source]

Instance Method Detail

def draw(window : SF::RenderWindow) #

[View source]
def dx : Int32 | Float32 #

[View source]
def dy : Int32 | Float32 #

[View source]
def jump(x : Float32 | Int32, y : Float32 | Int32) #

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

[View source]
def move_with_speed(frame_time, speed) #

[View source]
def moved? : Bool #

[View source]
def moving? #

[View source]
def update_movement(frame_time : Float32) #

[View source]
def x : Int32 | Float32 #

[View source]
def y : Int32 | Float32 #

[View source]