Want more features on Pastebin? Sign Up, it's FREE!

game.py

By: Ratio on Jan 26th, 2012  |  syntax: Python  |  size: 1.11 KB  |  views: 39  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class Item:
  2.         def _init_(self, tak=False, ent=False, hos=False, bea="Omega Device", inf="A mysterious item.", sen="There is a mysterious item in the room.", tim=1000000):
  3.                 self.tak = tak
  4.                 self.usa = usa
  5.                 self.ent = ent
  6.                 self.hos = hos
  7.                 self.pre = False
  8.                 self.bea = bea
  9.                 self.inf = inf
  10.                 self.sen = sen
  11.                 self.tim = tim
  12.  
  13. class Entrance(Item):
  14.         def _init_(self, inf="A mysterious entrance.", sen="There is a mysterious entrance in the room."):
  15.                 self.inf = inf
  16.                 self.sen = sen
  17.                 self.ent = True
  18.  
  19. class Enemy(Item):
  20.         def _init_(self, inf="A mysterious enemy.", sen="There is a mysterious enemy in the room."):
  21.                 self.inf = inf
  22.                 self.hos = True
  23.                 self.tim = tim
  24.  
  25. def alpha():
  26.         print "Alpha"
  27.         return
  28.  
  29. def beta():
  30.         print "Beta"
  31.         return
  32.  
  33. def gamma():
  34.         print "Gamma"
  35.         return
  36.  
  37. def delta():
  38.         print "Delta"
  39.         return
  40.  
  41. def omega():
  42.         print "Omega"
  43.         return
  44.        
  45. def game():
  46.         alpha()
  47.         beta()
  48.         gamma()
  49.         delta()
  50.         omega()
  51.         # Time for some placeholder objects: A ball (item), castle gates (entrance), and a teacher (enemy).
  52.         print "Initializing objects..."
  53.         ball = Item()
  54.         print "ball.tak = " + ball.tak
clone this paste RAW Paste Data