Skip to content
ā† Back to Community
šŸ¦ Flappy Block šŸ¦
Profile icon
LorenzoCampos

Unicode character based so it runs 'well' on repl. If this even reaches half the popularity of snake I'll make a bunch of other small games using similar methods.

For people with problems seeing the Unicode characters here's a solution from @sojs

Very big thank you to @firefish for the suggestion on how to clear more efficiently
Thank you to @Muffinlavania for reminding me and for the cursor advice

Coder100 if you're reading this I'm still figuring curses out I didn't ignore your suggestion lmao
Voters
Profile icon
AndrewDaume
Profile icon
SebastianNarvae
Profile icon
KaushalV
Profile icon
SamSa2
Profile icon
TonyWu4
Profile icon
LaneMartin
Profile icon
SleepySid
Profile icon
Kgbadz
Profile icon
elijahbernard
Profile icon
sakawopzu
Comments
hotnewtop
Profile icon
sojs

image
It is just a bunch of squares for me.

==Edit==
Wow lot o' upvotes.

Profile icon
tussiez

@sojs Rip, have you tried switching the emojis

Profile icon
sojs

ya, I forked the repl, and changed air to " ", and walls to "|". everything else worked fine. (view other comment - scroll down a bit) @tussiez

Profile icon
[deleted]

@sojs lul it would have been squares bc your computer/phone hasn't updated their emoji's

Profile icon
LorenzoCampos

@sojs I made sure to link your solution in the description so more people get to use your solution! -thank you

Do you mind updating it a bit? there were small improvements added just so everyone can enjoy them

Profile icon
sojs
Profile icon
LorenzoCampos

@sojs Thank you!

Profile icon
sojs
Profile icon
ProCatGuy

Hey it doesn't say that to me it just doesn't let me go up.

Profile icon
sojs

Space to go up, no [email protected]

Profile icon
Muffinlavania

A VERY good suggestion I got a while back (I forget from who) is instead of
os.system('clear') #(Or whatever fancy version you have)
You can do
print("\033[H",end="")
One downside is it only update characters, so if some was to spam keys then maybe it would semi glitch out, one major upside is it barely flickers ever
so pog

Profile icon
Muffinlavania

@Muffinlavania btw this is a much easier thing instead of weird modules like curses and stuff i gave up trying to find out how to do that a while ago Also i think this would be perfect for this since spamming does like nothing

Profile icon
JBloves27

hum @Muffinlavania

long time no see

Profile icon
Muffinlavania

@JBloves27 wait did you give me that

also hi lol haven't been on in a while but im working on a big thing

Profile icon
LorenzoCampos

Thanks for the suggestion, about 2 days ago firefish said the same, I forgot it until now thanks for reminding me!

Profile icon
Muffinlavania

@LorenzoCampos cool beanz (btw if you gonna give credit for the idea do firefish lol)

Profile icon
LorenzoCampos
Profile icon
Muffinlavania

@Muffinlavania oh also if you want to not see the cursor having a heart attack you can just put

import cursor cursor.hide()

at the start of the code

Profile icon
JBloves27
Profile icon
Muffinlavania

@JBloves27 i was talking about the print("\033[H",end="") thing, i think it was firefish idk

Profile icon
JBloves27
Profile icon
glitchish

@Muffinlavania curses is bad too hard, blessings is better curses github or blessings on readthedocs

Profile icon
SeamusDonahue

.erase does the same but without that glitchyness
@Muffinlavania

Profile icon
Nettakrim

@Muffinlavania you can also use "\033[?25l" and "\033[?25h" to hide/show the cursor (this has the advantage of not needing to import anything, speeding up initial load time significantly, but like all ansi codes its only really found on linux)

there is also a chance that the person who told you that was me, or someone who i told
edit: in this post, look at the second comment down

Profile icon
Muffinlavania

@Nettakrim the man behind the magic print("\033[H",end="")

Profile icon
Muffinlavania
Profile icon
sojs

Hello everyone! For I see that a lot of people are just seeing squares. Why? I have no idea. Do not worry. You can still play this game. I forked @LorenzoCampos's repl, and changed the characters to standard keyboard ones. Find the repl here. Remember to upvote the post if you like it, as all the code was actually made by @LorenzoCampos, I just changed some parameters.
(Nice game by the way)

