Closed gimpycoder closed 9 years ago
The command used: python3 pyroller.py -S KENO
Ok. The music handler needs to be created earlier then. I'll look into it.
Should be working now; I'm looking to clean stuff up a bit still though. Let me know if you have a problem.
Yes, it is now working properly.
With this pull request, you cannot jump straight to game with -S argument:
Traceback (most recent call last): File "pyroller.py", line 8, in
main()
File "/pyroller/data/main.py", line 32, in main
run_it.main()
File "/pyroller/data/tools.py", line 126, in main
self.update(time_delta)
File "/pyroller/data/tools.py", line 55, in update
self.state.update(self.render_surf,self.keys,self.now,dt,self.scale)
File "/pyroller/data/states/keno/main.py", line 69, in update
self.persist["music_handler"].update(scale)
KeyError: 'music_handler'
It works fine when going through the standard way.