Exemple #1
0
 protected override void Initialize()
 {
     base.Initialize();
     shotManager = new ShotManager(Content);
     blockManager = new BlockManager(Content, numberOfBots, spriteBatch);
     controlHandler = new ControlHandler(kbs, player);
     halfHeight = (float)(height / 2);
     halfWidth = (float)(width / 2);
     player = new Player(Content, halfHeight, halfWidth);
 }
 public ControlHandler(KeyboardState kbs, Player plajjer)
 {
     keyboardState = kbs;
     player = plajjer;
 }