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

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

ความคิดเห็น • 635

  • @mmrlmn5289
    @mmrlmn5289 4 ปีที่แล้ว +1667

    Me: cout

    • @TempoChannel5
      @TempoChannel5 4 ปีที่แล้ว +173

      #include
      using namespace::std;
      {
      cout

    • @mmrlmn5289
      @mmrlmn5289 4 ปีที่แล้ว +128

      @@TempoChannel5 Where Int Main() ?

    • @TempoChannel5
      @TempoChannel5 4 ปีที่แล้ว +41

      @@mmrlmn5289 sorry im dumb.

    • @mmrlmn5289
      @mmrlmn5289 4 ปีที่แล้ว +27

      @@TempoChannel5 do not talk like that

    • @TempoChannel5
      @TempoChannel5 4 ปีที่แล้ว +15

      @@mmrlmn5289 #include
      using namespace std;
      int Main()
      {
      cout

  • @sirfmgamer5655
    @sirfmgamer5655 4 ปีที่แล้ว +244

    This video alone proves that you have to put in the long hours on this software and really study this code in depth if one is to create great things like this :)

    • @ayanraza3340
      @ayanraza3340 ปีที่แล้ว +4

      It took me almost 8 hours to complete this type of project......

    • @artandcraftwithbt
      @artandcraftwithbt ปีที่แล้ว

      IT WORKED??

    • @Viral_reels..
      @Viral_reels.. ปีที่แล้ว

      Please anyone say me in which compiler this code will execute 😢

    • @artandcraftwithbt
      @artandcraftwithbt ปีที่แล้ว

      @@Viral_reels.. ANY COMPILER U WANT BRO . UNREAL ENGINE C++ COMPILER.

    • @ayanraza3340
      @ayanraza3340 ปีที่แล้ว

      @@artandcraftwithbt Yes!!!

  • @abacaabaca8131
    @abacaabaca8131 3 ปีที่แล้ว +90

    @1:47
    Resolving 2d array to 1d array
    Is important for improving frame rate because you are using nested for loop which means the big o notation for this is x to the power of n i.e grows exponentially.
    Better way is to resolve it to 1D array using the formula y-coordinate of the screen multiplies the total amount of pixels or characters used for the screen console to draw vertically i.e screen width plus coordinate of x considering starting at top left with the conventional (0,0) coordinate.
    Source from olcPixelGameEngine by
    One lone coder

    • @piyushmajumdar7219
      @piyushmajumdar7219 2 ปีที่แล้ว

      gyan ke chode

    • @Viral_reels..
      @Viral_reels.. ปีที่แล้ว

      Please anyone say me in which compiler this code will execute 😢

  • @sohaibahmad71
    @sohaibahmad71 4 ปีที่แล้ว +179

    Man, you worked VERY HARD on this, you deserve more views. Nicely done!

    • @sohaibahmad71
      @sohaibahmad71 4 ปีที่แล้ว +1

      @@crisp_yy hmm, really?

    • @thecube0293
      @thecube0293 3 ปีที่แล้ว +10

      @@crisp_yy maybe he tested it before he did the video and rewrote all the code again for the video!

    • @thecube0293
      @thecube0293 3 ปีที่แล้ว +2

      #include
      using namespace::std;
      int main()
      {
      cout>>”Am I right?”>>endl;
      return: 0;
      }

    • @sohaibahmad71
      @sohaibahmad71 3 ปีที่แล้ว

      @@thecube0293 no one knows

    • @kfdjhnhurjnnbjhu3ip410
      @kfdjhnhurjnnbjhu3ip410 3 ปีที่แล้ว

      @@thecube0293 its >, and no colon on return

  • @MatheeshaPalliyaguruge
    @MatheeshaPalliyaguruge 3 ปีที่แล้ว +194

    this would be much much great if you'd explain every step when ur doing! otherwise great

    • @ishanidey9580
      @ishanidey9580 3 ปีที่แล้ว +3

      yeah that would have been really helpful.

    • @SAQIBALI-km6xi
      @SAQIBALI-km6xi 3 ปีที่แล้ว +2

      Agreed

    • @Mythical_Spectra
      @Mythical_Spectra 3 ปีที่แล้ว +3

      Hey I am a coder and I know most of the c++ things if you ever need help feel free to ask!

    • @inthegallaxy7097
      @inthegallaxy7097 3 ปีที่แล้ว +1

      @@Mythical_Spectra sir what to do when you want to open a output in qbasic but it says in the bottom "c++ compilation failed" .
      Mine is window 7 sir pls help asap 🙏🙏

    • @Mythical_Spectra
      @Mythical_Spectra 2 ปีที่แล้ว +1

      @@inthegallaxy7097 it means the compiling of the code failed try using a different compiler or check the app you might have installed a wrong version if its not any of those issues try updating your windows

  • @adrianojr.mendoza285
    @adrianojr.mendoza285 3 ปีที่แล้ว +69

    Can you make a video or a list explaining every purpose of a certain command?

    • @carinejabali1369
      @carinejabali1369 3 ปีที่แล้ว +22

      btw he said that he will answer the questions and he didnt answer any question lol

    • @ru2979
      @ru2979 2 ปีที่แล้ว

      @@carinejabali1369 so sed ;(

    • @sapiens9732
      @sapiens9732 2 ปีที่แล้ว +1

      no mames coméntalo tu xd

  • @hutch-uu322
    @hutch-uu322 2 ปีที่แล้ว +17

    Congrats man. Starting c++, let's see where I'll be in one year.👨‍💻

    • @ismailaminu9826
      @ismailaminu9826 2 ปีที่แล้ว

      how far have you gone?

    • @hutch-uu322
      @hutch-uu322 2 ปีที่แล้ว +4

      @@ismailaminu9826 progress was good but I had some other stuff so I'm currently working on Python but I'm still doing c++ bit by bit.

    • @joen4287
      @joen4287 2 ปีที่แล้ว

      @@hutch-uu322 Ahh just make sure that u Master only one Programming language
      thats what ive got advised by soo many ppl, i cant even count
      even on youtube they advice this

    • @Vampion
      @Vampion ปีที่แล้ว

      now what are you doing did you do that c++,

    • @hutch-uu322
      @hutch-uu322 ปีที่แล้ว

      @@Vampion I dived into machine learning using python. So c++ not that much at the moment

  • @lenarddistajo5926
    @lenarddistajo5926 4 ปีที่แล้ว +14

    This is so good men. I like the background music also

  • @supremegaming368
    @supremegaming368 ปีที่แล้ว +2

    Music starts at 6:06

  • @mEvEeeee
    @mEvEeeee ปีที่แล้ว +6

    Nice Skills, but it will be more helpful if you explain every step to us so that we can get knowledge. thanks

  • @motivational_dosee
    @motivational_dosee 2 ปีที่แล้ว +6

    Coding part is a reverse ◀️ video of backspacing 😁😁😁
    Good effort 👏

  • @Tng_04
    @Tng_04 ปีที่แล้ว +3

    why does the music only start at 6:05 lol

  • @jqueiroz
    @jqueiroz 3 ปีที่แล้ว +4

    This works for me. Thank you!

  • @-blueskitels-1033
    @-blueskitels-1033 3 ปีที่แล้ว +21

    In my opinion, it would be much better if you would explain what you are doing. I know it would take a lot more work but it would be more understandable and clear.

  • @acamovicdmitar9310
    @acamovicdmitar9310 4 ปีที่แล้ว +63

    i see what you meant by "easy and professional",but maybe the key to a successful tutorial is documentation or commentating- you know,explaining what you're doing?

    • @Mikioshi
      @Mikioshi 3 ปีที่แล้ว +5

      I agree. If meh professor saw my code and I didn't provide any documentation or comment on any part of my code, I'd be in big trouble.

    • @丅-k3r
      @丅-k3r 3 ปีที่แล้ว

      @@Mikioshi what can i do with source code?

    • @abdullahishaq3
      @abdullahishaq3 3 ปีที่แล้ว +1

      @@Mikioshi Yeah Same Condition is here and now I have to check and see the use of every step in this code btw some of the parts and commands, you will understand easily by there name

    • @abdullahishaq3
      @abdullahishaq3 3 ปีที่แล้ว +2

      @@丅-k3r Copy it and enjoy

    • @ishanidey9580
      @ishanidey9580 3 ปีที่แล้ว +2

      @@angulars please post the explanation video.

  • @949shashikant8
    @949shashikant8 3 ปีที่แล้ว +1

    #include
    Using namespace std;
    Int main(){
    Cout

  • @noir66146
    @noir66146 ปีที่แล้ว

    cool stuff.
    nice simple project with just one execution file.
    i'm actually not to sure how I set up pathway directories for external images and such to be added into my programs at the moment. this video kept me busy, thanks.

  • @DGPGamer26
    @DGPGamer26 ปีที่แล้ว +1

    you are probably no longer reading these comments but in case, how do you repeat the while 2 times in a row to get two enemies on the screen instead of one? I am doing a game using some line of codes from your car game, but on the output i will get just one enemy on the screen instead of 2

    • @angulars
      @angulars  3 หลายเดือนก่อน

      Really sorry for the delay. I will soon make an explaination video of Car Game in C++

  • @bojantanasic221
    @bojantanasic221 4 ปีที่แล้ว +5

    A lot of people asking for source code. Just copy what he's doing in the video and you will learn along the way. Don't be lazy pause the video and type it out that one of the best ways to learn. 🙄

    • @islamicshorts.12
      @islamicshorts.12 4 ปีที่แล้ว

      How to write + over _ in line nomber 19

    • @chauhan.739
      @chauhan.739 3 ปีที่แล้ว

      @@islamicshorts.12 ±

  • @uokingsman
    @uokingsman ปีที่แล้ว

    Thx for teaching , learn a lot !

  • @simthy72
    @simthy72 4 ปีที่แล้ว +10

    how to type negative symbol under the positive symbol?

    • @NooR-zp5lf
      @NooR-zp5lf ปีที่แล้ว

      same Q bro😢

  • @hussainktk8411
    @hussainktk8411 4 ปีที่แล้ว +1

    what is (kbhit) in line number 152 ? time 5:07

  • @nikakvinikadze4538
    @nikakvinikadze4538 2 ปีที่แล้ว +4

    i liked it and the part when you explained and not just write code

  • @hirdyanshsharma4349
    @hirdyanshsharma4349 3 ปีที่แล้ว +1

    thank you bro for this wonderful code and one question how did you learn to write such a wonderful code of games please answer.

  • @한진영-o5q
    @한진영-o5q 2 ปีที่แล้ว

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

  • @BK.Vynz.1
    @BK.Vynz.1 2 ปีที่แล้ว +3

    Sir please give the whole program coding in description 😊

    • @leviistrash7361
      @leviistrash7361 2 ปีที่แล้ว +2

      here..
      #include
      #include
      #include
      #include
      #include
      #define SCREEN_WIDTH 90
      #define SCREEN_HEIGHT 26
      #define WIN_WIDTH 70
      using namespace std;

      HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
      COORD CursorPosition;
      int enemyY[3];
      int enemyX[3];
      int enemyFlag[3];
      char car[4][4] = { ' ','�','�',' ',
      '�','�','�','�',
      ' ','�','�',' ',
      '�','�','�','�' };

      int carPos = WIN_WIDTH/2;
      int score = 0;
      void gotoxy(int x, int y){
      CursorPosition.X = x;
      CursorPosition.Y = y;
      SetConsoleCursorPosition(console, CursorPosition);
      }
      void setcursor(bool visible, DWORD size) {
      if(size == 0)
      size = 20;

      CONSOLE_CURSOR_INFO lpCursor;
      lpCursor.bVisible = visible;
      lpCursor.dwSize = size;
      SetConsoleCursorInfo(console,&lpCursor);
      }
      void drawBorder(){
      for(int i=0; i

  • @VibeCheckUniversal
    @VibeCheckUniversal 2 ปีที่แล้ว +1

    Which software are u using???
    And what are you pc specs🙄

  • @Aasheekowdo
    @Aasheekowdo 2 ปีที่แล้ว

    Thank you bhaiya kya aap kucha aur game ka example nhi pta sakte ho kya 🙂🙂🙂🙂 please please please please

  • @electroera5318
    @electroera5318 4 ปีที่แล้ว +5

    I followed this project and it worked fine without errors only is the problem code have some bugs appearing unnecessary asteriks in the console window
    Eased my work
    Thanks

  • @agustinmingute2937
    @agustinmingute2937 3 ปีที่แล้ว

    Sino dito pumunta para maghanap ng basic game para sa project nila ? 🖐️

  • @arjunbhardwaj8233
    @arjunbhardwaj8233 2 ปีที่แล้ว

    Thank You Sir the video really helped.

  • @Hunter-ov6sy
    @Hunter-ov6sy 2 ปีที่แล้ว +1

    Bro liking coding from beginning means for beginners 😅💗

  • @sumedhgamer9943
    @sumedhgamer9943 2 ปีที่แล้ว +1

    6:46 please explain line no. 221 and 222

    • @Erlisch1337
      @Erlisch1337 ปีที่แล้ว

      whats there to explain?

  • @kannanvino5184
    @kannanvino5184 3 ปีที่แล้ว +2

    Bro..how to type ± this symbol in laptop without numpad plz...reply...

  • @georgesbryandhoumbadji8330
    @georgesbryandhoumbadji8330 3 ปีที่แล้ว +1

    Try to learn OOP. That can help you.

  • @parkersmith3727
    @parkersmith3727 2 ปีที่แล้ว +3

    How do you do the plus or minus sign

  • @md.zillurrahman9211
    @md.zillurrahman9211 3 ปีที่แล้ว

    You are real GuRu.. thanks

  • @christorr2199
    @christorr2199 3 ปีที่แล้ว +2

    how do you type this symbol with the plus and the underline
    ?

  • @muzaffarsaleem154
    @muzaffarsaleem154 3 ปีที่แล้ว +1

    how write the +, - sign together in this video.

  • @narendra-mahto7649
    @narendra-mahto7649 2 ปีที่แล้ว +1

    How to I would say u thanks ,I hv no any words sir .....

  • @lucle4076
    @lucle4076 4 ปีที่แล้ว +3

    I am new to c ++ programming. Can I have your code for reference?

    • @yours_azeem0
      @yours_azeem0 2 ปีที่แล้ว

      @@angulars sir i found an error on line 49 why..... in same version i do...

  • @DeveloVooshGWeb
    @DeveloVooshGWeb 2 ปีที่แล้ว

    what's the music at the end

  • @abdulghani9596
    @abdulghani9596 3 ปีที่แล้ว +1

    We can do in visual studio??

  • @Warrior8004
    @Warrior8004 ปีที่แล้ว

    Any online classes?

  • @ArhamKhan05
    @ArhamKhan05 3 ปีที่แล้ว +1

    how can you type so much without a single mistake or error?!

  • @eternexz5037
    @eternexz5037 3 ปีที่แล้ว +1

    Thanks for the code brother

  • @narindersidana2782
    @narindersidana2782 2 ปีที่แล้ว +1

    Bro how to put ± sign on computer

  • @Chrispinerust520
    @Chrispinerust520 2 ปีที่แล้ว +1

    Hwo do you write ±?

  • @poeticbaatein
    @poeticbaatein 3 ปีที่แล้ว +1

    Can you give me c++ class full playlist 🙏

  • @Anonymous-12337
    @Anonymous-12337 2 ปีที่แล้ว

    you earned an subscriber

    • @supergustavs8735
      @supergustavs8735 2 ปีที่แล้ว +1

      #include
      Using namespace std:
      Int Main ( )
      Int sub = 0;
      Cout sub;
      Cout

  • @Nishaverma355
    @Nishaverma355 3 ปีที่แล้ว +1

    Not run programming for turboc3 me

  • @divyasrivastava1488
    @divyasrivastava1488 4 ปีที่แล้ว +5

    It's showing compile time error
    As - syntax error near unexpected token ')'
    please help

  • @designer9137
    @designer9137 2 ปีที่แล้ว +2

    The plus minus symbol = "alt + 241"

  • @kitgary
    @kitgary 2 ปีที่แล้ว +12

    This is "real programming" and what I expect a "real" software engineer do, not just use Pytorch to build a simple model and claim to be an AI engineer!

    • @hydrarl3869
      @hydrarl3869 2 ปีที่แล้ว +5

      A real software engineer should be able to do a hell of a lot more than this

    • @Yengozi
      @Yengozi ปีที่แล้ว

      Ah jeez I’m a freshman and only took Java and about to take C++ but this is really intimidating

  • @saikhot1103
    @saikhot1103 3 ปีที่แล้ว +1

    i just copied this video code and it worked but the car is not visible , what would be the problem

  • @shutters_of_yash
    @shutters_of_yash 3 ปีที่แล้ว +4

    Which software you use for creating the game which compiler or software?

  • @aser789
    @aser789 2 ปีที่แล้ว +1

    Why it say
    1. #include
    Error

  • @spstudio6200
    @spstudio6200 2 ปีที่แล้ว +1

    bro how you add a + under line

  • @thomasfergusan
    @thomasfergusan 2 ปีที่แล้ว +1

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

  • @_Cliche_
    @_Cliche_ 2 ปีที่แล้ว +1

    wait, it said: can not open source file "time.g"
    how can i fix this?

  • @jayeshsharma8101
    @jayeshsharma8101 3 ปีที่แล้ว +4

    Sir how will + and - come together?

  • @GiyuTomiokaTheOneAndOnly
    @GiyuTomiokaTheOneAndOnly 2 ปีที่แล้ว

    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.

  • @pradeepkumar-yg6dj
    @pradeepkumar-yg6dj 4 ปีที่แล้ว +3

    Tutorial also how every part works @angular

  • @JushouaIgnacio
    @JushouaIgnacio ปีที่แล้ว +1

    What specefic compiler should we use for this program sir

  • @sunilreddy2711
    @sunilreddy2711 3 ปีที่แล้ว

    Which compilers ur using

  • @adityayurveda6967
    @adityayurveda6967 3 ปีที่แล้ว +2

    #include
    using namespace std;
    int main () {
    cout

  • @LoL-hv6px
    @LoL-hv6px ปีที่แล้ว

    as a user of html/css (front end) i basically have no idea but that's soo cool

  • @lets_get_makeup.
    @lets_get_makeup. 2 ปีที่แล้ว

    Can u please add voice in ur vdos

  • @dederizkirahmattuloh5912
    @dederizkirahmattuloh5912 2 ปีที่แล้ว +1

    #include
    using namespace std;
    int main () {
    cout

  • @toxicabhishek9316
    @toxicabhishek9316 3 ปีที่แล้ว

    Can u make video of explain every part or code

  • @abdeali1301
    @abdeali1301 3 ปีที่แล้ว +1

    I try this code but ,
    could not convert '& lpCursor' from 'CONSOLE_CURSOR_INFO*' {aka '_CONSOLE_CURSOR_INFO*'} to 'COORD' {aka '_COORD'}
    this error ocuured . pls help me..

    • @razarukhsar8479
      @razarukhsar8479 2 ปีที่แล้ว

      U can try to do on Lpcursor and also u will add consor position.and u will add on one line cursorposition by atteched in LP cursor remind it it's not ipcursor it's Lpcursor

  • @faisalirfan8807
    @faisalirfan8807 2 ปีที่แล้ว +1

    I have written the same code as you still it is showing me bug at line 28

  • @visiononlineschool6985
    @visiononlineschool6985 3 ปีที่แล้ว

    Thanks for your hardworking.. it helped us do it differently...

    • @rjgamingyt221
      @rjgamingyt221 2 ปีที่แล้ว

      Bro does work on turbo c++?

  • @kanijzahera5310
    @kanijzahera5310 3 ปีที่แล้ว +3

    what code is to move player right, left,forward,back in c++ ?
    Please tell me anyone 🙏🙏🙏

  • @MrTASer
    @MrTASer 3 ปีที่แล้ว

    Making Frogger?
    Or a TAS bot program?

  • @GOM_Gaming
    @GOM_Gaming 3 ปีที่แล้ว +1

    I’m the 500 comment and 5000 like

  • @xseenozx3856
    @xseenozx3856 2 ปีที่แล้ว

    bhai comment me pura program pin ker ke chod dete bhala ho jata😂🙂🙃

  • @Ubermensch_DEV
    @Ubermensch_DEV 3 ปีที่แล้ว

    Which software you use

  • @uditsanghvi6571
    @uditsanghvi6571 3 ปีที่แล้ว

    which plateform are used to type code c++ in this video....?//??

  • @BracketSolutions
    @BracketSolutions 2 ปีที่แล้ว

    hope you are fine ! I am making a game using grahics.h header file. Can I use switch statement in the same program ....? how? it does not respond when i use switch statement...

  • @viditwanjari666
    @viditwanjari666 2 ปีที่แล้ว +1

    can i run it on vs code

  • @BamesMyZ
    @BamesMyZ 3 ปีที่แล้ว +1

    I: print("Hello, World!")

  • @ranjanrohillarajput2321
    @ranjanrohillarajput2321 ปีที่แล้ว

    Sir game mein iostream: No such File or Directory Compilation Terminated aa raha hai?

  • @jeetbhatt5986
    @jeetbhatt5986 3 ปีที่แล้ว +3

    Please tell me
    Why we took
    1. enemyY[3]
    2.enemyX
    Emenyflag
    And how collision works

  • @YScript
    @YScript ปีที่แล้ว

    Okay, now do the same, but for Unix machines pls

  • @dogoodhavegood229
    @dogoodhavegood229 ปีที่แล้ว

    Good Editing

  • @mehedishoisob4014
    @mehedishoisob4014 2 ปีที่แล้ว

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

  • @luffysenpai4516
    @luffysenpai4516 ปีที่แล้ว

    Me thinking that I had a good standing in c++ just because I can code a binary search tree from scratch😥. Anyone got any tips on how to start with the STL lib?

  • @sharannagarajan4089
    @sharannagarajan4089 3 ปีที่แล้ว

    the song at the end blasted my ear

  • @hrichasingh6101
    @hrichasingh6101 2 ปีที่แล้ว

    Me : scrolling through description to find the code

  • @jayeshsanjotdz5959
    @jayeshsanjotdz5959 2 ปีที่แล้ว

    Which software you're using for this...?

  • @ec039venom4
    @ec039venom4 3 ปีที่แล้ว

    Hello sir !!
    I have a bid doubt
    I am ECE 3rd year student and till now I didn't practice for any language and also I am gate aspirant .
    And I want to get placed so should I start preparation for coding ? Is this right time to start coding when I am in 3rd year ? Please reply

  • @Ibrahim-yv1ld
    @Ibrahim-yv1ld 2 ปีที่แล้ว

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

  • @rohan1654
    @rohan1654 3 ปีที่แล้ว

    Where did you learn all this ?

  • @nashraasad8667
    @nashraasad8667 3 ปีที่แล้ว

    Put your sound also and explaning them step by step

  • @OneTrueBIue
    @OneTrueBIue ปีที่แล้ว

    How you animate text on your code editor?

  • @kentdanielj.diangson2591
    @kentdanielj.diangson2591 3 ปีที่แล้ว +1

    how to do the Plus sign with line under it? pls help

  • @cao_dzecbi
    @cao_dzecbi 2 ปีที่แล้ว

    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

  • @janjamniksrpcic4517
    @janjamniksrpcic4517 3 ปีที่แล้ว +2

    Thank you!

  • @kartikshukla5018
    @kartikshukla5018 2 ปีที่แล้ว

    Could u upload video with explanation.