Repository navigation
Migrar el motor de Win32 a SDL2 + WebAssembly con despliegue a GitHub Pages - #1
Merged
Merged
Conversation
…con paso fijo - Ventana: envoltorio RAII de SDL2 (foco, cierre, ESC, teclado, raton) - NucleoMotor: bucle de paso fijo (60 Hz), nativo y emscripten_set_main_loop_arg - Interfaz Juego con Pintar(SDL_Renderer*) en lugar de FJ_PintarJuego(HDC) - CMakeLists.txt, demo y pruebas de QA (tests 1.1-1.3 y 2.1) con ASan/UBSan - Se elimina el proyecto de Visual Studio y todo codigo dependiente de Windows Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDoHNnHLFfjfzLvuiqNQv9
…Emscripten y workflow de Pages - Dibujante: Limpiar/Punto/Linea/Rectangulo/RectanguloRelleno/Texto (fuente 5x7 incorporada) - NucleoMotor limpia el back buffer antes de cada Pintar (ConfigMotor::colorFondo) - Ventana::escSale para desactivar ESC en el navegador - Test 3.1 (sin parpadeo, verificado por pixeles con control negativo) y 3.2 (primitivas) - web/minimal_shell.html: canvas centrado, barra de carga y panel de errores - CMakeLists.txt: salida index.html/js/wasm, --shell-file, ALLOW_MEMORY_GROWTH - .github/workflows/deploy.yml: tests nativos, build Emscripten y despliegue a Pages Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDoHNnHLFfjfzLvuiqNQv9
…ta las comillas) - Buscar la etiqueta <canvas> en lugar de id="canvas" con comillas - Validar la cabecera WASM con Python en vez de xxd (no garantizado en el runner) - Esperar a que el servidor responda en lugar de sleep fijo y cerrarlo al terminar Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDoHNnHLFfjfzLvuiqNQv9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumen
Refactoriza el motor para eliminar toda dependencia de Windows y ejecutarlo en escritorio y en el navegador (SDL2 + Emscripten), con despliegue automático a GitHub Pages.
Cambios
src/Ventana.*): SDL2 con RAII; gestión de foco, cierre (SDL_QUIT, botón X, ESC), teclado y ratón.src/NucleoMotor.*): lógica a 60 Hz con paso fijo; bucle nativo oemscripten_set_main_loop_argen web; pausa al perder el foco.src/Dibujante.*): primitivas y texto bitmap 5x7; el motor limpia el fondo en cada frame.CMakeLists.txtunificado,web/minimal_shell.htmly.github/workflows/deploy.yml(tests nativos con ASan/UBSan, build con Emscripten, prueba de integridad HTTP y despliegue).Pruebas
ctest).Antes de hacer merge
Generated by Claude Code