Files
basic1/emulator
Adolfo Reyna 285dffc32e Add Lua scripting support to desktop emulator
- Created emulator-specific lua_game_emulator.cpp using filesystem instead of FatFS
- Created lua_game_loader_emulator.cpp to scan games/lua_examples directory
- Updated CMakeLists.txt to include Lua 5.4 engine and bindings
- Updated to SFML 3.0 API compatibility (event handling, sprite initialization)
- Updated Game class to use public members for Lua bindings
- Updated GameLauncher to use std::function for lambda captures
- Added continuous 60 FPS rendering for smooth display
- Emulator now loads and runs all three example Lua games
2026-02-07 12:14:33 -05:00
..

Emulator for basic1 Game Logic

This folder contains a desktop emulator for the basic1 game, using the same game logic and rendering libraries as the embedded version. The emulator uses SFML for graphics and input, allowing you to test and develop the game on your computer.

Features

  • Uses the same game logic and rendering code as the embedded firmware
  • Emulates touch with mouse clicks
  • Emulates hardware buttons with keyboard keys
  • Runs as a native desktop application (no Pico SDK required)

Build Instructions

  1. Install SFML (https://www.sfml-dev.org/)
  2. Run cmake . && make in this directory
  3. Run ./basic1_emulator

Input Mapping

  • Mouse click: Emulates touch
  • Arrow keys, space, enter: Emulate hardware buttons

Extending

  • Add new features or overlays for debugging
  • Update input mapping as needed

This emulator is independent from the embedded build system.