Flappy Bird PC

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
em_uk
Enthusiast
Enthusiast
Posts: 366
Joined: Sun Aug 08, 2010 3:32 pm
Location: Manchester UK

Re: Flappy Bird PC

Post by em_uk »

Really? I just downloaded and extracted using Winzip!

I will re-upload!

Something so simple turns out to be an ass!


:)
Last edited by em_uk on Thu Feb 20, 2014 11:37 pm, edited 1 time in total.
----

R Tape loading error, 0:1
Fred
Administrator
Administrator
Posts: 18224
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Flappy Bird PC

Post by Fred »

This one is OK, nice work :) (you should remove the title bar in fullscreen mode)
link0101
User
User
Posts: 34
Joined: Mon Jul 14, 2008 5:03 pm

Re: Flappy Bird PC

Post 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.
User avatar
em_uk
Enthusiast
Enthusiast
Posts: 366
Joined: Sun Aug 08, 2010 3:32 pm
Location: Manchester UK

Re: Flappy Bird PC

Post 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!

;)
----

R Tape loading error, 0:1
User avatar
em_uk
Enthusiast
Enthusiast
Posts: 366
Joined: Sun Aug 08, 2010 3:32 pm
Location: Manchester UK

Re: Flappy Bird PC

Post by em_uk »

Source code added in the first post :)
----

R Tape loading error, 0:1
User avatar
majikeyric
Enthusiast
Enthusiast
Posts: 187
Joined: Mon Oct 21, 2013 5:21 pm
Location: France
Contact:

Re: Flappy Bird PC

Post by majikeyric »

em_uk wrote:Source code added in the first post :)
Many thanks for this :D
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Flappy Bird PC

Post by coco2 »

R.I.P. any laptops that get this installed on
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Flappy Bird PC

Post by PB »

Gameplay is too fast compared to the real version. :)
Yes, I have the orig on my iPhone before it was pulled.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
em_uk
Enthusiast
Enthusiast
Posts: 366
Joined: Sun Aug 08, 2010 3:32 pm
Location: Manchester UK

Re: Flappy Bird PC

Post 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

:)
----

R Tape loading error, 0:1
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Flappy Bird PC

Post 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 :smile:
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Flappy Bird PC

Post 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... :D
link0101
User
User
Posts: 34
Joined: Mon Jul 14, 2008 5:03 pm

Re: Flappy Bird PC

Post 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,
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Flappy Bird PC

Post 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.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Flappy Bird PC

Post by davido »

@em_uk
Nice work.

Thank you very much for sharing. :D
DE AA EB
User avatar
Kiffi
Addict
Addict
Posts: 1503
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Flappy Bird PC

Post by Kiffi »

my favourite: http://squishybird.com/

Greetings ... Kiffi
Hygge
Post Reply