making a game using Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

making a game using Java

I am making a flappy bird kind of game. But I want it to jump once doesn't matter how long you press the jump button. In other words I want jump command to break after one jump then to jump again player should press again. I am not so good programmer. So need help in simplest java code. Please reply as soon as possible. Thanks in advance.

2nd Feb 2017, 4:56 PM
chanki bhakuni
chanki bhakuni - avatar
7 Answers
+ 1
A nice tutorial on the basics of "Fappy bird": https://m.youtube.com/watch?v=cXgA1d_E-jY and the conversion to "Clappy bird": https://m.youtube.com/watch?v=aKiyCeIuwn4
2nd Feb 2017, 6:00 PM
seamiki
seamiki - avatar
0
Thats not java i think. Still I'll try to do that in java. Anyway, Thanks a lot.
2nd Feb 2017, 6:26 PM
chanki bhakuni
chanki bhakuni - avatar
0
Other answers are also welcome
2nd Feb 2017, 6:27 PM
chanki bhakuni
chanki bhakuni - avatar
0
My bad, it's JS but the same concepts apply except for the array (of obstacles) handling that differs between the two languages
2nd Feb 2017, 6:29 PM
seamiki
seamiki - avatar
0
for that obstacle i have other thing, a little lengthy but it will work. I need to try this JS in java. Hope I'll get what I am looking for.
2nd Feb 2017, 6:31 PM
chanki bhakuni
chanki bhakuni - avatar
0
BTW just below the video I linked there was this: https://m.youtube.com/watch?v=I1qTZaUcFX0 It says Programming Flappy Bird in Java! (Full Tutorial) I'm not sure about its content as i didn't watch it. hopefully can be helpful to your project.
2nd Feb 2017, 6:32 PM
seamiki
seamiki - avatar
0
okay I'll watch it too. Thanks seamiki
2nd Feb 2017, 6:34 PM
chanki bhakuni
chanki bhakuni - avatar