Change pyglet.media.procedural.Square to pyglet.media.synthesis.Square for Pyglet 2.0 support

This commit is contained in:
Juhani Krekelä 2023-01-10 21:00:07 +02:00
parent 1e6ab47f40
commit 66e530d225
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ def tick_timers():
if sound_timer > 0:
# sound_timer is in the unit of 1/60th of a second, while
# Square takes length in seconds
pyglet.media.procedural.Square(sound_timer/60).play()
pyglet.media.synthesis.Square(sound_timer/60).play()
sound_timer = 0
def advance_interpreter(dt):