Refactors the main game loop to support both: - Desktop: traditional blocking while(running) loop - Browser: emscripten_set_main_loop_arg() callback (build-time conditional) Changes: - Add doFrame() method containing single-frame update logic - Add isRunning() accessor for Emscripten callback - run() now conditionally uses #ifdef __EMSCRIPTEN__ for loop selection - Add emscriptenMainLoopCallback() static function This is a prerequisite for Emscripten builds - browsers require cooperative multitasking with callback-based frame updates. Both normal and headless builds verified working. Contributes to #158 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cookbook | ||
| stubs | ||
| templates | ||
| tutorials | ||
| api_reference_complete.html | ||
| API_REFERENCE_COMPLETE.md | ||
| api_reference_dynamic.html | ||
| API_REFERENCE_DYNAMIC.md | ||
| EMSCRIPTEN_RESEARCH.md | ||
| mcrfpy.3 | ||
| PROCEDURAL_GENERATION_SPEC.md | ||