23 lines
447 B
C++
23 lines
447 B
C++
// test.cpp
|
|
|
|
#include "test.hpp"
|
|
#include "core/rendering/video.hpp"
|
|
#include "game/gamecontext.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
Test::Test(GameContext& context)
|
|
: context_(context) {}
|
|
|
|
auto Test::update() -> Scenes {
|
|
static int count = 0;
|
|
std::cout << count++ << "\n";
|
|
if (count == 500) { return Scenes::QUIT; }
|
|
return Scenes::CONTINUE;
|
|
}
|
|
|
|
void Test::render() {
|
|
context_.video->clean(0xAA0000);
|
|
context_.video->present();
|
|
}
|