Skip to content

Commit

Permalink
Add link to old code
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhv committed Jun 18, 2023
1 parent 879c386 commit 7be8063
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@

A Flappy Bird Clone made using [python-pygame][pygame]

> If you are in interested in the old one-file code for the game, you can [find it here][one-file-game]
[pygame]: http://www.pygame.org
[one-file-game]: https://github.com/sourabhv/FlapPyBird/blob/038359dc6122f8d851e816ddb3e7d28229d585e5/flappy.py


Setup (as tested on MacOS)
---------------------------

1. Install Python 3 from [here](https://www.python.org/download/releases/) (or use brew/apt/pyenv)

1. Run `make init` (this will install pip packages, use virtualenv or something similar if you don't want to install globally)
2. Run `make init` (this will install pip packages, use virtualenv or something similar if you don't want to install globally)

1. Run `make` to run the game. Run `DEBUG=True make` to see rects and coords
3. Run `make` to run the game. Run `DEBUG=True make` to see rects and coords

1. Use <kbd>&uarr;</kbd> or <kbd>Space</kbd> key to play and <kbd>Esc</kbd> to close the game.
4. Use <kbd>&uarr;</kbd> or <kbd>Space</kbd> key to play and <kbd>Esc</kbd> to close the game.

2. Optionally run `make web` to run the game in the browser (`pygbag`).
5. Optionally run `make web` to run the game in the browser (`pygbag`).

Notable forks
-------------
Expand Down

0 comments on commit 7be8063

Please sign in to comment.