Car Game in C++ for Beginners | Easy Console Games Coding Tutorial

Car Game in C++ for Beginners | Easy Console Games Coding Tutorial

Easy and Professional game programming in C++. This video is a time lapse of Console based Simple Car Game Development in C++ using dev cpp compiler.

Send me your coding challenge!

If you have any questions I’ll be glad to answer, please leave a comment on the video.

Thanks for watching
Please click Subscribe button and press Bell Icon

Link to download source code is

423 Comments

  1. How to start the game after i finish the code?

  2. This program is not run and execute , so don't try it ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ๐Ÿ™๐Ÿผ

  3. there is not linux version about this video?

  4. Forgive me, I as a dev myself, I'm finding it hard to catch up with your code.. some comments on it would be helpful.

  5. Hey,
    Can you start making games again. Like you did earlier?

  6. If you're going to make a tutorial like this, you don't have to make a video. This is not a tutorial video. There is no explanation, no comments in the code and the video doesn't demonstrate step-by-step progress.

  7. A very bad tutorial for beginners. You are simply writing code sequentially like a typewriter without mistakes. It makes new programmers think that this is how code is written, like a type writer. No mistakes, you know what to do from beginning. It is not like that. You see a bigger problem, you break it down into smaller problems and solve them one by one and create a solution to bigger problem like that. No actual programmer will code something like this. You could've added some explanation to make it a little better but there is none of that. A horrible tutorial (if it could even be called that).

  8. Le me : imagine myself a programmer after wrting hello world program with 5 errors

  9. sir is code ma error ha ap mari help kar sakatia ha

  10. ะกะฐะพ ะ”ะทะตั†ะฑะธ says:

    Didn't even run the program except at the end. You can immediately see that the code is being written off, or remembered. Mom's programmer XDD

  11. Hey bro it didn't work it bolded on number 36 which says " CONSOLE_CURSOR_INFO lpCURSOR

  12. Bro please help I was using vscode for this code and it's not working. Help.
    Bhai error mai Yeh dikha rha hai :
    game1.cpp:22:41: error: narrowing conversion of '49841' from 'int' to 'char' inside { } [-Wnarrowing].
    Maine file game1 naam se save kiya hai..

  13. Bro liking coding from beginning means for beginners ๐Ÿ˜…๐Ÿ’—

  14. Thank you bhaiya kya aap kucha aur game ka example nhi pta sakte ho kya ๐Ÿ™‚๐Ÿ™‚๐Ÿ™‚๐Ÿ™‚ please please please please

  15. Hเธ„MMเธ„ฤ Mั†ส‚ลคเธ„ฯเธ„ says:

    6 months ago, I wrote my first "Hello world" program in c++, And now I have made many of my own games and now I'm looking for more games like this online. Let's see if I can make and understand this one in one day.

  16. in 1:49 this codes is false in me, " gotoxy(SCREEN_WIDTH,i); …. but WHY?????

  17. Hเธ„MMเธ„ฤ Mั†ส‚ลคเธ„ฯเธ„ says:

    Okay so I copied this code and after understanding it, I noticed some mistakes.
    You lose only when you bump into car 1, car 2 just goes through you. This is because collision function is called for only one car. I made a parameter ind as in other functions and then called collision function twice.
    Second mistake, collision is noticed when enemy car gets completely over our car. the reason is that you have written condition as WIN_WIDTH – 4. I changed it to 7 so you loose as soon as you touch enemy car.

    another change I made is that I also included third car which appears at random times. So two cars are normally being generated at times but at some time, third car is also generated, which makes the game a little harder.

    And another change is that, enemy cars are generated at specific x coordinates which are stored in an array. a random number is used as index.

    Finally some appreciation. It is a very good game and I learned a lot of concepts. I love the concept behind this game and everything about this game is so perfect. Especially I loved how you used global variable. So that you can modify them from any function. I had this know but I never used it because I didn't knew benefits could be this great. Know I will always use these.

    I am also planning to make AI for this game and also google dinasaure game.

  18. Bro how we give +- together ๐Ÿ˜‘

  19. Bhaiya compiler ka nam kya hai aur kaise download karte hai๐Ÿ™

  20. please can release the source code of the classes or structures you used in the game

  21. Sir pls tell how to insert " enter your name" for this pgm pls tell

  22. this code isn't running in visual code studio why

  23. Thanks Brother … I have to submit my project today itself and luckily I found your video ๐Ÿฅฒ Once again THANKS ๐Ÿค—๐Ÿค—

  24. Ma per questo videogame non era possibile programmarlo con Java?

  25. here is it work in Codeblocks? just after running it works?

  26. Why didn't declared in this update scop?

  27. Sir is program ka kode to bta dain kisi trah

  28. Me : scrolling through description to find the code

Leave a Reply

Your email address will not be published.