Page 2 of 3
Re: Flappy Bird PC
Posted: Thu Feb 20, 2014 6:31 pm
by em_uk
Really? I just downloaded and extracted using Winzip!
I will re-upload!
Something so simple turns out to be an ass!

Re: Flappy Bird PC
Posted: Thu Feb 20, 2014 6:40 pm
by Fred
This one is OK, nice work

(you should remove the title bar in fullscreen mode)
Re: Flappy Bird PC
Posted: Thu Feb 20, 2014 7:22 pm
by link0101
what no source code for us starving Purebasic programmers to play with?
jk,
thanks and pretty nice, not sure if the birds suppose to fall really fast, being I never played flappy bird, but it kinda falls fast...
Be really cool to release the code to this if you never intend on selling a version, which I hear Istore and Google play stopped accepting.
but if not, thanks again, its good to flap.
Re: Flappy Bird PC
Posted: Thu Feb 20, 2014 8:35 pm
by em_uk
Thanks for the kinds words!
I could release my code but I expect people would start to rip it apart from spaghetti like qualities!
I'll tidy the source up and upload it - but do remember, I treat code like art!

Re: Flappy Bird PC
Posted: Thu Feb 20, 2014 10:51 pm
by em_uk
Source code added in the first post

Re: Flappy Bird PC
Posted: Thu Feb 20, 2014 11:21 pm
by majikeyric
em_uk wrote:Source code added in the first post

Many thanks for this

Re: Flappy Bird PC
Posted: Fri Feb 21, 2014 12:31 am
by coco2
R.I.P. any laptops that get this installed on
Re: Flappy Bird PC
Posted: Fri Feb 21, 2014 2:47 am
by PB
Gameplay is too fast compared to the real version.

Yes, I have the orig on my iPhone before it was pulled.
Re: Flappy Bird PC
Posted: Fri Feb 21, 2014 2:57 am
by em_uk
RIP laptops? Hardly, I have tested on two laptops and had no issues with overheating. Maybe time you upgraded to a modern processor?
It was a side project and I wasn't looking to optImize for ancient crap kit.
Yes speed is a bit faster but I found the ratio to win wasn't quite right when it was slower. Interesting the Android is a different speed to the iPhone

Re: Flappy Bird PC
Posted: Fri Feb 21, 2014 6:29 am
by coco2
No I'm sure any laptop will play it but I was concerned with frustration being taken out on it being a hard game and a single button one

Re: Flappy Bird PC
Posted: Fri Feb 21, 2014 7:09 am
by Danilo
Thx, works on Mac OS X with some small changes:
Add color constants (even better, use RGB() instead this constants):
Code: Select all
#White = $FFFFFF
#Black = $000000
#Yellow = $00FFFF
Remove ShowWindow_() WinAPI function:
Code: Select all
Select Status
Case 0
;ShowWindow_(WindowID(0),#SW_NORMAL)
Case 1
;ShowWindow_(WindowID(0),#SW_MAXIMIZE)
EndSelect
Replace all '\' with '/' in the data section path strings:
Code: Select all
DataSection
flap:
IncludeBinary "audio/flap.ogg"
flape:
coin:
IncludeBinary "audio/coin.ogg"
...
Changed window size from 1024x768 to 800,600 because OpenWindowedScreen() auto-stretch flag does not work correctly here:
Code: Select all
OpenWindow(0,0,0,800,600,"Flappy Bird PC v1",#PB_Window_ScreenCentered|#PB_Window_TitleBar)
That's it, runs on Mac OS X 10.9.1 Mavericks.
@PB:
What's your high-score on the iPhone?
We have it on the iPad mini 2, should be same speed as iPhone. My wife got 59 points.
I gave up at 19, no chance for me to break the 59 points record...

Re: Flappy Bird PC
Posted: Fri Feb 21, 2014 7:40 am
by link0101
Thanks very much for the source code. I promise if I change anything I'll treat it with respect and if its cool, i'll put the code I change up here myself.
I love playing with code sometimes more than I do the games themselves.
With this its both, game is hard to stop playing. addictive. and I wanna see what might be able to be done to flappy to make it even more fun if thats at all possible.
Who knows, we all might invent the next game craze here lol,
Again thanks,
Re: Flappy Bird PC
Posted: Fri Feb 21, 2014 7:54 am
by Danilo
link0101 wrote:I wanna see what might be able to be done to flappy to make it even more fun if thats at all possible.
Also check out
Mr. Pew (
play Online) - a crazy version with a box.
Re: Flappy Bird PC
Posted: Fri Feb 21, 2014 8:24 am
by davido
@em_uk
Nice work.
Thank you very much for sharing.

Re: Flappy Bird PC
Posted: Fri Feb 21, 2014 9:00 am
by Kiffi
my favourite:
http://squishybird.com/
Greetings ... Kiffi