Escapist::LaserBlock
Inherits Escapist::MovableBlock < Escapist::BaseBlock < Escapist::TileObj < JSON::Serializable < Reference < Object
Constants
Key = "laser"
LaserBarrelColor = SF::Color.new(153, 0, 0, 51)
LaserBarrelColorFilled = SF::Color.new(51, 51, 51)
LaserBarrelOutlineColor = SF::Color.new(153, 0, 0, 153)
LaserBarrelOutlineThickness = 3
LaserCenterColor = SF::Color.new(153, 0, 0, 153)
LaserCenterOutlineColor = SF::Color.new(102, 0, 0, 102)
LaserCenterOutlineThickness = 2
LaserCenterWidth = 4
LaserColor = SF::Color.new(102, 0, 0, 102)
LaserOutlineColor = SF::Color.new(153, 0, 0, 51)
LaserOutlineThickness = 4
LaserWidth = 16
RotatableIndicatorOutlineColor = SF::Color.new(153, 0, 0, 153)
RotatableIndicatorOutlineThickness = 6
RotationAmount = 45
RotationSpeed = 90
Constructors
new(pull : JSON::PullParser)
Sourcenew(col = 0, row = 0)
SourceClass methods
key
SourceInstance methods
area?
Sourcearea_box
Sourcearea_entered
Sourcearea_entered?
Sourcearea_exited
Sourcecast_ray(start_point, direction, room)
Sourcedone_rotating?
Sourcedraw_laser(window, laser)
Sourcedraw_laser_barrel(window)
Sourcedraw_lasers(window)
Sourcedraw_movable(window : SF::RenderWindow)
Sourcedraw_rotatable_indicator(window)
Sourcelaser_switch_collision?(laser_switch : LaserSwitch, x, y, distance)
Sourcelaser_switch_found?(row, col, room, x, y, distance)
Sourcelasers
Sourcerotatable?
Sourcerotate_reverse
Sourcerotating?
Sourcerotation_angle
Sourcetile_found?(row, col, room)
Sourceupdate(frame_time, room)
Sourceupdate_laser_distance(room)
Sourceupdate_rotation(frame_time)
Source