#include "game/scenes/black_scene.hpp" #include #include "core/rendering/screen.hpp" #include "core/system/event_buffer.hpp" BlackScene::BlackScene() = default; void BlackScene::update(int delta_ms) { elapsed_ms_ += delta_ms; for (const auto& event : EventBuffer::events) { if (event.type == SDL_EVENT_KEY_DOWN && event.key.scancode == SDL_SCANCODE_ESCAPE) { wants_quit_ = true; } } } void BlackScene::render() { Screen::get()->clear(0x00, 0x00, 0x00); Screen::get()->present(); }