Share your repls and programming experiences

← Back to all posts
If you're bored... Flappy Bird! (Works on mobile.) (And has a highscore.)
h
PowerCoder (703)

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

Commentshotnewtop
LizFoster (598)

Hey, this is a cool game and all, but you should really fix the hitboxes on the pipes.. I die when I am super far from one.

CodingCactus (3088)

@LizFoster that happened to me, but he said that the alert shows up before you are about to hit the pipe. Basically, if the game continued you would hit the pipe.

maxyang (139)

Happened to me too. Not upvoting until it gets fixed >:D

JosiahKnisely (28)

Bruh? This is broken beyond repair.

LizFoster (598)

@JosiahKnisely I know right..? Still, it is really cool nonetheless!

KobeFF (656)

Same. It's really cool, but it's kinda laggy and I get the same problem as LizFoster and CodingCactus.

LizFoster (598)

@KobeFF Ah, finally, someone who appreciates the art of emoticons! (Lol)

JiahaoCao (11)

you can still play after you're ded tho.

LizFoster (598)

@JiahaoCao What? How? I certainly can't...

JiahaoCao (11)

@LizFoster i think it only works on a computer but you can still jump, and the game still goes forward, but the points wont increase

Imthebestthe (97)

@CodingCactus i do be a big fan of your coding work. Thanks for 40 mins of me trying to change it to go to a link of one of my codes!∠( ᐛ 」∠)_

LizFoster (598)

@JiahaoCao Awwww, lame... I'm on Chromebook though, does that not count? wwwwwww

ZacPlayz (64)

Yeah. I like die when I'm like a lot before the pipes... not upvoting until fixed. @LizFoster

ZacPlayz (64)

(--*)/ I meant that I die randomly before I'm even near the pipes. Like in da game... @@ @LizFoster

LizFoster (598)

@ZacPlayz Ah, okay. Sorry, your wording was confusing
^ ^*

Imthebestthe (97)


im proud of myself ;D

Imthebestthe (97)

@DJWang no. I had forked an older version in which every second you got 1000 POINTS!

amasad (2745)

It's not working on my phone. It says I'm dead before I see any pipes.

PowerCoder (703)

@amasad If you touch the ground it's supposed to say you're dead. Also, I'm glad you're checking out my game.

KobeFF (656)

@PowerCoder No offense, but when I'm like 10 feet away from a pipe, I smash into it and the game's like you died but I was still like 5 feet away from the pipe. You should fix the hitboxes.

Imthebestthe (97)

@KobeFF Firstly. (This is gonna be controversial) METRIC SYSTEM IS BETTER!.
Secondly, where did you get your profile pic?

KobeFF (656)

@Imthebestthe No way! I live in the U.S, so I use imperial system. And also, I have no idea where I got it...

PowerCoder (703)

@KobeFF Ya. Sorry. IDK why it does that. I'll ask the Repl- talk-ask.

KobeFF (656)

@PowerCoder I know a little bit of HTML5. Maybe I can help...

PowerCoder (703)

@KobeFF You can try to help by going here: click me

Imthebestthe (97)

@PowerCoder @KobeFF. I DONT BELIEVE IT! METRIC IS THE BEST! also are you sure you don't know where you got it. Thirdly I live in the UK(proper British) so I like metric

Imthebestthe (97)

this is what it means to be British

ZacPlayz (64)

Lmao I live right now in the Balkans tho I'm born in da UK but I still use the metric system... :3 @KobeFF

KobeFF (656)

@Imthebestthe I was born and am currently living in the U.S, so it's natural that we use the Imperial system.

Imthebestthe (97)

@KobeFF I wonder what it's like in us
that rely nice! Btw, if you can't tell, that was just a joke. Imperial has its good side. Metric is easier to learn.

203366314 (3)

Its great game to play. Its super cool to play but it could be more improvised. Good Try :)

PowerCoder (703)

@203366314 :D Thanks. I'm working on collision detection.

