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
  Article: Flutter State Management with Bloc for PineTime Companion App lupyuen 2 102 06-27-2020, 05:26 PM
Last Post: lupyuen
  Article: PineTime doesn't run Linux... But that's OK! lupyuen 0 118 06-18-2020, 05:53 PM
Last Post: lupyuen
  Article: Convert Go to Flutter and Dart for PineTime Companion App lupyuen 0 85 06-17-2020, 09:56 AM
Last Post: lupyuen
Heart wasp-os: MicroPython for PineTime! danielt 43 4,222 06-11-2020, 10:37 AM
Last Post: graynada
  Article: Porting MicroPython and wasp-os to Mynewt on PineTime lupyuen 0 99 06-03-2020, 07:07 PM
Last Post: lupyuen
  Article: Wireless Firmware Update In Action on PineTime lupyuen 0 116 05-20-2020, 06:03 AM
Last Post: lupyuen
  MCUBoot Bootloader for PineTime lupyuen 2 399 05-18-2020, 04:23 PM
Last Post: lupyuen
  Simplified boot flasher for PineTime via PI jlukanc 0 100 05-15-2020, 04:38 PM
Last Post: jlukanc
  PineTime Hypnos endian-albin 0 155 05-10-2020, 02:28 AM
Last Post: endian-albin
  wasp-bootloader: a robust SoftDevice bootloader for PineTime danielt 3 620 04-14-2020, 05:31 AM
Last Post: danielt

Forum Jump:


Users browsing this thread: 1 Guest(s)