TinyCircuits Forum

TinyCircuits Products => Thumby => Topic started by: brian2 on October 03, 2021, 05:18:10 AM

Title: 'Mazogs' game scaled for Thumby Screen
Post by: brian2 on October 03, 2021, 05:18:10 AM
For fun I scaled down the graphics on an Arduboy game I did a while back to see how it would work at 72x40 instead of Arduboy 128x64:

https://www.youtube.com/watch?v=D91GBfW0_5Y

No idea what it will look like on a 0.42 inch screen or how it would play on a tiny D-pad though!
Title: Re: 'Mazogs' game scaled for Thumby Screen
Post by: lennevia on October 04, 2021, 06:37:36 PM
This looks awesome! Excited to see what it would look like on a Thumby screen!
Title: Re: 'Mazogs' game scaled for Thumby Screen
Post by: Ben Rose on October 04, 2021, 07:08:17 PM
Very cool! If you run it at 72x40 on your Arduboy, it will be pretty close to what you'd see on a Thumby, except about 25% larger pixels still! Keep us updated- not sure if the scaling is a mockup or functional, maybe we could test the code here?

Thanks,
Ben
Title: Re: 'Mazogs' game scaled for Thumby Screen
Post by: brian2 on October 05, 2021, 06:03:28 AM
Thanks for the feedback! it was mostly proof-of-concept as an idea to see if it would roughly work, which it does. It's a fully runnig Linux demo just now, I'll attach a zip of  the source here since it's so small anyway, even with the graphics development stuff included.

<technical blah blah>
Ideally next step is getting it running on Arduboy properly as a bridge to Thumby since the display controllers and memory-map are so similar, but it's tricky since tricks were required to get the game to work properly on Arduboy, which only has 2.5K RAM to play with, the Thumby version needs to use a screen buffer which the Arduboy version does not, so not sure if the extra 360 bytes RAM is available to play with... will try it anyway I guess. ( Drawing the map tiles at 3x3 is a PITA at byte-scale compared to 4x4.)
</technical blah blah>
Title: Re: 'Mazogs' game scaled for Thumby Screen
Post by: brian2 on October 10, 2021, 06:56:48 AM
Ok, so I've  got the 'Thumby' version of Mazogs running in the top-left quarter of an Arduboy now, lol. It's tiny but playable... (as I understand it, it will shrink another 25% when transferred to a Thumby 0.42 inch screen though,  woah).

Anyway, porting to Thumby now should just involve switching the SPI calls to I2C, updating the port numbers and probably using a different random generator, but apart from that it should 'just work' in theory.... I'll attempt it, but  only once a) there's some Arduino IDE demo code for Thumby out there (hello world style with button reads) , or b) I've got a thumby. (early bird).
Title: Re: 'Mazogs' game scaled for Thumby Screen
Post by: brian2 on January 14, 2022, 06:42:04 AM
For completeness sake:

https://youtu.be/A14MSnP2yJ8

It's more proof-of-concept than anything, it works but my eyes are not good enough to play it  ;D