Inspiration

The game follows a similar format to the Flappy Bird gameplay, but I decided to add my own twist to it. My game follows a vampire/bat theme, inspired by my interest in the them, and the crosses act as obstacles, much like how vampires are repelled by crosses.

What it does

The player has to keep the bat afloat between the crosses on the top and bottom of the screen. Each time they successfully pass through a cross, they gain a point. The program also keeps track of the player's high score and current score, and keeps them updated on the home screen after each game play.

How I built it

I built the program using JavaScript and images that I created.

Challenges I ran into

The greatest challenges I faced while developing this project was ensuring that the interaction between the bat and the crosses worked as intended - in particular, it was difficult to calculate exactly what the distance between the bat and the cross need to be in order for them to be considered "touching" (and therefore where the game should end). I've also pushed myself to experiment with writing scripts that I haven't done before, such as coding and switching between different game scenes.

Accomplishments that I'm proud of

I'm proud of how I managed to switch between the different game scenes in the program smoothly and consistently that replicates an actual gameplay.

What I learned

I built off my knowledge of JavaScript from some programming classes I took and really pushed myself on what I'm capable of making with it.

What's next for Flappy Bat

I would like expand on the in-game experience that by adding elements that gives the player score boosts, size changes (temporary shrinking to make it easier for the bat to pass through), etc.

Built With

Share this project:

Updates