From d2ba9f3c87589f167e715b17f6740977e1c29dff Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 3 Sep 2017 01:55:35 +0200 Subject: More map config and loading changes Decorations, platforms and background are now created and stored in config together --- config/maps/ribbit.lua | 18 ++++++++++-------- config/maps/starstorm.lua | 35 ++++++++++++++++++----------------- 2 files changed, 28 insertions(+), 25 deletions(-) (limited to 'config/maps') diff --git a/config/maps/ribbit.lua b/config/maps/ribbit.lua index 48e84c8..40ae355 100644 --- a/config/maps/ribbit.lua +++ b/config/maps/ribbit.lua @@ -13,28 +13,30 @@ return {x = 15, y = -80} }, clouds = false, - background = "assets/backgrounds/ribbit.png", - platforms = { + create = { + { + ratio = 0, + background = "assets/backgrounds/ribbit.png" + }, { x = -154, y = 10, - config = "ribbit-left" + platform = "ribbit-left" }, { x = 67, y = 7, - config = "ribbit-right" + platform = "ribbit-right" }, { x = -70, y = -5, - config = "ribbit-top" + platform = "ribbit-top" }, { x = -54, y = 63, - config = "ribbit-bottom" + platform = "ribbit-bottom" } - }, - decorations = {} + } } diff --git a/config/maps/starstorm.lua b/config/maps/starstorm.lua index fe45e04..eaf488e 100644 --- a/config/maps/starstorm.lua +++ b/config/maps/starstorm.lua @@ -15,64 +15,65 @@ return {x = 110, y = -70} }, clouds = false, - background = "assets/backgrounds/starstorm.png", - platforms = { + create = { + { + ratio = 0, + background = "assets/backgrounds/starstorm.png" + }, { x = -170, y = -55, - config = "starstorm-left-top" + platform = "starstorm-left-top" }, { x = -156, y = -2, - config = "starstorm-left-middle" + platform = "starstorm-left-middle" }, { x = -160, y = 69, - config = "starstorm-left-bottom" + platform = "starstorm-left-bottom" }, { x = 52, y = -55, - config = "starstorm-right-top" + platform = "starstorm-right-top" }, { x = 44, y = -2, - config = "starstorm-right-middle" + platform = "starstorm-right-middle" }, { x = 55, y = 69, - config = "starstorm-right-bottom" + platform = "starstorm-right-bottom" }, { x = -27, y = 40, - config = "starstorm-center" - } - }, - decorations = { + platform = "starstorm-center" + }, { x = -166, y = -37, - sprite = "assets/decorations/starstorm-left-top.png" + decoration = "assets/decorations/starstorm-left-top.png" }, { x = -163, y = 19, - sprite = "assets/decorations/starstorm-left-bottom.png" + decoration = "assets/decorations/starstorm-left-bottom.png" }, { x = 119, y = -37, - sprite = "assets/decorations/starstorm-right-top.png" + decoration = "assets/decorations/starstorm-right-top.png" }, { - x = 52+77, + x = 129, y = 19, - sprite = "assets/decorations/starstorm-right-bottom.png" + decoration = "assets/decorations/starstorm-right-bottom.png" } } } -- cgit v1.1