Encapsulates the XNA framework's Game object
상속: Microsoft.Xna.Framework.Game
예제 #1
0
파일: TetrisRogue.cs 프로젝트: vogon/Zeplin
 public TetrisRogue()
 {
     game = new ZeplinGame();
     game.OnLoad += Load;
     game.OnUpdate += Update;
     game.Run();
 }
예제 #2
0
파일: Game1.cs 프로젝트: zumpiez/Zeplin
 public Demo()
 {
     game = new ZeplinGame();
     //game.OnUpdate += DemoUpdateEveryFrame; //optionally inject custom code into the update call
     //game.OnLoad += LoadContent; //optionally inject custom code into the content load
     game.OnUpdate += UpdateImageTest;
     game.OnLoad += LoadImageTest;
     game.Run();
 }
예제 #3
0
 public StateManager(ZeplinGame game)
 {
     stateQueue = new Queue<State>();
     CurrentState = new State(string.Empty, TimeSpan.Zero);
     game.OnUpdate += this.ProcessState;
 }
예제 #4
0
 public StateManager(ZeplinGame game)
 {
     stateQueue = new Queue<State>();
     game.OnUpdate += this.ProcessState;
 }