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

38 lines
647 B

#include "Scenario.h"
1 year ago
extern VirusAttack*game;
Scenario::Scenario(){
1 year ago
dialog.SetVisible(false);
}
Scenario::~Scenario(){}
void Scenario::Start(){}
void Scenario::_Update(){
1 year ago
initialWaitTimer=std::max(0.f,initialWaitTimer-game->GetElapsedTime());
Update();
}
void Scenario::_Draw(){
Draw();
}
1 year ago
Stage1::Stage1(){}
1 year ago
Stage1::~Stage1(){}
void Stage1::Start(){
game->unitMetersGreyedOut=true;
game->playerInControl=false;
}
void Stage1::Update(){
1 year ago
switch(state){
case 0:{
1 year ago
dialog.Initialize("Hello Hacker, thank you for taking on this request for me.",{24,64},"",&game->IMAGES[SEGMENT_BAR],{378,28});
1 year ago
}break;
}
}
void Stage1::Draw(){
}