summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-22 18:01:09 +0200
committerAki <nthirtyone@gmail.com>2017-09-22 18:01:09 +0200
commit118c64c62bb19239a28da08f928c2f8e74655f08 (patch)
tree142ee7dd3f4bc7e797e3fd72f7364530b68f674f
parent1a4db161e7be614e002c4f8edccbf3acf1edc6aa (diff)
downloadroflnauts-118c64c62bb19239a28da08f928c2f8e74655f08.zip
roflnauts-118c64c62bb19239a28da08f928c2f8e74655f08.tar.gz
roflnauts-118c64c62bb19239a28da08f928c2f8e74655f08.tar.bz2
Split map icons, menu now uses them
-rw-r--r--assets/maps.pngbin10688 -> 0 bytes
-rw-r--r--assets/maps/205.pngbin0 -> 742 bytes
-rw-r--r--assets/maps/404.pngbin0 -> 706 bytes
-rw-r--r--assets/maps/aiguillon.pngbin0 -> 1063 bytes
-rw-r--r--assets/maps/alpha.pngbin0 -> 601 bytes
-rw-r--r--assets/maps/default.pngbin0 -> 742 bytes
-rw-r--r--assets/maps/ribbit.pngbin0 -> 1045 bytes
-rw-r--r--assets/maps/rill.pngbin0 -> 1026 bytes
-rw-r--r--assets/maps/sorona.pngbin0 -> 1153 bytes
-rw-r--r--assets/maps/starstorm.pngbin0 -> 515 bytes
-rw-r--r--config/maps/205.lua2
-rw-r--r--config/maps/404.lua4
-rw-r--r--config/maps/aiguillon.lua2
-rw-r--r--config/maps/alpha.lua2
-rw-r--r--config/maps/default.lua2
-rw-r--r--config/maps/ribbit.lua2
-rw-r--r--config/maps/rill.lua2
-rw-r--r--config/maps/sorona.lua2
-rw-r--r--config/maps/starstorm.lua2
-rw-r--r--config/menus/host.lua5
20 files changed, 12 insertions, 13 deletions
diff --git a/assets/maps.png b/assets/maps.png
deleted file mode 100644
index f0e530d..0000000
--- a/assets/maps.png
+++ /dev/null
Binary files differ
diff --git a/assets/maps/205.png b/assets/maps/205.png
new file mode 100644
index 0000000..dc4cce5
--- /dev/null
+++ b/assets/maps/205.png
Binary files differ
diff --git a/assets/maps/404.png b/assets/maps/404.png
new file mode 100644
index 0000000..e16197d
--- /dev/null
+++ b/assets/maps/404.png
Binary files differ
diff --git a/assets/maps/aiguillon.png b/assets/maps/aiguillon.png
new file mode 100644
index 0000000..525a759
--- /dev/null
+++ b/assets/maps/aiguillon.png
Binary files differ
diff --git a/assets/maps/alpha.png b/assets/maps/alpha.png
new file mode 100644
index 0000000..e84bf83
--- /dev/null
+++ b/assets/maps/alpha.png
Binary files differ
diff --git a/assets/maps/default.png b/assets/maps/default.png
new file mode 100644
index 0000000..dc4cce5
--- /dev/null
+++ b/assets/maps/default.png
Binary files differ
diff --git a/assets/maps/ribbit.png b/assets/maps/ribbit.png
new file mode 100644
index 0000000..72e8e39
--- /dev/null
+++ b/assets/maps/ribbit.png
Binary files differ
diff --git a/assets/maps/rill.png b/assets/maps/rill.png
new file mode 100644
index 0000000..92f67b7
--- /dev/null
+++ b/assets/maps/rill.png
Binary files differ
diff --git a/assets/maps/sorona.png b/assets/maps/sorona.png
new file mode 100644
index 0000000..a791183
--- /dev/null
+++ b/assets/maps/sorona.png
Binary files differ
diff --git a/assets/maps/starstorm.png b/assets/maps/starstorm.png
new file mode 100644
index 0000000..581434e
--- /dev/null
+++ b/assets/maps/starstorm.png
Binary files differ
diff --git a/config/maps/205.lua b/config/maps/205.lua
index d0aa1f8..a20fe0a 100644
--- a/config/maps/205.lua
+++ b/config/maps/205.lua
@@ -2,7 +2,7 @@ return
{
name = "AI Station 205",
theme = "sorona.ogg",
- portrait = 1, -- TODO: See `maps/ribbit`.
+ portrait = "assets/maps/205.png",
center = {x = 0, y = 0},
width = 360,
height = 240,
diff --git a/config/maps/404.lua b/config/maps/404.lua
index 44b6c93..6a5b218 100644
--- a/config/maps/404.lua
+++ b/config/maps/404.lua
@@ -2,7 +2,7 @@ return
{
name = "AI Station 404",
theme = "404.ogg",
- portrait = 8, -- TODO: See `maps/ribbit`.
+ portrait = "assets/maps/404.png",
center = {x = 0, y = 0},
width = 360,
height = 240,
@@ -48,4 +48,4 @@ return
platform = "404-small"
}
}
-} \ No newline at end of file
+}
diff --git a/config/maps/aiguillon.lua b/config/maps/aiguillon.lua
index c4f0ee3..e79449f 100644
--- a/config/maps/aiguillon.lua
+++ b/config/maps/aiguillon.lua
@@ -2,7 +2,7 @@ return
{
name = "Aiguillon",
theme = "aiguillon.ogg",
- portrait = 5, -- TODO: See `maps/ribbit`.
+ portrait = "assets/maps/aiguillon.png",
center = {x = 0, y = 10},
width = 370,
height = 290,
diff --git a/config/maps/alpha.lua b/config/maps/alpha.lua
index 795b6cf..3942dde 100644
--- a/config/maps/alpha.lua
+++ b/config/maps/alpha.lua
@@ -2,7 +2,7 @@ return
{
name = "Alpha Abyss",
theme = "alpha.ogg",
- portrait = 7, -- TODO: See `maps/ribbit`.
+ portrait = "assets/maps/alpha.png",
center = {x = 0, y = -80},
width = 360,
height = 240,
diff --git a/config/maps/default.lua b/config/maps/default.lua
index 22c03f6..76cd9d3 100644
--- a/config/maps/default.lua
+++ b/config/maps/default.lua
@@ -2,7 +2,7 @@ return
{
name = "default",
theme = "default.ogg",
- portrait = 1, -- TODO: See `maps/ribbit`.
+ portrait = "assets/maps/default.png",
center = {x = 0, y = 0},
width = 360,
height = 240,
diff --git a/config/maps/ribbit.lua b/config/maps/ribbit.lua
index 08683ac..f5e267e 100644
--- a/config/maps/ribbit.lua
+++ b/config/maps/ribbit.lua
@@ -2,7 +2,7 @@ return
{
name = "Ribbit IV",
theme = "ribbit.ogg",
- portrait = 3, -- TODO: Either separate portraits now or change `iconsList` and `menu/host`. See also both mentioned files.
+ portrait = "assets/maps/ribbit.png",
center = {x = 0, y = 50},
width = 360,
height = 240,
diff --git a/config/maps/rill.lua b/config/maps/rill.lua
index b027923..4644ecc 100644
--- a/config/maps/rill.lua
+++ b/config/maps/rill.lua
@@ -2,7 +2,7 @@ return
{
name = "Rill",
theme = "rill.ogg",
- portrait = 2, -- TODO: See `maps/ribbit`.
+ portrait = "assets/maps/rill.png",
center = {x = 0, y = 75},
width = 400,
height = 260,
diff --git a/config/maps/sorona.lua b/config/maps/sorona.lua
index 4cc87cd..54543c2 100644
--- a/config/maps/sorona.lua
+++ b/config/maps/sorona.lua
@@ -2,7 +2,7 @@ return
{
name = "Sorona",
theme = "sorona.ogg",
- portrait = 6, -- TODO: See `maps/ribbit`.
+ portrait = "assets/maps/sorona.png",
center = {x = 0, y = 0},
width = 360,
height = 240,
diff --git a/config/maps/starstorm.lua b/config/maps/starstorm.lua
index b4fabcd..bb35a08 100644
--- a/config/maps/starstorm.lua
+++ b/config/maps/starstorm.lua
@@ -2,7 +2,7 @@ return
{
name = "Starstorm",
theme = "starstorm.ogg",
- portrait = 4, -- TODO: See `maps/ribbit`.
+ portrait = "assets/maps/starstorm.png",
center = {x = 0, y = -20},
width = 400,
height = 260,
diff --git a/config/menus/host.lua b/config/menus/host.lua
index c8ef4d8..571fc50 100644
--- a/config/menus/host.lua
+++ b/config/menus/host.lua
@@ -21,7 +21,7 @@ do
local i, name = map.portrait, map.name
map.filename = path
if i then
- table.insert(icons, love.graphics.newQuad((i-1)*76, 0, 76, 37, 608, 37))
+ table.insert(icons, love.graphics.newImage(map.portrait))
table.insert(maps, map)
end
end
@@ -35,8 +35,7 @@ return {
mapSelector
:setPosition(width/2-40, 40)
:set("shape", Selector.SHAPE_PANORAMA)
- :set("icons_quads", icons)
- :set("icons_atlas", love.graphics.newImage("assets/maps.png"))
+ :set("icons", icons)
:set("getText", function (self)
return self:getSelected().name
end)