diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-22 18:02:03 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-22 18:02:03 +0200 |
commit | e5ad6ac474423176f13a70ae30904aaa48365eda (patch) | |
tree | 40f9b0f8000c6e39f2bf74a4f7b8b4562a0913da | |
parent | 118c64c62bb19239a28da08f928c2f8e74655f08 (diff) | |
download | roflnauts-e5ad6ac474423176f13a70ae30904aaa48365eda.zip roflnauts-e5ad6ac474423176f13a70ae30904aaa48365eda.tar.gz roflnauts-e5ad6ac474423176f13a70ae30904aaa48365eda.tar.bz2 |
Split portraits, menu now should use them
81 files changed, 43 insertions, 43 deletions
diff --git a/assets/portraits.png b/assets/portraits.png Binary files differdeleted file mode 100644 index 8bb54e2..0000000 --- a/assets/portraits.png +++ /dev/null diff --git a/assets/portraits/biker.png b/assets/portraits/biker.png Binary files differnew file mode 100644 index 0000000..7f5a074 --- /dev/null +++ b/assets/portraits/biker.png diff --git a/assets/portraits/bison.png b/assets/portraits/bison.png Binary files differnew file mode 100644 index 0000000..deaf0b6 --- /dev/null +++ b/assets/portraits/bison.png diff --git a/assets/portraits/blblal.png b/assets/portraits/blblal.png Binary files differnew file mode 100644 index 0000000..ef993cd --- /dev/null +++ b/assets/portraits/blblal.png diff --git a/assets/portraits/bobito.png b/assets/portraits/bobito.png Binary files differnew file mode 100644 index 0000000..7895a52 --- /dev/null +++ b/assets/portraits/bobito.png diff --git a/assets/portraits/brainos.png b/assets/portraits/brainos.png Binary files differnew file mode 100644 index 0000000..64ce37a --- /dev/null +++ b/assets/portraits/brainos.png diff --git a/assets/portraits/bug.png b/assets/portraits/bug.png Binary files differnew file mode 100644 index 0000000..03ca682 --- /dev/null +++ b/assets/portraits/bug.png diff --git a/assets/portraits/calamari.png b/assets/portraits/calamari.png Binary files differnew file mode 100644 index 0000000..8200223 --- /dev/null +++ b/assets/portraits/calamari.png diff --git a/assets/portraits/capone.png b/assets/portraits/capone.png Binary files differnew file mode 100644 index 0000000..dc2f51b --- /dev/null +++ b/assets/portraits/capone.png diff --git a/assets/portraits/cowboy.png b/assets/portraits/cowboy.png Binary files differnew file mode 100644 index 0000000..3f6d253 --- /dev/null +++ b/assets/portraits/cowboy.png diff --git a/assets/portraits/cowman.png b/assets/portraits/cowman.png Binary files differnew file mode 100644 index 0000000..ee6ab36 --- /dev/null +++ b/assets/portraits/cowman.png diff --git a/assets/portraits/disco.png b/assets/portraits/disco.png Binary files differnew file mode 100644 index 0000000..db40314 --- /dev/null +++ b/assets/portraits/disco.png diff --git a/assets/portraits/dundee.png b/assets/portraits/dundee.png Binary files differnew file mode 100644 index 0000000..626616a --- /dev/null +++ b/assets/portraits/dundee.png diff --git a/assets/portraits/froggirl.png b/assets/portraits/froggirl.png Binary files differnew file mode 100644 index 0000000..8e60abb --- /dev/null +++ b/assets/portraits/froggirl.png diff --git a/assets/portraits/froggo.png b/assets/portraits/froggo.png Binary files differnew file mode 100644 index 0000000..1ed5095 --- /dev/null +++ b/assets/portraits/froggo.png diff --git a/assets/portraits/gelato.png b/assets/portraits/gelato.png Binary files differnew file mode 100644 index 0000000..f067bd4 --- /dev/null +++ b/assets/portraits/gelato.png diff --git a/assets/portraits/girl.png b/assets/portraits/girl.png Binary files differnew file mode 100644 index 0000000..0f1cc77 --- /dev/null +++ b/assets/portraits/girl.png diff --git a/assets/portraits/gramps.png b/assets/portraits/gramps.png Binary files differnew file mode 100644 index 0000000..f188693 --- /dev/null +++ b/assets/portraits/gramps.png diff --git a/assets/portraits/gummybear.png b/assets/portraits/gummybear.png Binary files differnew file mode 100644 index 0000000..4049860 --- /dev/null +++ b/assets/portraits/gummybear.png diff --git a/assets/portraits/honic.png b/assets/portraits/honic.png Binary files differnew file mode 100644 index 0000000..4e4d8bd --- /dev/null +++ b/assets/portraits/honic.png diff --git a/assets/portraits/joystick.png b/assets/portraits/joystick.png Binary files differnew file mode 100644 index 0000000..54cae69 --- /dev/null +++ b/assets/portraits/joystick.png diff --git a/assets/portraits/kong.png b/assets/portraits/kong.png Binary files differnew file mode 100644 index 0000000..b023be3 --- /dev/null +++ b/assets/portraits/kong.png diff --git a/assets/portraits/lady.png b/assets/portraits/lady.png Binary files differnew file mode 100644 index 0000000..4804a19 --- /dev/null +++ b/assets/portraits/lady.png diff --git a/assets/portraits/link.png b/assets/portraits/link.png Binary files differnew file mode 100644 index 0000000..20819f1 --- /dev/null +++ b/assets/portraits/link.png diff --git a/assets/portraits/marine.png b/assets/portraits/marine.png Binary files differnew file mode 100644 index 0000000..39308af --- /dev/null +++ b/assets/portraits/marine.png diff --git a/assets/portraits/megoman.png b/assets/portraits/megoman.png Binary files differnew file mode 100644 index 0000000..8973adb --- /dev/null +++ b/assets/portraits/megoman.png diff --git a/assets/portraits/missile.png b/assets/portraits/missile.png Binary files differnew file mode 100644 index 0000000..6f45f94 --- /dev/null +++ b/assets/portraits/missile.png diff --git a/assets/portraits/nemo.png b/assets/portraits/nemo.png Binary files differnew file mode 100644 index 0000000..58dd686 --- /dev/null +++ b/assets/portraits/nemo.png diff --git a/assets/portraits/phonebooth.png b/assets/portraits/phonebooth.png Binary files differnew file mode 100644 index 0000000..ac00b0c --- /dev/null +++ b/assets/portraits/phonebooth.png diff --git a/assets/portraits/quack.png b/assets/portraits/quack.png Binary files differnew file mode 100644 index 0000000..00d5936 --- /dev/null +++ b/assets/portraits/quack.png diff --git a/assets/portraits/random.png b/assets/portraits/random.png Binary files differnew file mode 100644 index 0000000..a608f32 --- /dev/null +++ b/assets/portraits/random.png diff --git a/assets/portraits/rock.png b/assets/portraits/rock.png Binary files differnew file mode 100644 index 0000000..59297db --- /dev/null +++ b/assets/portraits/rock.png diff --git a/assets/portraits/scissors.png b/assets/portraits/scissors.png Binary files differnew file mode 100644 index 0000000..4b0efb4 --- /dev/null +++ b/assets/portraits/scissors.png diff --git a/assets/portraits/scooter.png b/assets/portraits/scooter.png Binary files differnew file mode 100644 index 0000000..dd86d47 --- /dev/null +++ b/assets/portraits/scooter.png diff --git a/assets/portraits/shutter.png b/assets/portraits/shutter.png Binary files differnew file mode 100644 index 0000000..90f22f2 --- /dev/null +++ b/assets/portraits/shutter.png diff --git a/assets/portraits/slugzor.png b/assets/portraits/slugzor.png Binary files differnew file mode 100644 index 0000000..f9424e8 --- /dev/null +++ b/assets/portraits/slugzor.png diff --git a/assets/portraits/swarm.png b/assets/portraits/swarm.png Binary files differnew file mode 100644 index 0000000..e9ebe44 --- /dev/null +++ b/assets/portraits/swarm.png diff --git a/assets/portraits/veno.png b/assets/portraits/veno.png Binary files differnew file mode 100644 index 0000000..b706761 --- /dev/null +++ b/assets/portraits/veno.png diff --git a/assets/portraits/vrooom.png b/assets/portraits/vrooom.png Binary files differnew file mode 100644 index 0000000..554edb8 --- /dev/null +++ b/assets/portraits/vrooom.png diff --git a/assets/portraits/weed.png b/assets/portraits/weed.png Binary files differnew file mode 100644 index 0000000..afd4b26 --- /dev/null +++ b/assets/portraits/weed.png diff --git a/assets/portraits/woman.png b/assets/portraits/woman.png Binary files differnew file mode 100644 index 0000000..f14e787 --- /dev/null +++ b/assets/portraits/woman.png diff --git a/assets/portraits/yarr.png b/assets/portraits/yarr.png Binary files differnew file mode 100644 index 0000000..2deba58 --- /dev/null +++ b/assets/portraits/yarr.png diff --git a/config/menus/select.lua b/config/menus/select.lua index 0d8bef9..fb99780 100644 --- a/config/menus/select.lua +++ b/config/menus/select.lua @@ -14,7 +14,7 @@ if background == nil or not background:is(require "not.MenuBackground") then background = require "not.MenuBackground"(menu) end --- TODO: Icons for nauts and maps are still waiting to get their assets split. +-- TODO: Clean-up menus/select, menus/host and Hero after portraits split. local group, get do local atlas = love.graphics.newImage("assets/portraits.png") @@ -26,16 +26,16 @@ do local naut = love.filesystem.load(path)() local i, name = naut.portrait, naut.name if naut.available then - table.insert(icons, love.graphics.newQuad((i-1)*28, 0, 28, 27, 1176, 27)) + table.insert(icons, love.graphics.newImage(naut.portrait)) table.insert(nauts, naut) end end end -- TODO: Find a better way to add empty and random entries to naut Selector. - table.insert(icons, 1, love.graphics.newQuad((1-1)*28, 0, 28, 27, 1176, 27)) + table.insert(icons, 1, false) table.insert(nauts, 1, {name = "empty"}) - table.insert(icons, 2, love.graphics.newQuad((2-1)*28, 0, 28, 27, 1176, 27)) + table.insert(icons, 2, love.graphics.newImage("assets/portraits/random.png")) table.insert(nauts, 2, {name = "random"}) group = Group(menu) @@ -59,7 +59,7 @@ do for i,_ in pairs(Controller.getSets()) do group:addChild(Selector(nauts, group, menu)) :set("icons_atlas", atlas) - :set("icons_quads", icons) + :set("icons", icons) :set("attack", attack) :set("getText", function (self) return string.upper(self:getSelected().name) diff --git a/config/nauts/biker.lua b/config/nauts/biker.lua index c139e87..2a9fb2b 100644 --- a/config/nauts/biker.lua +++ b/config/nauts/biker.lua @@ -3,6 +3,6 @@ return { name = "biker", image = "assets/nauts/biker.png", - portrait = 30, + portrait = "assets/portraits/biker.png", available = true } diff --git a/config/nauts/bison.lua b/config/nauts/bison.lua index 35c08ca..023d9f8 100644 --- a/config/nauts/bison.lua +++ b/config/nauts/bison.lua @@ -3,6 +3,6 @@ return { name = "bison", image = "assets/nauts/bison.png", - portrait = 13, + portrait = "assets/portraits/bison.png", available = true } diff --git a/config/nauts/blblal.lua b/config/nauts/blblal.lua index 4bc9884..7be25ef 100644 --- a/config/nauts/blblal.lua +++ b/config/nauts/blblal.lua @@ -3,6 +3,6 @@ return { name = "blblal", image = "assets/nauts/blblal.png", - portrait = 40, + portrait = "assets/portraits/blblal.png", available = false } diff --git a/config/nauts/bobito.lua b/config/nauts/bobito.lua index f00fa7f..fde84ae 100644 --- a/config/nauts/bobito.lua +++ b/config/nauts/bobito.lua @@ -3,6 +3,6 @@ return { name = "bobito", image = "assets/nauts/bobito.png", - portrait = 14, + portrait = "assets/portraits/bobito.png", available = true } diff --git a/config/nauts/brainos.lua b/config/nauts/brainos.lua index 908f57a..64a94b2 100644 --- a/config/nauts/brainos.lua +++ b/config/nauts/brainos.lua @@ -3,6 +3,6 @@ return { name = "brainos", image = "assets/nauts/brainos.png", - portrait = 11, + portrait = "assets/portraits/brainos.png", available = true } diff --git a/config/nauts/bug.lua b/config/nauts/bug.lua index 3989ade..676d2fa 100644 --- a/config/nauts/bug.lua +++ b/config/nauts/bug.lua @@ -3,6 +3,6 @@ return { name = "bug", image = "assets/nauts/bug.png", - portrait = 18, + portrait = "assets/portraits/bug.png", available = true } diff --git a/config/nauts/calamari.lua b/config/nauts/calamari.lua index 3168023..ef41720 100644 --- a/config/nauts/calamari.lua +++ b/config/nauts/calamari.lua @@ -3,6 +3,6 @@ return { name = "calamari", image = "assets/nauts/calamari.png", - portrait = 19, + portrait = "assets/portraits/calamari.png", available = true } diff --git a/config/nauts/capone.lua b/config/nauts/capone.lua index edd5f35..459760f 100644 --- a/config/nauts/capone.lua +++ b/config/nauts/capone.lua @@ -3,6 +3,6 @@ return { name = "capone", image = "assets/nauts/capone.png", - portrait = 16, + portrait = "assets/portraits/capone.png", available = true } diff --git a/config/nauts/cowboy.lua b/config/nauts/cowboy.lua index d7ac120..e3e9c19 100644 --- a/config/nauts/cowboy.lua +++ b/config/nauts/cowboy.lua @@ -3,6 +3,6 @@ return { name = "cowboy", image = "assets/nauts/cowboy.png", - portrait = 4, + portrait = "assets/portraits/cowboy.png", available = true } diff --git a/config/nauts/cowman.lua b/config/nauts/cowman.lua index 5bbde57..6e2c4aa 100644 --- a/config/nauts/cowman.lua +++ b/config/nauts/cowman.lua @@ -3,6 +3,6 @@ return { name = "cowman", image = "assets/nauts/cowman.png", - portrait = 23, + portrait = "assets/portraits/cowman.png", available = true } diff --git a/config/nauts/disco.lua b/config/nauts/disco.lua index e579257..fb21110 100644 --- a/config/nauts/disco.lua +++ b/config/nauts/disco.lua @@ -3,6 +3,6 @@ return { name = "disco", image = "assets/nauts/disco.png", - portrait = 37, + portrait = "assets/portraits/disco.png", available = false } diff --git a/config/nauts/dundee.lua b/config/nauts/dundee.lua index 3299db8..e9f7c5d 100644 --- a/config/nauts/dundee.lua +++ b/config/nauts/dundee.lua @@ -3,6 +3,6 @@ return { name = "dundee", image = "assets/nauts/dundee.png", - portrait = 34, + portrait = "assets/portraits/dundee.png", available = true } diff --git a/config/nauts/froggirl.lua b/config/nauts/froggirl.lua index b587043..9734f1d 100644 --- a/config/nauts/froggirl.lua +++ b/config/nauts/froggirl.lua @@ -3,6 +3,6 @@ return { name = "froggirl", image = "assets/nauts/froggirl.png", - portrait = 33, + portrait = "assets/portraits/froggirl.png", available = true } diff --git a/config/nauts/froggo.lua b/config/nauts/froggo.lua index e1c7d85..03fc9a2 100644 --- a/config/nauts/froggo.lua +++ b/config/nauts/froggo.lua @@ -3,6 +3,6 @@ return { name = "froggo", image = "assets/nauts/froggo.png", - portrait = 3, + portrait = "assets/portraits/froggo.png", available = true } diff --git a/config/nauts/gelato.lua b/config/nauts/gelato.lua index f3f4ed5..4313fef 100644 --- a/config/nauts/gelato.lua +++ b/config/nauts/gelato.lua @@ -3,6 +3,6 @@ return { name = "gelato", image = "assets/nauts/gelato.png", - portrait = 6, + portrait = "assets/portraits/gelato.png", available = true } diff --git a/config/nauts/girl.lua b/config/nauts/girl.lua index b1d9d8a..32c7f11 100644 --- a/config/nauts/girl.lua +++ b/config/nauts/girl.lua @@ -3,6 +3,6 @@ return { name = "girl", image = "assets/nauts/girl.png", - portrait = 9, + portrait = "assets/portraits/girl.png", available = true } diff --git a/config/nauts/gramps.lua b/config/nauts/gramps.lua index 51aa672..7bf7b29 100644 --- a/config/nauts/gramps.lua +++ b/config/nauts/gramps.lua @@ -3,6 +3,6 @@ return { name = "gramps", image = "assets/nauts/gramps.png", - portrait = 29, + portrait = "assets/portraits/gramps.png", available = true } diff --git a/config/nauts/gummybear.lua b/config/nauts/gummybear.lua index a39287f..83294ed 100644 --- a/config/nauts/gummybear.lua +++ b/config/nauts/gummybear.lua @@ -3,6 +3,6 @@ return { name = "gummybear", image = "assets/nauts/gummybear.png", - portrait = 28, + portrait = "assets/portraits/gummybear.png", available = true } diff --git a/config/nauts/honic.lua b/config/nauts/honic.lua index 2ff6584..463409f 100644 --- a/config/nauts/honic.lua +++ b/config/nauts/honic.lua @@ -3,6 +3,6 @@ return { name = "honic", image = "assets/nauts/honic.png", - portrait = 5, + portrait = "assets/portraits/honic.png", available = true } diff --git a/config/nauts/kong.lua b/config/nauts/kong.lua index 731f7f1..28bcc70 100644 --- a/config/nauts/kong.lua +++ b/config/nauts/kong.lua @@ -3,6 +3,6 @@ return { name = "kong", image = "assets/nauts/kong.png", - portrait = 41, + portrait = "assets/portraits/kong.png", available = false } diff --git a/config/nauts/lady.lua b/config/nauts/lady.lua index 77ef7a3..1faf330 100644 --- a/config/nauts/lady.lua +++ b/config/nauts/lady.lua @@ -3,6 +3,6 @@ return { name = "lady", image = "assets/nauts/lady.png", - portrait = 8, + portrait = "assets/portraits/lady.png", available = true } diff --git a/config/nauts/link.lua b/config/nauts/link.lua index 1f6b430..105d543 100644 --- a/config/nauts/link.lua +++ b/config/nauts/link.lua @@ -3,6 +3,6 @@ return { name = "link", image = "assets/nauts/link.png", - portrait = 22, + portrait = "assets/portraits/link.png", available = true } diff --git a/config/nauts/marine.lua b/config/nauts/marine.lua index a0c0647..88ecbcc 100644 --- a/config/nauts/marine.lua +++ b/config/nauts/marine.lua @@ -3,6 +3,6 @@ return { name = "marine", image = "assets/nauts/marine.png", - portrait = 24, + portrait = "assets/portraits/marine.png", available = true } diff --git a/config/nauts/megoman.lua b/config/nauts/megoman.lua index 119e0fc..28e6744 100644 --- a/config/nauts/megoman.lua +++ b/config/nauts/megoman.lua @@ -3,6 +3,6 @@ return { name = "megoman", image = "assets/nauts/megoman.png", - portrait = 10, + portrait = "assets/portraits/megoman.png", available = true } diff --git a/config/nauts/missile.lua b/config/nauts/missile.lua index 5fb4d49..7c65822 100644 --- a/config/nauts/missile.lua +++ b/config/nauts/missile.lua @@ -3,6 +3,6 @@ return { name = "missile", image = "assets/nauts/missile.png", - portrait = 35, + portrait = "assets/portraits/missile.png", available = true } diff --git a/config/nauts/nemo.lua b/config/nauts/nemo.lua index fabcae6..e1d5048 100644 --- a/config/nauts/nemo.lua +++ b/config/nauts/nemo.lua @@ -3,6 +3,6 @@ return { name = "nemo", image = "assets/nauts/nemo.png", - portrait = 17, + portrait = "assets/portraits/nemo.png", available = true } diff --git a/config/nauts/phonebooth.lua b/config/nauts/phonebooth.lua index 3c1ad10..d0577ff 100644 --- a/config/nauts/phonebooth.lua +++ b/config/nauts/phonebooth.lua @@ -3,6 +3,6 @@ return { name = "phonebooth", image = "assets/nauts/phonebooth.png", - portrait = 26, + portrait = "assets/portraits/phonebooth.png", available = true } diff --git a/config/nauts/quack.lua b/config/nauts/quack.lua index e4a0d7a..6fb11ab 100644 --- a/config/nauts/quack.lua +++ b/config/nauts/quack.lua @@ -3,6 +3,6 @@ return { name = "quack", image = "assets/nauts/quack.png", - portrait = 20, + portrait = "assets/portraits/quack.png", available = true } diff --git a/config/nauts/rock.lua b/config/nauts/rock.lua index 758e62a..9a7efe4 100644 --- a/config/nauts/rock.lua +++ b/config/nauts/rock.lua @@ -3,6 +3,6 @@ return { name = "rock", image = "assets/nauts/rock.png", - portrait = 42, + portrait = "assets/portraits/rock.png", available = false } diff --git a/config/nauts/scissors.lua b/config/nauts/scissors.lua index 7526e47..0fd4e28 100644 --- a/config/nauts/scissors.lua +++ b/config/nauts/scissors.lua @@ -3,6 +3,6 @@ return { name = "scissors", image = "assets/nauts/scissors.png", - portrait = 21, + portrait = "assets/portraits/scissors.png", available = true } diff --git a/config/nauts/scooter.lua b/config/nauts/scooter.lua index 7b1a2aa..321563c 100644 --- a/config/nauts/scooter.lua +++ b/config/nauts/scooter.lua @@ -3,6 +3,6 @@ return { name = "scooter", image = "assets/nauts/scooter.png", - portrait = 25, + portrait = "assets/portraits/scooter.png", available = true } diff --git a/config/nauts/shutter.lua b/config/nauts/shutter.lua index d0e7787..40ab49b 100644 --- a/config/nauts/shutter.lua +++ b/config/nauts/shutter.lua @@ -3,6 +3,6 @@ return { name = "shutter", image = "assets/nauts/shutter.png", - portrait = 32, + portrait = "assets/portraits/shutter.png", available = true } diff --git a/config/nauts/slugzor.lua b/config/nauts/slugzor.lua index f51c5d3..7dead62 100644 --- a/config/nauts/slugzor.lua +++ b/config/nauts/slugzor.lua @@ -3,6 +3,6 @@ return { name = "slugzor", image = "assets/nauts/slugzor.png", - portrait = 15, + portrait = "assets/portraits/slugzor.png", available = true } diff --git a/config/nauts/veno.lua b/config/nauts/veno.lua index 8973173..6663a37 100644 --- a/config/nauts/veno.lua +++ b/config/nauts/veno.lua @@ -3,6 +3,6 @@ return { name = "veno", image = "assets/nauts/veno.png", - portrait = 7, + portrait = "assets/portraits/veno.png", available = true } diff --git a/config/nauts/vrooom.lua b/config/nauts/vrooom.lua index fa02a68..5d6e17f 100644 --- a/config/nauts/vrooom.lua +++ b/config/nauts/vrooom.lua @@ -3,6 +3,6 @@ return { name = "vrooom", image = "assets/nauts/vrooom.png", - portrait = 31, + portrait = "assets/portraits/vrooom.png", available = true } diff --git a/config/nauts/weed.lua b/config/nauts/weed.lua index 4c2216e..767a118 100644 --- a/config/nauts/weed.lua +++ b/config/nauts/weed.lua @@ -3,6 +3,6 @@ return { name = "weed", image = "assets/nauts/weed.png", - portrait = 27, + portrait = "assets/portraits/weed.png", available = true } diff --git a/config/nauts/woman.lua b/config/nauts/woman.lua index 88ac22e..9c12d8a 100644 --- a/config/nauts/woman.lua +++ b/config/nauts/woman.lua @@ -3,6 +3,6 @@ return { name = "woman", image = "assets/nauts/woman.png", - portrait = 12, + portrait = "assets/portraits/woman.png", available = true } diff --git a/config/nauts/yarr.lua b/config/nauts/yarr.lua index cd8e724..b471d4b 100644 --- a/config/nauts/yarr.lua +++ b/config/nauts/yarr.lua @@ -3,6 +3,6 @@ return { name = "yarr", image = "assets/nauts/yarr.png", - portrait = 39, + portrait = "assets/portraits/yarr.png", available = false } |