summaryrefslogtreecommitdiffhomepage
path: root/config/menus/win.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-08-13 02:26:55 +0200
committerAki <nthirtyone@gmail.com>2017-08-13 02:26:55 +0200
commitb1cf14d64a2d3e28683db87190c4b2c7799c259d (patch)
treee45dac5cc6ce5265e3e3e2c914eb7cc92a820b8b /config/menus/win.lua
parent0dd01913fe0eefc7ba4bc0797877f40fdedf9315 (diff)
parented62b573417bdc85bec616f6016846b02de4c906 (diff)
downloadroflnauts-b1cf14d64a2d3e28683db87190c4b2c7799c259d.zip
roflnauts-b1cf14d64a2d3e28683db87190c4b2c7799c259d.tar.gz
roflnauts-b1cf14d64a2d3e28683db87190c4b2c7799c259d.tar.bz2
Merge branch 'multi'maps
Diffstat (limited to 'config/menus/win.lua')
-rw-r--r--config/menus/win.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/menus/win.lua b/config/menus/win.lua
new file mode 100644
index 0000000..f7163dd
--- /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)
+ ,
+}