From 349904d7ebed3dbf64d5e4e8a92d0a2b379790c8 Mon Sep 17 00:00:00 2001 From: KikooDX Date: Tue, 5 Nov 2019 09:56:26 +0100 Subject: [PATCH] --- Levels.py-format.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Levels.py-format.md diff --git a/Levels.py-format.md b/Levels.py-format.md new file mode 100644 index 0000000..9d79ea7 --- /dev/null +++ b/Levels.py-format.md @@ -0,0 +1,23 @@ +## Variables utility +levels list : contain raw levels layouts +lvl_dims list : contain levels dim in tuples + +## Chars/tiles correpondance +`@` : player (can only put one) +`#` : wall +`/` : box space +`+` : box +`*` : box in box space +`.` : floor (can be walked on) +` ` (space) : empty tile (can't be walked on) + +## Example +```levels += [ +" "+\ # no empty spaces, need to put spaces else the level brake +"#######"+\ +"#..+./#"+\ +"#@#+..#"+\ +"#..../#"+\ +"#######" +] +lvl_dim += [(7, 6)] # level is 7 width and 6 height``` \ No newline at end of file