diff --git a/i-mic-rts.rb b/i-mic-rts.rb index 398a8fb..a3e9080 100644 --- a/i-mic-rts.rb +++ b/i-mic-rts.rb @@ -4,6 +4,7 @@ rescue LoadError require "cyberarm_engine" end +require_relative "lib/version" require_relative "lib/window" require_relative "lib/camera" diff --git a/lib/states/boot.rb b/lib/states/boot.rb index 79a374c..218c9bc 100644 --- a/lib/states/boot.rb +++ b/lib/states/boot.rb @@ -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"] diff --git a/lib/version.rb b/lib/version.rb new file mode 100644 index 0000000..a20d09d --- /dev/null +++ b/lib/version.rb @@ -0,0 +1,5 @@ +class IMICRTS + NAME = "I-MIC RTS" + VERSION = "0.0.1" + VERSION_NAME = "InDev" +end \ No newline at end of file diff --git a/lib/window.rb b/lib/window.rb index d270b1c..a6b8364 100644 --- a/lib/window.rb +++ b/lib/window.rb @@ -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