Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how do I make a game

+63 votes
asked Dec 11, 2024 by Braden Beckstead (220 points)

7 Answers

+5 votes
answered Dec 15, 2024 by abhiram rangavajhala (810 points)
Yo. I need more info on what game u want to make.
commented Dec 17, 2024 by Ethan Tran (180 points)
also, if it involves pygame, there no compiler in here to do a pygame.

go to https://trinket.io/features/pygame
commented Mar 15, 2025 by PRAISY A (340 points)
reshown Mar 15, 2025 by Admin
More of racing car games
+1 vote
answered Dec 17, 2024 by Azizbek Valijonov (170 points)
Use from while function and random so you need find the value from something to something
+3 votes
answered Feb 24, 2025 by TransCode (330 points)
When making a game in Python 3, I would recommend using a module like Pygame, (which I do not believe is compatible with GDB Online yet).

One of the best ways to format the code of a game is by starting with defining functions for things like player movement, gravity, setting up the game, and one for what will happen each tick. Then, code the parts that don't need their own function, because they only happen once. Then, finally, I would make loop that runs the game (also known as a game loop), by repeatedly calling the function(s) that would cause the game to run as intended. I would recommend using a "while true" loop for the game loop.

I hope this helps, have a very wonderful day, -TransCode
+1 vote
answered Mar 13, 2025 by gangeshks (160 points)
first you learn bascis about python then you apply with small project
+3 votes
answered Mar 20, 2025 by Aishwarya11 (200 points)
  1. Stencyl. If have no gaming experience, or if you want to make puzzle or side-scroller games, then check out Stencyl. ...
  2. Game Maker Studio. If you're new to game making, check out Game Maker Studio...
  3. Unity...
  4. Unreal...
  5. RPG Maker..
0 votes
answered Aug 23, 2025 by githubway2us (180 points)
0 votes
answered Apr 10 by Jonah1004 (300 points)
Literally can’t make anything through a window still possible tho but good luck with 7000+ lines of code
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...