mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 07:23:37 +08:00
Merge pull request #252 from Dliwk/shuffle-start-pos
Shuffle FFA spawn positions
This commit is contained in:
commit
48746913ad
@ -276,7 +276,10 @@ class Map(Actor):
|
|||||||
self.is_flying = False
|
self.is_flying = False
|
||||||
|
|
||||||
# FIXME: this should be part of game; not map.
|
# FIXME: this should be part of game; not map.
|
||||||
self._next_ffa_start_index = 0
|
# Let's select random index for first spawn point,
|
||||||
|
# so that no one is offended by the constant spawn on the edge.
|
||||||
|
self._next_ffa_start_index = random.randrange(
|
||||||
|
len(self.ffa_spawn_points))
|
||||||
|
|
||||||
def is_point_near_edge(self,
|
def is_point_near_edge(self,
|
||||||
point: ba.Vec3,
|
point: ba.Vec3,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user