Exemplo n.º 1
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.gem_inventory = []
     self.key_inventory = []
     self.tree_inventory = []
     self.princess_interaction = 0
Exemplo n.º 2
0
Arquivo: game.py Projeto: k8k/HBGame
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.tree_inventory = []
     self.heart_inventory =[]
     self.rock_inventory =[]
     self.key_inventory = []
Exemplo n.º 3
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventoryBlueGems=[]
     self.inventoryGreenGems=[]
     self.inventorychests=[]  
     self.inventoryDoor=[]
     self.inventoryKeys=[]
Exemplo n.º 4
0
 def __init__(self):  #each time an object of class Character is made...
     GameElement.__init__(
         self)  #from Game Element class, run the game element
     #init method on the new Character object we're making
     self.inventory = [
     ]  #each Character object starts with an empty inventory
     self.timer = 0
Exemplo n.º 5
0
 def __init__(self):
     GameElement.__init__(self)
     self.points = 0
     self.inventory = []
     self.IMAGE = "Horns"
     self.name = "Horns"
     self.selector_image = "Yellow_selector"
Exemplo n.º 6
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.tree_inventory = []
     self.heart_inventory = []
     self.rock_inventory = []
     self.key_inventory = []
Exemplo n.º 7
0
 def __init__(self):  # initializer that sets up object with initial values
     GameElement.__init__(
         self
     )  # tells Character class to call parent class' initializer so that it uses the behaviors of board interactions set
     # self.inventory = []
     self.inventory = {
         "Torches": 0,
     }
Exemplo n.º 8
0
	def __init__(self, state):
		GameElement.__init__(self)
		self.STATE = state

		if state == "Open":
			self.IMAGE = "DoorOpen"
			self.SOLID = False
		elif state == "Closed":
			self.IMAGE = "DoorClosed"
			self.SOLID = True
Exemplo n.º 9
0
 def __init__(self): # initializer that sets up object with initial values
     GameElement.__init__(self) # tells Character class to call parent class' initializer so that it uses the behaviors of board interactions set
     # self.inventory = []
     self.inventory = {
         "Potion":0,
         "Rocks":0,
         "Hearts":0,
         "Keys":0,
         "Torches":0
         } # this instance's inventory starts as an empty list
Exemplo n.º 10
0
 def __init__(self): # initializer that sets up object with initial values
     GameElement.__init__(self) # tells Character class to call parent class' initializer so that it uses the behaviors of board interactions set
     # self.inventory = []
     self.inventory = {
         "Potion":0,
         "Rocks":0,
         "Hearts":0,
         "Keys":0,
         "Torches":0,
         "Lightings":0,
         "BlueRupees":0,
         "Badguy":True,
         "Show_Inventory": False
         } # this instance's inventory starts as an empty list
Exemplo n.º 11
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.ridinglist = []
     self.popoexists = False
Exemplo n.º 12
0
 def __init__(self):
     GameElement.__init__(self)
     self.dt = 0
Exemplo n.º 13
0
 def __init__(self): # initializer that sets up object with initial values
     GameElement.__init__(self) # tells Character class to call parent class' initializer so that it uses the behaviors of board interactions set
     # self.inventory = []
     self.inventory = {
         "Torches":0,
             }
Exemplo n.º 14
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.key_list = []
Exemplo n.º 15
0
	def __init__(self):
		GameElement.__init__(self)
		self.last_move = 0
		self.velocity_x = 1
Exemplo n.º 16
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.points = 0
     self.reversed = 0
Exemplo n.º 17
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = 12*['E']
     self.counter = 0
     self.accel = 1
Exemplo n.º 18
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
Exemplo n.º 19
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory_gems = []
     self.inventory_hearts = []
Exemplo n.º 20
0
 def __init__(self, image):
     GameElement.__init__(self)
     self.inventory = {}
     self.IMAGE = image
Exemplo n.º 21
0
 def __init__(self,x,y):
     GameElement.__init__(self)
     self.x = x
     self.y = y
Exemplo n.º 22
0
 def __init__(self):
     GameElement.__init__(self)
     self.isAlive = True
     self.inventory = []
Exemplo n.º 23
0
 def __init__(self):
     GameElement.__init__(self)
     self.IMAGE = random.choice(self.imagelist)
     self.SOLID = False
Exemplo n.º 24
0
 def __init__(self):
     GameElement.__init__(self)
     self.x = 5
     self.y = 5
     self.elapsed_time = 0
Exemplo n.º 25
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.has_key = False    #is false until girl finds and picks up key
     self.points = 0
     self.IMAGE = "Princess"
Exemplo n.º 26
0
Arquivo: game.py Projeto: amitch23/oop
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.ridinglist = []
     self.popoexists = False
Exemplo n.º 27
0
 def __init__(self):
     GameElement.__init__(self)
     self.IMAGE = "BlueGem"
     self.SOLID = False  
Exemplo n.º 28
0
 def __init__(self, player):
     GameElement.__init__(self)
     self.inventory = []
     self.IMAGE = player
Exemplo n.º 29
0
 def __init__(self):
     GameElement.__init__(self)
     self.Animal = animal 
Exemplo n.º 30
0
 def __init__(self):                 # every class has a default init. If you want to change the Init, you define it here.
     GameElement.__init__(self)
     self.inventory = []             #creates empty inventory list
Exemplo n.º 31
0
	def __init__(self):
		GameElement.__init__(self)
		self.totebag = []
		self.health = 3
		self.name = "Prancy"
Exemplo n.º 32
0
	def __init__(self): #each time an object of class Character is made...
		GameElement.__init__(self) #from Game Element class, run the game element
		#init method on the new Character object we're making
		self.inventory = [] #each Character object starts with an empty inventory
Exemplo n.º 33
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
Exemplo n.º 34
0
 def __init__(self,xcoordinate=0,ycoordinate=0):
     GameElement.__init__(self)
     GAME_BOARD.set_el(xcoordinate,ycoordinate,self)
     xcoordinate = xcoordinate
     ycoordinate = ycoordinate
Exemplo n.º 35
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     GAME_BOARD.game_over = 0
Exemplo n.º 36
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.key_list = []
Exemplo n.º 37
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.hover = None
Exemplo n.º 38
0
 def __init__(self, position):
     GameElement.__init__(self)
     self.position = position
     x_coord, y_coord = position
     GAME_BOARD.register(self)
     GAME_BOARD.set_el(x_coord, y_coord, self)
Exemplo n.º 39
0
 def __init__(self):
     GameElement.__init__(self)
     self.inventory = []
     self.interacted = []
Exemplo n.º 40
0
 def __init__(self):
     GameElement.__init__(self)
     self.key_inventory = []
     self.boy_inventory = []
     self.gem_inventory = []
Exemplo n.º 41
0
 def __init__(self):
     GameElement.__init__(self)