Altough I was born a little too early to call this a "childhood" game I can still appreciate it's relevance of this game as a good first game for any beginner programmer. Enjoy!
Controls:
Flap with Mouse or Up
I'd love feedback on the code if anybody is willing :)
UPDATE:
- incorporated @Cutievirus feedback, it feels way better now. Thanks! (fun sidenote: All I had to do was shift "-" right once.
- made it playable with the up button-making this a single button game. Thanks for the feedback, @ahrotahn
UPDATE 6.4.24:
- added automatic saves
I think it would be better if flapping reset your velocity instead of just adding to it, it makes the character feel a bit easier to control and that's how other flappy birds usually work.
Uuh perfect feedback,ill try that!
Just to make sure I understand it properly - the impulse is always the same in other versions?
i love it! into the /desktop/games folder it goes :)
on my laptop, it was a bit hard to click to flap, so i used the up arrow. but then when i died (a lot) i had to mouse over to click restart, then mouse over to click start. could you bind a key to restart/start too, to make it easier to restart?
PS: i love the "ads" lmao, very cute!
@taxicomics yes, usually in flappy bird pushing the jump button sets your velocity to the same value no matter how fast you're already moving up or down. Currently if you're falling too fast pushing the button will only slow you down. I changed this line in player.lua and I think it feels better this way
--do the flappy thing if mouse_clicked or btnp(2) then p.dy=-FLAP_FORCE sfx(0) end |
I just noticed the little advertisements that pop up on the bottom, it's so cute lol
Thank you for your feedback, @Cutievirus and @ahrotahn! That was very helpful, it feels way better now. And it is very funny that the "solution" was to shift a single "-" one step to the right :D
I also made it playable with a single button now.
[Please log in to post a comment]