Beispiel #1
0
 /// <summary>
 /// This method starts the game cycle.
 /// </summary>
 public static void Main()
 {
     using (XnaBasics game = new XnaBasics())
     {
         game.Run();
     }
 }
 /// <summary>
 /// This method starts the game cycle.
 /// </summary>
 public static void Main()
 {
     using (XnaBasics game = new XnaBasics())
     {
         game.Run();
     }
 }
Beispiel #3
0
 public ScreenDisplay(Vector2 position, XnaBasics game, SpriteBatch spriteBatch, String label, UserDisplay.StateManipDel onInvoke) : base(game)
 {
     this.screenRect  = new Rectangle((int)position.X, (int)position.Y, DISPWIDTH, DISPHEIGHT);
     this.recordRect  = new Rectangle(screenRect.Left, screenRect.Bottom, screenRect.Width, 20);
     this.spriteBatch = spriteBatch;
     this.invocation  = onInvoke;
     this.label       = label;
 }
 public UserDisplay(XnaBasics game, SpriteBatch spriteBatch) : base(game)
 {
     this.spriteBatch = spriteBatch;
     SummonKey        = spawnKey;
     MoveLeft         = moveLeft;
     MoveRight        = moveRight;
     MoveUp           = moveUp;
     MoveDown         = moveDown;
     TwistKey         = twistKey;
     TurnKey          = turnKey;
     OpenDoor         = openDoor;
 }