Code Flappy Bird in Java

preview_player
Показать описание
How to code flappy bird game in java. In this tutorial, you will learn how to code flappy bird using java awt/swing graphics.

Throughout the tutorial, you will learn how to create the game loop, create a jframe and jpanel, draw images on the jpanel, add click handlers to make the flappy bird jump, randomly generate pipes and move them across the screen, detect collisions between the flappy bird and each pipe, and add a running score.

Setup Java with Visual Studio Code:

Java Game Programming Projects Playlist:

JavaScript Game Programming Projects Playlist:

Subscribe for more coding tutorials 😄!
Рекомендации по теме
Комментарии
Автор

this past month my college faculty announced a strike, and i stopped studying java for these few weeks. But your videos made me code all week long and practice everyday! Your way to teach is very easy to understand, keep the great work! I think in a few I'll watch your web dev games and practice with them too!

kiro
Автор

Bro I'm going to submit this as my final year java project
. Wish me luck🤞🏾💪🏾


Quick update!!!

I completely changed your code, added sound effects and actually changed the whole game and named it "Flappy Chicken". Y'all could think what i did here 😂. I changed the theme of the game completely and turned it into a Minecraft chicken jumping over Minecraft trees game. Like wthhh💀 well at least i got full marks though❤

alllatesttoday
Автор

Thank you sir. Your Java videos are really Wonderful. They motivate me to learn java more deeply. I am a third year cs engineering student enjoying your videos. Completed the tutorial and it's working. You are a great teacher ❤️❤️😊

jpecezw
Автор

great tutorial man, your videos are the only ones i can follow without getting a thousand errors. I subbed

CrackBack
Автор

I have to say, your java videos have been very helpful for me, thank you very much mate

Legendary_MoMo
Автор

Thank you so much for this wonderful Video, At every stage of making my first game from making own window to the final game is Journey where I got happiness at every stage of this wonderful Project ! 😊

mayurhiware
Автор

i like how you explain all the things.

subhajitgain
Автор

Brhoo I completed this game coding now I am in 2nd year of first semester broo 😅

gbramplayers
Автор

so far so good ... i used vim to write the code (was using vim for the first time ... i can say this much i am a fast learner... learnt some java swing, and how projects are made and ofcourse how to run terminal in vim and also i learnt i can compile multiple files using javac app.java flppybird.java anf then bla bla bla) man i still have to complete this video (rn i am where you explained, oh just as a quick recap the screen resolution is this and we got the bg image loaded) ama go grab something to eat i am tired

edit just realised: it has only been 12 minutes (i wanna cry)

eyzake
Автор

THank you for doing this tutorial it's pretty awesome

yu-tehuang
Автор

Thank you for the wonderfull video...!!!

imadudin
Автор

Really well made video, super interesting!

silvermurrell
Автор

damn sir how did you memorize all the codes . you are so pro!

ChastenRamirez
Автор

Hi bro, what is the best way to practice with this video ?
I gonna divide the video into modules and stop the video and do it with myself, then continue the video
what is your opinion about that ?

I am a beginner in java, and this will be my first project

karimashraf
Автор

What are the prerequisite concepts to start with this project.

-CA-JabastinA
Автор

pipes ArrayList is added with pipes.add(topPipe); So does it mean the it is added infinitely to the pipes ArrayList? If so, then pipes.size() is infinite?
Sorry I don't have good knowledge about these memory management since I am new at programming

leonelmessi
Автор

the video is only 1 hour long but it took me 3 hours to watch and build this game.

ajayrajpoot
Автор

hi, i would like to ask if is it possible to modify the game that it would show a choices of "restart or quit" at the end of the game and shows the score of the player. Then the game speeds up after a long time. if yes, how can i do it?

N_Ananonymous.
Автор

Damn u are actually quite patient in these comments

ifcvf
Автор

Sir I didn't get the blue panel it shows error code is ecxtaly like you no another line so why it is show me error like this

jaywagh