Pulled out code into Timer.py
Made a separate class instead of keeping it in GameLogic.
This commit is contained in:
parent
9c9db7aba9
commit
446ffba554
14
GameLogic.py
14
GameLogic.py
@ -1,7 +1,6 @@
|
||||
from datetime import datetime, time
|
||||
|
||||
from GameMap import *
|
||||
from Player import *
|
||||
from Timer import *
|
||||
|
||||
class GameLogic():
|
||||
|
||||
@ -44,14 +43,3 @@ class GameLogic():
|
||||
else:
|
||||
return False
|
||||
return True
|
||||
|
||||
def get_time(self):
|
||||
return str(datetime.now() - self.startTime)
|
||||
|
||||
|
||||
def reset_time(self):
|
||||
self.startTime = datetime.now()
|
||||
|
||||
|
||||
def get_score(self):
|
||||
return self.score
|
Loading…
Reference in New Issue
Block a user