DNW - feedback?
Congratulations to all that entered a game.I really would appreciate more feedback about what prevented that the game could be played:
- cant not extract format file from my windows
- Gave up. I couldn't boot the game.
- F10 key used for starting game, does not work.
1. is probably an issue with extracting gz files on windows. Solution: use 7-zip to extract
2. no idea what the problem might be there. Just give us the log file or at least the traceback of the command line if any.
3. F10 key... I wonder why this does not work on this machine.
For 2. and 3. I would also like to know the os, python and pygame version that were used.
Thanks for the feedback.
(log in to comment)
Comments
I guess the function keys F1 to F12 aren't great key choices for mac users/players :)?
<br>
<br>
About logging: for simple things one can do this in a module: <br>
<br>
logger = logging.getLogger(__name__)<br>
<br>
But this can bite you in various way (wrong logger at run time etc). This is why I would suggest to use dependency injection in the constructor:<br>
<br>
<p>
class Foo(object):
def __init__(self, logger=None):
if logger is None:
logger = logging.getLogger(__name__)
self.logger = logger
</p>
<br>
<br>
I probably will probably correct that through my libraries in future.
xmzhang1 on 2017/03/13 01:28:
Hi, DR0ID, glad to see you here, your code teach me how to use logging module. For the 3rd, I think some keyboards has multi function on F10, I also met it, I have to hold down the fn key, then press the f10 key, it works!