If you want to make a game then you need to know 2 patterns:
-Game loop
-Entity pattern.
Game loop is basically a "while" statement that encapsulate the input, logic of the game and the drawing of the stuffs (In that orde).
I recommend you to check the code of the game Celeste because the code is well organized.
1そうだね プレイ済み