MisakiCopperrose_FYS/Builds/20-10-2020/application.windows32/source/BombsMain.pde
//Porject FYS Winand Metz 500851135, Ole Neuman 500827044, 
//Ruben Verheul 500855129, Jordy Post 500846919, Alex TarnÃ²ki 500798826

//Code credit Winand Metz, Ole Neuman

//Voor main menu etc
Game game;
InputHandler input;

final int KEY_LIMIT = 1024;
boolean[] keysPressed = new boolean[KEY_LIMIT];

void setup() {
  fullScreen(P2D);
  frameRate(60);
  game = new Game(128, width, height);
  input = new InputHandler();
}

//-----------------------------Draw & Key functies---------------------------------

void draw() {
  game.update();
  game.draw();
}

void keyPressed() {  
  if (keyCode >= KEY_LIMIT) return;
  keysPressed[keyCode] = true;
}

void keyReleased() {
  if (keyCode >= KEY_LIMIT) return;
  keysPressed[keyCode] = false;
}
