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
Heart wasp-os: MicroPython for PineTime! danielt 39 2,706 3 hours ago
Last Post: VMMainFrame
  Article: Porting MicroPython and wasp-os to Mynewt on PineTime lupyuen 0 26 06-03-2020, 07:07 PM
Last Post: lupyuen
  Article: Wireless Firmware Update In Action on PineTime lupyuen 0 53 05-20-2020, 06:03 AM
Last Post: lupyuen
  MCUBoot Bootloader for PineTime lupyuen 2 297 05-18-2020, 04:23 PM
Last Post: lupyuen
  Simplified boot flasher for PineTime via PI jlukanc 0 46 05-15-2020, 04:38 PM
Last Post: jlukanc
  PineTime Hypnos endian-albin 0 100 05-10-2020, 02:28 AM
Last Post: endian-albin
  wasp-bootloader: a robust SoftDevice bootloader for PineTime danielt 3 528 04-14-2020, 05:31 AM
Last Post: danielt
  Pinetime backlight current. TT-392 2 246 03-11-2020, 09:57 AM
Last Post: TT-392
  Create PineTime Watch Apps with Visual Rust lupyuen 0 175 02-19-2020, 02:50 AM
Last Post: lupyuen
  Live Debug of RIOT-OS on PineTime lupyuen 3 295 02-11-2020, 06:33 AM
Last Post: wibble

Forum Jump:


Users browsing this thread: 1 Guest(s)