From 27a49de2ad86556d9b3251f7fc22a552b83308f2 Mon Sep 17 00:00:00 2001 From: Zach Jordan Date: Thu, 25 May 2023 10:23:53 -0400 Subject: changes to level class --- src/main/Level.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/Level.java b/src/main/Level.java index 2b367d3..f02bb46 100644 --- a/src/main/Level.java +++ b/src/main/Level.java @@ -25,7 +25,7 @@ public class Level public ArrayList diffList = new ArrayList(); public Image background; //optional - public Color[] colors; //optional, have default colors + public Color[] colors = new Color[5];//optional, have default colors private JSONObject levelStuff; @@ -49,11 +49,10 @@ public class Level artist = (SimpleStringProperty)(levelStuff.get("title")); desc = (String)(levelStuff.get("title")); - - - - - + if(levelStuff.has("color1")) + { + + } } catch (FileNotFoundException e) { -- cgit v1.2.3