hello guys i have to make a simple game project , i not know game programming , any body help me where to start game programming

Dani AI

Generated

For 's Windows 2D project, the priority is narrowing scope. As and asked, clarify whether this is coursework or self-study, how much time is available, and one core mechanic to implement. Choose a single, well-bounded idea (Pong, Breakout, Snake, a single-screen shooter) and treat extras as future polish.

A practical C++ workflow: pick a Windows IDE (for example Visual Studio Community or Code::Blocks) and a small framework or engine to handle windowing, input and 2D rendering. Work iteratively: get a window open and draw simple shapes, wire up keyboard input, add player movement, implement simple collisions, then add scoring and a basic state machine (menu / play / game over). Use placeholder art while mechanics are refined. Keep commits small and test after each change to avoid long debugging sessions.

init();
while (running) {
  pollInput();
  update(fixedDeltaTime);
  render();
}
shutdown();

A short milestone plan helps: Day 1 — project setup, window and input; Day 2 — player movement and collisions; Day 3 — enemies/levels and scoring; Day 4 — UI, sound, polish and testing. Troubleshooting notes: prefer axis-aligned bounding boxes for simple collision, avoid mixing physics with variable timesteps, enable simple debug-draw overlays and logging, and verify asset file paths (working directory issues are common). As and indicated, following compact tutorials and tiny example projects accelerates learning; the main goal is a playable loop completed early, then iterate.

Recommended Answers

All 6 Replies

Why do you "have to make a simple game project"? What type of game? What platform will it be played on?

i have to make a game for window pc .simplest 2D game

So what have you got? Games are not my specialty but you are being so vague that you will have a very hard time getting anyone to help. Plus, this seems like it's a school project, for sure you're not going to get someone from this awesome forum to do your homework for you.

Haha, you are right Stuugie, but i will suggest him a basic GLBasic Project if you really want to know game programming and its logic, then GlBasic will assist you to know all the basic concepts!
Regards

commented: Good Suggestion +6

sdltutorials.com is a good start.
If you don't like SDL there is SFML-dev.org. Again the tutorials from sdltutorials.com can be used in SFML with minor modifications. :wink:

i have to make a game for window pc .simplest 2D game

Yes, but why? Is this for a homework assignment, or simply for your own interest in the subject? What are the requirements? What kind of game - a Pac-Man style maze game, a Tetris clone, a side-scroller, an Invader game, a Breakout style wall-smasher, or something else entirely? What kind of deadline do you have? Are there requirements for the tools you can use (a specific platform - you said Windows PC, but that could mean a lot of things, including an MS-DOS program running in DosBox - a specific library, a specific compiler)? Are you writing it in Standard C++ with a suitable graphics library, or a dialect such as C++/CLR whic has a default library included? There are still a lot of details missing for us.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.