From 64adda89b9c1c53827d56391d5ccd9f0e9a4e93c Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 15 Jul 2017 01:00:06 +0200 Subject: Making new win screen based on Menu and SceneManager --- config/menus/win.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 config/menus/win.lua (limited to 'config/menus') diff --git a/config/menus/win.lua b/config/menus/win.lua new file mode 100644 index 0000000..1d0918d --- /dev/null +++ b/config/menus/win.lua @@ -0,0 +1,22 @@ +local menu = ... + +local Header = require "not.Header" +local Element = require "not.Element" + +local width, height = love.graphics.getWidth()/getScale(), love.graphics.getHeight()/getScale() + +return { + Element(menu) + :setPosition(width/2, 18) + :set("draw", function (self, scale) + local x,y = self:getPosition() + love.graphics.setColor(255, 255, 255, 255) + love.graphics.printf("rofl, now kill yourself", x*scale, y*scale, 160, "center", 0, scale, scale, 80, 3) + end) + :set("focus", function () return true end) + , + Header(menu) + :setText("WINNER") + :setPosition(width/2,40) + , +} -- cgit v1.1