Pokittris is the first ‘Tetris’ game for Pokitto. It is based on the code for ‘Tiny Bloks’ by myself for the Arduboy.
This is my second attempt at a tetris game, so please don’t be too harsh with the comments.
Please enjoy.
to hear the bg music in the simulator, copy pokittris.raw to the POKITTO_SIM\bin\Debug folder (I assume there’s a better way to do that, but I don’t know it).
As always, all comments welcome. and @Jonne - This one will probably run on hardware, nothing stupid going on that I can think of.
[edit]
I just noticed I forgot to clear the score/lines/screen after game over, that’ll be done in the next upload.
I would however make the background bricks brighter, or even only as outlines, because the dark bricks on the lower half might make it a bit harder to play on a small screen.
Alternatively, you can always make a call for some unobtrusive pixel art to be used as backgrounds.
Looks really nice with colors! Still, I understand that a monochrome palette has appeal to the GB fans.
Edit: There could be a selectable palette, and that could be saved to eeprom. Do we have API for eeprom, and some system so that we are not using the same slots with different games?
nope, easing.h is stolen from jquery. I changed it a tiny bit to be C rather than javascript, but other than that I did nothing to it. As for the colour, sure add whatever you want. There is a range of palettes already in the source, I do intend of adding a little effect just to integrate the colours into the gameplay a little more.
You have a color TFT and you want to make it look like a monochrome LCD? Yea, I guess it makes sense! No seriously: I am going to start constructing the games page within two days and Pokittris is a really good advert for Pokitto - but better when in color, IMHO.
I know what you mean, you want to show off the Pokitto’s colour abilities because that’s one of its main selling points that sets it apart from certain similar devices.
But I must admit, retroism and nostalgia can sell well too.
Personally I think multiple colour palettes is the best route to go, since that gives you an extra feature to advertise:
“Pokittris, featuring multiple palettes: Technicolour and Retro”
(Please excuse the badly put together image, it was the best I could do on short notice.)
Somehow I’m not surprised.
Changing the state of variables mid-expression and code littered with magic numbers is the sort of thing I’d expect from a Javascript library.
Now I have a mindless urge to do exactly on hardware what you have shown in the picture, ie. graphics output split in the middle, with palette being flipped in between.
Once you play bad enough for the tiles to reach half way up the screen, the palette will turn red depending on how full the top half of the screen is.
Also, added the game over gfx. @jonne does it run on hardware?