import os, random, pygame
import engine
-class Channel:
+class Channel(object):
""" Represents an audio output. Can represent a user-created SDL channel or the single
Music channel (which can load/play Ogg, MP3 and other audio media). The Music channel
can be primed with a playlist which will shuffle and loop.
import os.path, pygame, engine
-class Style:
+class Style(object):
""" Encapsulate the attributes required for printing styled text """
font = None
colour = None
Style.debug = debug
if Style.debug: engine.debug_pr("Style %s, height: %d, colour:" % (font, height), self.colour)
-class Game:
+class Game(object):
""" Container for all game state and configuration items """
config = dict()
styles = dict()
import os, time, pygame, engine
-class SeamlessBackground:
+class SeamlessBackground(object):
""" The game window has a scrolling background image that is seamless, which allows it to be tiled
so that as the viewport scrolls the image appears to be continuous in both directions.