commit
349904d7eb
|
@ -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```
|
Loading…
Reference in New Issue