diff --git a/src/MarbleGame.hx b/src/MarbleGame.hx index 3a5dc269..a9a3fc55 100644 --- a/src/MarbleGame.hx +++ b/src/MarbleGame.hx @@ -34,7 +34,7 @@ class MarbleGame { static var canvas:Canvas; static var instance:MarbleGame; - static var currentVersion = "1.0.1"; + static var currentVersion = "1.0.2"; var world:MarbleWorld; var previewWorld:PreviewWorld; diff --git a/src/gui/MainMenuGui.hx b/src/gui/MainMenuGui.hx index 8a0557b5..41e594aa 100644 --- a/src/gui/MainMenuGui.hx +++ b/src/gui/MainMenuGui.hx @@ -147,7 +147,6 @@ class MainMenuGui extends GuiImage { versionText.text.filter = new DropShadow(1.414, 0.785, 0x3333337F, 1, 0, 0.7, 1, true); this.addChild(versionText); - #if js var kofi = new GuiButton(loadButtonImages("data/ui/kofi1")); kofi.horizSizing = Left; kofi.vertSizing = Top; @@ -162,7 +161,21 @@ class MainMenuGui extends GuiImage { #end } this.addChild(kofi); - #end + + var github = new GuiButton(loadButtonImages("data/ui/github")); + github.horizSizing = Left; + github.vertSizing = Top; + github.position = new Vector(522, 380); + github.extent = new Vector(94, 38); + github.pressedAction = (sender) -> { + #if sys + hxd.System.openURL("https://github.com/RandomityGuy/MBHaxe"); + #end + #if js + js.Browser.window.open("https://github.com/RandomityGuy/MBHaxe"); + #end + } + this.addChild(github); } override function onResize(width:Int, height:Int) {