Class: Punk12::Spritesheet
- Inherits:
-
Object
- Object
- Punk12::Spritesheet
- Defined in:
- lib/punks/punks_12.rb
Class Method Summary collapse
- .builtin ⇒ Object
-
.find_by(name:) ⇒ Object
note: for now class used for “namespace” only.
Class Method Details
.builtin ⇒ Object
6 7 8 9 10 11 |
# File 'lib/punks/punks_12.rb', line 6 def self.builtin @builtin ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Punks.root}/config/punks-12x12.png", "#{Pixelart::Module::Punks.root}/config/punks-12x12.csv", width: 12, height: 12 ) end |
.find_by(name:) ⇒ Object
note: for now class used for “namespace” only
14 15 16 |
# File 'lib/punks/punks_12.rb', line 14 def self.find_by( name: ) ## return archetype/attribute image by name builtin.find_by( name: name ) end |