MainGame g; void setup() { attach(g=new MainGame()); } void draw() { g.draw(); }