Profile icon
[deleted]

@sojs your computer\laptop doesn't have the emoji's (the emojis @LorenzoCampos are too new) so it will come up as squares

Profile icon
sojs

Yes, that is why I forked it. So I could change the emojis. @TheC0derGirl

Profile icon
[deleted]

@sojs yep

Profile icon
RhinoRunner

My life

image

The story of

Profile icon
dgrilawidbanana

How do you turn off automatic echoing of keys to the screen?

Profile icon
dgrilawidbanana

how do you hide text typed by the player?

Profile icon
YeetThatMeat

absolutely phenomenal. The only improvements that I see would be to have just pressing enter on the "want to play again" screen restart it, and perhaps checking the height of the bird relative to the world in scroll() before giving y a value, as spamming space or up arrow can cause the game to continue scrolling without taking damage nor receiving points until it manages to load them. Making this is incredibly impressive. Not only that, but it's a good and fluid game. Keep it up!

Profile icon
LorenzoCampos

@YeetThatMeat great suggestion, ill make sure to include it in future projects!
for the spamming the key thing I'll work on it a bit later when I have more free time

Profile icon
Brendan23

@LorenzoCampos I don't think you die when you touch the ground in flappy bird.

Profile icon
LorenzoCampos

@Brendan23 I had to do that because it works with a 2d array, if it goes down more it'll just pop up at the top lmao, this was the easiest way to fix that

Profile icon
Brendan23
Profile icon
peternielsen112

image

GOTTEM AT 6 bruh

Also, bro. How d'you get so many upvotes? .....

Profile icon
LorenzoCampos

@peternielsen112 I guess you make something fun and people seem to like it!

Profile icon
peternielsen112

@LorenzoCampos I have a bunch of old projects but they're garbage... and some python text based games. I tried posting but it never gets seen. Any ideas?

Profile icon
LorenzoCampos

@peternielsen112 I guess if you do something uncommon people tend to notice them more, try a unique idea and work on it for a bit and see how it goes!

Profile icon
peternielsen112

@LorenzoCampos thanks for the advice

Profile icon
SilvermoonCat

oOf this is so hard but nice job!

Profile icon
TimothyRowell

63 my high score

Profile icon
FallenAngel6

@TimothyRowell Nice, I got 71

Profile icon
elijahbernard

Cool game, I got to 45!

Profile icon
generationXcode

my high score is 3 points

Profile icon
IOP3
Profile icon
ahkid7674

brubh if theres a really har obstacle i dont wanna do i found out you can just spam and you skip it

Profile icon
XanthusPettitt

me: plays with 60 frames
this game: I'm bout to end this mans whole career

Profile icon
ThePotatoNinja

Let's gooooooooooo, got 15

Profile icon
chibifox

i died with 32:(

Profile icon
Niamh1234

5
šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ¦ ā˜  šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ¦ šŸŸ© šŸŸ¦ šŸŸ¦ šŸŸ¦
šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ© šŸŸ©
You died with 5 points :)
Want to play again?

Profile icon
totoeevee

laggy but good.

Profile icon
ThisUserTaken

Me: ez
Lag: are you sure about that
Me: wait wat
Lag: Its time to add an extra challenge
Program: You died with 0 points

Profile icon
LingWu1

This is impressive but how on earth did it get so popular

Profile icon
MaxitoPlayer
Profile icon
JackTheJavaDev

Very good. I enjoy.

Profile icon
CoolCoderSJ

this is really cool

Profile icon
PolinaSafonova

Screenshot 2021-03-03 at 10.02.59 AM
died with 14 points, first time playing loool

Profile icon
LorenzoCampos

@PolinaSafonova please close some tabs

Profile icon
BananaJellyfish

unfortunately, my computer doesn't process these icons
image

Profile icon
LorenzoCampos

@BananaJellyfish here's a solution from sojs

Profile icon
BananaJellyfish

@LorenzoCampos yes now it works!

Profile icon
IsaacSands

that is so cool.

Profile icon
Coder100

yay

Profile icon
Coder100

bruh i'm living under a rock these days @Coder100

Profile icon
ProCatGuy

Beat my highscore of 7!