Exemplo n.º 1
0
 void resetGame()
 {
     gamestate = 2;
     watson    = null;
     player    = null;
     playerTwo = null;
     score     = null;
     ball      = null;
 }
Exemplo n.º 2
0
 public void init()
 {
     watson    = new KIHandler();
     player    = new Player(windowSize, new Vector2f(windowSize.X * 0.05f, windowSize.Y * 0.5f));
     playerTwo = new Player(windowSize, new Vector2f(windowSize.X * 0.95f, windowSize.Y * 0.5f));
     score     = new Score(3);
     ball      = new Ball(windowSize, new Vector2f(4, 4), new Vector2f(windowSize.X / 2, windowSize.Y / 2), 10);
     item      = new Item(windowSize);
     //touched Last: who touched the ball last.
     touchedLast = null;
 }