If you're bored... Flappy Bird! (Works on mobile.) (And has a highscore.)
h
PowerCoder (741)

If you're bored in quarantine, here's a fun and addicting game for you.

Cool features:

  • Highscore system
  • Good graphics

How to play:

To jump up press the spacebar.
The goal is to dodge the pipes. If you get hit by the pipes, it's game over for you.
Another way you can die is by touching the grass.
If you still don't get how to play go here: click-me.

Reviews

  • DigitalRipple:noice.
  • Iterate:this is amazing.

Updates:

  • Changed the collision detection
  • Added an actual game-over screen

Have fun :D

You are viewing a single comment. View All
Highwayman (1501)

@CodingCactus hmmm you are green, the pipes are green... the minute your finger touched the screen it was registered as a pipe since it looked exactly like the green pipes, making you die. 👍

CodingCactus (4331)

@Highwayman oh, of course, that makes sense

PowerCoder (741)

@Highwayman 😂. No. It's just that the you're dead alert pops up after you've hit the pipes.

CodingCactus (4331)

@PowerCoder It popped I never touched the pipe though

PowerCoder (741)

@CodingCactus You probably touched it a little. It works fine when I play it.

CodingCactus (4331)

@PowerCoder It just happened again, can't make it past the first pipe

PowerCoder (741)

@CodingCactus You can't touch the ground either or else you're dead. (Maybe you're touching the ground.)

CodingCactus (4331)

@PowerCoder look at the picture, am I touching the ground? (seems to be fine now)

PowerCoder (741)

@CodingCactus Well IDK what's wrong. But at least it's working now. It works perfectly fine for me.

PowerCoder (741)

@PowerCoder Oh! I figured it out. The alert showed up a little before the actual collision. So If you press "ok" on that alert button, it should show you touching the pipe.

EDIT: I'm going to stop using alerts. They look bad. And it might be why some people are having issues with this.

CodingCactus (4331)

@PowerCoder oh yeah, I see now!! Are you going to do anything to delay the message so that you can actually see yourself dying?

PowerCoder (741)

@CodingCactus Ya. I might also get rid of the alert entirely to make something else say game-over.

CodingCactus (4331)

@PowerCoder Ye, I think it would be better not to have an alert

ChezCoder (1607)

@PowerCoder simple fix,

setTimeout(() => {
    alert("You died :(")
});

One milisecond interval before it alerts you died. Just replace the alert("You died :(") with the above :D