cube-tube/app/sprite.rb

15 lines
261 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2023-03-08 03:06:29 +00:00
# Module for managing and interacting with sprites.
module Sprite
2023-03-08 03:06:29 +00:00
class << self
def reset_all(args)
SPRITES.each { |_, v| args.gtk.reset_sprite(v) }
end
def for(key)
SPRITES.fetch(key)
end
end
end