diff --git a/__pycache__/game.cpython-39.pyc b/__pycache__/game.cpython-39.pyc index c404eea4190b7533106a8631dbc60cf05a1a5d5b..7d02876c56ba2785b4c28a3cabca083181f115e8 100644 Binary files a/__pycache__/game.cpython-39.pyc and b/__pycache__/game.cpython-39.pyc differ diff --git a/game.py b/game.py index bca84192959d73c3fa220769fe7a48fde47a63bb..2c292a212a1ff4cc107c09a1c676ac3b01250c8c 100644 --- a/game.py +++ b/game.py @@ -76,7 +76,7 @@ def game(playTime = 30, invincibleFrame=0.5, dt_required=0.5, n_photos=None): smiley = smileyNeutral.copy() cv2.imshow("Caméra", frame) #Show you making emotional faces cv2.putText(smiley, "Score: "+str(score), (40,40), cv2.FONT_HERSHEY_SIMPLEX, 1, (0,0,255), 2) - cv2.putText(smiley, "Timer: "+str(time.time()-timeInitial), (20,240), cv2.FONT_HERSHEY_SIMPLEX, 1, (255,0,0), 2) + cv2.putText(smiley, "Timer: "+str(round(time.time()-timeInitial, 1)), (20,240), cv2.FONT_HERSHEY_SIMPLEX, 1, (255,0,0), 2) cv2.imshow("Smiley", smiley) #Show the smiley to mimic