I am Tookman, a high school student that doesn't have much experience coding games, but I have experience with just general coding, can someone give me the coding to a simple game so that I can study it to understand more about game coding?
Well it really depends on what development environment you wish to get into. Some things out there such as Unity are already made with a game engine while others you will have to script the basic engine.
Basically what a game engine is, is a loop that takes in input, makes changes through some sort of logic then drawing the visual aspects of the game. The easiest way to think of a game, that is a video game, is a real time interactive movie, the basics of the engine is drawing each frame of the movie and having the ability to read input. Which is why frames are one of the big deals with good games
Awesome, it's great to reach for your favorite games, then you at least have a comparative standard that you want to achieve. Tho I myself have not created a platform game and wouldn't be able to give a well structured code for that type of game....
I can however go through step by step with you on how to make an avoider game. Its very simple I have already helped out another user make a similar type game, and they have moved on to different more advanced games since then.