C# Tutorial - Create a simple Pong Game with Windows Forms and Visual Studio

Sdílet
Vložit
  • čas přidán 17. 02. 2024
  • Source Code and Images - wp.me/p74nED-13P
    Lets make a simple pong game using windows forms and C# in visual studio. This tutorial is aimed at beginner programmers who want to learn programming by completing small projects. Hope you have fun with the project.
    If you found it useful please, like and subscribe to the channel.
    Let me know in the comments if you are having any issues with the projects or to recommend any future projects.
    Udemy Courses -
    Customizable Flappy Bird Game - www.udemy.com/course/learn-c-...
    Flappy Bird Hunting Game - www.udemy.com/course/flappy-b...
    Quiz Maker App Development Course - www.udemy.com/course/c-sharp-...
    Join this channel to get access to perks:
    / @mooict

Komentáře • 27

  • @carlmadrigal5131
    @carlmadrigal5131 Před 4 měsíci

    can someone help me i'm trying to make the player can't get pass through the walls what should i do?

  • @DadoVivo
    @DadoVivo Před 4 měsíci +2

    can u send the game to download?

  • @nomggos
    @nomggos Před měsícem

    hello sir. how do i open the design?

  • @vertorenogaming888
    @vertorenogaming888 Před 3 měsíci

    Bro, I admire your expertise in programming. Would you mind sharing some advice or tips on how to be that good? 😁

    • @andreschou9560
      @andreschou9560 Před měsícem

      lol? follow his tutorials.. I don't even know programming bro but I'm sure it comes with practice and there's no hidden secret

  • @williamapilado7344
    @williamapilado7344 Před 4 měsíci

    what version of vs code do you use? i cant find form 1 when i created a new c# file.

    • @mooict
      @mooict  Před 4 měsíci

      I’m using the Visual Studio 2022 IDE not Vs Code.

  • @mitzydanaemartinezsanchez3753

    I have a problem, apparently my ping pong ball doesn't stay inside the screen and goes up until it disappears
    :((

  • @mohamadmajidi-dv9jx
    @mohamadmajidi-dv9jx Před 4 měsíci

    what should i do to make my code color like yours?

    • @mooict
      @mooict  Před 4 měsíci

      You can get any theme using visual studio extensions. I’ve made a theme for Moo ICT you can download and use through visual studio extensions.

  • @zoome61
    @zoome61 Před 2 měsíci

    I wrote the code exactly like the code you posted, but I face a problem which is that when the ball touches the computer, the ball moves to the middle and counts as a goal for the computer. Can you help me solve the problem?

    • @jeremiahnissley106
      @jeremiahnissley106 Před měsícem +1

      I ran into this same problem, and i looked through the video more carefully and found some code that should'nt have been there, like in the code where if the player scores on the computer my ClientSize was set to Height not Width.

  • @random-kun
    @random-kun Před 4 měsíci +1

    Checkpoint! I stopped at 12:05

  • @ttt-ln2yr
    @ttt-ln2yr Před 4 měsíci

    I didn't found the tick on proprities

    • @mooict
      @mooict  Před 4 měsíci

      While selecting the timer in the design view, click on the lightning ⚡️ icon in the properties window. You will find the tick event there

  • @farazk9729
    @farazk9729 Před 2 měsíci

    Thank you.

  • @HaiTran-Dev
    @HaiTran-Dev Před 5 měsíci +1

    thanks you!

    • @mooict
      @mooict  Před 5 měsíci +1

      You’re welcome ☺️

  • @Ekkuna
    @Ekkuna Před 2 měsíci

    My player stops when it hits bottom. What is wrong?

    • @iiSMok3r
      @iiSMok3r Před 2 měsíci

      For me too have u found a fix

    • @Ekkuna
      @Ekkuna Před 2 měsíci

      @@iiSMok3r no I haven't

  • @vadvenurt
    @vadvenurt Před 4 měsíci +1

    1. The text is too small. I know it may be normal on a fullscreen. But when I do yt coding tutorials and have one laptop screen. One half is yt and other half is VS. Make your font size bigger in the next tutorials.
    2. The microphone is squeaky and noisy. It doesn't compell me to watch all of your tutorials on channel.
    3. You still make C# tutorials for begginers. Those who already went through one (your subscribers), don't want another begginer tutorial. (that's why you have low count of returning viewers)
    4. I would love it, if you had like an "Ultimate Introduction to C# gamedev" that would contain installation and until full finished game, like your Trex endless runner but with menu, ending screen, gravity and flying enemies. (more or less 4h) I recently started learning in C#, and there is a lot of BS on yt, like 10 h course that uses console framework to explain basic documentation. ""I'm not going on youtube to visually learn documentation.""
    5. Use better graphics for the games. (don't make another black and white dino run) There is a lot of open source colorful and compelling game graphics. Like on Opengameart
    6. add open source music and sound effects to the games you make.
    Point 5 & 6 makes a whole project more refined and compelling for the begginers that are looking for a good C# tutorial.
    P. S. You are the one that introduced me to a practical C# and I'm deeply grateful, and I respect your youtube grind and niching down on C#. But I don't see any tutorial on your channel that goes beyond 1h. And as the consumer of your niche content I'm ready to watch and follow through even 10h tutorials if they are made well. No "Ultimate introduction to C#" really leaves a void on youtube. I love you and I want to see you grow.

    • @mooict
      @mooict  Před 4 měsíci +2

      Thank you for the comment. I am thinking about redoing some of the videos again with better quality. I absolutely love this comment because it has given me a so much to work with. I don't know if I can make a 10 hours video but I will work on improving the quality of videos and make more videos towards beginner/intermediate learners. I did start off on making some videos C# graphics- you can find the play list here - czcams.com/video/nc6GBhXQdo4/video.html. Keep the feedback’s coming my friend. Thank you so much for your support.

  • @jirikhvezdica5565
    @jirikhvezdica5565 Před 2 měsíci

    GameOver isnt working, what should i do man? Private and GameOver are red

    • @jirikhvezdica5565
      @jirikhvezdica5565 Před 2 měsíci +1

      I set it as a method, so now its working, thanks, keep going man

    • @mooict
      @mooict  Před 2 měsíci

      Glad you got it working 👍🏽

    • @jirikhvezdica5565
      @jirikhvezdica5565 Před 2 měsíci

      @@mooict Hi, I have a question, why my paddle can go down the game and dont stop down. And how i can turn off full screen? Because then is not working.