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
Instance methods
col
Sourcedraw(window : SF::RenderWindow)
Sourcedraw_cursor(window)
Sourceget_d_col_row(keys, room_width, room_height)
Sourcejump_sound
Sourcejust_moved?
Sourcelast_cursors
Sourcemove_delay_timer
Sourcemove_repeat_delay_timer
Sourcemoved_timer
Sourcerow
Sourcesize
Sourceupdate(frame_time, keys : Keys, room_width, room_height)
Sourceupdate_last_cursors
Sourceupdate_movement(frame_time, keys : Keys, room_width, room_height)
Source