示例#1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
示例#2
0
 public void update(GameTime gametime, Game1 ship)
 {
     centre = new Vector2(ship.heroPosition.X + (ship.heroRect.Width / 2) - 512, 0);
     transform = Matrix.CreateScale(new Vector3(1, 1, 0)) * Matrix.CreateTranslation(new Vector3(-centre.X, -centre.Y, 0));
 }