Log In  

Cart #picowings-2 | 2024-04-06 | Embed ▽ | No License
6

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
P#143696 2024-03-18 14:06 ( Edited 2024-04-06 13:04)

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.

P#143701 2024-03-18 14:44

Uuh perfect feedback,ill try that!
Just to make sure I understand it properly - the impulse is always the same in other versions?

P#143706 2024-03-18 14:59
1

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!

P#143754 2024-03-18 20:12 ( Edited 2024-03-18 20:13)
1

@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
P#143762 2024-03-18 21:41
2

I just noticed the little advertisements that pop up on the bottom, it's so cute lol

P#143765 2024-03-18 21:48

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.

P#143811 2024-03-19 07:53

[Please log in to post a comment]