mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 07:23:37 +08:00
make format
This commit is contained in:
parent
490185fbf0
commit
e5d63c88a0
@ -1199,16 +1199,16 @@ class CoopScoreScreen(ba.Activity):
|
|||||||
scale=0.8,
|
scale=0.8,
|
||||||
maxwidth=300,
|
maxwidth=300,
|
||||||
transition_delay=2.0).autoretain()
|
transition_delay=2.0).autoretain()
|
||||||
self._tournament_time_remaining_text = Text('',
|
self._tournament_time_remaining_text = Text(
|
||||||
position=(-360,
|
'',
|
||||||
-110 - 100),
|
position=(-360, -110 - 100),
|
||||||
color=(1, 1, 1, 0.7),
|
color=(1, 1, 1, 0.7),
|
||||||
h_align=Text.VAlign.CENTER,
|
h_align=Text.VAlign.CENTER,
|
||||||
v_align=Text.VAlign.CENTER,
|
v_align=Text.VAlign.CENTER,
|
||||||
transition=Text.Transition.FADE_IN,
|
transition=Text.Transition.FADE_IN,
|
||||||
scale=1.6,
|
scale=1.6,
|
||||||
maxwidth=150,
|
maxwidth=150,
|
||||||
transition_delay=2.0)
|
transition_delay=2.0)
|
||||||
|
|
||||||
# If we're a tournament, show prizes.
|
# If we're a tournament, show prizes.
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -284,7 +284,7 @@ class MeteorShowerGame(ba.TeamGameActivity):
|
|||||||
longest_life = 0
|
longest_life = 0
|
||||||
for player in team.players:
|
for player in team.players:
|
||||||
longest_life = max(longest_life,
|
longest_life = max(longest_life,
|
||||||
player.gamedata['death_time'] - start_time)
|
player.gamedata['death_time'] - start_time)
|
||||||
results.set_team_score(team, longest_life)
|
results.set_team_score(team, longest_life)
|
||||||
|
|
||||||
self.end(results=results)
|
self.end(results=results)
|
||||||
|
|||||||
@ -708,7 +708,7 @@ class RaceGame(ba.TeamGameActivity):
|
|||||||
assert self._timer is not None
|
assert self._timer is not None
|
||||||
if self._timer.has_started():
|
if self._timer.has_started():
|
||||||
_cur_time = self._timer.getstarttime(
|
_cur_time = self._timer.getstarttime(
|
||||||
timeformat=ba.TimeFormat.MILLISECONDS)
|
timeformat=ba.TimeFormat.MILLISECONDS)
|
||||||
self._timer.stop(
|
self._timer.stop(
|
||||||
endtime=None if self._last_team_time is None else (
|
endtime=None if self._last_team_time is None else (
|
||||||
_cur_time + self._last_team_time))
|
_cur_time + self._last_team_time))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user