Flappy Bird banner

Flappy Bird

27 devlogs
25h 18m 44s

The classic but with a twist.
Controls(my recommendation) use click for power up activation and space bar for flappy bird’s movement.
I hope you enjoyed.
See you guys in a new video game.
The ui works well with 1080p and 1440p monitors.

Demo Repository

Loading README...

vikram26

Shipped this project!

Hours: 25.31
Cookies: 🍪 707
Multiplier: 27.92 cookies/hr

This is a classic flappy bird game but featuring a Shop , Power-ups and Currency system.
Controls : click or space bar.
Recommended Controls : Space Bar for Flappy bird’s movement and Mouse Click for activation Power-ups.
Built entirely with HTML5 Canvas, CSS and JavaScript.

vikram26

Man there is a simple bug in my code which took 48 mins to solve while i was testing in local server i had powerups like 30 or 40 so i never had the bug but while in global server it was causing the issue cause i had like 1 powerup per type the logic issue instead of checking quantity -1 >=0 to verify whether the player can use or not i was using >- 0 which i never noticed i freaked out like what what is wrong now everything is sorted and in the meantime i wrote the readme file too. Now ready to ship.
See you guys in next game.

Attachment
0
vikram26

Completed the game so you can play it right now and enjoy the game. if you want to give suggestion drop a feed back in the comment box or the github page. Now only two things are left banner and readme file.

Attachment
0
vikram26

Added the shield option it is better to play with space bar for clicking and mouse for clicking on power ups (need skill for playing in mobile phone ig 😅😂). I added a coyote timer for collision so if you collided with pipe you have 0.5 sec with no collision detection and for rockets and ground you will have 0.3sec.

Attachment
0
vikram26

Now i have added delete option for the loadout so if you want to change the current loadout and add new ones you can remove the existing one and choose whatever you want. I am able to achieve this by storing the delete button location and dimension in an array of size 3 if i draw a slot then there is a option to delete so when clicked on a delete button i know the index which is going to be deleted and i will remove the data from the code and local storage as well.

Attachment
Attachment
0
vikram26

Added the local storage functionality , so whenever a skill is chosen it will get added to data so it will stay there even when page is refreshed. Now got to add cancel option for it so the player can choose another skill in place of the existing ones.

Attachment
0
vikram26

Added a gear page where you can see how much you have for each skill/powerup. And you can select any 3 from it to use it in game(still need to add the functionality to add skills to the slot).

Attachment
0
vikram26

Added the amount of quantity you currently have for each powerup with this the shop page is over.

Attachment
0
vikram26

Now when clicking on the buy button it will set the quantity to the local storage with respective power up. Now got to add the quantity display near the power up icon.

Attachment
0
vikram26

Completed the shop page. Now it handles the height dynamically if the description extends more than one line and we can scroll up to down to view the power ups in the shop. Still need to add the buy option for it.

Attachment
0
vikram26

Currently changed the shop ui into this. Need to add scroll behavior, content width and buy option.

Attachment
0
vikram26

Made this so far but i don’t quite like it cause it looks so small , I think i am going to just slow one item per col(centered) so if i make it big nothing else will be affected.

Attachment
0
vikram26

Added shop and implemented close and coin display functionality.
Now we want to add power ups and slot mechanism so the player can only able to carry three or four power ups(any quantity) to the game.

Attachment
0
vikram26

Added a overlay system for rocket so no two rocket spawn on top of each other while also allowing player to pass through a small gap if two rockets spawn nearby.
Rocket/missile speed vary from each other.

Attachment
0
vikram26

Added rocket collision and when the flappy hits the missile/rocket it draws a blast where they hit(always front of the rocket which the flappy hit).
Now we have to add music, sound effects, shop page and shop items to make life easier.

Attachment
0
vikram26

Made a rocket spawn system and making it move from right to left. Want to add collision for it and increase the spawn count with increase in score.

Attachment
0
vikram26

Added a shop button and wrote some code for items then went to draw the necessary art for the shop.

Attachment
Attachment
0
vikram26

Add this new badge when betting the previous high score. and fixed some logic issue in the codebase.

Attachment
1

Comments

sanjeevirajanramajaya
sanjeevirajanramajaya about 1 month ago

Great Job!

vikram26

Added a tap animation when cicking start so the player can prep for the game.

Attachment
0
vikram26

Added a game over page and best score system using the local storage.
Now we want to add a retry option or main menu and the twist.

Attachment
0
vikram26

Added a start page and pause functionality, now got to add a lose/retry page and game over mechanism and with that i am going to add my twist i am very excited.

Attachment
0
vikram26

Added a collision check for the pipes and the ground and want to make sure the bird never zooms through the pipe when playing the game.

Attachment
0
vikram26

Added score system now there are only a few things left one is my twist and the another is AABB collision system to detect whether the player hit wall or the ground.

Attachment
0
vikram26

Added pipes just a hectic process to do , finally somehow made it work but it doesn’t offer quite a challenge now so i have to manually add height to the pipe in the sprite sheet.

Attachment
0
vikram26

Made the ground move in the opposite direction of the flappy bird. so now it looks like we are moving forward in the game but in reality we are always in a static point. i couldnt capture the moving ground in the picture.

Attachment
0
vikram26

Added background , ground and collision check when hitting the ground now wanna add pipes and the twist.

Attachment
0
vikram26

Added flappy and set his motion like it acts with gravity and tapping makes him go up and i want to make the nose dive down and up for it so we can tell he is going up or down just a visual thing.

Attachment
0
vikram26

Just added a character.js where i just mapped the flappy bird positions from the sprite sheet.
Still wondering how to animate it like a full rotation or tapping makes the animation but i am thinking that i would be too slow to animate the full animation when tapping simultaneously.

Attachment
0