summaryrefslogtreecommitdiffhomepage
path: root/config/menus/credits.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-04-09 22:07:04 +0200
committerAki <nthirtyone@gmail.com>2017-04-09 22:07:04 +0200
commit0dd01913fe0eefc7ba4bc0797877f40fdedf9315 (patch)
tree8d270eb07f589d2487b3ce66d4865e5a4718042a /config/menus/credits.lua
parent55b0cf1a22e4a7e41fe00aa693445d6c4bd0652d (diff)
parenta03c1125f10fbbad253a0efc4727072fcbd55345 (diff)
downloadroflnauts-0dd01913fe0eefc7ba4bc0797877f40fdedf9315.zip
roflnauts-0dd01913fe0eefc7ba4bc0797877f40fdedf9315.tar.gz
roflnauts-0dd01913fe0eefc7ba4bc0797877f40fdedf9315.tar.bz2
Merge branch 'com'
Diffstat (limited to 'config/menus/credits.lua')
-rw-r--r--config/menus/credits.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/menus/credits.lua b/config/menus/credits.lua
new file mode 100644
index 0000000..77cba62
--- /dev/null
+++ b/config/menus/credits.lua
@@ -0,0 +1,24 @@
+local menu = ...
+
+local button = require "not.Button"
+local element = require "not.Element"
+
+local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale()
+local bx = width/2-29
+
+return {
+ button:new(menu)
+ :setText("Go back")
+ :setPosition(bx,144)
+ :set("active", function (self)
+ self.parent:open("main")
+ end)
+ ,
+ element:new(menu)
+ :setPosition(width/2, 30)
+ :set("draw", function (self, scale)
+ local x,y = self:getPosition()
+ love.graphics.printf("A game by the Awesomenauts community including:\nSeltzy, PlasmaWisp, ParaDoX, MilkingChicken, Burningdillo, Bronkey and Aki.\n\n04font was used.\n\nBased on a game by Jan Willem Nijman, Paul Veer and Bits_Beats XOXO.\n\nAwesomenauts is property of Ronimo Games.", (x-110)*scale, (y+10)*scale, 220, "left", 0, scale, scale)
+ end)
+ ,
+} \ No newline at end of file