From 2757fa1de92f2eff8be080721a7f777086afa072 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Sep 2017 22:30:32 +0200 Subject: Separated platforms' configs from maps' configs --- config/maps/ribbit.lua | 12 ++++-------- config/maps/starstorm.lua | 27 +++++++-------------------- 2 files changed, 11 insertions(+), 28 deletions(-) (limited to 'config/maps') diff --git a/config/maps/ribbit.lua b/config/maps/ribbit.lua index a8a4366..48e84c8 100644 --- a/config/maps/ribbit.lua +++ b/config/maps/ribbit.lua @@ -18,26 +18,22 @@ return { x = -154, y = 10, - shape = {1,12, 48,12, 48,32, 1,32}, - sprite = "assets/platforms/ribbit-left.png" + config = "ribbit-left" }, { x = 67, y = 7, - shape = {36,14, 83,14, 83,29, 36,29}, - sprite = "assets/platforms/ribbit-right.png" + config = "ribbit-right" }, { x = -70, y = -5, - shape = {0,3, 139,3, 134,24, 5,24}, - sprite = "assets/platforms/ribbit-top.png" + config = "ribbit-top" }, { x = -54, y = 63, - shape = {0,3, 107,3, 75,44, 32,44}, - sprite = "assets/platforms/ribbit-bottom.png" + config = "ribbit-bottom" } }, decorations = {} diff --git a/config/maps/starstorm.lua b/config/maps/starstorm.lua index c74372f..fe45e04 100644 --- a/config/maps/starstorm.lua +++ b/config/maps/starstorm.lua @@ -20,50 +20,37 @@ return { x = -170, y = -55, - shape = { - {0,1, 33,1, 39,6, 39,21, 31,21, 0,21}, - {40,6, 115,6, 115,14, 40,14} - }, - sprite = "assets/platforms/starstorm-left-top.png" + config = "starstorm-left-top" }, { x = -156, y = -2, - shape = {0,0, 109,0, 109,20, 0,20}, - sprite = "assets/platforms/starstorm-left-middle.png" + config = "starstorm-left-middle" }, { x = -160, y = 69, - shape = {0,4, 8,4, 13,1, 102,1, 102,16, 19,16, 0,11}, - sprite = "assets/platforms/starstorm-left-bottom.png" + config = "starstorm-left-bottom" }, { x = 52, y = -55, - shape = { - {115,1, 82,1, 76,6, 76,21, 84,21, 115,21}, - {75,6, 0,6, 0,14, 75,14} - }, - sprite = "assets/platforms/starstorm-right-top.png" + config = "starstorm-right-top" }, { x = 44, y = -2, - shape = {109,0, 0,0, 0,20, 109,20}, - sprite = "assets/platforms/starstorm-right-middle.png" + config = "starstorm-right-middle" }, { x = 55, y = 69, - shape = {102,4, 94,4, 89,1, 0,1, 0,16, 83,16, 102,11}, - sprite = "assets/platforms/starstorm-right-bottom.png" + config = "starstorm-right-bottom" }, { x = -27, y = 40, - shape = {0,6, 53,6, 53,14, 0,14}, - sprite = "assets/platforms/starstorm-center.png" + config = "starstorm-center" } }, decorations = { -- cgit v1.1