Esempio n. 1
0
 private void resetGame()
 {
     circle        = new Circle(100);
     arcMover      = new ArcMover();
     playerPhysics = new PlayerPhysics();
     circleDrawer  = new CircleDrawer(circle);
     timer.Stop();
     this.Refresh();
 }
Esempio n. 2
0
        public Game(int width, int height)
        {
            this.Width   = width;
            this.Height  = height;
            circleDrawer = new CircleDrawer(circle);

            setupInputListeners();
            setupCanvas();

            this.Load += new EventHandler(this.OnLoad);
        }