new_contents: 
  def init(w,h):
    '''Initializes the backbuffer with given width and height.
    '''
  
  ################
  # Resources
  ################
  
  def loadresources(filename):
    '''Load resources file to memory.
    '''
  
  
  def getdata(name):
    '''Retrieves a data block by the given name.
    '''
  
  ################
  # Screen
  ################
  
  def makesprite(data):
    '''Makes a sprite object out of the given data block.
  
  
  def target(buffer):
    '''Sets the target buffer for drawing. By default, the
    target buffer is the backbuffer, but sprites are buffers
    and are valid targets too.
    '''
  
  
  def clear():
    '''Clears the target buffer.
    '''
  
  
  def point(x,y):
    '''Draws a point at the given x and y coordinates.
    '''
  
  
  def line(x0, y0, x1, y1):
    '''Draws a line from x0, y0 to x1, y1.
    '''
  
  
  def putsprite(sprite, x, y):
    '''Draws the sprite, starting at the given x and y coordinates.
    '''
  
  
  def show():
    '''Shows the content of the backbuffer on the screen.
    '''
  
  ################
  # Audio
  ################
  
  def makeclip(data):
    '''
    '''
  
  
  def playclip(clip):
    '''
    '''
  
  def loopclip(clip):
    '''
    '''
  
  ################
  # Input
  ################
  
  def getkey():
    '''
    '''
  
  ################
  # Collision
  ################
  
  def setcollisionmask(data, name):
    '''
    '''
  
  
  def putmask(mask, x, y):
    '''
    '''
  
  
  def getcollisions():
    '''
    '''
  
subject: Create zoom.py