Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
134

hi this is flappy bird but....3D!!!!

potatojs
potatojs

hiiiiiii

this is a 3D flappy bird you can use any key to play! this is something i just added so if you had any problemes tell me in the comments!

enjooooooy

  • press any key or the mouse to play
  • edit 1:now the bground color is a variable and it's the first line in the script.js : 0 is black, 255 is white
  • edit 2:hi this is me from the future telling you that in my repl there is a smooth() function that makes the graphics better... if your PC is trash like mine you can comment the function using // in the start of the line to make the game less laggy
2 years ago
You are viewing a single comment. View All
2
Nettakrim
Nettakrim

@potatojs

in script.js if you put this just after the pipe spawner

if ((frameCount) % 100 == 20 && frameCount>300) { score++ console.log(score) }

then the score variable will tick up one every time you pass a pipe
if i knew haw JavaScript worked i would also give the code to make the score show up but i dont so ‾\_(' . ')_/‾

2 years ago