logging
This commit is contained in:
5
Game.py
5
Game.py
@@ -1,6 +1,6 @@
|
||||
import asyncio
|
||||
import signal
|
||||
|
||||
import logging
|
||||
|
||||
class Game:
|
||||
def __init__(self, input_handler, events, game_state):
|
||||
@@ -12,10 +12,11 @@ class Game:
|
||||
pass
|
||||
|
||||
def interrupt(self):
|
||||
print('Received SIGINT. Stopping Game :-)')
|
||||
logging.info('Received SIGINT. Stopping Game :-)')
|
||||
self.is_running.release()
|
||||
|
||||
async def run(self):
|
||||
logging.info('Starting game')
|
||||
await self.is_running.acquire()
|
||||
|
||||
await self.input_handler.handleInputs()
|
||||
|
||||
Reference in New Issue
Block a user