diff --git a/assets/Pond_in_Proteus.png b/assets/Pond_in_Proteus.png new file mode 100644 index 0000000..76c4209 Binary files /dev/null and b/assets/Pond_in_Proteus.png differ diff --git a/assets/Pond_in_Proteus_1024-800.png b/assets/Pond_in_Proteus_1024-800.png new file mode 100644 index 0000000..a294b5d Binary files /dev/null and b/assets/Pond_in_Proteus_1024-800.png differ diff --git a/conf.lua b/conf.lua new file mode 100644 index 0000000..8e0ba19 --- /dev/null +++ b/conf.lua @@ -0,0 +1,8 @@ +-- Set windows size and add a title +function love.conf(t) + t.title = "Menu displayer" + t.version = "0.10.2" + t.window.height = 800 + t.window.width = 1024 + t.window.resizable = true +end diff --git a/main.lua b/main.lua new file mode 100755 index 0000000..a672217 --- /dev/null +++ b/main.lua @@ -0,0 +1,2 @@ +require 'moonscript' +require 'menu' diff --git a/menu.moon b/menu.moon new file mode 100644 index 0000000..0a9ae2a --- /dev/null +++ b/menu.moon @@ -0,0 +1,12 @@ +homeBackground = nil + +-- Load elements. What did you expect?! +love.load = (arg) -> + homeBackground = love.graphics.newImage "assets/Pond_in_Proteus_1024-800.png" + +-- Display Hello World +love.draw = -> + --love.graphics.print "Hello World!", 400, 300 + love.graphics.draw homeBackground, 0, 0 + love.graphics.print "Hello World!", love.graphics.getWidth() / 2, love.graphics.getHeight() / 2 +