sugarfi (587)

you should set user-select: none on the score so people can't select it by clicking.

PowerCoder (703)

@sugarfi Thanks! I've added that to the game.

PowerCoder (703)

@AdCharity That's really good. Nice graphics. The jump is very smooth.

AdCharity (1329)

@PowerCoder :P nice job on yours too with html elements

PowerCoder (703)

@iterate 😲 Good job. I'm actually really bad at it.

BlueComet (116)

@PowerCoder for some reason it let me go through the pipes thats how I got a highscore

PowerCoder (703)

@iterate That's weird. It works fine for me. In fact, I die really fast from touching the pipes.

DJWang (1246)

@PowerCoder He might've hacked it...

anonymous360c (16)

Hitboxes are broken. Might have something to do with the image type this is using. I recommend images with invisible backgrounds.

CodingCactus (3088)

the hitboxes are still broken :(

PowerCoder (703)

@CodingCactus :/ They're even more broken now. I couldn't figure it out.

Derpchest (9)

I went inside between 2 pipes. and I got a game over?

PowerCoder (703)

@Derpchest Collision detection is a little funky. I asked the ask page and got no good answer.

ggigabyte (3)

It's cool but the screen is too game small!

xxpertHacker (554)

This seemed like it had the potential to relieve my quarantine boredom... alas there is a collision problem which everyone has already mentioned.

Codemonkey51 (894)

The hit boxes are broken

MesyetiIsTaken (56)

There is some input lag... And btw was this made in Ready Maker? It seems like it..

Nettakrim (393)

collision is so broken

MCRusher (2)

If I delete everything except return false from collision() I can get past the first pipe

BlueComet (116)

Nice game very good graphics and design.Very nice :)

earwarmers (7)

Great game, but when you try to past the first pipe, it says "game over" - even when you go through the gap.

PowerCoder (703)

@earwarmers Ya. If you hit it a little further away from the pipe it'll say "game-over." There's not really much I can do.

ChezCoder (1557)

i can help you hook up a database with global highscore keeping! also, upvoted, nice projct!

PowerCoder (703)

@ChezCoder Thank you. I invited you to the project.

NoelB33 (314)

Can you make it so that there’s not a cool down between jumps or a smaller one because it makes it a lot harder to get up and in some cases impossible.

PowerCoder (703)

@NoelBryan What do you mean "cool down."

NoelB33 (314)

The time between taps you can make, because it is very hard to get [email protected]

EthanAkhtar (0)

Idk about you guys but on mine when i hit the ground it gets stuck in a death loop and i have to reset. Might just be me though.

BlueComet (116)

@EthanAkhtar I don't think your allowed to touch the ground

ashrit_lv (22)

@PowerCoder , my point is that I am flying through a pipe

PowerCoder (703)

@ashrit_lv Well you're still dying, right?

PowerCoder (703)

@ashrit_lv Hmmm... weird. It works for me.

BlueComet (116)

@ashrit_lv yes that is happening to me to but its still a cool game right (and it used to happen now it works maybe if you refresh the page or delete the tab and log on into repl then it will work)

RobertFurr (63)

It gets stuck on the popup when you die

PowerCoder (703)

@RobertFurr That's supposed to happen. It stops you from continuing to play. Just hit the refresh button if it doesn't refresh automatically.

Highwayman (1396)

@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 (3088)

@Highwayman oh, of course, that makes sense

PowerCoder (703)

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

CodingCactus (3088)

@PowerCoder It popped I never touched the pipe though

PowerCoder (703)

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

CodingCactus (3088)

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

PowerCoder (703)

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

CodingCactus (3088)

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

PowerCoder (703)

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

PowerCoder (703)

@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 (3088)

@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 (703)

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

CodingCactus (3088)

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

ChezCoder (1557)

@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

BlueComet (116)

I can go through the pipes? Is that normal

PowerCoder (703)

@iterate Collision detection is a little funky. Sorry. I'll try to fix it. It works fine for me though.