Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Exemplo n.º 2
0
 public Player(Vector2 position, Game1 game)
 {
     this.game = game;
     playerPos = position;
     x = playerPos.X;
     y = playerPos.Y;
     inAir = false;
     verticalVelocity = 20;
     horizontalVelocity = 0;
     playerRect = new Rectangle((int)playerPos.X, (int)playerPos.Y, playerWidth, playerHeight);
     futurePosition = new Rectangle((int)playerPos.X, (int)playerPos.Y, playerWidth, playerHeight);
 }