~facundo/enjuewemela/trunk

« back to all changes in this revision

Viewing changes to enjuewemela/sound.py

  • Committer: facundo at com
  • Date: 2011-07-31 16:49:14 UTC
  • mfrom: (72.1.7 some-fixes)
  • Revision ID: facundo@taniquetil.com.ar-20110731164914-0at88mfphkmzshgk
Lot of small fixes, more internationalization, better configglue usage, enhanced code quality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    ("new_level", 1),
29
29
]
30
30
 
 
31
 
31
32
class Sounds(object):
32
33
    """Manager class for the sounds."""
33
34
 
69
70
 
70
71
sounds = Sounds()
71
72
 
72
 
 
73
 
 
74
73
# music!
75
 
 
76
74
music_player = pyglet.media.Player()
77
75
 
 
76
 
78
77
class Music(object):
79
78
    """Manager class for the music."""
80
79
 
103
102
 
104
103
    volume = property(_get_volume, _set_volume)
105
104
 
 
105
 
106
106
@music_player.event
107
107
def on_eos():
108
108
    """On EndOfSound.
119
119
    music_player.play()
120
120
    music_player.eos_action = 'next'
121
121
 
 
122
 
122
123
music = Music()
123
124
on_eos()