Giter Club home page Giter Club logo

flypy_byrd's Introduction

flypy_byrd

flappy bird clone in pygame

dependencies

  • Python 3.8 and pygame 2

flypy_byrd.py does not depend on any other resource. All Artworks and sound are programatically generated. So just copy the file in any place and then execute by this command python flypy_byrd.py and enjoy.

demo

To run in your device you may need to change this values

if __name__=="__main__":
    in_pc = True
    if in_pc:
        width = 355
        height = 520
        conf.change_res(width,height)
        conf.hr_space=250
        conf.pillar_w = 50
        conf.pillar_cap = 25
        conf.vr_space = 100//2
        conf.bird_size = 25
        conf.speed=200
        conf.energy_rate=4
        conf.bird_speed=300
        conf.bg_pos = 200
        conf.cloud_r = (50,100)
        conf.cloud_sp=10
        conf.tree_r=(25,50)
        conf.tree_sp = 2
        conf.bg_h_sub = 20
        conf.vr_variance=10
    conf.cheat=not True
    run()

The default config is for 720x1440 res mobile device. You can run this code in pydroid apk.

flypy_byrd's People

Contributors

sk-prime avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.