class Escapist::RoomEditor

Defined in:

escapist/room_editor.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(view : GSF::View, room : Escapist::Room) #

[View source]

Instance Method Detail

def check_for_door_indicator #

[View source]
def cursor : Escapist::Cursor #

[View source]
def cursor_door_sym #

[View source]
def door_indicator? : Bool #

[View source]
def draw(window : SF::RenderWindow) #

[View source]
def draw_door_indicator(window) #

[View source]
def draw_x(window) #

[View source]
def has_tile? : Bool #

[View source]
def place_sound : SF::Sound #

[View source]
def place_type_sym #

[View source]
def play_place_sound(remove = false) #

[View source]
def room : Room #

[View source]
def room=(room : Room) #

[View source]
def switch_sound : SF::Sound #

[View source]
def update(frame_time, keys : Keys) #

[View source]
def update_editing(keys : Keys) #

[View source]
def update_viewport(room : Room) #

[View source]
def view : View #

[View source]