class

Escapist::FloorSwitch

Inherits Escapist::Switch < Escapist::TileObj < JSON::Serializable < Reference < Object

Constants

BackgroundColor = SF::Color.new(153, 153, 153, 30)
Key = "floor"
OffColor = SF::Color.new(51, 51, 51)
OffOutlineColor = SF::Color.new(102, 102, 102)
OnColor = SF::Color.new(35, 35, 35)
OnOutlineColor = SF::Color.new(0, 102, 0, 50)
OnSound = SF::Sound.new(OnSoundBuffer)
OnSoundBuffer = SF::SoundBuffer.from_file("./assets/floor_switch_on.wav")
OnSoundPitchVariation = 0.03
OnSoundVolume = 33
OutlineThickness = 4

Constructors

new(col = 0, row = 0, on = false)
Source

Class methods

Instance methods

area?
Source
area_entered
Source
draw(window : SF::RenderWindow)
Source
draw_background(window)
Source
draw_switch_circle(window)
Source