level 6
This commit is contained in:
@@ -1,20 +1,20 @@
|
|||||||
..................................................................................................................
|
.....................................................................................................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
|
||||||
..P...............................................................................................................
|
BBBBBBBBBBBBBBBBBBBBBBBBB....BBBBBBBBBBBBBBBBBBBBB..............B.............Q.............B........................B....................................BBBBBBBB
|
||||||
..................................................................................................................
|
.............................B..................................B...........................B........................B....................A......................B
|
||||||
..................................................................................................................
|
..................E..........B..................................B...........E.........E.....B........................B....A.................................F....B
|
||||||
BBBBBBBBBB.....BBBBBB.............................................................................................................
|
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB..................................BBBBBBBBBBBBBBBBBBBBBBBBBBBBB........................BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
||||||
|
|||||||
BIN
Platformer.class
BIN
Platformer.class
Binary file not shown.
@@ -13,11 +13,12 @@ public class Platformer extends JPanel implements KeyListener, ActionListener {
|
|||||||
static final Color playerColor = Color.RED;
|
static final Color playerColor = Color.RED;
|
||||||
static final Color tileColor = Color.BLUE;
|
static final Color tileColor = Color.BLUE;
|
||||||
static final Color SKY = new Color(135, 206, 235);
|
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 FRICTION = 1;
|
||||||
static final int MAXYVELO = 15;
|
static final int MAXYVELO = 15;
|
||||||
static final int MAXXVELO = 5;
|
static final int MAXXVELO = 5;
|
||||||
static final int totalLevels = 10;
|
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
|
// game objects
|
||||||
Player player;
|
Player player;
|
||||||
@@ -347,6 +348,13 @@ public class Platformer extends JPanel implements KeyListener, ActionListener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (currentLevel == 6) {
|
||||||
|
this.setBackground(NIGHT_SKY);
|
||||||
|
}
|
||||||
|
if (currentLevel == 7) {
|
||||||
|
this.setBackground(SKY);
|
||||||
|
}
|
||||||
|
|
||||||
g.translate(-cameraX, -cameraY);
|
g.translate(-cameraX, -cameraY);
|
||||||
|
|
||||||
player.draw(g);
|
player.draw(g);
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 392 B |
Reference in New Issue
Block a user