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