summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-05 19:05:21 +0200
committerAki <nthirtyone@gmail.com>2017-09-05 19:05:21 +0200
commit1ffc08dd2343b76b2f94d9c290ef346346585270 (patch)
tree2d5d1ba10a56a246d4d8992eee8ab877a52b7fe7
parentdc6fd557ed955fc5f177608c186768e29c7778c6 (diff)
downloadroflnauts-1ffc08dd2343b76b2f94d9c290ef346346585270.zip
roflnauts-1ffc08dd2343b76b2f94d9c290ef346346585270.tar.gz
roflnauts-1ffc08dd2343b76b2f94d9c290ef346346585270.tar.bz2
Converted default map to new format for cloud testing
-rw-r--r--config/maps/default.lua33
-rw-r--r--config/platforms/default-big.lua5
-rw-r--r--config/platforms/default-side.lua5
-rw-r--r--config/platforms/default-top.lua5
4 files changed, 29 insertions, 19 deletions
diff --git a/config/maps/default.lua b/config/maps/default.lua
index 05b8dc9..a11c503 100644
--- a/config/maps/default.lua
+++ b/config/maps/default.lua
@@ -1,47 +1,42 @@
--- Default map from original roflnauts
-return {
- -- GENERAL
+return
+{
name = "default",
theme = "default.ogg",
- center_x = 0,
- center_y = 0,
+ portrait = 1, -- TODO: See `maps/ribbit`.
+ center = {x = 0, y = 0},
width = 360,
height = 240,
- -- RESPAWN POINTS
respawns = {
{x = -15, y = -80},
{x = -5, y = -80},
{x = 5, y = -80},
{x = 15, y = -80}
},
- -- GRAPHICS
clouds = true,
- background = "assets/backgrounds/default.png",
- platforms = {
+ create = {
+ {
+ ratio = 0,
+ background = "assets/backgrounds/default.png"
+ },
{
x = -91,
y = 0,
- shape = {0,1, 180,1, 180,10, 95,76, 86,76, 0,10},
- sprite = "assets/platforms/default-big.png"
+ platform = "default-big"
},
{
x = 114,
y = 50,
- shape = {0,1, 51,1, 51,18, 0,18},
- sprite = "assets/platforms/default-side.png"
+ platform = "default-side"
},
{
x = -166,
y = 50,
- shape = {0,1, 51,1, 51,18, 0,18},
- sprite = "assets/platforms/default-side.png"
+ platform = "default-side"
},
{
x = -17,
y = -50,
- shape = {0,1, 33,1, 33,14, 0,14},
- sprite = "assets/platforms/default-top.png"
+ platform = "default-top"
}
- },
- decorations = {}
+ }
}
diff --git a/config/platforms/default-big.lua b/config/platforms/default-big.lua
new file mode 100644
index 0000000..85893b3
--- /dev/null
+++ b/config/platforms/default-big.lua
@@ -0,0 +1,5 @@
+return
+{
+ sprite = "assets/platforms/default-big.png",
+ shape = {0,1, 180,1, 180,10, 95,76, 86,76, 0,10}
+}
diff --git a/config/platforms/default-side.lua b/config/platforms/default-side.lua
new file mode 100644
index 0000000..77b55bd
--- /dev/null
+++ b/config/platforms/default-side.lua
@@ -0,0 +1,5 @@
+return
+{
+ sprite = "assets/platforms/default-side.png",
+ shape = {0,1, 51,1, 51,18, 0,18}
+}
diff --git a/config/platforms/default-top.lua b/config/platforms/default-top.lua
new file mode 100644
index 0000000..dbe4cbe
--- /dev/null
+++ b/config/platforms/default-top.lua
@@ -0,0 +1,5 @@
+return
+{
+ sprite = "assets/platforms/default-top.png",
+ shape = {0,1, 33,1, 33,14, 0,14}
+}