Пример #1
0
 public override void Initilize()
 {
     base.Initilize();
     camera = new Camera();
     cursor = new Cursor();
     background = new Background();
     background.Initialize();
 }
Пример #2
0
        public override void Initilize()
        {
            base.Initilize();
            camera = new Camera();

            Background b = new Background();

            player = new Player(Game1.CenterOrigin);
            player.CurrentState = new PlayerIdleState();
            player.CurrentStrategy = new PlayerKeyboardStrategy();
            player.PlayerIndex = PlayerIndex.Two;
            player.SecondaryWeapon = new GrenadeThrower();

            this.EntityManager.AddEntity(b);
            this.EntityManager.AddEntity(player);
            this.EntityManager.AddEntity(spawner);

            cameraEntities.Add(player);
            cameraEntities.Add(player.Aim);
        }