Flappy Bird Clone Programmed in Kivy: FlappyKivy!

246 views
Skip to first unread message

Thomas Hobohm

unread,
Apr 14, 2014, 10:47:24 PM4/14/14
to kivy-...@googlegroups.com
I programmed FlappyKivy, a Flappy Bird clone programmed using Python and the Kv Language. What do you guys think?

Alexander Taylor

unread,
Apr 15, 2014, 7:01:48 AM4/15/14
to kivy-...@googlegroups.com
I think you have a kv file naming bug - the code doesn't work for me unless I change FlappyBird.kv to flappybird.kv.

Nice game though!

Ben Rousch

unread,
Apr 15, 2014, 8:07:09 AM4/15/14
to kivy-...@googlegroups.com
This is common when people develop on Windows, which is case-insensitive, and other people try to run it on superior operating systems.


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/

Dave Finnerty

unread,
Apr 15, 2014, 8:20:52 AM4/15/14
to kivy-...@googlegroups.com
Very Cool Example.

Thanks for sharing.  I did have the same issue with the .kv file having to be all lower case for it to work.

But nicely done.

Milos Bulatovic

unread,
Apr 18, 2014, 6:21:10 AM4/18/14
to kivy-...@googlegroups.com
Would be nice to see every game on android market. Because I want to play it on the phone. Because it's cool :p

stas.zy...@gmail.com

unread,
Apr 22, 2014, 1:08:07 PM4/22/14
to kivy-...@googlegroups.com
What's making this game require kivy 1.8 ?
On kivy 1.7 it doesn't work.



On Tuesday, April 15, 2014 4:47:24 AM UTC+2, Thomas Hobohm wrote:

Ben Rousch

unread,
Apr 22, 2014, 1:40:14 PM4/22/14
to kivy-...@googlegroups.com
There were a lot of changes between 1.7 and 1.8 https://groups.google.com/d/msg/kivy-users/PePoXLXDYBk/aXaJiaYDYN0J


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stas Zytkiewicz

unread,
Apr 22, 2014, 1:58:58 PM4/22/14
to kivy-...@googlegroups.com
On 22-04-14 19:40, Ben Rousch wrote:
> There were a lot of changes between 1.7 and 1.8
> https://groups.google.com/d/msg/kivy-users/PePoXLXDYBk/aXaJiaYDYN0J
Never mind, the problem was in the naming of the kv file.
I've renamed it and used Builder.load to load it and now it works.

Nice game, it just leaves some black "holes" in the background on a
larger screen.
I will fix it and send a patch to Thomas.

Thanx for sharing the game :-)

>
> On Tue, Apr 22, 2014 at 1:08 PM, <stas.zy...@gmail.com> wrote:
>
>> What's making this game require kivy 1.8 ?
>> On kivy 1.7 it doesn't work.
>>
>>
>>
>> On Tuesday, April 15, 2014 4:47:24 AM UTC+2, Thomas Hobohm wrote:
>>
>>> I programmed FlappyKivy <https://github.com/superman3275/FlappyKivy>, a

stas.zy...@gmail.com

unread,
Apr 22, 2014, 2:12:28 PM4/22/14
to kivy-...@googlegroups.com
The screen resolution fix is trivial but as I don't have the email of Thomas I just paste the fix here:

In the kv file:
At the top add:
#: import win kivy.core.window

And replace the 'Background' object with this one:

 <Background>:
    image_one: image_one
    image_two: image_two
    Image:
        id: image_one
        source: "images/background.png"
        pos: 0, 0
        keep_ratio: False
        allow_stretch: True
        size: win.Window.width, win.Window.height
    Image:
        id: image_two
        source: "images/background.png"
        pos: root.width, 0
        keep_ratio: False
        allow_stretch: True
        size: win.Window.width, win.Window.height

It now will work on every screen size, even when resizing while playing :-)
Reply all
Reply to author
Forward
0 new messages