Skip to content
Permalink
Browse files

Added an easter egg in the form of padraic mode

  • Loading branch information
jdm13003 committed Apr 20, 2016
1 parent 60bb473 commit c961da2ff34fe242971a1001c730a681a653c635
Showing with 13 additions and 2 deletions.
  1. BIN resources/sprite_sheet.png
  2. +4 −0 src/main/Game.java
  3. +9 −2 src/main/Skins.java
BIN -3.9 KB (93%) resources/sprite_sheet.png
Binary file not shown.
@@ -49,6 +49,7 @@
private Controller c;
private Skins tp;
private int numberOfPlayers = 2;
private boolean padraicmode = false;

public void init()
{
@@ -262,4 +263,7 @@ public int getKills() {
public void setKills(int kills) {
this.kills = kills;
}
public boolean getPadraic(){
return padraicmode;
}
}
@@ -13,21 +13,28 @@
public BufferedImage enemy1;
public BufferedImage padraic;
public BufferedImage player2;
Game game;

private SpriteSheet ss = null;

public Skins(Game game) {
this.game = game;
ss = new SpriteSheet(game.getSpriteSheet());
getTextures();

}
private void getTextures(){
if(game.getPadraic()){
player = ss.grabimage(2, 2, 64, 64);
laser = ss.grabimage(3, 2, 64, 64);
enemy1 = ss.grabimage(1, 3, 64, 64);
player2 = ss.grabimage(2, 2, 64, 64);
}else{
player = ss.grabimage(playerx, playery, 64, 64);
laser = ss.grabimage(2, 3, 64, 64);
enemy1 = ss.grabimage(2, 1, 64, 64);
padraic = ss.grabimage(2, 2, 64, 64);
player2 = ss.grabimage(3, 1, 64, 64);

}
}

public void setSelection(int x, int y){

0 comments on commit c961da2

Please sign in to comment.
You can’t perform that action at this time.