Class: Core::CollisionLayer
Instance Attribute Summary collapse
-
#tiles ⇒ Object
readonly
Returns the value of attribute tiles.
Instance Method Summary collapse
- #create_tilemap(w, h, tiles) ⇒ Object
-
#initialize(w, h, tiles) ⇒ CollisionLayer
constructor
A new instance of CollisionLayer.
Constructor Details
#initialize(w, h, tiles) ⇒ CollisionLayer
Returns a new instance of CollisionLayer.
47 48 49 |
# File 'lib/layer.rb', line 47 def initialize(w, h, tiles) create_tilemap(w, h, tiles) end |
Instance Attribute Details
#tiles ⇒ Object (readonly)
Returns the value of attribute tiles.
46 47 48 |
# File 'lib/layer.rb', line 46 def tiles @tiles end |