Example #1
0
 public void Follow(Hoofdpersonage target)
 {
     Transform = Matrix.CreateTranslation((-target.Positie.X - target.collisionRectangle.Width / 2),  //X
                                          (-target.Positie.Y - target.collisionRectangle.Height / 2), //Y
                                          0) * Matrix.CreateTranslation(
         Game1.ScreenWidth / 2,
         Game1.ScreenHeight / 2,
         0);
 }
Example #2
0
 public override void LoadContent()
 {
     Hoofdpersonage_Texture    = _content.Load <Texture2D>("boef");
     hoofdpersonage            = new Hoofdpersonage(Hoofdpersonage_Texture, new Vector2(500, 0));
     hoofdpersonage._bediening = new BedieningPijltjes();
     level1         = new Level();
     level1.texture = _content.Load <Texture2D>("steenSmall");
     level1.BuildLVL();
     camera = new Camera2D();
 }