mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-25 16:33:20 +08:00
make format
This commit is contained in:
parent
490185fbf0
commit
e5d63c88a0
@ -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:
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user