class

Escapist::MovableBlock

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

Constants

Color = SF::Color.new(153, 153, 153, 30)
IconMargin = 14
Key = "movable"
OutlineColor = SF::Color.new(102, 102, 102)
OutlineThickness = 4
TileSize = 128

Constructors

new(col = 0, row = 0)
Source

Class methods

Instance methods

draw(window : SF::RenderWindow)
Source
draw_icon(window)
Source
draw_movable(window : SF::RenderWindow)
Source
movable?
Source
move(dx : Float32 | Int32, dy : Float32 | Int32)
Source