/
menu_launcher.rb
36 lines (24 loc) · 1.46 KB
/
menu_launcher.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# # require 'gosu'
# # current_directory = File.expand_path('../', __FILE__)
# # MEDIA_DIRECTORY = File.expand_path('../', __FILE__) + "/line-em-up/media"
# # config_file = "#{current_directory}/config.txt"
# # vendor_directory = File.expand_path('../', __FILE__) + "/vendors"
# # require "#{vendor_directory}/lib/luit.rb"
# require_relative 'line-em-up/lib/global_constants.rb'
# include GlobalConstants
# # Dir["#{current_directory}/line-em-up/lib/*.rb"].each { |f| require f }
# # Shouldn't need models
# # Does need the GL BACKGROUND Model
# # require "#{current_directory}/line-em-up/models/gl_background.rb"
# # Dir["#{CURRENT_DIRECTORY}/line-em-up/models/*.rb"].each { |f| require f }
# # require "#{current_directory}/line-em-up/game_window.rb"
# # require "#{current_directory}/line-em-up/loadout_window.rb"
# # @menu = Menu.new(self) #instantiate the menu, passing the Window in the constructor
# # @menu.add_item(Gosu::Image.new("#{MEDIA_DIRECTORY}question.png"), 100, 200, 1, lambda { self.close }, Gosu::Image.new(self, "#{MEDIA_DIRECTORY}question.png", false))
# # @menu.add_item(Gosu::Image.new("#{MEDIA_DIRECTORY}question.png"), 100, 250, 1, lambda { puts "something" }, Gosu::Image.new(self, "#{MEDIA_DIRECTORY}question.png", false))
# Main.new(config_file).show
# Use Game launcher to get valid stack traces
require_relative 'line-em-up/lib/global_constants.rb'
include GlobalConstants
require "#{APP_DIRECTORY}/line-em-up/menu_window.rb"
MenuWindow.start()