Create Flappy Bird Game Using JavaScript and HTML5 | JavaScript Project For Beginners

preview_player
Показать описание
Flappy Bird was a side-scrolling mobile game featuring 2D retro style graphics. The objective was to direct a flying bird, named "Faby", who moves continuously to the right, between sets of Mario-like pipes. If the player touches the pipes, they lose. Faby briefly flaps upward each time that the player taps the screen; if the screen is not tapped, Faby falls because of gravity; each pair of pipes that he navigates between earns the player a single point, with medals awarded for the score at the end of the game. No medal is awarded to scores less than ten. A bronze medal is given to scores between ten and twenty. In order to receive the silver medal, the player must reach 20 points. The gold medal is given to those who score higher than thirty points. Players who achieve a score of forty or higher receive a platinum medal. Android devices enabled the access of world leaderboards, through Google Play.

There is no variation or evolution in gameplay throughout the game, as the pipes always have the same gap between them and there is no end to the running track, having only the flap and ding sounds and the rising score as rewards.

And today you're going to create the Flappy Bird game using JavaScript and HTML (or HTML5 canvas).

We're not using any framework to build the game, Just Vanilla JavaScript.

This is a beginner's guide on how to create the flappy bird game using JavaScript and HTML.

If you want to follow along with me when I type in the code, you'll need to download the starter template from GitHub.
-----------------------------------------------------------------------------------------------------
| LINKS |
-----------------------------------------------------------------------------------------------------

DOWNLOAD SOURCE CODE + STARTER TEMPLATE:

---🌍 Social Media Links.

💲 Suppport the Channel

-----------------------------------------------------------------------------------------------------
| HASH TAGS |
-----------------------------------------------------------------------------------------------------
#JavaScript #beginners #jstutorials
#JavaScript #Games #JavaScriptGames
Рекомендации по теме
Комментарии
Автор

🚨 Big Announcement! 🚨

Hey everyone! I've made a big decision for this channel—I've turned off ads on all my videos! That's right, you can now enjoy all my content ad-free! This means I'm earning $0 from ad revenue, but I believe this is the right move to make your viewing experience better.

If you find my content valuable and want to support my work, there are several ways you can help:

Like & Share: Simply liking the video and sharing it with friends helps a lot!
Subscribe & Hit the Bell: Stay updated and never miss a new video.
YouTube Thanks: Use the "Thanks" button below to send a one-time donation.
Join the Channel Community: Get exclusive perks and behind-the-scenes content.

Every little bit counts and goes directly to creating more high-quality content for you all. Thank you so much for your continued support!

Let’s keep growing and learning together! 🌟

CodeExplained
Автор

Hello,

your Tutorial help me a lot more with understanding JavaScript since im learning it at the moment. Your Videos are very simple and fast explained, also the best Part of it is the Graphical Part where you show all steps in detail. Will defently check out your other Tutorials :)

Thank you

_yzx
Автор

Finally a tutorial I actually understand as a beginner.

sopheakchey
Автор

Hi,

I am a computer science engineer from Sweden and för the first time of my student life I was able to understand everything! Bro you're better than all this programming professor that I have during my long studies. Keep on going. Very well explained from start to finish. THANKS A LOT. Perfect!

Cecilia

ceciliahakansson
Автор

Wow! Following your video, I made my first game. I am looking forward to seeing you have more tutorials. Thanks!

juntingwang
Автор

i watched all the tutorials about how to make a game on the yt and didnt understand all of it until i watched this video
thx for the tuto bro.

zamayt
Автор

This was fantastic. I went back and forth through this video a few times and actually managed to understand most of what was going on, even though I've never looked at JavaScript in my life. I've just started on my journey to learn Web code like HTML, CSS, PHP, and JavaScript, and this video was immensely helpful in walking me through the actual relationship between the many variables and functions. Thank you so so much.

FilmmakerJ
Автор

to display the Bg image and all i added in the first line in function draw() and it worked for me.
tnx for a great tutorial btw. love it ^_^

vuchke
Автор

thnk you and good work. will use this as my reference as I am a beginner.

pollyolly
Автор

This is so great I am glad I found this. I've been struggling and you made it make sense thank you!

sandrakaauwai
Автор

great, clear, well-presented tut. Thanks.

popothebright
Автор

Just found your channel. Now I know why it's called Code Explained. That's so great! Thank you so much!

LucXX
Автор

You deserve so many subs because I’ve been looking for a tutorial explaining JavaScript and this is the best one ever! Well done and keep it up!

matthewsinclair
Автор

I've watched tuts for years yet none f them were as clear as this, the kind of clarity that makes one feel stupid like...."WHY WAS THIS HARD FOR ME!!" lol

faycalbenlarbidelai
Автор

Bird fall due to acceleration due to gravity, acceleration affects velocity which in turn changes Y position, if you consider would consider that your Bird will look actually falling. Well overall nice tutorial ❤️❤️👍

gouravchouhan
Автор

Really clear and good explanation! Never seen anything like that in a while! You earned a subscriber ;)

LookjaklooK
Автор

u are just brilliant!!! I never thought about mKing a game on web :-) thnks very much :-)

JSSolutions
Автор

This is coming from someone who is barely learning about Java script but this was very well explained

breadofgodd
Автор

One of the best tutorials I've seen. Thank you !

agnedominus
Автор

Thanks Bro you are doing a great work
Your way of teaching is really simple
Loved that

AjayKumar-idmb
join shbcf.ru