public GamePlay() { enemyTimer = new Stopwatch(); friendlyTimer = new Stopwatch(); scoreTimer = new Stopwatch(); powerUpTimer = new Stopwatch(); GameObjects.Add(new Background(720, 360)); //TODO: the Y axis position must be randomized //GameObjects.Add(new RedBloodCell(publicStatics.screenSize.Width, publicStatics.screenSize.Height / 2, 10)); //GameObjects.Add(new Pill(publicStatics.screenSize.Width, publicStatics.screenSize.Height / 3, 5)); //this must be in the end GameObjects.Add(new Cursor()); GameObjects.Add(new TopWall(1280 / 2, 50)); GameObjects.Add(new BottomWall(1280 / 2, 670)); GameObjects.Add(new LeftWall(100, 720 / 2)); GameObjects.Add(new RightWall(1280, 100)); GameObjects.Add(new Heart(0, (publicStatics.screenSize.Height / 2) + 60)); spaceShip = new SpaceShip(publicStatics.screenSize.Width / 2, publicStatics.screenSize.Height / 2); publicStatics.curScore = 0; }
public Gun(SpaceShip parent, bool rightGun) : base() { this.parent = parent; this.rightGun = rightGun; }