void InitializingComponents() { CameraMgr.Init(Game.ScreenCenter, Game.ScreenCenter); ScorePointsSystem.Init(); ScorePointsSystem.LoadRecordScore(); EnemyMgr.Init(); BulletMgr.Init(); background = new Background("background"); Player = new Player(new Vector2(Game.ScreenCenter.X, 620)); }
public override void Update() { ScorePointsSystem.GameTimeUpdate(Game.window.deltaTime); EnemyMgr.Update(); if (IsPlayerAlive) { AudioMgr.Update("Game_ST"); } UpdateMgr.Update(); PhysicsMgr.Update(); PhysicsMgr.CheckCollision(); CameraMgr.Update(); }
public override void OnDie() { base.OnDie(); EnemyMgr.RemoveEnemy(this); ScorePointsSystem.IncreaseScore(scoreValue * scoreMultiply); }