class

Escapist::Cursor

Inherits Escapist::ScaleHelpers < Reference < Object

Constants

Color = SF::Color.new(153, 0, 0, 25)
JumpSound = SF::SoundBuffer.from_file("./assets/cursor.wav")
JumpSoundPitchVariation = 0.13
JumpSoundVolume = 33
MovedDuration = 250.milliseconds
MoveDelayDuration = 150.milliseconds
MoveRepeatDelayDuration = 75.milliseconds
OutlineColor = SF::Color.new(153, 0, 0, 125)
OutlineThickness = 4
Size = 128

Constructors

new(col : Int32 = 0, row : Int32 = 0)
Source

Instance methods

draw(window : SF::RenderWindow)
Source
draw_cursor(window)
Source
get_d_col_row(keys, room_width, room_height)
Source
jump_sound
Source
jump_to(col : Int32, row : Int32)
Source
just_moved?
Source
last_cursors
Source
move_delay_timer
Source
move_repeat_delay_timer
Source
moved_timer
Source
size
Source
update(frame_time, keys : Keys, room_width, room_height)
Source
update_last_cursors
Source
update_movement(frame_time, keys : Keys, room_width, room_height)
Source