mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 08:53:32 +08:00
line wrapping fix
This commit is contained in:
parent
4762f70825
commit
04f28ffacb
@ -1,7 +1,6 @@
|
||||
# Released under the MIT License. See LICENSE for details.
|
||||
#
|
||||
"""Defines a bomb-dodging mini-game."""
|
||||
# pylint: disable=line-too-long
|
||||
|
||||
# ba_meta require api 7
|
||||
# (see https://ballistica.net/wiki/meta-tag-system)
|
||||
@ -191,7 +190,8 @@ class MeteorShowerGame(ba.TeamGameActivity[Player, Team]):
|
||||
pos = (-7.3 + 15.3 * random.random(), 11,
|
||||
-5.57 + 2.1 * random.random())
|
||||
dropdir = (-1.0 if pos[0] > 0 else 1.0)
|
||||
vel = ((-5.0 + random.random() * 30.0) * dropdir, random.uniform(-3.066, -4.12), 0)
|
||||
vel = ((-5.0 + random.random() * 30.0) * dropdir,
|
||||
random.uniform(-3.066, -4.12), 0)
|
||||
ba.timer(delay, ba.Call(self._drop_bomb, pos, vel))
|
||||
delay += 0.1
|
||||
self._set_meteor_timer()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user