import java.awt.*; import java.awt.event.*; public class Game implements World { // think what state you want to keep public Game() { System.out.println("A game has been created."); } int ticks, keys, mice; public void teh() { System.out.println("Time is passing: " + this.ticks++); } public void meh(MouseEvent e) { System.out.println("Mouse event detected... " + this.mice++); } public void keh(KeyEvent e) { System.out.println("Keyboard touched (" + this.keys++ + ")"); } int draws; public void draw(Graphics g) { System.out.println("Graphics updated (" + this.draws++ + ") + [" + this.ticks + ", " + this.keys + ", " + this.mice + "]"); } public static void main(String[] args) { BigBang b = new BigBang(new Game()); b.start(5000, 400); // the first argument is 5 seconds (5000 milliseconds) // and the second is 400 (pixels, for the size (a square)) } public boolean hasEnded() { return false; } public void sayBye() { } }