I recently went through learning how to do small games in the retro game environment PICO-8:
PICO-8 is something called a fantasy console, which means it looks and acts like a gaming system from the 80s, but is using modern technology and only pretends to be limited. There are a lot of tutorials for PICO-8 on youtube, and I many books explaining how to get started. It uses the language Lua to do all of its programming, which you can learn online:
There are many other similar retro game systems–which I’ll be reviewing in this corner of the forum–but I started out with PICO-8 in order to explore this genre of game.
You can see these two games at:
These games are not original and just mostly direct copies I made from the book here:
The book is short and takes you through a couple games (the ones I have here), so if you want type in the code and get them working and then try to change them.