summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-06 03:45:35 +0200
committerAki <nthirtyone@gmail.com>2017-09-06 03:45:35 +0200
commit438c230b21f93a98f78b03bfc3cf1cad6a6e2655 (patch)
treef1e0becbf400fdad0580c9e01b8ec46da44b1a09 /config
parent0d838536c5fa0f832de796a094a150bd4af73adb (diff)
downloadroflnauts-438c230b21f93a98f78b03bfc3cf1cad6a6e2655.zip
roflnauts-438c230b21f93a98f78b03bfc3cf1cad6a6e2655.tar.gz
roflnauts-438c230b21f93a98f78b03bfc3cf1cad6a6e2655.tar.bz2
Translated Alpha Abyss map to dev format
Diffstat (limited to 'config')
-rw-r--r--config/maps/alpha abyss.lua75
-rw-r--r--config/maps/alpha.lua44
-rw-r--r--config/platforms/alpha-big.lua31
-rw-r--r--config/platforms/alpha-small.lua31
4 files changed, 106 insertions, 75 deletions
diff --git a/config/maps/alpha abyss.lua b/config/maps/alpha abyss.lua
deleted file mode 100644
index 0dd2c61..0000000
--- a/config/maps/alpha abyss.lua
+++ /dev/null
@@ -1,75 +0,0 @@
--- The abyss of the alpha.
--- Animations
-local animations_small = {
- default = {
- frames = 20,
- repeated = true
- }
-}
-local animations_big = {
- default = {
- frames = 20,
- repeated = true
- }
-}
-for i=1,10 do
- local a = love.graphics.newQuad(i*118-118, 0, 118,51, 1180,51)
- animations_big.default[i*2-1] = a
- animations_big.default[i*2] = a
- local a = love.graphics.newQuad(i*60-60, 0, 60,20, 600,20)
- animations_small.default[i*2-1] = a
- animations_small.default[i*2] = a
-end
--- Map data
-return {
- -- GENERAL
- name = "alpha abyss",
- theme = "alpha.ogg",
- center_x = 0,
- center_y = -80,
- width = 360,
- height = 240,
- -- RESPAWN POINTS
- respawns = {
- {x = -30, y = 0},
- {x = 30, y = 0},
- {x = 0, y = 0},
- {x = -120, y = -50},
- {x = 120, y = -50},
- {x = 0, y = -75}
- },
- -- GRAPHICS
- clouds = false,
- background = "assets/backgrounds/alpha-1.png",
- platforms = {
- {
- x = -60,
- y = 0,
- shape = {0,0, 117,0, 101,50, 16,50},
- sprite = "assets/platforms/alpha-big.png",
- animations = animations_big
- },
- {
- x = -145,
- y = -50,
- shape = {0,0, 59,0, 59,19, 0,19},
- sprite = "assets/platforms/alpha-small.png",
- animations = animations_small
- },
- {
- x = 85,
- y = -50,
- shape = {0,0, 59,0, 59,19, 0,19},
- sprite = "assets/platforms/alpha-small.png",
- animations = animations_small
- },
- {
- x = -30,
- y = -80,
- shape = {0,0, 59,0, 59,19, 0,19},
- sprite = "assets/platforms/alpha-small.png",
- animations = animations_small
- }
- },
- decorations = {}
-}
diff --git a/config/maps/alpha.lua b/config/maps/alpha.lua
new file mode 100644
index 0000000..4f900c2
--- /dev/null
+++ b/config/maps/alpha.lua
@@ -0,0 +1,44 @@
+return
+{
+ name = "Alpha Abyss",
+ theme = "alpha.ogg",
+ portrait = 7, -- TODO: See `maps/ribbit`.
+ center = {x = 0, y = -80},
+ width = 360,
+ height = 240,
+ respawns = {
+ {x = -30, y = 0},
+ {x = 30, y = 0},
+ {x = 0, y = 0},
+ {x = -120, y = -50},
+ {x = 120, y = -50},
+ {x = 0, y = -75}
+ },
+ clouds = false,
+ create = {
+ {
+ ratio = 0,
+ background = "assets/backgrounds/alpha.png",
+ },
+ {
+ x = -60,
+ y = 0,
+ platform = "alpha-big",
+ },
+ {
+ x = -145,
+ y = -50,
+ platform = "alpha-small",
+ },
+ {
+ x = 85,
+ y = -50,
+ platform = "alpha-small",
+ },
+ {
+ x = -30,
+ y = -80,
+ platform = "alpha-small",
+ }
+ },
+}
diff --git a/config/platforms/alpha-big.lua b/config/platforms/alpha-big.lua
new file mode 100644
index 0000000..a0cfb32
--- /dev/null
+++ b/config/platforms/alpha-big.lua
@@ -0,0 +1,31 @@
+return
+{
+ sprite = "assets/platforms/alpha-big.png",
+ shape = {0,0, 117,0, 101,50, 16,50},
+ animations = {
+ default = {
+ [1] = love.graphics.newQuad(0, 0, 118, 51, 1180, 51),
+ [2] = love.graphics.newQuad(0, 0, 118, 51, 1180, 51),
+ [3] = love.graphics.newQuad(118, 0, 118, 51, 1180, 51),
+ [4] = love.graphics.newQuad(118, 0, 118, 51, 1180, 51),
+ [5] = love.graphics.newQuad(236, 0, 118, 51, 1180, 51),
+ [6] = love.graphics.newQuad(236, 0, 118, 51, 1180, 51),
+ [7] = love.graphics.newQuad(354, 0, 118, 51, 1180, 51),
+ [8] = love.graphics.newQuad(354, 0, 118, 51, 1180, 51),
+ [9] = love.graphics.newQuad(472, 0, 118, 51, 1180, 51),
+ [10] = love.graphics.newQuad(472, 0, 118, 51, 1180, 51),
+ [11] = love.graphics.newQuad(590, 0, 118, 51, 1180, 51),
+ [12] = love.graphics.newQuad(590, 0, 118, 51, 1180, 51),
+ [13] = love.graphics.newQuad(708, 0, 118, 51, 1180, 51),
+ [14] = love.graphics.newQuad(708, 0, 118, 51, 1180, 51),
+ [15] = love.graphics.newQuad(826, 0, 118, 51, 1180, 51),
+ [16] = love.graphics.newQuad(826, 0, 118, 51, 1180, 51),
+ [17] = love.graphics.newQuad(944, 0, 118, 51, 1180, 51),
+ [18] = love.graphics.newQuad(944, 0, 118, 51, 1180, 51),
+ [19] = love.graphics.newQuad(1062, 0, 118, 51, 1180, 51),
+ [20] = love.graphics.newQuad(1062, 0, 118, 51, 1180, 51),
+ frames = 20,
+ repeated = true
+ }
+ }
+}
diff --git a/config/platforms/alpha-small.lua b/config/platforms/alpha-small.lua
new file mode 100644
index 0000000..3c72af9
--- /dev/null
+++ b/config/platforms/alpha-small.lua
@@ -0,0 +1,31 @@
+return
+{
+ sprite = "assets/platforms/alpha-small.png",
+ shape = {0,0, 59,0, 59,19, 0,19},
+ animations = {
+ default = {
+ [1] = love.graphics.newQuad(0, 0, 60, 20, 600, 20),
+ [2] = love.graphics.newQuad(0, 0, 60, 20, 600, 20),
+ [3] = love.graphics.newQuad(60, 0, 60, 20, 600, 20),
+ [4] = love.graphics.newQuad(60, 0, 60, 20, 600, 20),
+ [5] = love.graphics.newQuad(120, 0, 60, 20, 600, 20),
+ [6] = love.graphics.newQuad(120, 0, 60, 20, 600, 20),
+ [7] = love.graphics.newQuad(180, 0, 60, 20, 600, 20),
+ [8] = love.graphics.newQuad(180, 0, 60, 20, 600, 20),
+ [9] = love.graphics.newQuad(240, 0, 60, 20, 600, 20),
+ [10] = love.graphics.newQuad(240, 0, 60, 20, 600, 20),
+ [11] = love.graphics.newQuad(300, 0, 60, 20, 600, 20),
+ [12] = love.graphics.newQuad(300, 0, 60, 20, 600, 20),
+ [13] = love.graphics.newQuad(360, 0, 60, 20, 600, 20),
+ [14] = love.graphics.newQuad(360, 0, 60, 20, 600, 20),
+ [15] = love.graphics.newQuad(420, 0, 60, 20, 600, 20),
+ [16] = love.graphics.newQuad(420, 0, 60, 20, 600, 20),
+ [17] = love.graphics.newQuad(480, 0, 60, 20, 600, 20),
+ [18] = love.graphics.newQuad(480, 0, 60, 20, 600, 20),
+ [19] = love.graphics.newQuad(540, 0, 60, 20, 600, 20),
+ [20] = love.graphics.newQuad(540, 0, 60, 20, 600, 20),
+ frames = 20,
+ repeated = true
+ }
+ }
+}