awilliams/RTanque

View on GitHub
lib/rtanque/gui.rb

Summary

Maintainability
A
0 mins
Test Coverage
module RTanque
  module Gui
    RESOURCE_DIR = File.expand_path('../../../resources', __FILE__)
    def self.resource_path(*components)
      File.join(RESOURCE_DIR, *components)
    end

    module ZOrder
      BACKGROUND = -1
      BOT_HEALTH = 5
      BOT_NAME = 6
      BOT_BODY = 7
      BOT_TURRET = 8
      BOT_RADAR = 9
      SHELL = 10
      EXPLOSION = 20
    end
  end
end

require 'rtanque/gui/draw_group'
require 'rtanque/gui/window'
require 'rtanque/gui/bot'
require 'rtanque/gui/shell'
require 'rtanque/gui/explosion'