PINE64
CHIP-8 Retro Game Emulator for PineTime - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134)
+--- Forum: Development Discussion on PineTime (https://forum.pine64.org/forumdisplay.php?fid=136)
+--- Thread: CHIP-8 Retro Game Emulator for PineTime (/showthread.php?tid=9233)



CHIP-8 Retro Game Emulator for PineTime - lupyuen - 02-19-2020

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-to-write-an-emulator-chip-8-interpreter/

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-mynewt/blob/chip8/rust/app/src/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?



RE: CHIP-8 Retro Game Emulator for PineTime - danielt - 02-20-2020

Very neat hack!


CHIP-8 Retro Game Emulator for PineTime - lupyuen - 02-20-2020

Blinky can become a really cool Watch Face

https://twitter.com/MisterTechBlog/status/1230686399948451840?s=19

With music...

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

Sent from my Pixel 4 XL using Tapatalk


CHIP-8 Retro Game Emulator for PineTime - lupyuen - 02-21-2020

With experimental colour...

https://twitter.com/MisterTechBlog/status/1230735784757493760?s=19

Sent from my Pixel 4 XL using Tapatalk


CHIP-8 Retro Game Emulator for PineTime - lupyuen - 02-26-2020

Rendered on a curved surface. Looks better as an animated watch face? Will be writing about this on Medium...

https://twitter.com/MisterTechBlog/status/1232615860264558594?s=19

https://twitter.com/MisterTechBlog/status/1232659235713863681?s=19

Sent from my Pixel 4 XL using Tapatalk


CHIP-8 Retro Game Emulator for PineTime - lupyuen - 02-27-2020

Space Invaders and Blinky with improved rendering...

https://twitter.com/MisterTechBlog/status/1232915874643791872?s=19

https://twitter.com/MisterTechBlog/status/1232895835370708992?s=19

Sent from my Pixel 4 XL using Tapatalk


CHIP-8 Retro Game Emulator for PineTime - lupyuen - 02-27-2020

Touchscreen now emulates buttons...

https://twitter.com/MisterTechBlog/status/1233260180726407169?s=19


Sent from my Pixel 4 XL using Tapatalk


RE: CHIP-8 Retro Game Emulator for PineTime - seclorum - 04-15-2020

This is awesome. Now do PICO-8 .. or LOAD81. Smile