mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
add ice level
This commit is contained in:
parent
e33eee7d11
commit
a0ab3e9fb4
|
@ -9,6 +9,7 @@ use std::{
|
||||||
use proc_macro2::TokenStream;
|
use proc_macro2::TokenStream;
|
||||||
|
|
||||||
const LEVEL_NAMES: &[&str] = &[
|
const LEVEL_NAMES: &[&str] = &[
|
||||||
|
"a_familiar_sight",
|
||||||
"level1",
|
"level1",
|
||||||
"level2",
|
"level2",
|
||||||
"level3",
|
"level3",
|
||||||
|
@ -100,6 +101,7 @@ enum Entity {
|
||||||
SpikesDown,
|
SpikesDown,
|
||||||
SquidUp,
|
SquidUp,
|
||||||
SquidDown,
|
SquidDown,
|
||||||
|
Ice,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FromStr for Entity {
|
impl FromStr for Entity {
|
||||||
|
@ -123,6 +125,7 @@ impl FromStr for Entity {
|
||||||
"SPIKES_DOWN" => SpikesDown,
|
"SPIKES_DOWN" => SpikesDown,
|
||||||
"SQUID_UP" => SquidUp,
|
"SQUID_UP" => SquidUp,
|
||||||
"SQUID_DOWN" => SquidDown,
|
"SQUID_DOWN" => SquidDown,
|
||||||
|
"ICE" => Ice,
|
||||||
_ => return Err(()),
|
_ => return Err(()),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -147,6 +150,7 @@ impl quote::ToTokens for Entity {
|
||||||
SpikesDown => quote!(Item::SpikesDown),
|
SpikesDown => quote!(Item::SpikesDown),
|
||||||
SquidUp => quote!(Item::SquidUp),
|
SquidUp => quote!(Item::SquidUp),
|
||||||
SquidDown => quote!(Item::SquidDown),
|
SquidDown => quote!(Item::SquidDown),
|
||||||
|
Ice => quote!(Item::Ice),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
Loading…
Reference in a new issue