Ejemplo n.º 1
0
        void Page_Loaded(object sender, RoutedEventArgs e)
        {
            this.Focus();

            Page.Keyhandler = new KeyHandler();
            Page.Keyhandler.Attach(this);

            //Page.MouseHandler = new MouseHandler();
            //Page.MouseHandler.Attach(this);

            Page.SceneLoop = new SceneLoop();
            Page.SceneLoop.Attach(this.mainCanvas);

            view = new TankView();
            view.Ended += new EventHandler(view_Ended);

            this.mainCanvas.Children.Add(view);
        }
Ejemplo n.º 2
0
 public SceneLoopEventArgs(SceneLoop game, TimeSpan elapsed)
 {
     this.SceneLoop = game;
     this.ElapsedTime = elapsed;
 }