From a7f8a3a98eca4d95ae97a0a417f380053f5f0b21 Mon Sep 17 00:00:00 2001 From: fdai7012 Date: Wed, 7 Feb 2024 23:19:37 +0100 Subject: [PATCH] Added ghost sprites to visualizer --- .../pacmanGame/VisualizerPlainTextUltra.java | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/main/java/pacmanGame/VisualizerPlainTextUltra.java b/src/main/java/pacmanGame/VisualizerPlainTextUltra.java index 8b6806e..ec28f38 100644 --- a/src/main/java/pacmanGame/VisualizerPlainTextUltra.java +++ b/src/main/java/pacmanGame/VisualizerPlainTextUltra.java @@ -18,8 +18,54 @@ public HashMap sprites = new HashMap(){{ "|''|", "|__|" }); + this.put("cherry", new String[] { + " /\\ ", + " 0O " + }); }}; + public final String[][] ghostSprites = { + { + "/--\\", + "~~~~" + }, + { + "/°°\\", + "~~~~" + }, + { + "/^^\\", + "~~~~" + }, + { + "/oo\\", + "~~~~" + }, + { + "/''\\", + "~~~~" + }, + { + "/**\\", + "~~~~" + }, + { + "/00\\", + "~~~~" + }, + { + "/++\\", + "~~~~" + }, + { + "/..\\", + "~~~~" + }, + { + "/§§\\", + "~~~~" } + }; + @Override public Object GetOutput() { // TODO Auto-generated method stub