class

Escapist::RoomEditor

Inherits Reference < Object

Constants

DoorIndicatorFontSize = 24
DoorIndicatorTextColor = SF::Color.new(153, 0, 0, 125)
Padding = 56
PlaceSound = SF::SoundBuffer.from_file("./assets/cursor.wav")
PlaceSoundPitchDecrease = 0.33
PlaceSoundPitchVariation = 0.13
PlaceTypes = [nil, :block, :movable_block, :laser_block, :floor_switch, :laser_switch]
SwitchSound = SF::SoundBuffer.from_file("./assets/cursor_switch.wav")
SwitchSoundPitchVariation = 0.13
SwitchSoundVolume = 33
XFontSize = 48
XTextColor = SF::Color.new(153, 0, 0, 125)

Constructors

new(view : GSF::View, room : Escapist::Room)
Source

Instance methods

check_for_door_indicator
Source
cursor
Source
cursor_door_sym
Source
door_indicator?
Source
draw(window : SF::RenderWindow)
Source
draw_door_indicator(window)
Source
draw_x(window)
Source
has_tile?
Source
place_sound
Source
place_type_sym
Source
play_place_sound(remove = false)
Source
room
Source
room=(room : Room)
Source
switch_sound
Source
update(frame_time, keys : Keys)
Source
update_editing(keys : Keys)
Source
update_viewport(room : Room)
Source
view
Source