public void resetGame(bool loser) { if (loser) { Engine.Engine.getInst().clearEntities(); Engine.Engine.getInst().addEntity(Player.createComponents()); } initBricks(); Engine.Engine.getInst().addEntity(Ball.createComponents()); ballsInPlay++; }
//private FPSCounter fpsCounter; /*------------------------------------- * PUBLIC METHODS *-----------------------------------*/ public override void init() { Engine.Engine.getInst().managers.Add(new PhysicsManager()); Engine.Engine.getInst().managers.Add(new RenderManager(new SpriteBatch(Engine.Engine.getInst().GraphicsDevice))); Engine.Engine.getInst().managers.Add(new SceneManager()); Engine.Engine.getInst().managers.Add(new InputMananager()); Engine.Engine.getInst().managers.Add(new ParticleManager()); Engine.Engine.getInst().addEntity(Player.createComponents()); initBricks(); Engine.Engine.getInst().addEntity(Ball.createComponents()); ballsInPlay++; //fpsCounter = new FPSCounter(); }