mozaik bugfix
This commit is contained in:
@@ -92,14 +92,13 @@ def update(game, dt):
|
||||
btrans_timer += dt
|
||||
|
||||
if btrans_timer >= BTRANS_DURATION:
|
||||
game.mos_enabled = False
|
||||
game.mosaic = 1
|
||||
btrans_active = False
|
||||
btrans_sound.stop()
|
||||
gamestate.switch_gamestate(game, "battle")
|
||||
|
||||
game.mos_enabled = True
|
||||
cycle_progress = (btrans_timer % BTRANS_PULSE_DUR) / BTRANS_PULSE_DUR
|
||||
game.mosaic = max(1, math.floor(cycle_progress * 16))
|
||||
game.mosaic = max(1, math.floor(cycle_progress * 8))
|
||||
return
|
||||
|
||||
balthasar.update()
|
||||
|
||||
Reference in New Issue
Block a user