mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-25 00:13:27 +08:00
Merge pull request #17 from Dmitry450/master
Fixed puck visibility in hockey
This commit is contained in:
commit
c50ed3557d
@ -290,6 +290,9 @@ class CaptureTheFlagGame(ba.TeamGameActivity):
|
||||
if (not team.gamedata['home_flag_at_base']
|
||||
and flag.held_count == 0):
|
||||
time_out_counting_down = True
|
||||
if flag.time_out_respawn_time is None:
|
||||
flag.reset_return_times()
|
||||
assert flag.time_out_respawn_time is not None
|
||||
flag.time_out_respawn_time -= 1
|
||||
if flag.time_out_respawn_time <= 0:
|
||||
flag.handlemessage(ba.DieMessage())
|
||||
|
||||
@ -59,7 +59,7 @@ class Icon(ba.Actor):
|
||||
|
||||
icon = player.get_icon()
|
||||
self.node = ba.newnode('image',
|
||||
owner=self,
|
||||
delegate=self,
|
||||
attrs={
|
||||
'texture': icon['texture'],
|
||||
'tint_texture': icon['tint_texture'],
|
||||
|
||||
@ -69,6 +69,7 @@ class Puck(ba.Actor):
|
||||
'position': self._spawn_pos,
|
||||
'materials': pmats
|
||||
})
|
||||
ba.animate(self.node, "model_scale", {0: 0, 0.2: 1.3, 0.26: 1})
|
||||
|
||||
def handlemessage(self, msg: Any) -> Any:
|
||||
if isinstance(msg, ba.DieMessage):
|
||||
|
||||
@ -430,11 +430,11 @@ class OnslaughtGame(ba.CoopGameActivity):
|
||||
{'entries': [
|
||||
{'type': spazbot.ChargerBotProShielded,
|
||||
'point': 'bottom_right'},
|
||||
{'type': spazbot.ChargerBotProShielded, 'point': 'Bottom'}
|
||||
{'type': spazbot.ChargerBotProShielded, 'point': 'bottom'}
|
||||
if player_count > 2 else None,
|
||||
{'type': spazbot.ChargerBotProShielded,
|
||||
'point': 'bottom_left'},
|
||||
{'type': spazbot.ChargerBotProShielded, 'point': 'Top'}
|
||||
{'type': spazbot.ChargerBotProShielded, 'point': 'top'}
|
||||
if hard else None,
|
||||
{'type': spazbot.BomberBotProStatic,
|
||||
'point': 'turret_top_middle'},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user