/
IBanana.py
executable file
·22 lines (19 loc) · 1 KB
/
IBanana.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Project imports
from Item import *
from Image import *
# Banana Special Item
class IBanana (Item):
def __init__(self, x, y, z, scale):
Item.__init__(self, x, y, z)
#-----------------------------------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------VARIABLE DECLARATION------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------------------------------
self.scale = scale;
self.energy = 25;
self.powerAbility = 35;
self.type = "FRUIT"
self.specialItem = True
self.bitmap = Image()
self.model = self.bitmap.loadModel("./models/Square.egg", "./tex/banana_s.png", self.posX, self.posY, self.posZ, self.scale)
#end __init__
#end class IBanana