Since you may be a very new beginner, I recommend getting started with some basic block-by-block coding.
DO NOT UNDERESTIMATE THIS TYPE OF PROGRAMMING!
Coding websites such as Scratch can teach you a lot about the fundamentals of programming a game. It shows you each block of code in a visual form, so you can see what it does.