add ice level

This commit is contained in:
Corwin 2023-08-27 18:31:30 +01:00
parent e33eee7d11
commit a0ab3e9fb4
No known key found for this signature in database
2 changed files with 35 additions and 0 deletions

View file

@ -9,6 +9,7 @@ use std::{
use proc_macro2::TokenStream;
const LEVEL_NAMES: &[&str] = &[
"a_familiar_sight",
"level1",
"level2",
"level3",
@ -100,6 +101,7 @@ enum Entity {
SpikesDown,
SquidUp,
SquidDown,
Ice,
}
impl FromStr for Entity {
@ -123,6 +125,7 @@ impl FromStr for Entity {
"SPIKES_DOWN" => SpikesDown,
"SQUID_UP" => SquidUp,
"SQUID_DOWN" => SquidDown,
"ICE" => Ice,
_ => return Err(()),
})
}
@ -147,6 +150,7 @@ impl quote::ToTokens for Entity {
SpikesDown => quote!(Item::SpikesDown),
SquidUp => quote!(Item::SquidUp),
SquidDown => quote!(Item::SquidDown),
Ice => quote!(Item::Ice),
})
}
}

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.2" 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="ICE"/>
<property name="NAME" value="A familiar sight..."/>
</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>