Class: Gosu::CutTiles

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

Class Method Summary collapse

Class Method Details

.[](name, width, height) ⇒ Object



59
60
61
62
# File 'lib/chingu/assets.rb', line 59

def self.[](name, width, height)
  @@tiles = Hash.new unless defined?(@@tiles)
  @@tiles[name] ||= Gosu::Image.load_tiles($window, name, width, height, true)
end