Ever since I was a kid, I had an idea for a game in which a guy is trapped in a castle with tons of rooms, and the object of the game was to exit the door in each room. It’s kind of like a platform game, but with puzzle elements. This is a proof-of-concept to see if I could actually program such a game, and here it is. Left/right moves guy, A is for jumping. Right now, there’s no enemy or door to another room, so there’s not really that much to do so far.
I was too busy to make any real progress recently, but I did manage to rename some variables and even remove unused ones. I guess I’ll just replace existing paragraphs of code with your simplified ones, because I admit I managed to screw things up in some places.