Class: Marc::Spritesheet

Inherits:
Object
  • Object
show all
Defined in:
lib/punks/marcs.rb

Class Method Summary collapse

Class Method Details

.builtinObject



4
5
6
7
8
9
# File 'lib/punks/marcs.rb', line 4

def self.builtin
  @builtin ||= Pixelart::Spritesheet.read(  "#{Pixelart::Module::Punks.root}/config/marcs-24x24.png",
                                            "#{Pixelart::Module::Punks.root}/config/marcs-24x24.csv",
                                            width:  24,
                                            height: 24 )
end

.find_by(name:) ⇒ Object

return archetype/attribute image by name



11
12
13
# File 'lib/punks/marcs.rb', line 11

def self.find_by( name: )  ## return archetype/attribute image by name
   builtin.find_by( name: name )
end