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
#2
Very neat hack!
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
  Reply
#3
Blinky can become a really cool Watch Face

https://twitter.com/MisterTechBlog/statu...51840?s=19

With music...

https://vt.tiktok.com/29NQd1/

Sent from my Pixel 4 XL using Tapatalk
  Reply
#4
With experimental colour...

https://twitter.com/MisterTechBlog/statu...93760?s=19

Sent from my Pixel 4 XL using Tapatalk
  Reply
#5
Rendered on a curved surface. Looks better as an animated watch face? Will be writing about this on Medium...

https://twitter.com/MisterTechBlog/statu...58594?s=19

https://twitter.com/MisterTechBlog/statu...63681?s=19

Sent from my Pixel 4 XL using Tapatalk
  Reply
#6
Space Invaders and Blinky with improved rendering...

https://twitter.com/MisterTechBlog/statu...91872?s=19

https://twitter.com/MisterTechBlog/statu...08992?s=19

Sent from my Pixel 4 XL using Tapatalk
  Reply
#7
Touchscreen now emulates buttons...

https://twitter.com/MisterTechBlog/statu...07169?s=19


Sent from my Pixel 4 XL using Tapatalk
  Reply
#8
This is awesome. Now do PICO-8 .. or LOAD81. Smile
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Update bootlogo and pinetime-app with OTA/DFU lookin 3 190 11-25-2020, 04:51 PM
Last Post: lookin
Heart wasp-os: MicroPython for PineTime! danielt 84 22,590 11-22-2020, 11:55 AM
Last Post: danielt
  PineTime Simulation Feature gjoyet 3 225 11-15-2020, 11:42 AM
Last Post: gjoyet
  Star Trek computer themed wasp-os on PineTime graynada 11 1,819 10-30-2020, 01:00 PM
Last Post: graynada
  Pinetime and P8 Integration testing framework maiden 7 986 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 441 10-18-2020, 09:24 PM
Last Post: lupyuen
  Article: Bluetooth Time Sync and LVGL on PineTime Mynewt lupyuen 0 258 10-15-2020, 05:51 PM
Last Post: lupyuen
  Remote PineTime for flashing and testing firmware remotely lupyuen 5 648 10-06-2020, 12:03 AM
Last Post: lupyuen
  Rust on PineTime at RIOT Summit lupyuen 3 881 09-25-2020, 05:05 PM
Last Post: lupyuen
  Article: Preview PineTime Watch Faces in your Web Browser with WebAssembly lupyuen 1 584 09-13-2020, 02:09 PM
Last Post: VMMainFrame

Forum Jump:


Users browsing this thread: 1 Guest(s)