Coding games on an SPI LCD and touchscreen needs a little bit of thought. Writing to the screen takes time so you need to minimise both the size and the update frequency of moving objects on the LCD panel.
In this video I'll show you how to code a breakout (Arkanoid) game using the touch panel to control the player bat and the LCD for the screen display.
You can easily get hold of one of these touchscreens at Amazon or eBay.
Amazon: https://amzn.to/39ZyWMD
eBay : http://ebay.us/sOCSyI
Make sure you check out the project page on my website at
https://bytesnbits.co.uk/arduino-brea...
You'll be able to download the full source code for this project and get some extra info on how it's built.
Don't forget to have a look at the full series of ILI9341 SPI LCD touchscreen videos.
• ILI9341 SPI LCD touchscreen for Arduino