cube-tube/app/util/sprite.rb
2023-04-05 16:42:58 +10:00

14 lines
266 B
Ruby

# frozen_string_literal: true
# Module for managing and interacting with sprites.
module Sprite
class << self
def reset_all(args)
SPRITES.each { |_, v| args.gtk.reset_sprite(v.path) }
end
def for(key)
SPRITES.fetch(key)
end
end
end