C# Tutorial - Make a flappy bird game in windows form

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • Images and source code here - www.mooict.com...
    Get the New Flappy Bird V2 Game Tutorial on Udemy and Support MOO ICT -
    www.udemy.com/...
    This is one of the first tutorials I've written for MOOICT, now its on the fully explained tutorials. This video will take you through how to make the flappy bird game in visual studio with Windows form and C# programming. All of the components, images, data types, events and functions are written and explained in the video. Hope you like the video and see you on the next one.
    Happy Programming
    Moo Out.

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

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

    Download this project github.com/mooict/C-Flappy-Bird-Game-Windows-Form

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

      Is GUI involved in this code?

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

      Great vid!
      Btw, may I ask what switches are you using in your keyboard?
      I've got a mix of BOX Navy and BOX Jade in my 'board but yours sound like you're getting more tactile feedback.
      I was going to switch mine out for BOX Royals but they're five pin and the GMMK only supports three pin switches.
      You can scalpel off the extra two pins but it's not a perfect solution by any means.

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

      After the game is over I want to assign a key so that the game restarts whenever that key is pressed. But I don't know how to do that. Pls help!!

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

      @@aneeshkumar2613 You can put the game function in a "while" statement (basically a loop) and end the game with a blank console.readline(); so that the user has to press enter at the end of every game which would restart the loop.

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

      Look! We have almost the same amount of subscribers!

  • @CMartinRock
    @CMartinRock 3 года назад +151

    At the beginning I thought he said " we are going to create a f***ing good game" im like. Da*n like the confidence lol

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

      no swearing bro, but i like the joke its funny lol

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

      :)))))

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

      If you want to develop a Speech Recognition, view these tutorials: ruclips.net/video/Zk_pAoc4kNI/видео.html

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

      hahaha

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

      @@mustafaaljanabi4818 No swearing?
      Fuck that shit balls!
      Swearing is cunt fucking awesome!!

  • @marickabre4506
    @marickabre4506 2 года назад +36

    imagine this guy did it in 20 minutes while my prof trys to explain it in 3 months....

    • @FromRootsToRadicals_INTP
      @FromRootsToRadicals_INTP 10 месяцев назад +1

      Lol yep. I taught myself starting at 9. Born in 85. I took one semester of college was like nope. Id rather buy the books and read em. Senior lead full stack now. And growing…. 😉

    • @sal-so2rw
      @sal-so2rw 8 месяцев назад

      ​Wow that's amazing any advice I'm in my second year of college software engineering student

  • @Sarstan
    @Sarstan 2 года назад +5

    Great tutorial. And it leaves plenty to play around with and add to. Like instead of having an end game for flying too high, I just changed it to if the box gets above a height, it just resets to that same height.
    Some other things for others to try are to change the pipe positions (a random range for the pipes to be set. Or if you're like me and have the pipes like the original game, set one's height then the other a set distance gap), make the bird rotate while rising or falling, changing the button press to have a gradual change in gravity instead of an instant shift and a constant press no longer works, and setting up a game start screen along with a button on gameover to return to that or play again immediately.

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

      Hi, these are great suggestions for this game. Thank you 😊

  • @bradisaac9540
    @bradisaac9540 3 года назад +5

    Hey, I am an old business app programmer, but have been curious about game programming since I was a kid. Back in the 80's, attempted to create space invaders on a TRS-80 Color Computer. It was such a disaster, I never tried game programming again. You, sir have shown me the way. This is an AWESOME first project. Not sure I'd ever think to bind the timer event to move stuff on the screen. Thanks for posting this.

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

      Thanks Brad you are very kind. I'm glad this tutorial helped 😃

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

      You should use a game engiene it is much easier than just c##

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

    Just A Newbie Person with not know anything about code. Thank You So Much to you Mr. MOO. It is easy to understand the code, logic, KEEP GOING MR. MOO !!!!!!!!!!!

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

      Mr Moo lol 🤣

  • @Omnifonist
    @Omnifonist 3 года назад +59

    The name of my game will be "Crappy Bird"

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

      LMFAO

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

      If you want to develop a Speech Recognition, view these tutorials: ruclips.net/video/Zk_pAoc4kNI/видео.html

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

      Crappy turd

  • @l0rd_cz386
    @l0rd_cz386 2 года назад +2

    I was trying to make my own game and i dont know how to do it and now i know it and you help me so much. Thank you

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

    Bro the typing and clicking of your mouse and keyboard is so satisfying to hear for some reason

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

      lol thanks

  • @evgeniiketenev8246
    @evgeniiketenev8246 3 года назад +6

    Thank you very much! This is my first C# project and its working great!

  • @ales1024512
    @ales1024512 2 года назад +8

    Awesome!
    Not very hard to code and easy to understand :)
    I did it from scratch and add features for my project.

  • @VDani16
    @VDani16 3 года назад +7

    Great tutorial. Thanks for giving me a base. I am going to make a advanced game from this, with proper start and end game screen, etc.

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

      Hey do you think I could see your code if you ever got it done?

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

      If you want to develop a Speech Recognition, view these tutorials: ruclips.net/video/Zk_pAoc4kNI/видео.html

  • @ArhamKhan05
    @ArhamKhan05 3 года назад +57

    You are the real programmer, I appreciate your hardworking and as well as your logic this game is impossible without this, keep going sir.

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

      Thank you Arham, that's very kind.

  • @peruperaoOo
    @peruperaoOo 2 года назад +2

    Wow I learned so much. Thank you for explanation

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

    Hello, it was great.❤😍
    It is better to add a reset button so that there is no need to close and open the program again👍👌

  • @paci.rossy25
    @paci.rossy25 3 года назад

    this help me a lot from online class. thank you so much. i learn a lot from this video!

  • @ee_niko6943
    @ee_niko6943 4 года назад +13

    Excellent tutorial!!

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

    Windows Forms App was really hard to work with for me. I used the .NET Core version and it kept freezing and I couldn't import the images the same way.
    It worked without problems in .NET Framework. Thank you for the tutorial.

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

      This project uses .net framework not the .net core.

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

      View these tutorials: ruclips.net/video/Zk_pAoc4kNI/видео.html

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

    Thanks for this valuable tutorial .
    Please make a video for deployment this kind of games on browser or play store .
    You can also reply the steps in the comments

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

      To make this kind of games for web or phones use Unity. It has built in support for webgl- play it on the browser or app can be built to submit to android or iOS.
      Hope this helps

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

    Hey Moo ICT i have already made a different comment of how good this tutorial is, but i did run in to a problem and this is not ur fault.
    I got the error: MSB4018, The "ResolvePackageAssets" task failed unexpectedly.
    If you can help me im the happiest person on earth :D

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

      Hi, I haven't encountered this particular error before. I looked through Google it seems it was a bug in visual studio however you can try the following try deleting all of the files from debug folder and rebuild the solution again and update visual studio.

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

      I will give it a try thank you and keep up the good work!

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

      It seems that i at the beginning clicked on windows form app (.net) instead of windows form app (.net framework)
      still thank you tho :D

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

      View these tutorials: ruclips.net/video/Zk_pAoc4kNI/видео.html

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

    Thank you sir for teaching basic of making game in windows form

  • @-TL-15
    @-TL-15 2 года назад +1

    hello, please make a tutorial on the "play again" button

  • @VladChis-gh7bd
    @VladChis-gh7bd 13 дней назад

    love you man, God bless you

  • @angelsideangel
    @angelsideangel 2 года назад +2

    this is amazing. great work. I'm starting now and i have a question... How do you get the images or how do you make the images that you use in your games?

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

      You can download the images for this project from the link in the description.

  • @kinzasheikh-xn9oe
    @kinzasheikh-xn9oe 11 месяцев назад

    sir i have an important question how you insert key up key down function i really can't understand

  • @lemillion6206
    @lemillion6206 4 года назад +10

    Thx for this awesome video mate, really easy to follow and everything worked great for me! Wondering if you could help out with adding a "restart button"

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

      Hi you can make a restart button and make sure its disabled and hidden when the game starts, when the game is over you can run the click event from that button to reset the bird, pipes, score and time back to the their default positions and disable/make the button invisible from inside the event too. You can make the button visible again when the game over function runs. Have a go

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

      a shortcut if the restart button/method is too hard is to change to a second form and then comeback. Maybe you can use the second one like a menu

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

      @@mooict When i press the restart button and then when i start playing and press Space it keeps restarting the game like i am pressing restart button over and over again but i dont .Any help?

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

      @@tr0x219 when you press the restart button disable the button by buttonName.Enabled = false; this way the forms focus won't be on the button when the game restarts. Then when the game ends enable the button again so it can be clicked on.

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

      @@mooict It worked man, thank you!

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

    In the code part of the game it says that the private void endgame has 0 references how do I fix this

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

    Excellent video, but can you zoom the TEXT, it is difficult to read

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

    How to make a restart button when you lost?

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

    Thank you very much, i was trying to make flappy bird for my final school project and ran into some problems, but thanks to your guide i managed to finish it
    Thanks a lot again :D

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

      hey, can you share the code with me I'm having some problems with the code?
      pipeBottom.Left -= pipeSpeed;
      for this, it says "the name pipeBottom does not exist in the current context."
      and "the name pipeSpeed does not exist in the current context."

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

      @@mariamtariq1601 I think that because object that you use as bottom pipe not named "pipeBottom", check how it is named and use it in code:
      For example: NameOfPipeObject.left -= speed;
      I hope it will help you

  • @fk3239
    @fk3239 4 года назад +6

    Those image stretches hurt my soul

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

    What is your visual studio version?

  • @СавелийСпицин
    @СавелийСпицин 2 года назад +1

    thank for tutorial, you are awesome, keep pushing bro!!!!

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

      Thanks, will do!

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

    Why do you not mention calling of timer1.Start() in your implementation (either in Form1_Load or the Constructor) ?

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

    Thank You Very Much Sir, buh How to resize the elements of the form with the form itself? like If you wanna play it in Fullscreen mode, You can maximize it.

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

    when i start the project it starts the endgame function instantly and i don't know why

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

    how do i get the properties tab pls help i am new

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

      Right click on the form and select properties it's usually on the bottom right hand corner of the screen

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

    Did, though how would I restart the game once is game over?

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

    i just made this code today and my flappy wont move up and down. what should i do?

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

      Check inside the timer if you have the line flappy bird.top += gravity; this line will animate the bird picture box

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

    Great tutorial! Thanks!!

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

    Keysisup and keyisdown can't use , how to fix it , can you help me

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

    Hey man how do i fix the images having the square border when obove the other images? Thanks.

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

      Unfortunately windows form picture. Boxes do not support transparency but you can try the WPF C# version of it where the images don't have that problem. Here is the tutorial ruclips.net/video/rdxylTJJv5c/видео.html

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

    Thanks!
    The "KeyDown and KeyUp" property is missing.
    I'm using Visual Studio Express 2015. Can You help me, please!

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

    Thank you so much sir

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

    Great tutorial. Good job!

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

    Bro I have an Error What is the error plzzz help
    Error CS0103 The name 'scoreText' does not exist in the current context

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

      Change labels NAME in the properties window to scoreText. This error means it cannot find the score text named label in the code.

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

    Hola! How would I make a restart button?

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

    why is it so laggy when I place an image in a form background instead of solid color

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

      If you use a background image on the form then you will need to enable the double buffer option from the properties for the form. That will improve the frame rate for it.

  • @PraveenKumar-br9ry
    @PraveenKumar-br9ry 3 года назад +2

    *variabul* lol...BTW Thanks for the tutorial

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

    hello sir i am a 16 year old who loves coding and a who has just started to learn coding i needed an inspiration to start and i got it after watching this tutorial . I have a request for you can you please code a multiplayer fps shooting game so that i can get an idea on how to create multiplayer games and improvise it

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

      Hey Varun. That's great you are starting up in programming. Making a multiplayer FPS game will be a big project. I have made some local multiplayer style games on unity before but not the massive multiplayer ones. I'm glad you are finding my simple tutorials useful. I'll try to make more in depth ones in the future.

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

    Great tutorial! Thank you

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

    Thank You! Keep it up

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

    Keyboard name please. Love the sound

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

      It's my laptop key sound.

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

    U R GOD, U SAVED ME

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

    QUESTION
    Are the variables Gravity, Pipspeed and score automatically recognised by the game or wouldnt you have to specify what the variables relate to within the game?

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

      How would the game recognize them?
      If you look more carefully, he's using them like here:
      PipeBottom.Left -= PipeSpeed
      Which means that every tick the position is adjusted by the value of PipeSpeed.

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

      @@TheShadowArtCom ....oh yeah

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

    So I kinda understand why you can do Control.Left and Control.Top but not Control.Right and Control.Bottom cuz the latter 2 are read only and it has to do with how windows scale and all. But is there a way to work around this if I wanted to say make this game play from right to left instead?

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

      If you want the pipes to move right rather then left you can use += sign in the time when linking to the pipe speed. TopPipe.Left += pipeSpeed; will move the top pipe picture box towards the right of the screen. Then just move the bird picture box to the right it won't need any code since it only moves up and down. Only thing you will need to change is flip the bird picture so it's facing left instead of right.

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

    Im getting like 6 errors like what am i doing wrong???? Someone help me please. This is the code that im doing but still wont work at all for me:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;

    namespace Flappy_Bird_Windows_Form
    {
    public partial class Form1 : Form
    {

    // coded for MOO ICT Flappy Bird Tutorial

    // Variables start here

    int pipeSpeed = 8; // default pipe speed defined with an integer
    int gravity = 15; // default gravity speed defined with an integer
    int score = 0; // default score integer set to 0
    // variable ends

    public Form1()
    {
    InitializeComponent();
    }

    private void gamekeyisdown(object sender, KeyEventArgs e)
    {
    // this is the game key is down event thats linked to the main form
    if (e.KeyCode == Keys.Space)
    {
    // if the space key is pressed then the gravity will be set to -15
    gravity = -15;
    }


    }

    private void gamekeyisup(object sender, KeyEventArgs e)
    {
    // this is the game key is up event thats linked to the main form

    if (e.KeyCode == Keys.Space)
    {
    // if the space key is released then gravity is set back to 15
    gravity = 15;
    }

    }

    private void endGame()
    {
    // this is the game end function, this function will when the bird touches the ground or the pipes
    gameTimer.Stop(); // stop the main timer
    scoreText.Text += " Game over!!!"; // show the game over text on the score text, += is used to add the new string of text next to the score instead of overriding it
    }

    private void gameTimerEvent(object sender, EventArgs e)
    {
    flappyBird.Top += gravity; // link the flappy bird picture box to the gravity, += means it will add the speed of gravity to the picture boxes top location so it will move down
    pipeBottom.Left -= pipeSpeed; // link the bottom pipes left position to the pipe speed integer, it will reduce the pipe speed value from the left position of the pipe picture box so it will move left with each tick
    pipeTop.Left -= pipeSpeed; // the same is happening with the top pipe, reduce the value of pipe speed integer from the left position of the pipe using the -= sign
    scoreText.Text = "Score: " + score; // show the current score on the score text label

    // below we are checking if any of the pipes have left the screen

    if(pipeBottom.Left < -150)
    {
    // if the bottom pipes location is -150 then we will reset it back to 800 and add 1 to the score
    pipeBottom.Left = 800;
    score++;
    }
    if(pipeTop.Left < -180)
    {
    // if the top pipe location is -180 then we will reset the pipe back to the 950 and add 1 to the score
    pipeTop.Left = 950;
    score++;
    }

    // the if statement below is checking if the pipe hit the ground, pipes or if the player has left the screen from the top
    // the two pipe symbols stand for OR inside of an if statement so we can have multiple conditions inside of this if statement because its all going to do the same thing

    if (flappyBird.Bounds.IntersectsWith(pipeBottom.Bounds) ||
    flappyBird.Bounds.IntersectsWith(pipeTop.Bounds) ||
    flappyBird.Bounds.IntersectsWith(ground.Bounds) || flappyBird.Top < -25
    )
    {
    // if any of the conditions are met from above then we will run the end game function
    endGame();
    }


    // if score is greater then 5 then we will increase the pipe speed to 15
    if(score > 5)
    {
    pipeSpeed = 15;
    }

    }


    }
    }
    Someone please help me to get this code working. Its coming up with like 6 errors, SIX!.

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

    hi my teacher please can you tell me how to make restart function ? for a button to restart the game it wont work for me i triey app.restart and linked it to a button but it didnt work how to do restart the game with out reload it agian ???

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

      Hi Yazan I'm currently making an add-on video to this tutorial on how to add the restart function. It will be up in the new couple of days.

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

      @@mooict greaat thank you

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

    I can't find key up and key down anywhere =(

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

    Thanks!

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

    Excellent tutorial! Thank you! 💜

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

    does this count as making it from scratch

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

      Technically yes

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

    I did the similar thing but when the game ends there appears a play and exit button. When I click on the play button the pipes move but bird doesnt fly when i click the space bar. What should be done?
    Exit button closes the application successfully
    And another thing I that can you demonstrate how to install the exe file on other system or pc?

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

      You may have to disable and hide the button when it's clicked. In Windows form if there is a button on screen automatically the focus is set on the button. See if that works

  • @JokerGaming-of8ms
    @JokerGaming-of8ms 2 года назад

    i couldnt find key up and key down in events, im using ms visual 2019, pls anyone help.

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

    Thank you very much! also is there any shortcut to restart the game instead of closing the form and running it again?

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

      Try this in GameEnd()
      Form1 NewForm = new Form1(); NewForm.Show(); this.Dispose(false);

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

      View these tutorials: ruclips.net/video/Zk_pAoc4kNI/видео.html

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

    it works but there's one problem. The space Doesn't do anything
    what should i do?

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

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

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

    Please make game of Ludo & Snake Ladder in Visual Studio, would be thankful

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

      That's a great idea

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

    At 17:03 I want to add intersectsWith with the top of the window but I found nothing in the documentation, could you help please

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

      If you want to check if the bird has reached top of the screen then you need to check it with the if(flappyBird.Top < 0) statement. There isn't a intersects with the windows function.

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

      @@mooict Thanks

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

    using this and never lagging

  • @Unknown-ts4rk
    @Unknown-ts4rk 4 года назад +2

    Thank you bro

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

      You're welcome.

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

    bro why when i start my game is over?

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

    thank u great tutorial but i think u missed to add rest game button But Great job thanks

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

    I tried to add in an extra pair of pipes but I suddenly lost control of the bird.

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

    How to run the game? When i press space bar the bird goes up. But when the game is started it automatically touches the pipe and the game is over.

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

      Which keys are used to move the bird up and down?

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

      Just the space bar, when the keys is pressed bird should go up and when released it should go down

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

      @@mooict thanku... Btw it worked... when I set the gravity to 6

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

    Can you pls do a Lucky 7 game like in a casino game?

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

    In the new version of VS is no keyup and no keydown I don't know what to do

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

      Which version of VS is it?

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

      Sry
      I found it
      (I'm stupid)

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

    Amazing video, thanks

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

      You're welcome, glad you liked it

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

    Great 👏

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

    it only says new file 4 me not new project

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

      Check if you're using the right visual studio. I've used visual studio 2017 for this tutorial. You can download and install the 2019 community edition from the website.

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

    Which keys used to play

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

    Thanks.

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

      Your welcome 🙏

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

      @@mooict thanns

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

    This is just amazing man. It works now! It’s bc I did it wrong😂

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

      Ah its the best feeling when it start to work. Keep at it, happy programming 😎

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

      Moo ICT thanks g😃 keep making tutorials and if you want ideas for what to make dm me on intsagram smoked_999

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

      Moo ICT I have something extra you can add. Restart button as R

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

      View these tutorials: ruclips.net/video/Zk_pAoc4kNI/видео.html

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

    good thanks

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

    Hey bro it works but I have one problem. The space Doesnt do anything :(

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

      Check the key down event, if that's linked properly in the form.

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

      Moo ICT if it’s not do I link it

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

      Yes you need to select the event from the drop down on the key down event that would link it the event and trigger it when the key is pressed down. Do the same for the key is up event.

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

    how can i add restart option to restart the game

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

      Take a look at the PAC man game tutorial. I've added a restart function to that which can be used in this game too.

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

      @@mooict ok

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

    Can I get the code?

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

      Code is in the description link

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

      Thank You!

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

    Good job

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

    Awesome...

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

    I am stuck on "choose image..." it does nothing...

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

      Try restarting visual studio, sometimes that helps

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

      @@mooict thanks. Although it seems I didn't install one needed part still, now works.

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

    ez to follow
    thx

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

    You eat a 1 step.... I'm confused 🤐 how to score increase 🙄

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

    Hi bro if this is not working now can you plz help me thankyou.
    (flappyBird.Bounds.IntersectsWith(pipeBottom.Bounds) ||
    flappyBird.Bounds.IntersectsWith(pipeTop.Bounds) ||
    flappyBird.Bounds.IntersectsWith(ground.Bounds) || flappyBird.Top < -25
    )

  • @labradorninoanthonym.7957
    @labradorninoanthonym.7957 2 года назад

    how to do this THING l l

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

    Can someone translate the code in cpp?

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

    Does anybody have the Download link :D

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

    When i press space nothing happens, the bird just goes down.

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

      Check if you have linked the key down event to the form you can do this by clicking on the little lightning bolt icon on the properties window and navigating down to the key down event

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

      @@mooict Yes I did

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

      @@robertmanolache5728 check the code inside the event there is a if statement that controls when player presses the space key, it should reverse the gravity of the bird to pull up

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

      @@mooict yes i have it , if (e.KeyCode ==Keys.Space){gravity = -5 } and another if for up with gravity = 5

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

      Can you check if you click on the form and check the events window for key down and key up? Only thing I can think of may be linking the events to the form correctly so they trigger when the keys are pressed and released

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

    more videos please

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

    just use GMS2 for games like this , faster , easier, and end result looks so much better

  • @dultzywaltzy
    @dultzywaltzy 10 месяцев назад

    good tutorial but JESUS CHRIST THAT CRUSTY MIC

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

    300