Added version file

This commit is contained in:
2019-09-30 22:43:05 -05:00
parent 40dce7c7c6
commit 79de34a596
4 changed files with 8 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ rescue LoadError
require "cyberarm_engine"
end
require_relative "lib/version"
require_relative "lib/window"
require_relative "lib/camera"

View File

@@ -3,7 +3,7 @@ class IMICRTS
def setup
@title = Gosu::Font.new(56, name: "Noto Sans Display", bold: true)
@text = Gosu::Font.new(18, name: "Noto Sans Thaana", bold: true)
@name = "I-MIC RTS"
@name = IMICRTS::NAME
@logo = Gosu::Image.new("assets/logo.png")
@messages = ["Loading", "Compiling Protons", "Launching Warhead", "git push origin --force"]

5
lib/version.rb Normal file
View File

@@ -0,0 +1,5 @@
class IMICRTS
NAME = "I-MIC RTS"
VERSION = "0.0.1"
VERSION_NAME = "InDev"
end

View File

@@ -3,7 +3,7 @@ class IMICRTS
def setup
@last_update_time = Gosu.milliseconds
self.caption = "I-MIC RTS (#{Gosu.language})"
self.caption = "#{IMICRTS::NAME} (#{IMICRTS::VERSION} #{IMICRTS::VERSION_NAME})"
# push_state(Boot)
push_state(MainMenu)
end