diff options
| author | Zach Jordan <zxjordan5@gmail.com> | 2023-05-25 10:23:53 -0400 | 
|---|---|---|
| committer | Zach Jordan <zxjordan5@gmail.com> | 2023-05-25 10:23:53 -0400 | 
| commit | 27a49de2ad86556d9b3251f7fc22a552b83308f2 (patch) | |
| tree | 524f77a3f98a319c8b18b3a8b101ebe133f16505 | |
| parent | 520d9347eebaa78a503b659431cf6cb935cc0adf (diff) | |
| download | NPEhero-27a49de2ad86556d9b3251f7fc22a552b83308f2.tar.gz NPEhero-27a49de2ad86556d9b3251f7fc22a552b83308f2.tar.bz2 NPEhero-27a49de2ad86556d9b3251f7fc22a552b83308f2.zip | |
changes to level class
| -rw-r--r-- | src/main/Level.java | 11 | 
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)   		{ | 
