Mercurial > nagslang
changeset 178:5cabbb485ad5
Round-tripped levels through the editor to canonicalize them
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Tue, 03 Sep 2013 17:15:00 +0200 |
parents | bf11d3bb2d6b |
children | 1ee8756888e4 |
files | data/levels/level1 data/levels/level2 |
diffstat | 2 files changed, 41 insertions(+), 43 deletions(-) [+] |
line wrap: on
line diff
--- a/data/levels/level1 Tue Sep 03 16:12:24 2013 +0200 +++ b/data/levels/level1 Tue Sep 03 17:15:00 2013 +0200 @@ -1,4 +1,39 @@ base_tile: tiles/floor.png +enemies: +- args: + - [750, 300] + - [650, 500] + classname: PatrollingAlien +game_objects: +- args: + - [250, 350] + classname: Box +- args: + - [300, 400] + classname: FloorSwitch + name: switch +- args: + - [300, 600] + classname: FloorSwitch + name: switch2 +- args: + - [300, 500] + - switch + classname: FloorLight + name: light +- args: + - [250, 500] + - both_switches + classname: FloorLight + name: light2 +- args: [switch, switch2] + classname: StateLogicalAndPuzzler + name: both_switches +- args: + - [400, 400] + - level2 + - [600, 700] + classname: Door polygons: 1: - [60, 780] @@ -17,40 +52,3 @@ - [60, 470] - [60, 780] size: [1200, 900] -game_objects: - - classname: Box - args: - - [250, 350] - - classname: FloorSwitch - args: - - [300, 400] - name: switch - - classname: FloorSwitch - args: - - [300, 600] - name: switch2 - - classname: FloorLight - args: - - [300, 500] - - switch - name: light - - classname: FloorLight - args: - - [250, 500] - - both_switches - name: light2 - - classname: StateLogicalAndPuzzler - args: - - switch - - switch2 - name: both_switches - - classname: Door - args: - - [400, 400] - - level2 - - [600, 700] -enemies: - - classname: PatrollingAlien - args: - - [750, 300] - - [650, 500]
--- a/data/levels/level2 Tue Sep 03 16:12:24 2013 +0200 +++ b/data/levels/level2 Tue Sep 03 17:15:00 2013 +0200 @@ -1,5 +1,11 @@ base_tile: tiles/floor.png enemies: [] +game_objects: +- args: + - [400, 400] + - level1 + - [600, 700] + classname: Door polygons: 1: - [70, 440] @@ -23,9 +29,3 @@ - [230, 220] - [230, 180] size: [1200, 500] -game_objects: - - classname: Door - args: - - [400, 400] - - level1 - - [600, 700]