示例#1
0
文件: Game.cs 项目: kallaben/KeepUp
 private void resetGame()
 {
     circle        = new Circle(100);
     arcMover      = new ArcMover();
     playerPhysics = new PlayerPhysics();
     circleDrawer  = new CircleDrawer(circle);
     timer.Stop();
     this.Refresh();
 }
示例#2
0
文件: Game.cs 项目: kallaben/KeepUp
        public Game(int width, int height)
        {
            this.Width   = width;
            this.Height  = height;
            circleDrawer = new CircleDrawer(circle);

            setupInputListeners();
            setupCanvas();

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