For drawing the graphics for the game itself, I decided to use bitmaptools to make the code easier to convert. The code I was porting from used a bitblt
function (pronounced bit blit and is short for BIT BLock Transfer), and the equivalent bitmaptools function is blit(). Essentially, this function copies all or part of a bitmap and draws it onto another, kind of like copying and pasting. The reason I went with this is that it was much easier to optimize and ran faster.
For the winning animation, I also used rotozoom(). This function allows scaling and rotating the image in a single operation. However, for this game, only the scaling aspect was used. To learn more about how this was used, be sure to check out the Animations page of this guide.
bitmaptools also has quite a few additional functions that can be useful in creating games. For the rest of the game, I ended up going with displayio to display the background, messages, and loading info box. This was because it allowed me to easily dismiss the dialogs without needing to redraw the display.
Page last edited April 09, 2025
Text editor powered by tinymce.