Exemplo n.º 1
0
 public void Update(GameTime gameTime, Ship ship1)
 {
     centre = new Vector2(ship1.Position.X + (ship1.Size.X / 2) - 400, ship1.Position.Y + (ship1.Size.Y / 2) - 400);
     transform = Matrix.CreateScale(new Vector3(1, 1, 0)) *
         Matrix.CreateTranslation(new Vector3(-centre.X, -centre.Y, 0));
 }
Exemplo n.º 2
0
 private Ship CreateShipObject(object param)
 {
     Texture2D ship = Content.Load<Texture2D>(@"Models\\Ship01");
     Ship result = new Ship(ship);
     return result;
 }