Migrate the first 6 levels

This commit is contained in:
Gwilym Inzani 2023-07-25 22:34:09 +01:00
parent 3bd5ae2313
commit 999a73439c
6 changed files with 175 additions and 6 deletions

View file

@ -9,12 +9,8 @@ use std::{
use proc_macro2::TokenStream;
const LEVEL_NAMES: &[&str] = &[
"level1",
// "level2",
// "level3",
// "level4",
// "level5",
// "level6",
"level1", "level2", "level3", "level4", "level5",
"level6",
// "level_switch",
// "level_spikes",
// "level_spikes2",

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.1" orientation="orthogonal" renderorder="right-down" width="11" height="10" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="3">
<properties>
<property name="DIRECTIONS" value="DDDL"/>
<property name="ITEMS" value="DOOR"/>
<property name="NAME" value="You can't go through locked doors"/>
</properties>
<tileset firstgid="1" source="../level16.tsx"/>
<layer id="1" name="Tile Layer 1" width="11" height="10">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,1,3,9,0,0,0,0,
0,0,0,0,10,16,38,0,0,0,0,
0,0,1,8,1073741852,11,18,0,0,0,0,
0,0,46,14,16,16,38,0,0,0,0,
0,0,19,22,28,17,47,0,0,0,0,
0,0,0,0,46,12,38,0,0,0,0,
0,0,0,0,19,26,27,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<objectgroup id="2" name="Object Layer 1">
<object id="1" name="HERO" x="87.5735" y="42.2091">
<point/>
</object>
<object id="2" name="STAIRS" x="70.3595" y="74.9152">
<point/>
</object>
</objectgroup>
</map>

View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.1" orientation="orthogonal" renderorder="right-down" width="11" height="10" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="5">
<properties>
<property name="DIRECTIONS" value="RRDURRRRR"/>
<property name="ITEMS" value="DOOR"/>
<property name="NAME" value="Keys open more than one door"/>
</properties>
<tileset firstgid="1" source="../level16.tsx"/>
<layer id="1" name="Tile Layer 1" width="11" height="10">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,1,5,3,5,5,5,9,0,0,
0,0,10,17,12,12,16,11,47,0,0,
0,0,19,28,14,2147483676,20,25,27,0,0,
0,0,0,19,20,27,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<objectgroup id="2" name="Object Layer 1">
<object id="1" name="HERO" x="55.3188" y="74.784">
<point/>
</object>
<object id="2" name="KEY" x="71.3188" y="89.784">
<point/>
</object>
<object id="3" name="DOOR" x="100.944" y="75.284">
<point/>
</object>
<object id="4" name="STAIRS" x="118.194" y="74.409">
<point/>
</object>
</objectgroup>
</map>

View file

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.1" orientation="orthogonal" renderorder="right-down" width="11" height="10" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="4">
<properties>
<property name="DIRECTIONS" value="LLLLLLL"/>
<property name="ITEMS" value="SWORD"/>
<property name="NAME" value="You need a sword to kill slimes"/>
</properties>
<tileset firstgid="1" source="../level16.tsx"/>
<layer id="1" name="Tile Layer 1" width="11" height="10">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,1,8,3,8,5,2,4,6,9,0,
0,10,13,16,13,12,13,17,14,38,0,
0,19,21,26,24,25,21,24,25,27,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<objectgroup id="2" name="Object Layer 1">
<object id="1" name="HERO" x="134.575" y="71.8102">
<point/>
</object>
<object id="2" name="SLIME" x="70.5749" y="73.1435">
<point/>
</object>
<object id="3" name="STAIRS" x="40.2416" y="73.1435">
<point/>
</object>
</objectgroup>
</map>

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.1" orientation="orthogonal" renderorder="right-down" width="11" height="10" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="3">
<properties>
<property name="DIRECTIONS" value="LLRRRRR"/>
<property name="ITEMS" value="SLIME,SWORD"/>
<property name="NAME" value="It takes time to kill slimes"/>
</properties>
<tileset firstgid="1" source="../level16.tsx"/>
<layer id="1" name="Tile Layer 1" width="11" height="10">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,1,6,5,2,2,6,4,8,9,0,
0,10,17,17,12,15,13,17,17,38,0,
0,19,20,20,20,25,20,22,21,27,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<objectgroup id="2" name="Object Layer 1">
<object id="1" name="STAIRS" x="135.08" y="73.5784">
<point/>
</object>
<object id="2" name="HERO" x="71.625" y="73.3966">
<point/>
</object>
</objectgroup>
</map>

View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.1" orientation="orthogonal" renderorder="right-down" width="11" height="10" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="6">
<properties>
<property name="DIRECTIONS" value="URULUUUUL"/>
<property name="ITEMS" value="DOOR"/>
<property name="NAME" value="You can only hold one item"/>
</properties>
<tileset firstgid="1" source="../level16.tsx"/>
<layer id="1" name="Tile Layer 1" width="11" height="10">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,
0,0,1,5,6,4,7,3,9,0,0,
0,0,10,15,13,12,17,11,38,0,0,
0,0,19,23,23,28,16,29,30,0,0,
0,0,0,0,0,37,11,11,47,0,0,
0,0,0,0,0,46,14,12,18,0,0,
0,0,0,0,0,37,17,17,38,0,0,
0,0,0,0,0,19,23,23,27,0,0,
0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<objectgroup id="2" name="Object Layer 1">
<object id="1" name="HERO" x="103.958" y="123.868">
<point/>
</object>
<object id="2" name="STAIRS" x="88.0399" y="59.3488">
<point/>
</object>
<object id="3" name="SLIME" x="103.789" y="58.6714">
<point/>
</object>
<object id="4" name="SWORD" x="103.789" y="107.781">
<point/>
</object>
<object id="5" name="KEY" x="121.231" y="94.4032">
<point/>
</object>
</objectgroup>
</map>