class Rover::Rover
Defined in:
rover/rover.cr
Constant Summary
-
Acceleration =
100
-
Decceleration =
75
-
InitialSpeed =
33
-
MaxSpeed =
1133
-
SpriteHeight =
192
-
SpriteSheet =
"./assets/rover.png"
-
SpriteWidth =
192
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
Class Method Detail