Add the possibility to specify different glpyhs to draw than the ones for the level files
This commit is contained in:
parent
2697bbb950
commit
a894380402
7
arc.bqn
7
arc.bqn
|
@ -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←""
|
||||
|
||||
g←Game "levels"‿" λ$⊕⭍#/\-|+<>^v"‿⟨ansi.defaultB,ansi.yellow,ansi.cyan,ansi.red⟩
|
||||
g←Game "levels"‿" λ$⊕⭍#/\-|+<>^v"‿" λ$⊕⭍#/\-|+<>^v"‿⟨ansi.defaultB,ansi.yellow,ansi.cyan,ansi.red⟩
|
||||
{𝕤 # Loop until the user wins
|
||||
•Out clear∾e∾"[H" # Cursor to origin
|
||||
clear↩""
|
||||
|
|
Loading…
Reference in New Issue