How to make a simple breakout game in windows form with C#

Поделиться
HTML-код
  • Опубликовано: 4 апр 2020
  • Written Tutorial - www.mooict.com/c-tutorial-cre....
    In this tutorial we are making a simple break out game in visual studio with Windows Form and C# programming language. We are going to make a basic one first where we manually add the picture boxes as blocks for the game and then also show you how to make the game so it generates the blocks dynamically.
    We go over some the basic fundamentals of video game development in this video such as For each loops, for loops arrays, add and remove objects dynamically from the app. This was a fun tutorial to make because we get to explore how make a module app using different functions that are responsible for making different parts of the game for example we create a custom game over function, game set up function, adding blocks function and removing blocks function.
    I hope this tutorial is useful for you and have fun programming.
    Moo Out.

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

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

    Download this project here github.com/mooict/Break-out-game-tutorial-in-windows-form

  • @ss-lol
    @ss-lol 4 года назад +4

    This is why I love your Channel. It’s always so legit, always works and are always fun ideas. Thank you

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

    Thank you so much for this! It was really easy to follow, even for a super beginner like me. I really appreciate you sharing this, I learned a lot :)

  • @SmeSSS
    @SmeSSS 4 года назад +4

    Thank you for this! Great little project for those who are in found of the Retro games like myself and also learning programming.
    I'm going to try to upgrade it with power-ups and use it for one of my university class if I may.
    Keep up the good work if you have the time. Subscribed! :)

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

      Thanks William, I'm glad you found it helpful. All the best on your uni project.

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

    You are amazing man!

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

      Thank you 😊

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

    nice, i saw the video and remember when i programming in the high school.

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

    Thanks. Done it. Next stop platform game.

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

      🎉🎉🎉🥇you are smashing it well done

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

    Thank u very much, brother. Now i want to modify this game and make it more OOP related with classes, events and other staff😅

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

    Seriously thank you very much a Mexican friend thanks you

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

      You're welcome my friend. Glad you found it useful in your journey 😊

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

    Please increase volume. Thanks.

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

    Hey! A similar program is my homework now, and your video is awesome, but i have a problem. How could I solve that when the ball touches the side of the moving player platform to bounce it back from it? I mean from the side.
    Thank you if you help me.

  • @hoseinsoltani8259
    @hoseinsoltani8259 5 месяцев назад +1

    ❤❤

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

    Sorry for the inconvenience, could you help me with my problem? the ball when it falls freezes to the bottom and does not show the message "Lost" :(

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

    can someone halp me? im stuck in the pert of the pad dosn't move and the ball dont hit the walls and i did word by word!

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

    hello great video!! but I have a question is it possible to add power ups and add more balls with the power up you get?

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

    Please, Make a smaaall game on splitting of moving ball into pieces by cliking button

  • @soukthavythanavanh4719
    @soukthavythanavanh4719 13 дней назад

    on process PlaceBlocks fail , error [i] in if (a < 5) . but i make Int i; , after it work , but it make only 1 block . Excuse me?

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

    how come my game is not moving at a decent framerate??

  • @user-bp8gx5zc8r
    @user-bp8gx5zc8r Год назад

    can i ask? why the ball are invisible in my code?

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

    Can you tell about the intersectwith, if I want to make the ball doesn't always bounce to bottom when hit the block, what can I do?

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

      Intersects with checks whether the picture boxes collide or over lap each other. In this case if they intersect we change the top and left direction of the ball.

  • @zaidhalassa1636
    @zaidhalassa1636 4 года назад

    Could you post the code?

  • @Britishblue.
    @Britishblue. Год назад +1

    Im making this game but with a few added features. I tried to add a background and it makes the game run extremely slowly and lag. Do you know how to fix something like that?

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

      Try enabling the double buffer to true from the form properties window. Also if you use a smaller size image it also helped render it better on the screen l.

    • @Britishblue.
      @Britishblue. Год назад

      @@mooict thanks so much that fixed it

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

    100% volume and 100% on youtube. I can barely hear you!!! It"s like your whispering!

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

      When I clicked on this video I thought I accidentially had muted the audio on my pc, but after listening really intense I could hear some kind of sound. It's like ASMR but quieter!

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

      After I added a volume boosting extension to chrome and boosted the volume to 600%, I still needed to focus a lot to not miss anything

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

      @@evelynx06yall are capping because im on a damn phone and can hear him just fine

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

    Is this quiet for everyone else?

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

    Thank you for this great tutorial but can you please raise your voice? I can barely hear you.

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

      Thanks for the kind words Mohammed, I will make videos with better audio going forward 👍

    • @brandon-22
      @brandon-22 4 года назад

      lol there is an audio :o max youtube, 7% on windows made it sound mute

  • @nomggos
    @nomggos 25 дней назад

    i downloaded the game. how do i open the design?

    • @mooict
      @mooict  25 дней назад

      Hi, when you opened the project you will need to double click on form1 inside solutions explorer. That will open the project in design view

  • @eritreanism
    @eritreanism 4 года назад

    How did you have the form (GUI) at 1:54? When I start a new project all I see is the form1.cs form1.designer.cs

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

      Make a new project for Windows form under the .net framework in visual studio I think you might have picked the .net core frame work which is different than the one being used on this tutorial

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

      @@mooict Hey, thanks for the fast reply. I followed your tutorial and picked (Windows Forms App) from the create new choice. I have been googling for the past 30 mins and it says, the visual editor thing is new, so I am updating VS2019.
      Btw, your tutorial looks the best out there, that's why I want to follow your guide by first installing the visual editor

    • @eritreanism
      @eritreanism 4 года назад

      Bro even after a week I can't get this to work. How in the heck do you have the UI for your form? All I have is the Form1.cs code showing in my editor. I re-installed and update everything

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

      When you create a new project find the Windows form app and make sure you select the .net frame work template aswell. There are two different Windows form under c#. I think you are using the .net core one not the .net framework one. Give that a try

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

      @@mooict Got it to work bro, thanks!

  • @abdullahajeebi
    @abdullahajeebi 11 месяцев назад

    Your voice is quite quiet, I need to turn my PC's sound to 100 along with the RUclips sound also being at 100%

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

    My visual studio 2019 is not running the game. Its just like "u have no error, everything is fyn, but i wont run ur game"

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

      True, mines keep askin me to download more ram. Idk 🤔😁

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

      @@mooict no, it doesnt ask me to do anything... Neither it shows anything 😭☠️

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

      @@mooict it is just not running the game but giving the output properly

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

      @@hackdaccount532 try to click on build > build solutions. See if that builds the game and then click on debug button.

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

      @@mooict i will try to do it tomorrow. Its soo late ryt now.

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

    you need better audio! have to turn everything way up just to hear a distorted voice.

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

      Sorry about the audio on this. It was one of the first tutorials I did with the voice overs. Try the volume booster extension from chrome that can help hear the instructions better.

  • @lorenzo890
    @lorenzo890 7 месяцев назад

    cant hear anything lol

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

    Are you telling just anything or telling yourself only, buy a mic or atleast try to talk louder --- i dislike