Change level representation to use only ascii characters by default

This commit is contained in:
Rampoina 2023-03-06 00:42:48 +01:00
parent 4a05840eff
commit 36559eb386
3 changed files with 10 additions and 10 deletions

View File

@ -36,7 +36,7 @@ Default keys:
: Characters to display for each game object, needs to have length 15. (default: " λ$⊕⭍#/\-|+<>^v").
`-f,--fchars` *string*
: Characters to represent each game object in the levels file, needs to have length 15. (default: " λ$⊕⭍#/\-|+<>^v").
: Characters to represent each game object in the levels file, needs to have length 15. (default: " @$o⭍#/\-|+<>^v").
`-s,--start` *N*
: Start directly at level number *N*. (default: 1).

View File

@ -20,7 +20,7 @@ opts←{
}´"-h""--help"a
chars _optl_" λ$⊕⭍#/\-|+<>^v" "-c""--chars"
fchars _optl_" λ$⊕⭍#/\-|+<>^v" "-f""--fchars"
fchars _optl_" @$o⭍#/\-|+<>^v" "-f""--fchars"
levels _optl_"levels" "-l""--levels"
n{1•BQN{𝕊: •Out "Invalid starting level number" •Exit 1} 𝕩}_optl_ 1 "-s""--start"
}

16
levels
View File

@ -1,40 +1,40 @@
##############
# #
# ###### #
# ######o #
# #
# #
# > / #
# # λ #
# # @ #
##############
##############
# #
# > / #
# λ #
# @ #
# #
# \ #
# o \ #
# #
##############
###############
# # #
# # o #
# v / #### #
# #/ # \ #
# # ## #
# #\ λ / #
# #\ @ / #
# #### ## / #
# \ #
###############
##########################
# #
# / λ < / #
# / @ < / #
# \ #
# # #
# \ #### ## #
# ### ## ## # # #
# # # ## # #
# ## # #
# # ## #
# # ##o #
## #
##########################