make format

This commit is contained in:
indev 2020-04-09 15:02:15 +03:00
parent 490185fbf0
commit e5d63c88a0
3 changed files with 12 additions and 12 deletions

View File

@ -1199,16 +1199,16 @@ class CoopScoreScreen(ba.Activity):
scale=0.8,
maxwidth=300,
transition_delay=2.0).autoretain()
self._tournament_time_remaining_text = Text('',
position=(-360,
-110 - 100),
color=(1, 1, 1, 0.7),
h_align=Text.VAlign.CENTER,
v_align=Text.VAlign.CENTER,
transition=Text.Transition.FADE_IN,
scale=1.6,
maxwidth=150,
transition_delay=2.0)
self._tournament_time_remaining_text = Text(
'',
position=(-360, -110 - 100),
color=(1, 1, 1, 0.7),
h_align=Text.VAlign.CENTER,
v_align=Text.VAlign.CENTER,
transition=Text.Transition.FADE_IN,
scale=1.6,
maxwidth=150,
transition_delay=2.0)
# If we're a tournament, show prizes.
try:

View File

@ -284,7 +284,7 @@ class MeteorShowerGame(ba.TeamGameActivity):
longest_life = 0
for player in team.players:
longest_life = max(longest_life,
player.gamedata['death_time'] - start_time)
player.gamedata['death_time'] - start_time)
results.set_team_score(team, longest_life)
self.end(results=results)

View File

@ -708,7 +708,7 @@ class RaceGame(ba.TeamGameActivity):
assert self._timer is not None
if self._timer.has_started():
_cur_time = self._timer.getstarttime(
timeformat=ba.TimeFormat.MILLISECONDS)
timeformat=ba.TimeFormat.MILLISECONDS)
self._timer.stop(
endtime=None if self._last_team_time is None else (
_cur_time + self._last_team_time))