Awesome
ESPboy_little_game_engine
LGE is a fantasy console for making, sharing and playing tiny games and other computer programs. You can make you game or program using online compiler and run compiled binary on portable ESPboy console thouse feels like a regular console. Check few, colored, nostalgic LGE games from the package, by uploading them to SPIFFS.
Games sources: https://github.com/corax89/game_engine_for_esp8266_with_compiler/tree/master/example
Hackaday: https://hackaday.io/project/164205-esp-little-game-engine
Article: https://hackaday.com/2019/03/11/esp8266-gets-its-game-on-with-open-source-engine/
User Guide: https://corax89.github.io/esp8266Game/user_guide/index.html
Online ESP-LGE SDK, compiler, emulator: https://corax89.github.io/esp8266Game/index.html
How to compile for ESPboy:
- Install Arduino IDE
- Clone and download "ESPboy_little_game_engine" and rename the folder "ESPboy_little_game_engine-master" to "ESPboy_little_game_engine"
- Unpack two libraries (a_coos and TFT_eSPI) from file "libraries.7z" to the Arduino/Libraries folder
- Change settings in file «User_Setup.h» of TFT_eSPI library
- 50 #define TFT_WIDTH 128
- 53 #define TFT_HEIGHT 128
- 67 #define ST7735_GREENTAB3
- 149 #define TFT_CS -1
- 150 #define TFT_DC PIN_D8
- 152 #define TFT_RST -1
- 224 #define LOAD_GLCD
- 255 #define SPI_FREQUENCY 27000000
- Open "esp8266_game_engine.ino" in Arduino IDE and compile it for "Lolin/WeMos D1 mini ESP8266" board
- Upload the games to your ESPboy SPIFFS
- Enjoy )
How to upload games to SPIFFS: https://www.youtube.com/watch?v=25eLIdLKgHs
How to recompile CHIP8 games:
- Use source file https://github.com/corax89/game_engine_for_esp8266_with_compiler/blob/master/example/chip8.c
- Put your CHIP8 bit code to char "Memory[3583] = {};" at string ¹58
- Check buttons remap at strings ¹9-20
- Compile this .c to .bin with "Online ESP-LGE SDK, compiler, emulator" https://corax89.github.io/esp8266Game/index.html
- Upload .bit to your ESPboy SPIFFS
Games in package:
- Original ESP-LGE by Igor: FourInaRow, NinjaEscape, 1916, WormBlast, ESProgue, Galaxies, CityRunner, Memories, MarsAttack, Columns, Mines, Breackout, TowerDefense, ...
esp8266_little_game_engine
Used ili9341. Contains a virtual machine running games from RAM.
Used library:
https://github.com/akouz/a_coos
https://github.com/Bodmer/TFT_eSPI
Online emulator with compiler:
https://corax89.github.io/esp8266Game/index.html
Video: