From 469327f022ac5cb725b02b9a9208fc58436616b7 Mon Sep 17 00:00:00 2001 From: mwanjajoel Date: Fri, 27 Dec 2019 15:03:19 +0300 Subject: [PATCH 1/4] Added gitignore --- .gitignore | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..97f63fa --- /dev/null +++ b/.gitignore @@ -0,0 +1,107 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +.static_storage/ +.media/ +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ + +# vscode settings +.vscode \ No newline at end of file From 4f15b15596e0f69a2a164bb59b9a3b01e953e31a Mon Sep 17 00:00:00 2001 From: mwanjajoel Date: Fri, 27 Dec 2019 16:12:05 +0300 Subject: [PATCH 2/4] Adjusted resolution --- flappy_bird.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flappy_bird.py b/flappy_bird.py index 80c68a0..7ec5795 100644 --- a/flappy_bird.py +++ b/flappy_bird.py @@ -15,8 +15,8 @@ import pickle pygame.font.init() # init font -WIN_WIDTH = 600 -WIN_HEIGHT = 800 +WIN_WIDTH = 1200 +WIN_HEIGHT = 1200 FLOOR = 730 STAT_FONT = pygame.font.SysFont("comicsans", 50) END_FONT = pygame.font.SysFont("comicsans", 70) From ef42dcb24bfeee4769df5874a28cb73d4555c80f Mon Sep 17 00:00:00 2001 From: mwanjajoel Date: Fri, 27 Dec 2019 16:13:01 +0300 Subject: [PATCH 3/4] updated resolution and packages --- requirements.txt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 702b748..1593d98 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,10 @@ -numpy -pygame -neat-python -graphviz -matplotlib +cycler==0.10.0 +graphviz==0.13.2 +kiwisolver==1.1.0 +matplotlib==3.1.2 +neat-python==0.92 +numpy==1.18.0 +pygame==2.0.0.dev6 +pyparsing==2.4.6 +python-dateutil==2.8.1 +six==1.13.0 From 2260595b8c41165e4adad2b11997939eabfc5457 Mon Sep 17 00:00:00 2001 From: mwanjajoel Date: Mon, 13 Jul 2020 21:45:50 +0300 Subject: [PATCH 4/4] changed width and height back to default values --- flappy_bird.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flappy_bird.py b/flappy_bird.py index 7ec5795..80c68a0 100644 --- a/flappy_bird.py +++ b/flappy_bird.py @@ -15,8 +15,8 @@ import pickle pygame.font.init() # init font -WIN_WIDTH = 1200 -WIN_HEIGHT = 1200 +WIN_WIDTH = 600 +WIN_HEIGHT = 800 FLOOR = 730 STAT_FONT = pygame.font.SysFont("comicsans", 50) END_FONT = pygame.font.SysFont("comicsans", 70)