omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Flappy Bird on Pythonista

    Pythonista
    17
    26
    28486
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bee18
      bee18 last edited by

      The default tower gap is too narrow. It makes the game alot harder.

      1 Reply Last reply Reply Quote 0
      • bashedcrab
        bashedcrab last edited by

        It is supposed to be hard. Most players take many tries just to get past the first tower in Flappy Bird. This experiment had the author play 150 times, and still only had a best of 7.

        http://www.wired.com/wiredscience/2014/02/difficult-flappy-bird/

        This gist is modelled as closely as possible on the original Flappy bird to the point the the tower gap/width, scroll speed, jump height, gravity etc make playing this game just as frustrating as the original. If you want to make it accessible for kids, increase the gap. But doing for yourself will destroy the Flappy Bird's addictive quality.

        1 Reply Last reply Reply Quote 0
        • bee18
          bee18 last edited by

          Flappy bird is too hard to be an enjoyable game. That's why people love and hate it at the same time. I don't want to get stressed because of this stupid little game. LOL.

          I was about to try to make another Flappy Bird clone using Codea/Pythonista. Fortunately, I found your code before I did it. So, instead of making my own, I simply took yours and modify it to my taste. Now, I have my own version of Flappy Bird which I could enjoy playing. It's not as hard as the original Flappy Bird, but it's not too easy as well. With my modification, it's not hard to get score of 10, but it's still pretty hard to get over 20. Now, that's an enjoyable yet challenging simple game. At least to my taste. :)

          And, thank you for sharing the code. I really appreciate it.

          1 Reply Last reply Reply Quote 0
          • bashedcrab
            bashedcrab last edited by

            You're welcome. Glad someone is enjoying it!

            My next game is a lot less frustrating and a lot more fun.

            1 Reply Last reply Reply Quote 0
            • ccc
              ccc last edited by

              My particular modification was to make all the graphic elements subclasses of scene.Layer. For the most part it was fairly simple to do and completely eliminated most of the draw() methods. However, I struggled to understand Tower enough to change it. I am glad to hear that the game is nearly impossible to play because I was really unable to build up a high score.

              1 Reply Last reply Reply Quote 0
              • brumm
                brumm last edited by

                Great!!! Thank you.

                1 Reply Last reply Reply Quote 0
                • Sebastian
                  Sebastian last edited by

                  Nicely done! Looks a lot better than my version XD

                  1 Reply Last reply Reply Quote 0
                  • bashedcrab
                    bashedcrab last edited by

                    Hey TripleC,
                    I couldn't decide whether each part of a tower should be it's own object, or if I should aggregate them into one for ease of scoring and collision detection. I went with the aggregate class, but it is probably bad OO design, and it is harder to understand. The Tower class holds 4 Rect()'s. (1 to represent each of the elements of the towers you need to fly through), and then has a draw() function, and an intersects() function for collision detection with the player.

                    self.upper_tower is a Rect to represent the shaft that starts at the roof
                    self.upper_cap is a Rect to represent the wider 'cap' that sits on the end of the upper tower
                    self.lower_tower is a Rect to represent the shaft that starts at the ground
                    self.lower_cap is a Rect to represent the wider cap that sits on the end of the lower tower
                    

                    It draws each of the rects to screen manually - not sure how you would convert it to a layer (or layers).

                    1 Reply Last reply Reply Quote 0
                    • due3die
                      due3die last edited by

                      Thanks for the game awesome but strange to cross best:2.

                      1 Reply Last reply Reply Quote 0
                      • Cubbarooney104
                        Cubbarooney104 last edited by

                        I was actually working on a flappy bird clone myself (also underwater)! It isn't as nice as yours though (besides, mine is much easier)!

                        Thanks for the great learning material

                        Cubbarooney

                        1 Reply Last reply Reply Quote 0
                        • Gerzer
                          Gerzer last edited by

                          Nice! You inspired me to create a game similar to, yet different from, Flappy Bird. Can't wait to see your next game.

                          1 Reply Last reply Reply Quote 0
                          • fleech
                            fleech last edited by

                            Sorry for this dumb question, but how do i copy this code on to my pythonista editor on my iphone to try and execute it? I am a beginner in python and don't know.

                            1 Reply Last reply Reply Quote 0
                            • dgelessus
                              dgelessus last edited by

                              First of all copy the entire script from the site linked above, unfortunately this can sometimes be a little tricky with the iOS text selection. Then open Pythonista, create a new blank script, name it something (like JumpyOctopus), paste the copied code, and finally press play in the upper right.

                              1 Reply Last reply Reply Quote 0
                              • dozzzl
                                dozzzl last edited by

                                Thanks for sharing mate! Like your flappy! Could you guys check mine flappy games, I've made two already:
                                Flappy Minaj and Floppy Ufo

                                thanks mates!

                                1 Reply Last reply Reply Quote 0
                                • fleech
                                  fleech last edited by

                                  @dgelessus thanks :D

                                  1 Reply Last reply Reply Quote 0
                                  • Butler
                                    Butler last edited by

                                    This game might be similar to flappy bird but it is just as much fun and you have the option to fiddle around with it and modify it to your own needs.

                                    1 Reply Last reply Reply Quote 0
                                    • Mark
                                      Mark last edited by

                                      Bamboo bird is best in my opinion
                                      It has a whole new set of graphics and Game Center which makes it even more addicting
                                      Check out Bamboo Bird on the apple App Store!!!

                                      1 Reply Last reply Reply Quote 0
                                      • GaryGadget
                                        GaryGadget last edited by

                                        I have just purchased Pythonista and followed the link to this forum and your game was the first I downloaded and executed (intuitively) to demonstrate to my two sons how good this programming app can be. It was so easy to do and such good fun to be able to code in changes to your game and watch the changes when executed. Great thanks. It impressed my kids and I hope it will stimulate them into coding a bit more.

                                        Just one question if you have time. The octopus image you use, is it part of a Pythonistal library of images? I assume it is in a root directory or something because you don't use a path for it. I'm new to Python and IOS coding so don't know if I'm missing something here. Tried looking and found it in the Textures folder!

                                        Thanks again for your code share.

                                        Regards
                                        Gary

                                        1 Reply Last reply Reply Quote 0
                                        • dgelessus
                                          dgelessus last edited by

                                          There is a fairly large collection of images, icons and sounds included with Pythonista, which are in folders that cannot normally be accessed. You can get a list of all of them (and conveniently insert the names) using the + button in the toolbar while the keyboard is visible in the editor.

                                          1 Reply Last reply Reply Quote 0
                                          • GaryGadget
                                            GaryGadget last edited by

                                            Found it thanks although I could only find it on my iPad and not on my iPhone!

                                            Great find this app and forum, hopefully now I can help my school kids a bit more at my convenience if you know what I mean.

                                            Regards
                                            Gary

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors