CHIP-8 Retro Game Emulator for PineTime
#1
Sharing a quick fun diversion that I coded on PineTime within a day... PineTime now runs CHIP-8 retro games! Here are the videos...

https://youtu.be/Bj9-vjEBBAk

https://youtu.be/rP0ZQ0bL8H8

More info about CHIP-8...

http://www.multigesture.net/articles/how...terpreter/

Whole lot of games available here...

https://github.com/dmatlack/chip8/tree/master/roms

I used an existing CHIP-8 Emulator for Rust...

https://github.com/YushiOMOTE/libchip8

The code I actually wrote is surprisingly little... (What took so long to get it right? Tracking down which Rust function was taking too much stack space)

https://github.com/lupyuen/pinetime-rust...c/chip8.rs

Thinking of using the accelerometer to control the game... tilt your watch up / down / left / right to control the player.... will this be playable? Hmmm...

I have some ideas how to optimise the rendering (e.g. batching of pixels into blocks). But this has been a really rewarding exercise on PineTime... All it takes is a few lines of Rust code to run games on PineTime! :-)

How about we take some retro games and turn them into PineTime Watch Faces?
  Reply


Messages In This Thread
CHIP-8 Retro Game Emulator for PineTime - by lupyuen - 02-19-2020, 06:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Heart wasp-os: MicroPython for PineTime! danielt 94 33,330 01-17-2021, 05:00 PM
Last Post: pagesix1536
  Star Trek computer themed wasp-os on PineTime graynada 13 3,342 12-14-2020, 07:10 PM
Last Post: tllim
  Update bootlogo and pinetime-app with OTA/DFU lookin 3 578 11-25-2020, 04:51 PM
Last Post: lookin
  PineTime Simulation Feature gjoyet 3 517 11-15-2020, 11:42 AM
Last Post: gjoyet
  Pinetime and P8 Integration testing framework maiden 7 1,541 10-23-2020, 03:25 PM
Last Post: maiden
  Article: Create Your Own PineTime Watch Face in Rust... And Publish on crates.io lupyuen 2 747 10-18-2020, 09:24 PM
Last Post: lupyuen
  Article: Bluetooth Time Sync and LVGL on PineTime Mynewt lupyuen 0 410 10-15-2020, 05:51 PM
Last Post: lupyuen
  Remote PineTime for flashing and testing firmware remotely lupyuen 5 986 10-06-2020, 12:03 AM
Last Post: lupyuen
  Rust on PineTime at RIOT Summit lupyuen 3 1,211 09-25-2020, 05:05 PM
Last Post: lupyuen
  Article: Preview PineTime Watch Faces in your Web Browser with WebAssembly lupyuen 1 817 09-13-2020, 02:09 PM
Last Post: VMMainFrame

Forum Jump:


Users browsing this thread: 1 Guest(s)