diff options
author | Aki <nthirtyone@gmail.com> | 2017-04-07 02:53:36 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-04-07 02:53:36 +0200 |
commit | 37767d6c54ea6af0b4631b5ce838ee584603895e (patch) | |
tree | e0dd1549c5a8f3342b36df9469660046c8c03208 /config/menus/credits.lua | |
parent | 20770db3aba953585495d21bfe0a2e430485b038 (diff) | |
download | roflnauts-37767d6c54ea6af0b4631b5ce838ee584603895e.zip roflnauts-37767d6c54ea6af0b4631b5ce838ee584603895e.tar.gz roflnauts-37767d6c54ea6af0b4631b5ce838ee584603895e.tar.bz2 |
Moved menu configs to subdirectory
Diffstat (limited to 'config/menus/credits.lua')
-rw-r--r-- | config/menus/credits.lua | 24 |
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..6ba04b3 --- /dev/null +++ b/config/menus/credits.lua @@ -0,0 +1,24 @@ +local menu = ... + +local button = require "button" +local element = require "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 |