From 8190d59e7bbac7835e9cecf5229247900b21f84a Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 6 Apr 2017 19:29:33 +0200 Subject: Added todos from Discord --- mapicons.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mapicons.lua') diff --git a/mapicons.lua b/mapicons.lua index 4893da7..8729a56 100644 --- a/mapicons.lua +++ b/mapicons.lua @@ -1,5 +1,5 @@ -- Maps icons list generation file --- REWORK NEEDED, it is so similar to `nautsicons.lua` they could be merged together into one function that returns icon quad sequences. +-- TODO: it is so similar to `nautsicons.lua` they could be merged together into one function that returns icon quad sequences (`createIconList(image, width, number, mask...) --[[ body ]] return image, icons, list end` or similar). On the other hand extended lists with maps/nauts in config would be enough. local maps = require "maplist" local w, h = 532, 37 local icons = {} -- cgit v1.1 From 1c3040de93f9d5a164ccb06194eacc28eead0234 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 7 Apr 2017 21:05:41 +0200 Subject: Maps and nauts list moved to config Implemented functions to create icons list for them Changed so game uses these functions now --- mapicons.lua | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 mapicons.lua (limited to 'mapicons.lua') diff --git a/mapicons.lua b/mapicons.lua deleted file mode 100644 index 8729a56..0000000 --- a/mapicons.lua +++ /dev/null @@ -1,12 +0,0 @@ --- Maps icons list generation file --- TODO: it is so similar to `nautsicons.lua` they could be merged together into one function that returns icon quad sequences (`createIconList(image, width, number, mask...) --[[ body ]] return image, icons, list end` or similar). On the other hand extended lists with maps/nauts in config would be enough. -local maps = require "maplist" -local w, h = 532, 37 -local icons = {} - -local i = 0 -for _,map in pairs(maps) do - icons[map] = love.graphics.newQuad(i*76, 0, 76, 37, w, h) - i = i + 1 -end -return icons -- cgit v1.1