class Rover::Player

Defined in:

rover/player.cr

Constant Summary

Acceleration = 80
Decceleration = 75
InitialSpeed = 3
MaxSpeed = 333
SpriteHeight = 96
SpriteSheet = "./assets/player.png"
SpriteWidth = 64

Constructors

Class Method Summary

Instance methods inherited from class Rover::Movable

acceleration acceleration, animate_move(dx : Float64, dy : Float64) animate_move, animations : GSF::Animations animations, decceleration decceleration, disable disable, draw(window : SF::RenderWindow) draw, dx : Float64 dx, dy : Float64 dy, enable enable, enabled? : Bool enabled?, hidden? : Bool hidden?, hide hide, initial_speed initial_speed, max_speed max_speed, move(dx : Float64, dy : Float64) move, show(enable : Bool = true) show, speed : Float32 | Int32 speed, sprite_fps sprite_fps, sprite_height sprite_height, sprite_sheet sprite_sheet, sprite_width sprite_width, update(frame_time, keys : Keys) update, update_movement(frame_time, keys : Keys) update_movement, x : Float64 x, y : Float64 y

Constructor methods inherited from class Rover::Movable

new(x : Float64 = 0, y : Float64 = 0) new

Class methods inherited from class Rover::Movable

acceleration acceleration, decceleration decceleration, initial_speed initial_speed, max_speed max_speed, sprite_fps sprite_fps, sprite_height sprite_height, sprite_sheet sprite_sheet, sprite_width sprite_width

Constructor Detail

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

[View source]

Class Method Detail

def self.acceleration #

[View source]
def self.decceleration #

[View source]
def self.initial_speed #

[View source]
def self.max_speed #

[View source]
def self.sprite_height #

[View source]
def self.sprite_sheet #

[View source]
def self.sprite_width #

[View source]