Download this project github.com/mooict/C-Flappy-Bird-Game-Windows-Form
@pirateplay62433 жыл бұрын
Is GUI involved in this code?
@MaffeyZilog3 жыл бұрын
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.
@aneeshkumar26132 жыл бұрын
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!!
@jackdotpy42542 жыл бұрын
@@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_2 жыл бұрын
Look! We have almost the same amount of subscribers!
@CMartinRock3 жыл бұрын
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
@mustafaaljanabi48183 жыл бұрын
no swearing bro, but i like the joke its funny lol
@cristianfarcas32723 жыл бұрын
:)))))
@justinlinwoodrossakarythor633 жыл бұрын
If you want to develop a Speech Recognition, view these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@jtwlk973 жыл бұрын
hahaha
@MaffeyZilog3 жыл бұрын
@@mustafaaljanabi4818 No swearing? Fuck that shit balls! Swearing is cunt fucking awesome!!
@ArhamKhan053 жыл бұрын
You are the real programmer, I appreciate your hardworking and as well as your logic this game is impossible without this, keep going sir.
@mooict3 жыл бұрын
Thank you Arham, that's very kind.
@marickabre45062 жыл бұрын
imagine this guy did it in 20 minutes while my prof trys to explain it in 3 months....
@FromRootsToRadicals_INTP11 ай бұрын
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-so2rw10 ай бұрын
Wow that's amazing any advice I'm in my second year of college software engineering student
@ashupardhi50713 жыл бұрын
You have gave me positive vibes bro..as a beginner in this field i am so confident after watching your project..
@Sarstan2 жыл бұрын
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.
@mooict2 жыл бұрын
Hi, these are great suggestions for this game. Thank you 😊
@cakwlive2 жыл бұрын
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 !!!!!!!!!!!
@mooict2 жыл бұрын
Mr Moo lol 🤣
@Baikun20062 жыл бұрын
Bro the typing and clicking of your mouse and keyboard is so satisfying to hear for some reason
@mooict2 жыл бұрын
lol thanks
@davthemillionth2 жыл бұрын
instead of using pipe.Left < -150, you could use Pipe.Right < 0, which means that the offset inside the if statement gives a more user friendly control for how long they are offscreen
@fury30262 жыл бұрын
Thanks!!
@l0rd_cz3862 жыл бұрын
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
@Omnifonist3 жыл бұрын
The name of my game will be "Crappy Bird"
@zombs03 жыл бұрын
LMFAO
@justinlinwoodrossakarythor633 жыл бұрын
If you want to develop a Speech Recognition, view these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@DjJakesputa2 жыл бұрын
Crappy turd
@CaptainBobSim2 жыл бұрын
Thank you so much!! This is super awesome, easy to understand - and not useless (like some other tutorials) It was genuinely fun to code!! Can't thank you enough!
@unajokic5392 жыл бұрын
I don't understand English very well, I'm a beginner in programming, but I did everything perfectly, the game is excellent, thank you very much for the nice explanation. Greetings from the Republic of Srpska. 😊
@mooict2 жыл бұрын
Greetings. Thank you for the kind comment. I’m glad it worked for you.
@prosvade13373 жыл бұрын
This is what I needed,. Thanks man, you have given me the the seeds to sew my own game!
@hindizz19943 жыл бұрын
and did you see it?
@justinlinwoodrossakarythor633 жыл бұрын
If you want to develop a Speech Recognition, view these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@evgeniiketenev3 жыл бұрын
Thank you very much! This is my first C# project and its working great!
@bradisaac95403 жыл бұрын
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.
@mooict3 жыл бұрын
Thanks Brad you are very kind. I'm glad this tutorial helped 😃
@sharifa00963 жыл бұрын
You should use a game engiene it is much easier than just c##
@nicholasjackson87094 жыл бұрын
I wondered why i was learning about windows forms this semester....THIS is why!
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@VDani163 жыл бұрын
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.
@jaken963 жыл бұрын
Hey do you think I could see your code if you ever got it done?
@justinlinwoodrossakarythor633 жыл бұрын
If you want to develop a Speech Recognition, view these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@johndalepardillo Жыл бұрын
you just made it look easy wow, coding should be fun like this. A great tutorial to follow. btw, I just subscribed to ur channel to learn more.
@mooict Жыл бұрын
Thank you and welcome aboard 😊
@ales10245122 жыл бұрын
Awesome! Not very hard to code and easy to understand :) I did it from scratch and add features for my project.
@automationtesting31493 жыл бұрын
I am really finding it useful and am able to learn C# really well
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@rayscarface52444 жыл бұрын
Thanks man, good for people just getting started A.K.A noobs like me.
@rayscarface52443 жыл бұрын
Excuse moi?
@tuah202 жыл бұрын
Wow at last a soft tutorial I can follow! you sir are a genius
@peruperaoOo3 жыл бұрын
Wow I learned so much. Thank you for explanation
@paci.rossy253 жыл бұрын
this help me a lot from online class. thank you so much. i learn a lot from this video!
@Techno_media2 жыл бұрын
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👍👌
@mohamednaji6850 Жыл бұрын
Absolutely wonderful! Fun, Cool and easy to follow tutorial! A joy to code! Thanks a million, brother! :)
@mooict Жыл бұрын
Glad it helped!
@VladChis-gh7bdАй бұрын
love you man, God bless you
@meshilmaring89563 жыл бұрын
Thank you sir for teaching basic of making game in windows form
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@TroLixH4 жыл бұрын
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.
@mooict4 жыл бұрын
This project uses .net framework not the .net core.
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@СавелийСпицин2 жыл бұрын
thank for tutorial, you are awesome, keep pushing bro!!!!
@mooict2 жыл бұрын
Thanks, will do!
@huckwoody13862 жыл бұрын
Great tutorial! Thanks!!
@dmitriyones99933 жыл бұрын
Great tutorial. Good job!
@ee_niko69434 жыл бұрын
Excellent tutorial!!
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@iamlate39693 жыл бұрын
moo ICT...yu r briliant!!!
@mooict3 жыл бұрын
Thank you. I'm glad you enjoyed it
@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 Жыл бұрын
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
@trishoolpanigautam80852 жыл бұрын
bro thanks so much. dis video is tiless 3 years ltr n still great
@KevlarGarage3 жыл бұрын
Thanks for this tutorial! Great work! I have never programmed anything like this and I can do it. BUT that sniffing is horrible with headphones. Get well.
@mooict3 жыл бұрын
Hi thanks. I'm glad the tutorial helped. I had a cold when I was recording this one, I'm much better now thanks. The future videos will be better. 😸
@mmarroni6298 Жыл бұрын
Thank you for video!
@mooict Жыл бұрын
Welcome!
@urosbaljak27493 жыл бұрын
Thanks dude i made this Game and its briliant and interesting to learn
@justinlinwoodrossakarythor633 жыл бұрын
If you want to develop a Speech Recognition, view these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@urosbaljak27493 жыл бұрын
@@justinlinwoodrossakarythor63 nice vid
@justinlinwoodrossakarythor633 жыл бұрын
@@urosbaljak2749 thanks
@NyeonCat Жыл бұрын
I really want to make game and thanks to this video I can make flappykoala I didn't know we can make games with visual studio 😐
@mooict Жыл бұрын
Flappy Koala 🐨 sounds amazing. Well done 👍🏽
@beqare2 жыл бұрын
How to make a restart button when you lost?
@iWillSlipKnotАй бұрын
This was amazing
@martinlaguna15073 жыл бұрын
U R GOD, U SAVED ME
@trippin92803 жыл бұрын
thank you! awesome tutorial, I would suggest explaining everything as you go instead of waiting til the end. But it made sense nonetheless. Again Thank you!
@justinlinwoodrossakarythor633 жыл бұрын
If you want to develop a Speech Recognition, view these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@SiyamendAbde2 жыл бұрын
cool work
@MegaDarknation3 жыл бұрын
Very nice tutorial. Thank you.
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@princi55762 жыл бұрын
Thank you so much sir
@ceejayviii3 жыл бұрын
Thank You! Keep it up
@fk32394 жыл бұрын
Those image stretches hurt my soul
@akkitty224 жыл бұрын
Great tutorial! Thank you
@mooict4 жыл бұрын
Your welcome glad you liked it
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@teodoramarkovic10534 жыл бұрын
Excellent tutorial! Thank you! 💜
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@angelsideangel2 жыл бұрын
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?
@mooict2 жыл бұрын
You can download the images for this project from the link in the description.
@mamadbala75865 ай бұрын
What is your visual studio version?
@Svebderman3 жыл бұрын
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
@mooict3 жыл бұрын
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.
@Svebderman3 жыл бұрын
I will give it a try thank you and keep up the good work!
@Svebderman3 жыл бұрын
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
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@fox__gun64203 жыл бұрын
there must be a speedrun music It`s good, by the way
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
hello, please make a tutorial on the "play again" button
@bradisaac95403 жыл бұрын
Thanks!
@timi12554 жыл бұрын
Nice Tutorial
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@paxtonbirch2472 жыл бұрын
In the code part of the game it says that the private void endgame has 0 references how do I fix this
@wshockmc24452 жыл бұрын
Hey man how do i fix the images having the square border when obove the other images? Thanks.
@mooict2 жыл бұрын
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 kzbin.info/www/bejne/qJXbqp-Kf6-pa8U
@lemillion62064 жыл бұрын
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"
@mooict4 жыл бұрын
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
@monicaayala36444 жыл бұрын
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
@tr0x2193 жыл бұрын
@@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?
@mooict3 жыл бұрын
@@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.
@tr0x2193 жыл бұрын
@@mooict It worked man, thank you!
@tonia5302 жыл бұрын
i don't have the toolbox bar with the options there...
@shayanmazahir39983 жыл бұрын
Excellent video, but can you zoom the TEXT, it is difficult to read
@XFydro Жыл бұрын
Which software did you use to program this?, In the software where i program is not that good..
@drifeexd4 жыл бұрын
You are the best bro. Like)
@kinzasheikh-xn9oe Жыл бұрын
sir i have an important question how you insert key up key down function i really can't understand
@arshpage3 жыл бұрын
Do u have a installation tutorial video.
@hamzakhurshid34312 жыл бұрын
soo cool dude
@mooict2 жыл бұрын
Thanks Hamza.
@hamzakhurshid34312 жыл бұрын
@@mooict could tell, how can we count highest score ?
@nguyenvanthai8853 жыл бұрын
Thanks! The "KeyDown and KeyUp" property is missing. I'm using Visual Studio Express 2015. Can You help me, please!
@yotalifepr3 жыл бұрын
Did, though how would I restart the game once is game over?
@astragaming26023 жыл бұрын
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
@mooict3 жыл бұрын
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.
@hs34-t9s4 жыл бұрын
Thanks man
@4wb_ Жыл бұрын
Is there any chance that program can spawn pipes with random height?
@PraveenKumar-br9ry3 жыл бұрын
*variabul* lol...BTW Thanks for the tutorial
@ceejayviii3 жыл бұрын
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.
@xorbie993 жыл бұрын
Okay so you're using Windows Form for this which is like **19** years old! And there have a lot of new APIs like UWP and etc. So I suggest making a tutorial in UWP please. BTW this tutorial works good
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@BoragayJohnMark5 ай бұрын
how can i put transparent background on my pictures? i saved it as png but in vs studio theres a white bg. hop[e anyone can help
@pedropc58244 жыл бұрын
Hi. I don't understand what singnal you typed at 15:41 for represents the pipes. Is a square brackets?
@mooict4 жыл бұрын
Its the pipe symbol it's right next to the shift key on the keyboard on the backward slash key. It represents OR in side of a if condition
@pedropc58244 жыл бұрын
@@mooict thanks!
@zakariyaputrawidyananda90872 жыл бұрын
Keysisup and keyisdown can't use , how to fix it , can you help me
@ossamaassaghir82773 жыл бұрын
what about if you want to restart the game ??
@nazianazir71814 жыл бұрын
how do i get the properties tab pls help i am new
@mooict4 жыл бұрын
Right click on the form and select properties it's usually on the bottom right hand corner of the screen
@neilbertrapacon20062 жыл бұрын
where to put the endGame()???? I can't label it
@somarudrasarma17673 жыл бұрын
umm did everything n everything works fine but when both the pillars render into the game screen screen game plays out at very low fps (my tickrate of the timer is 20 and everything is done fine).. plz tell me how can i fix this laggy mess???
@bjarnenilsson802 жыл бұрын
Nice tutorial, but why use windiws firms when there are extent third party cross platform libraries ? Din't get me wrong windows forms is ok but I fail to see thevreason for tying your app to be windiws onky, unkess I'm missing something
@mooict2 жыл бұрын
It's just for fun really. I like the idea of making something just for the sake of making it and it's great for beginners to get comfortable with programming while learning something new and fun.
@bjarnenilsson802 жыл бұрын
@@mooict good, point, tho pointing beginners to windows only ( an iirc winforms us already maintenance only) tech.. well you mske the call. This was just my to cents, i did not mean to detract anything ftom the work you put into it, bs as i msy have gathered englush is not my first language sp a quick comment on yt might mot allwas be as well expressed as I mightbwish
@Reak2144 жыл бұрын
i dont see "new project" when i click on "file" i have version 1.48.2
@mikethegamedev4 жыл бұрын
he's using visual studio community
@abdirashiidsam25363 жыл бұрын
The toolbar has nothing on my side please help
@juke7663 жыл бұрын
U need to intializing
@AzoIi_ Жыл бұрын
Hello nice video but I didn't understand one thing at 10:03 I saw that you did PipeBottom -= PipeSpeed; same to top pipe but why would you do -= isnt that like substrate nothing by 8 I'm new to coding but nice video it taught me a lot of things
@mooict Жыл бұрын
Hi, pipeBottom.Left -= pipeSpeed means it will move the pipes x axis 8 pixels towards left of the screen with each interval of the timer. It updates on the screen so you could see how the pipes move towards the bird and then respawn on the right again. We did the same thing with the pipeTop.Left because they both will need to do the same animation.
@AzoIi_ Жыл бұрын
@@mooictOHH thank you
@goofy92032 жыл бұрын
Hello! I dont have windows form?
@zikohandar70762 жыл бұрын
Pls clarify my doubt sir does it have tabla soft????? Pls tell sir
@Unknown-ts4rk4 жыл бұрын
Thank you bro
@mooict4 жыл бұрын
You're welcome.
@ito29613 жыл бұрын
Keyboard name please. Love the sound
@mooict3 жыл бұрын
It's my laptop key sound.
@hylu59194 жыл бұрын
What version of Visual studio do you have? because I create a new project differently and I don't know how to steer "form app (.net framework)"
@mooict4 жыл бұрын
I'm using the 2017 version for this tutorial, If you can't see the windows form template you might not have .net desktop development installed in your visual studio here's a tutorial how to set it up - kzbin.info/www/bejne/aYXGopKha7qEibc hope this helps
@heolityrr98732 жыл бұрын
when i start the project it starts the endgame function instantly and i don't know why
@titiksasanti22052 жыл бұрын
using this and never lagging
@nickshredsguitars3 жыл бұрын
Why do you not mention calling of timer1.Start() in your implementation (either in Form1_Load or the Constructor) ?
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs
@brudamonas82084 жыл бұрын
Amazing video, thanks
@mooict4 жыл бұрын
You're welcome, glad you liked it
@pikaia37694 жыл бұрын
i just made this code today and my flappy wont move up and down. what should i do?
@mooict4 жыл бұрын
Check inside the timer if you have the line flappy bird.top += gravity; this line will animate the bird picture box
@gerardokolie18293 жыл бұрын
pls i would like to know more about the If( pipedown.left < -50). why -50
@mooict3 жыл бұрын
-50 is the position on far end of the left side of the screen. We use this line so when the pipe has gone off the screen then it will be replaced to the far right so it can continue to move towards the bird.
@gerardokolie18293 жыл бұрын
@@mooict thanks man
@mahyarkaramali19713 жыл бұрын
thank you , thats a grate tutorial .
@justinlinwoodrossakarythor633 жыл бұрын
View these tutorials: kzbin.info/www/bejne/kJzCoXSlmJmehKs