//========================== class Menu{ Tile[][] tiles; int startGameTimer = 0; int animationLength = 75; boolean startGame; Menu(){ PImage logo = loadImage("logo.gif"); int tileSize = 600/logo.width; tiles = new Tile[ (width/tileSize) ][ (height/tileSize) ]; for(int x=0;x d ){ tiles[x][y].flip( 100 ); tiles[x][y].uninvert(); } } } //--------- void noiseReveal(){ int start = (startGameTimer-13); int stop = (startGameTimer-10); if(startGame) for(int x=0;x tiles[x][y].noiseValue ){ tiles[x][y].flip( 50 ); tiles[x][y].uninvert(); } } } //--------- void visualize(){ lights(); if(startGame) noiseReveal(); if(startGameTimer > 0) startGameTimer--; if(startGame && startGameTimer==0) startGame(); background(0); if(startGame) for(int x=0;x1) box(boxSize); popMatrix(); } } }