Comments (8)
Sorry, first day of new job was super long and I haven't started yet but am still committed.
from flippy.
Please assign this to me. Thank you.
from flippy.
Thank you! I am on the case! Will get to it after work this afternoon.
from flippy.
Are you okay with just splitting this up into different files -- maybe by related functionality and importing them into the main "game" file?
from flippy.
Yes @jotasprout , you can split it into multiple files. Also, in your last commit the changes in game.py were not present. Please fix that as well.
from flippy.
Do you mean the changes to lines 21 and 25 (now lines 23 and 27)? When I update my local to yours, they show up.
from flippy.
Before I start chopping things up (and testing each chop), I want to make sure I start with a working copy. When I follow the instructions in the README, I get the following:
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/Users/jaysprout/Documents/GitHub/hacktoberfest/Flippy/game.py", line 445, in <module>
main()
File "/Users/jaysprout/Documents/GitHub/hacktoberfest/Flippy/game.py", line 17, in main
DISPLAYSURF = pygame.display.set_mode((config.getint('int_var',window_width), config.getint('int_var',window_height)))
File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 818, in getint
return self._get_conv(section, option, int, raw=raw, vars=vars,
File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 808, in _get_conv
return self._get(section, conv, option, raw=raw, vars=vars,
File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 803, in _get
return conv(self.get(section, option, **kwargs))
File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 1152, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'int_var'```
from flippy.
You are facing the issue because in this PR the config is not set correctly. It should be referenced from resources directory. You might need to update here.
from flippy.
Related Issues (18)
- Add README HOT 7
- Move static variables to a different config file HOT 13
- Reduce the cognitive complexity of runGame method HOT 5
- Add `hacktoberfest` tag to this repository HOT 3
- Dockerize the project HOT 3
- Move resources to a dedicated directory HOT 6
- Add .gitignore file HOT 3
- Change variable names from Camelcase to python style HOT 5
- Initialize string variables and remove any string repetition HOT 3
- Remove import * HOT 4
- Add LICENSE HOT 3
- Remove all global variables HOT 4
- Segregate MAINCLOCK to a separate class HOT 3
- Wrong path is given
- Add comments for better readability HOT 4
- Update README to fetch image correctly HOT 2
- Correct image fetching in game.py HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flippy.