@ -75,8 +75,8 @@ void VirusAttack::InitializeLevelData(){
levelData [ stage ] . worldZoom = { 1 , 1 } ;
levelData [ stage ] . worldZoom = { 1 , 1 } ;
levelData [ stage ] . scenario = scenarios [ 0 ] ;
levelData [ stage ] . scenario = scenarios [ 0 ] ;
levelData [ stage ] . levelColor = DARK_RED ;
levelData [ stage ] . levelColor = DARK_RED ;
levelData [ stage ] . size = { 64 , 6 4} ;
levelData [ stage ] . size = { 24 , 2 4} ;
levelData [ stage ] . bgm = Sound : : BOSS2 ;
levelData [ stage ] . bgm = Sound : : GRAVITY ;
levelData [ stage ] . player_starting_resources = { 500 , 500 , 500 , 500 , 500 } ;
levelData [ stage ] . player_starting_resources = { 500 , 500 , 500 , 500 , 500 } ;
levelData [ stage ] . enemy_starting_resources = { 0 , 0 , 0 , 0 , 0 } ;
levelData [ stage ] . enemy_starting_resources = { 0 , 0 , 0 , 0 , 0 } ;
{
{
@ -84,26 +84,8 @@ void VirusAttack::InitializeLevelData(){
std : : vector < CPData > & collectionPoints = levelData [ stage ] . cpPlacement ;
std : : vector < CPData > & collectionPoints = levelData [ stage ] . cpPlacement ;
units . push_back ( { UnitType : : LeftShifter , vf2d { 128 , 128 } , true } ) ;
units . push_back ( { UnitType : : LeftShifter , vf2d { 128 , 128 } , true } ) ;
units . push_back ( { UnitType : : RightShifter , vf2d { 129 , 129 } , true } ) ;
units . push_back ( { UnitType : : LeftShifter , vf2d { 128 , 128 } , true } ) ;
units . push_back ( { UnitType : : BitRestorer , vf2d { 130 , 130 } , true } ) ;
units . push_back ( { UnitType : : RAMBank , vf2d { 320 , 320 } , false } ) ;
units . push_back ( { UnitType : : BitRestorer , vf2d { 130 , 140 } , true } ) ;
units . push_back ( { UnitType : : MemorySwapper , vf2d { 131 , 131 } , true } ) ;
units . push_back ( { UnitType : : Corrupter , vf2d { 132 , 132 } , true } ) ;
units . push_back ( { UnitType : : MemoryAllocator , vf2d { 133 , 133 } , true } ) ;
units . push_back ( { UnitType : : RAMBank , vf2d { 134 , 134 } , true } ) ;
units . push_back ( { UnitType : : MemoryGuard , vf2d { 200 , 134 } , true } ) ;
for ( int i = 0 ; i < 5 ; i + + ) {
collectionPoints . push_back ( { vf2d { 32.f + 48 * i , 32.f } , 0 , MemoryType ( i ) } ) ;
collectionPoints . push_back ( { vf2d { 32.f , 32.f + 48 * i } , - PI / 2 , MemoryType ( i ) } ) ;
}
units . push_back ( { UnitType : : RAMBank , vf2d { 1200 , 1200 } , false } ) ;
units . push_back ( { UnitType : : RightShifter , vf2d { 1260 , 1200 } , false } ) ;
units . push_back ( { UnitType : : RightShifter , vf2d { 360 , 300 } , false } ) ;
units . push_back ( { UnitType : : RightShifter , vf2d { 361 , 300 } , false } ) ;
}
}
}
}
# pragma endregion
# pragma endregion
@ -225,6 +207,8 @@ void VirusAttack::LoadLevel(LevelName level){
}
}
randomBackgroundOffset = { util : : random ( 128 ) , util : : random ( 128 ) } ;
randomBackgroundOffset = { util : : random ( 128 ) , util : : random ( 128 ) } ;
objective = " " ;
}
}
void VirusAttack : : InitializeGUIs ( ) {
void VirusAttack : : InitializeGUIs ( ) {
@ -271,6 +255,7 @@ void VirusAttack::InitializeSounds(){
LoadSound ( Sound : : BOSS1 , " boss1.mp3 " ) ;
LoadSound ( Sound : : BOSS1 , " boss1.mp3 " ) ;
LoadSound ( Sound : : BOSS2 , " boss2.mp3 " ) ;
LoadSound ( Sound : : BOSS2 , " boss2.mp3 " ) ;
LoadSound ( Sound : : VOICEOVER , " voice.mp3 " ) ;
LoadSound ( Sound : : VOICEOVER , " voice.mp3 " ) ;
LoadSound ( Sound : : PING , " ping.mp3 " ) ;
}
}
bool VirusAttack : : UnitCreationClickHandled ( ) {
bool VirusAttack : : UnitCreationClickHandled ( ) {