Code Monkey home page Code Monkey logo

Comments (5)

jamesgathu avatar jamesgathu commented on July 18, 2024

On Mac 10.13.2
Try using python===2.7 and pygame==1.9.3
using a virtualenv

virtualenv python=/usr/bin/python2.7 <path to your virtualenv>

cd <path to your virtualenv>

git clone https://github.com/sourabhv/FlappyBirdClone.git flappy

. ./bin/activate

cd flappy

python -m pip install pygame

python flappy.py

Enjoy the game

from flappybird.

GeneralErrorOK avatar GeneralErrorOK commented on July 18, 2024

I'm also having trouble getting it to run properly on Mac. The game starts fine but doesn't respond to key inputs. VS Code reports an error on the key constants used K_ESCAPE and K_UP which seem to be undifined. In which file should they be defined?

from flappybird.

tkamkb avatar tkamkb commented on July 18, 2024

try to add "pygame. " for example pygame.K_ESCAPE , it works on my Mac

from flappybird.

brodycritchlow avatar brodycritchlow commented on July 18, 2024

I believe you are having the same question as #17.

I answered your question on the issue #17 if so.

from flappybird.

sourabhv avatar sourabhv commented on July 18, 2024

Closing because of no recent activity.
I switched to pipenv and tested on my MacOS, works fine.

from flappybird.

Related Issues (19)

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.