From 7be806388ba3e2c3cb9f9f7977c075229d9d5fd3 Mon Sep 17 00:00:00 2001 From: Sourabh Verma Date: Mon, 19 Jun 2023 04:41:01 +0530 Subject: [PATCH] Add link to old code --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2fd182c..29cf9fa 100644 --- a/README.md +++ b/README.md @@ -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 or Space key to play and Esc to close the game. +4. Use or Space key to play and Esc 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 -------------