public override void BuildLevel() { var temp = new Floor(TheGame, TheSpriteBatch, new Vector2(40, 550), new Vector2(400, 40)); temp.LoadContent(); objectManager.RegisterObject(temp); collisionManager.RegisterObject(temp); temp = new Floor(TheGame, TheSpriteBatch, new Vector2(0, 190), new Vector2(700, 40)); temp.LoadContent(); objectManager.RegisterObject(temp); collisionManager.RegisterObject(temp); temp = new Floor(TheGame, TheSpriteBatch, new Vector2(250, 380), new Vector2(630, 40)); temp.LoadContent(); objectManager.RegisterObject(temp); collisionManager.RegisterObject(temp); var tempWall = new Wall(TheGame, TheSpriteBatch, new Vector2(850, 200), new Vector2(40, 700)); tempWall.LoadContent(); objectManager.RegisterObject(tempWall); collisionManager.RegisterObject(tempWall); tempWall = new Wall(TheGame, TheSpriteBatch, new Vector2(200, 750), new Vector2(40, 300)); tempWall.LoadContent(); objectManager.RegisterObject(tempWall); collisionManager.RegisterObject(tempWall); var door = new Door(TheGame, TheSpriteBatch, new Vector2(930, 780)); door.LoadContent(); objectManager.RegisterObject(door); collisionManager.RegisterObject(door); var key = new Key(TheGame, TheSpriteBatch, new Vector2(100, 800)); key.LoadContent(); objectManager.RegisterObject(key); collisionManager.RegisterObject(key); base.BuildLevel(); }
public virtual void BuildLevel() { Floor temp = new Floor(TheGame, TheSpriteBatch, new Vector2(0, 860), new Vector2(1024, 40)); temp.LoadContent(); objectManager.RegisterObject(temp); collisionManager.RegisterObject(temp); temp = new Floor(TheGame, TheSpriteBatch, new Vector2(0, 0), new Vector2(1024, 40)); temp.LoadContent(); objectManager.RegisterObject(temp); collisionManager.RegisterObject(temp); Wall tempWall = new Wall(TheGame, TheSpriteBatch, new Vector2(0, 40), new Vector2(40, 824)); tempWall.LoadContent(); objectManager.RegisterObject(tempWall); collisionManager.RegisterObject(tempWall); tempWall = new Wall(TheGame, TheSpriteBatch, new Vector2(984, 40), new Vector2(40, 824)); tempWall.LoadContent(); objectManager.RegisterObject(tempWall); collisionManager.RegisterObject(tempWall); }