Add link to old code

This commit is contained in:
Sourabh Verma 2023-06-19 04:41:01 +05:30
parent 879c386d09
commit 7be806388b
No known key found for this signature in database
GPG Key ID: 117177475D1726CF

View File

@ -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
-------------