From 05358c3631470d647dec261df59a5ee1ec4afb55 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 13 Jan 2017 18:11:40 +0100 Subject: New icons list --- assets/portraits.png | Bin 43772 -> 24594 bytes nautsicons.lua | 55 ++++++++++----------------------------------------- 2 files changed, 10 insertions(+), 45 deletions(-) diff --git a/assets/portraits.png b/assets/portraits.png index 3086e51..0664be6 100644 Binary files a/assets/portraits.png and b/assets/portraits.png differ diff --git a/nautsicons.lua b/nautsicons.lua index f0cd9c2..e35fa61 100644 --- a/nautsicons.lua +++ b/nautsicons.lua @@ -1,46 +1,11 @@ -- Spritesheet for character portraits --- Original size: 331x265 (say what?) --- Single size: 32x32 1px border merged between -local w, h = 331, 265 -return { - -- EMPTY - empty = love.graphics.newQuad(300,136,28,28,w,h), - -- 1. ROW - froggo = love.graphics.newQuad( 3, 4,28,27,w,h), - cowboy = love.graphics.newQuad( 36, 4,28,27,w,h), - honic = love.graphics.newQuad( 69, 4,28,27,w,h), - gelato = love.graphics.newQuad(102, 4,28,27,w,h), - veno = love.graphics.newQuad(135, 4,28,27,w,h), - lady = love.graphics.newQuad(168, 4,28,27,w,h), - girl = love.graphics.newQuad(201, 4,28,27,w,h), - megoman = love.graphics.newQuad(234, 4,28,27,w,h), - brainos = love.graphics.newQuad(267, 4,28,27,w,h), - -- 2. ROW - woman = love.graphics.newQuad( 3, 70,28,27,w,h), - bison = love.graphics.newQuad( 36, 70,28,27,w,h), - bobito = love.graphics.newQuad( 69, 70,28,27,w,h), - slugzor = love.graphics.newQuad(102, 70,28,27,w,h), - capone = love.graphics.newQuad(135, 70,28,27,w,h), - bug = love.graphics.newQuad(168, 70,28,27,w,h), - calamari = love.graphics.newQuad(201, 70,28,27,w,h), - quack = love.graphics.newQuad(234, 70,28,27,w,h), - scissors = love.graphics.newQuad(267, 70,28,27,w,h), - -- 3. ROW - marine = love.graphics.newQuad( 3, 136,28,27,w,h), - scooter = love.graphics.newQuad( 36, 136,28,27,w,h), - phonebooth = love.graphics.newQuad( 69, 136,28,27,w,h), - weed = love.graphics.newQuad(102, 136,28,27,w,h), - gummybear = love.graphics.newQuad(135, 136,28,27,w,h), - gramps = love.graphics.newQuad(168, 136,28,27,w,h), - biker = love.graphics.newQuad(201, 136,28,27,w,h), - vrooom = love.graphics.newQuad(234, 136,28,27,w,h), - link = love.graphics.newQuad(267, 136,28,27,w,h), - -- 4. ROW - gorilla = love.graphics.newQuad( 3,202,28,27,w,h), - nemo = love.graphics.newQuad( 36,202,28,27,w,h), - rock = love.graphics.newQuad( 69,202,28,27,w,h), - boss = love.graphics.newQuad(102,202,28,27,w,h), - -- ARROWS - arrow_left = love.graphics.newQuad(298,1,4,6,w,h), - arrow_right = love.graphics.newQuad(303,1,4,6,w,h) -} +local nauts = require "nautslist" +local w, h = 980, 27 +local icons = {} + +local i = 0 +for _,naut in pairs(nauts) do + icons[naut] = love.graphics.newQuad(i*28, 0, 28, 27, w, h) + i = i + 1 +end +return icons \ No newline at end of file -- cgit v1.1