class Guemboi{ int w, h; float hscale, vscale; Splash splash; Game game; Guemboi(){//int w, int h){ w = 800;//w; h = 600;//h; hscale = ((float)width/(float)w); vscale = ((float)height/(float)h); skreen = 0; splash = new Splash(); game = new Game(); } void draw(){ background(255,0,0); scale(hscale, vscale); switch(skreen){ case 0: splash.draw(); //if(joypadA.bStart.returned)skreen=1; break; case 1: game.draw(); break; //case 2: game.draw(); break; } } void keyPressed(){ switch(skreen){ case 0: if(keyCode==ENTER || keyCode==RETURN)skreen=1; break; //case 1: menu.draw(); break; //case 2: game.draw(); break; } } }