class Escapist::Cursor
- Escapist::Cursor
- Reference
- Object
Included Modules
Defined in:
escapist/cursor.crConstant Summary
-
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 Method Summary
- #col : Int32
- #draw(window : SF::RenderWindow)
- #draw_cursor(window)
- #get_d_col_row(keys, room_width, room_height)
- #jump_sound : SF::Sound
- #jump_to(col : Int32, row : Int32)
- #just_moved? : Bool
- #last_cursors : Array(Escapist::LastCursor)
- #move_delay_timer : Timer
- #move_repeat_delay_timer : Timer
- #moved_timer : Timer
- #row : Int32
- #size
- #update(frame_time, keys : Keys, room_width, room_height)
- #update_last_cursors
- #update_movement(frame_time, keys : Keys, room_width, room_height)
- #x
- #y