Change pyglet.media.procedural.Square to pyglet.media.synthesis.Square for Pyglet 2.0 support
This commit is contained in:
parent
1e6ab47f40
commit
66e530d225
|
@ -401,7 +401,7 @@ def tick_timers():
|
||||||
if sound_timer > 0:
|
if sound_timer > 0:
|
||||||
# sound_timer is in the unit of 1/60th of a second, while
|
# sound_timer is in the unit of 1/60th of a second, while
|
||||||
# Square takes length in seconds
|
# Square takes length in seconds
|
||||||
pyglet.media.procedural.Square(sound_timer/60).play()
|
pyglet.media.synthesis.Square(sound_timer/60).play()
|
||||||
sound_timer = 0
|
sound_timer = 0
|
||||||
|
|
||||||
def advance_interpreter(dt):
|
def advance_interpreter(dt):
|
||||||
|
|
Loading…
Reference in New Issue