How to make a top down car racing game in windows form with C#

Поделиться
HTML-код
  • Опубликовано: 28 окт 2024

Комментарии • 57

  • @mooict
    @mooict  3 года назад +1

    Download this project here github.com/mooict/Top-Down-Car-Racing-game-in-windows-form

  • @BlackKyurem14
    @BlackKyurem14 4 года назад +7

    I'm currently using your tutorials to learn how to program and how to use Windows Forms and it really helps a lot. I learned many new things and I understood those things, thanks to your good explanation

  • @programmingfun6358
    @programmingfun6358 2 года назад +6

    LOL, Sir i have no words to say you thanks, you are great, I'm at the stage of learning and by following your tutorials i make games by myself

  • @refusesack4897
    @refusesack4897 4 года назад +3

    That's great, it looks like a fun project. On thing: the normal C# naming convention is that methods are named using CamelCase. That's why visual studio complains about the method names. If this is for learning you should teach that too.

    • @mooict
      @mooict  4 года назад +1

      True, I will mention that from now on thanks for the heads up

    • @refusesack4897
      @refusesack4897 4 года назад +1

      @@mooict keep up the good work, these are fun tutorials

  • @mustafapatel3331
    @mustafapatel3331 3 года назад +2

    Fabulous!!! Absolutely incredible, you are AWESOME! I'm loving MOO ICT!

  • @icanghana6477
    @icanghana6477 2 года назад +1

    well done! you are really making things easy...

  • @evilgen3301
    @evilgen3301 2 года назад +1

    Hi thanks for vid!! i have 1 question i dont have Properties tab where u need to add png of the cars can u help me plz?

  • @VeeSpek
    @VeeSpek Год назад +1

    Thank you very much, it was very helpful and I learned a lot. Keep it up!

  • @shiba8486
    @shiba8486 Год назад +1

    Thank you so much Sir! This helped me a lot!

    • @mooict
      @mooict  Год назад

      You’re welcome my friend.

  • @bhagyeshpawar2400
    @bhagyeshpawar2400 3 года назад +1

    Bhai i am from India i really like you r videos

  • @monaasim4522
    @monaasim4522 Год назад +1

    sir, thank u so much, it was very easy, and it helps me a lot. but I have a little problem, when I want to make the player car not exceed the right border, it doesn't work correctly, though I typed like what u had typed in the video.

  • @תאיסגל-ב6כ
    @תאיסגל-ב6כ 2 года назад +1

    Any advice on how to make this game an online game, using threads, semaphores. etc.?

  • @maxvandijk4137
    @maxvandijk4137 3 года назад +4

    13:36
    Just my bookmark and where the scripting starts.

  • @tejasshelke107
    @tejasshelke107 8 месяцев назад +1

    Thanks a lot

  • @kaminoeiyuu4314
    @kaminoeiyuu4314 3 года назад +3

    Thank you so much it was very fun informative and easy to follow instructions. Hoping you you will release. Net projects as well thanks

    • @kaminoeiyuu4314
      @kaminoeiyuu4314 3 года назад

      Was thinking of how to add high score

    • @mooict
      @mooict  3 года назад +2

      Hi, if you want to add a high score you can see how I've done it in the clicking game tutorial in this channel. You can use the same process to add one to this game.

    • @kaminoeiyuu4314
      @kaminoeiyuu4314 3 года назад

      @@mooict I will look into it thank you for responding appreciate it, hoping to see some great contents soon

  • @johannesbotvidzongeorges6042
    @johannesbotvidzongeorges6042 2 года назад +1

    I cant get the track to roll that way it works the second time it respawns over the panel but efter that the tarck doesnt download. Please somone help me

  • @AvaAsmrrr
    @AvaAsmrrr Год назад

    Amazing!!! Which code is for the btnStart?

  • @OmarO_721
    @OmarO_721 2 года назад

    Is it possible to add a power-up mode to this game? Where it can grant temporary invincibility upon touching it?

  • @soarxe9
    @soarxe9 9 месяцев назад +1

    Thanks!

    • @mooict
      @mooict  9 месяцев назад

      Welcome!

  • @alexandrapopa9409
    @alexandrapopa9409 3 года назад

    Hello! Can you help me a little? From where is "tempCar"? Cause when I use it, it tells me it couldn't be found. Thank you!

  • @proboiz2010
    @proboiz2010 4 года назад +1

    when i started visual studios first time I cant see the white form

  • @lenardkricsfalussy1431
    @lenardkricsfalussy1431 Год назад

    When I start the debugger, the car automatically moves to the right side of the roadtrack and stay glued to that side and I can't move it with the arrows. Everything else works though. I have checked the events tab for "keyisup" and "keyisdown" and they are there. Can you please help me I am in a hurry. Thanks.

    • @mooict
      @mooict  Год назад

      Check the if statement inside of the timer it might be that you set only one equals sign for goRight Boolean. It should if goRight == true.

  • @NUH-UH-CUH
    @NUH-UH-CUH 3 года назад +1

    thanks man!

  • @aalp.6394
    @aalp.6394 2 года назад

    i didn't understand the
    gameTimerEvent>>player.left code where did you add the player name

    • @mooict
      @mooict  2 года назад

      Game timer event is linked to the timer object. That's what we use to control the game loop i.e. movements and collision. Player name is set to the player car in the properties window.

  • @nube4912
    @nube4912 6 месяцев назад

    Everything is very good except that when I start I can't move the car, other than that everything flows well

  • @johnernest6366
    @johnernest6366 Год назад +1

    thanks

  • @herogero1170
    @herogero1170 Год назад

    how can i add an engine sound? i mean how i should write it in code, if i already add an engine sound in resources? PLS help me

  • @תאיסגל-ב6כ
    @תאיסגל-ב6כ 2 года назад

    The player car speed on my computer is slow and jumpy. What can I change to make it fast and smooth like this?

    • @mooict
      @mooict  2 года назад

      You can reduce the timer interval to 20 or below for faster frame rate. Remember the low number you use, the timer tick event will trigger more often. For this kind of game 20 is sufficient. The timer event ticks every 20 milliseconds and game play should be smoother as a result.

  • @Imagoodplayer
    @Imagoodplayer Год назад

    i can't link the hit wav, sound in the last. any solution for this?

    • @Imagoodplayer
      @Imagoodplayer Год назад +1

      btw its okay now i just add it again in resource file

    • @mooict
      @mooict  Год назад

      Thats awesome you solved it.

  • @tejasshelke107
    @tejasshelke107 8 месяцев назад

    What is the front end and back end of this project

    • @mooict
      @mooict  8 месяцев назад

      Designer is the front end where you add graphics such as picture boxes for cars, badges, road tracks etc and back end is the C# script.

  • @matiullah3058
    @matiullah3058 5 месяцев назад

    Player ka variable kahan declare kiya ha ?????????????????????????

  • @Crasha_Lot
    @Crasha_Lot 3 года назад

    Can you maybe make a tutorial on, how to create and display a high score table using a text document?

    • @mooict
      @mooict  3 года назад

      How do you mean? Like save each game play scores in a existing text document?

    • @Crasha_Lot
      @Crasha_Lot 3 года назад

      @@mooict Yeah, for example with like an option to view it in a main menu

  • @Gr8Agho
    @Gr8Agho Год назад

    I cant get the player to move even though i wrote the code exactly how it is here. how can i fix that?

    • @mooict
      @mooict  Год назад

      Check if the form has key up and down events linked in the events window.

    • @bea.bianca04
      @bea.bianca04 5 месяцев назад

      solved? i cant move my cursor too

  • @amnaejaz678
    @amnaejaz678 4 месяца назад

    Can I use vs code 2022

    • @mooict
      @mooict  4 месяца назад

      Yes you can

  • @Luwabi212
    @Luwabi212 Год назад

    You go way to fast bro

  • @arvsnacs422
    @arvsnacs422 4 года назад +1

    Thanks. Dont it. Next stop brick game.