From 163b8f6cc5d36b80fc4da16b173af79d4b83ab5f Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Wed, 3 Mar 2021 10:33:10 -0500 Subject: [PATCH] Added a version display --- load/version.lua | 1 + main.lua | 1 + scene/title.lua | 1 + 3 files changed, 3 insertions(+) create mode 100644 load/version.lua diff --git a/load/version.lua b/load/version.lua new file mode 100644 index 0000000..70149b0 --- /dev/null +++ b/load/version.lua @@ -0,0 +1 @@ +version = "v0.3-beta4" \ No newline at end of file diff --git a/main.lua b/main.lua index 80bba43..180d860 100644 --- a/main.lua +++ b/main.lua @@ -8,6 +8,7 @@ function love.load() require "load.bgm" require "load.save" require "load.bigint" + require "load.version" loadSave() require "scene" diff --git a/scene/title.lua b/scene/title.lua index ee43375..0a53cf6 100644 --- a/scene/title.lua +++ b/scene/title.lua @@ -83,6 +83,7 @@ function TitleScene:render() love.graphics.printf(screen.title, 40, 280 + 20 * i, 120, "left") end + love.graphics.printf(version, 0, 460, love.graphics.getWidth() - 5, "right") end function TitleScene:changeOption(rel)