aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Jordan <zxjordan5@gmail.com>2023-05-25 10:23:53 -0400
committerZach Jordan <zxjordan5@gmail.com>2023-05-25 10:23:53 -0400
commit27a49de2ad86556d9b3251f7fc22a552b83308f2 (patch)
tree524f77a3f98a319c8b18b3a8b101ebe133f16505
parent520d9347eebaa78a503b659431cf6cb935cc0adf (diff)
downloadNPEhero-27a49de2ad86556d9b3251f7fc22a552b83308f2.tar.gz
NPEhero-27a49de2ad86556d9b3251f7fc22a552b83308f2.tar.bz2
NPEhero-27a49de2ad86556d9b3251f7fc22a552b83308f2.zip
changes to level class
-rw-r--r--src/main/Level.java11
1 files 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<Difficulty> diffList = new ArrayList<Difficulty>();
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)
{