From a8943804025cea7eaab596cc58d6bdce9532fa54 Mon Sep 17 00:00:00 2001 From: Rampoina Date: Sun, 5 Mar 2023 17:54:59 +0100 Subject: [PATCH] Add the possibility to specify different glpyhs to draw than the ones for the level files --- arc.bqn | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arc.bqn b/arc.bqn index 40f2100..c8b1bb8 100755 --- a/arc.bqn +++ b/arc.bqn @@ -1,10 +1,7 @@ #!/usr/bin/env BQN # SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-FileCopyrightText: 2023 Rampoina -# -# 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↩""