diff --git a/Levels/level6.txt b/Levels/level6.txt index 4b93c78..91ea7dd 100644 --- a/Levels/level6.txt +++ b/Levels/level6.txt @@ -1,20 +1,20 @@ -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -.................................................................................................................. -..P............................................................................................................... -.................................................................................................................. -.................................................................................................................. -BBBBBBBBBB.....BBBBBB............................................................................................................. +.....................................................................................................B...............BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB +.....................................................................................................B...............B...................................B +.....................................................................................................B...............B...................................B +.....................................................................................................B..............BB........BB.........................B +.....................................................................................................B.............B.........BB..........................B +.....................................................................................................B............B..........BB..........................B +.....................................................................................................B............B.........BB...........................B +.............................................................A.......................................B...........B........BB.............................B +........................................BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB....BBBBBBBBBBBB.......BB...............................B +........................................B...............................................................................B................................B +..........................Q.............B.................E............................................................B.................................B +........................................B........BBBBBBBBBBBBBBBB........................................A............B..................................B +............................A...........B........B..............B...........................BBBBBBBBBBBBBBBBBBBBBBBBBB...................................B +........................BBBBBBBBBBBBBBBBB........B..............B...........................B........................B........................A..........B +........................B.......................QB..............B...........................B........................B...................................B +........................B........................B..............B...........................B........................B.......Q...........................B +BBBBBBBBBBBBBBBBBBBBBBBBB....BBBBBBBBBBBBBBBBBBBBB..............B.............Q.............B........................B....................................BBBBBBBB +.............................B..................................B...........................B........................B....................A......................B +..................E..........B..................................B...........E.........E.....B........................B....A.................................F....B +BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB..................................BBBBBBBBBBBBBBBBBBBBBBBBBBBBB........................BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB diff --git a/Platformer.class b/Platformer.class index f41d89f..3a27b69 100644 Binary files a/Platformer.class and b/Platformer.class differ diff --git a/Platformer.java b/Platformer.java index eecf74a..83e355e 100644 --- a/Platformer.java +++ b/Platformer.java @@ -13,11 +13,12 @@ public class Platformer extends JPanel implements KeyListener, ActionListener { static final Color playerColor = Color.RED; static final Color tileColor = Color.BLUE; static final Color SKY = new Color(135, 206, 235); + static final Color NIGHT_SKY = new Color(4, 26, 64); static final int FRICTION = 1; static final int MAXYVELO = 15; static final int MAXXVELO = 5; static final int totalLevels = 10; - static int[] numAm = {4, 5, 10, 18, 6, 0, 0, 0, 0, 0}; + static int[] numAm = {4, 5, 10, 18, 6, 6, 0, 0, 0, 0}; // game objects Player player; @@ -347,6 +348,13 @@ public class Platformer extends JPanel implements KeyListener, ActionListener { return; } + if (currentLevel == 6) { + this.setBackground(NIGHT_SKY); + } + if (currentLevel == 7) { + this.setBackground(SKY); + } + g.translate(-cameraX, -cameraY); player.draw(g); diff --git a/Sprites/Numbers/6.png b/Sprites/Numbers/6.png index ce89435..a6eb761 100644 Binary files a/Sprites/Numbers/6.png and b/Sprites/Numbers/6.png differ