From a0ab3e9fb4d4c81b6475ab9901419cf8ffe9497a Mon Sep 17 00:00:00 2001 From: Corwin Date: Sun, 27 Aug 2023 18:31:30 +0100 Subject: [PATCH] add ice level --- examples/the-dungeon-puzzlers-lament/build.rs | 4 +++ .../maps/levels/a_familiar_sight.tmx | 31 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 examples/the-dungeon-puzzlers-lament/maps/levels/a_familiar_sight.tmx diff --git a/examples/the-dungeon-puzzlers-lament/build.rs b/examples/the-dungeon-puzzlers-lament/build.rs index 7e4a297a..f0a4f1dd 100644 --- a/examples/the-dungeon-puzzlers-lament/build.rs +++ b/examples/the-dungeon-puzzlers-lament/build.rs @@ -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), }) } } diff --git a/examples/the-dungeon-puzzlers-lament/maps/levels/a_familiar_sight.tmx b/examples/the-dungeon-puzzlers-lament/maps/levels/a_familiar_sight.tmx new file mode 100644 index 00000000..4a4d07d1 --- /dev/null +++ b/examples/the-dungeon-puzzlers-lament/maps/levels/a_familiar_sight.tmx @@ -0,0 +1,31 @@ + + + + + + + + + + +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 + + + + + + + + + + +