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(pull : JSON::PullParser)
Sourcenew(col = 0, row = 0, on = false)
SourceClass methods
key
SourceInstance methods
area?
Sourcearea_entered
Sourcedraw(window : SF::RenderWindow)
Sourcedraw_background(window)
Sourcedraw_switch_circle(window)
Source