This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
NFRev1/NothinFancy/src/IntroGamestate.cpp
Grayson Riffe (Laptop) ea9c4054bd Tested state changing
2021-08-18 14:26:12 -05:00

26 lines
439 B
C++

#include "IntroGamestate.h"
#include "Application.h"
namespace nf {
void IntroGamestate::onEnter(Application* app) {
Log("Intro onEnter!");
m_app = app;
counter = 0;
}
void IntroGamestate::onExit() {
Log("Intro onExit!");
}
void IntroGamestate::update() {
Log("Intro update!");
if (counter >= 120) {
m_app->changeState("Main State");
}
counter++;
}
void IntroGamestate::render() {
Log("Intro render!");
}
}