Class: MoonbirdV1::Spritesheet

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

Class Method Summary collapse

Class Method Details

.builtinObject



55
56
57
58
59
60
# File 'lib/moonbirds.rb', line 55

def self.builtin
  @sheet ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Moonbirds.root}/config/spritesheet_v1-42x42.png",
                                         "#{Pixelart::Module::Moonbirds.root}/config/spritesheet_v1-42x42.csv",
                                          width:  42,
                                          height: 42 )
end

.find_by(name:) ⇒ Object

return archetype/attribute image by name



62
63
64
# File 'lib/moonbirds.rb', line 62

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