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
133

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
26
7
potatojs
potatojs

thanks and i'm going to add the score and the animation [email protected]

2 years ago
5
CoolJames1610
CoolJames1610

k

@potatojs

2 years ago
2
DynamicSquid
DynamicSquid

@CoolJames1610
yeah, definitely agree :) a score would be nice!

2 years ago
2
potatojs
potatojs

yeah that is cool! it's more than the upvotes of a lot of [email protected]

2 years ago
2
2
Nettakrim
Nettakrim

@potatojs
is 11 days soon lol

2 years ago
2
potatojs
potatojs

XD at least i tried :(@Nettakrim

2 years ago
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
2
potatojs
potatojs

yeah i already had a score system but because this is very old, and now i know that its code is *** so it's very hard to add things to it but maybe some day i well make a remake to this project...you know what i will start it [email protected]

2 years ago
2
potatojs
potatojs

you know what this project is the worse thing i ever made the code is just the worse i tried to add a simple score system and the errors start comming from every where i'm done with this thing!
and thanks for the comment :)

@Nettakrim

2 years ago
1
NehalRam
NehalRam

@potatojs
Is one year soon? lol jk i know you tried ;)

1 year ago
1
potatojs
potatojs

@NehalRam
lmao at this point i can make a full 3D flappy bird but is online multiplayer in a day, but i won't because i hate flappy bird and these guys play it better than me

1 year ago
1
NehalRam
NehalRam

@potatojs
ai does play very good
but it is still made by you

1 year ago
1
potatojs
potatojs

@NehalRam
yeah i just wrote some functions and the computer did the rest... even if i made them i have no idea how to beat the game

1 year ago
1
NehalRam
NehalRam

@potatojs
do you know any pygame? i am trying to make one but mate replit is the worst ide you can use for pygame

1 year ago
1
potatojs
potatojs

@NehalRam
use vscode, replit is kinda slow for any native stuff, there is a million tutorial in youtube about how to install vscode, python, then pygame.
i played a bit with pygame but it was too slow even compared to js (in the browser)

1 year ago
1
NehalRam
NehalRam

@potatojs
ok... i am looking for some ideas for my game rn so some would be appreciated :)

1 year ago
1
potatojs
potatojs

@NehalRam
go watch youtube or something, or go in a walk, if you stay at home thinking you won't do any progress. you need to find insperation,

1 year ago
1
NehalRam
NehalRam

@potatojs
do you know how to make platforms in pygame?
this is my game:
https://replit.com/@NehalRam/I-wanna-learn-pygame
i need the red platform to be interactable like you can rest the player there

1 year ago
1
potatojs
potatojs

@NehalRam
there is multiple ways to achieve this, just surch "platformer logic", or "platformer physics" even if the tutorial isn't in pygame just understand the theory and try to implement it in python, :D

1 year ago
1
NehalRam
NehalRam

@potatojs
thx man. send me a discord inv(Tonystark2008N#1871)

1 year ago