[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Pyzzle-0.2 now online



Andrew Jones wrote:
> Its finally here! The long awaited over hyped 0.2 release.

i just tried it all out, big improvement over gloom!
seems like it must have been a ton of work for the orbis tertius demo, 
but it's all top notch too. btw, i noticed the proper 'curtain state' 
gets reflected in the lamp, trick-master. the ingame mpegs are nice too, 
like the ones in the book.

btw, i was able to test in on a crusty machine that didn't have working 
sound. pyzzle didn't run for me. your sound module checks to see if 
mixer is there and inits ok, but none of the sound functions check to 
see if that actually worked. real simple fix, but here is a crude patch 
anyways in case you want.

btw, all the "data" files in the cvs repository need to be set to 
"binary" files. otherwise they get trashed when grabbing the cvs code on 
windows :[

oh, and you're all up to date on the pygame projects page.
Index: sound.py
===================================================================
RCS file: /cvsroot/pyzzle/pyzzle-cvs/enginecode/sound.py,v
retrieving revision 1.3
diff -c -r1.3 sound.py
*** sound.py	2002/01/18 11:50:07	1.3
--- sound.py	2002/01/18 23:44:53
***************
*** 42,48 ****
          print 'Warning, sound disabled'
  
  def play(a_sound, loop = 0):
!     
      global Asound
      soundfile = os.path.join('data', a_sound+'.wav')
      Asound = pygame.mixer.Sound(soundfile)
--- 42,48 ----
          print 'Warning, sound disabled'
  
  def play(a_sound, loop = 0):
!     if not pygame.mixer: return
      global Asound
      soundfile = os.path.join('data', a_sound+'.wav')
      Asound = pygame.mixer.Sound(soundfile)
***************
*** 54,59 ****
--- 54,60 ----
      
  
  def playambiant(amb, vol = 1.0):
+     if not pygame.mixer: return
      global music
      if amb == None:
          stopambiant()
***************
*** 67,82 ****
--- 68,87 ----
          music.play(-1)
      
  def stopambiant():
+     if not pygame.mixer: return
      global music
      music.stop()
  
  def setambiantvol(vol = 1.0):
+     if not pygame.mixer: return
      global music
      music.set_volume(vol)
  
  
  def pauseambiant():
+     if not pygame.mixer: return
      pygame.mixer.music.pause()
  
  def unpauseambiant():
+     if not pygame.mixer: return
      pygame.mixer.music.unpause()