Add the possibility to specify different glpyhs to draw than the ones for the level files

This commit is contained in:
Rampoina 2023-03-05 17:54:59 +01:00
parent 2697bbb950
commit a894380402
1 changed files with 2 additions and 5 deletions

View File

@ -1,10 +1,7 @@
#!/usr/bin/env BQN
# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2023 Rampoina <rampoina@protonmail.com>
#
# Arc
# The level is a 2d matrix of lists (tiles)
# Each list contains the objects of the game represented as numbers
ansi•Import "ansi.bqn"
Game•Import "logic.bqn"
@ -13,7 +10,7 @@ e←ansi.e
•Out e"[?25l"e"[2J"e"[H" # Cursor to origin, hide it and clear screen
clear""
gGame "levels"" λ$⊕⭍#/\-|+<>^v"ansi.defaultB,ansi.yellow,ansi.cyan,ansi.red
gGame "levels"" λ$⊕⭍#/\-|+<>^v"" λ$⊕⭍#/\-|+<>^v"ansi.defaultB,ansi.yellow,ansi.cyan,ansi.red
{𝕤 # Loop until the user wins
•Out cleare"[H" # Cursor to origin
clear""