Time for action – the GameManager module
In the
EffectsManager
module, add theResetEffects()
method to the Public Methods region:Public Sub ResetEffects() _effects.Clear() End Sub
In the
WeaponsManager
module, add theResetWeaponSystems()
method:#Region "Public Methods" Public Sub ResetWeaponSystems CurrentWeaponType = WeaponType.Normal _shots.Clear() _powerUps.Clear() End Sub #End Region
Add a new module called
GameManager
to the Robot Rampage project.Add declarations to the
GameManager
module:#Region "Declarations" Public Score As Integer = 0 Public CurrentWave As Integer = 0 Public BaseTerminalCount As Integer = 8 Public MaxTerminalCount As Integer = 15 Public CurrentTerminalCount As Integer = 8 Public PlayerStartLoc As Vector2 = New Vector2(32, 32) #End Region
Add public methods to the
GameManager
module:#Region "Public Methods" Public Sub StartNewWave() CurrentWave += 1 If CurrentTerminalCount < MaxTerminalCount Then CurrentTerminalCount += 1 End...