Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public ControlHandler(KeyboardState kbs, Player plajjer)
 {
     keyboardState = kbs;
     player = plajjer;
 }