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!
  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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Pinetime backlight current. TT-392 2 163 03-11-2020, 09:57 AM
Last Post: TT-392
Heart wasp-os: MicroPython for PineTime! danielt 13 1,074 03-07-2020, 01:39 PM
Last Post: danielt
  Create PineTime Watch Apps with Visual Rust lupyuen 0 133 02-19-2020, 02:50 AM
Last Post: lupyuen
  wasp-bootloader: a robust SoftDevice bootloader for PineTime danielt 0 275 02-12-2020, 04:58 AM
Last Post: danielt
  Live Debug of RIOT-OS on PineTime lupyuen 3 245 02-11-2020, 06:33 AM
Last Post: wibble
Lightbulb PineTime Hermes Firmware + Companion App dejvino 5 530 02-01-2020, 03:42 PM
Last Post: dejvino
  PineTime display and micropython danielt 13 759 01-23-2020, 09:11 AM
Last Post: danielt
  PineTime Debugger is now available lupyuen 0 167 01-22-2020, 03:24 AM
Last Post: lupyuen
  Create a Stub for PineTime using NRF52-DK JF002 8 462 01-08-2020, 09:06 AM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)