websim ai is perfect
JBG
414
Posts
8
Followers
7
Following
A member registered Apr 02, 2024 · View creator page →
Creator of
Recent community posts
/* # _____ ____ ___ # | \/ ____| |___| # | | | \ | | #----------------------------------------------------------------------- # Copyright 2022, tyra - https://github.com/h4570/tyra # Licensed under Apache License 2.0 # Sandro Sobczyński <sandro.sobczynski@gmail.com> */ #include "engine.hpp" namespace Tyra { Engine::Engine() { initAll(false); } Engine::Engine(const EngineOptions& options) { info.writeLogsToFile = options.writeLogsToFile; initAll(options.loadUsbDriver); } Engine::~Engine() {} void Engine::run(Game* t_game) { game = t_game; game->init(); while (true) { realLoop(); } } void Engine::realLoop() { pad.update(); game->loop(); info.update(); } void Engine::initAll(const bool& loadUsbDriver) { srand(time(nullptr)); irx.loadAll(loadUsbDriver, info.writeLogsToFile); renderer.init(); banner.show(&renderer); audio.init(); pad.init(); } } // namespace Tyra
im bored