You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
VirusAttack/olcCodeJam2023Entry/Scenario.cpp

101 lines
1.5 KiB

#include "Scenario.h"
#include "VirusAttack.h"
extern VirusAttack*game;
Scenario::Scenario(){}
Scenario::~Scenario(){};
void Scenario::_Start(){
state=0;
camera=utils::Camera2D{game->gametv.GetWorldOffset(),game->currentLevel->cameraStart};
camera.SetLazyFollowRate(2);
camera.SetMode(utils::Camera2D::Mode::LazyFollow);
targetPos={96,96};
box.SetVisible(false);
initialWaitTime=3;
camera.SetTarget(targetPos);
Start();
}
void Scenario::Start(){};
void Scenario::_Update(){
initialWaitTime=std::max(0.f,initialWaitTime-game->GetElapsedTime());
if(initialWaitTime==0){
Update();
}
};
void Scenario::Update(){};
Stage1::Stage1(){}
void Stage1::Start(){
game->unitMetersGreyedOut=true;
game->playerInControl=false;
};
void Stage1::Update(){
switch(state){
case 0:{
}break;
}
};
Stage2::Stage2(){}
void Stage2::Start(){};
void Stage2::Update(){
switch(state){
case 0:{
}break;
}
};
Stage3::Stage3(){}
void Stage3::Start(){};
void Stage3::Update(){
switch(state){
case 0:{
}break;
}
};
Stage4::Stage4(){}
void Stage4::Start(){};
void Stage4::Update(){
switch(state){
case 0:{
}break;
}
};
Stage5::Stage5(){}
void Stage5::Start(){};
void Stage5::Update(){
switch(state){
case 0:{
}break;
}
};
Stage6::Stage6(){}
void Stage6::Start(){};
void Stage6::Update(){
switch(state){
case 0:{
}break;
}
};
Stage7::Stage7(){}
void Stage7::Start(){};
void Stage7::Update(){
switch(state){
case 0:{
}break;
}
};
Stage8::Stage8(){}
void Stage8::Start(){};
void Stage8::Update(){
switch(state){
case 0:{
}break;
}
};