From 93c67b5149fdc2d2d101413ff54a515783ad0958 Mon Sep 17 00:00:00 2001 From: fdai7012 Date: Wed, 7 Feb 2024 23:16:18 +0100 Subject: [PATCH] Added sprites to visualizer --- .../pacmanGame/VisualizerPlainTextUltra.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/pacmanGame/VisualizerPlainTextUltra.java b/src/main/java/pacmanGame/VisualizerPlainTextUltra.java index dd4584b..8b6806e 100644 --- a/src/main/java/pacmanGame/VisualizerPlainTextUltra.java +++ b/src/main/java/pacmanGame/VisualizerPlainTextUltra.java @@ -1,7 +1,25 @@ package pacmanGame; +import java.util.HashMap; + public class VisualizerPlainTextUltra implements Visualizer { +public HashMap sprites = new HashMap(){{ + + this.put("empty", new String[] { + " ", + " " + }); + this.put("dot", new String[] { + " . ", + " " + }); + this.put("wall", new String[] { + "|''|", + "|__|" + }); + }}; + @Override public Object GetOutput() { // TODO Auto-generated method stub