/
ILetuce.py
executable file
·22 lines (19 loc) · 1021 Bytes
/
ILetuce.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 *
# Letuce item
class ILetuce (Item):
def __init__(self, x, y, z, scale):
Item.__init__(self, x, y, z)
#-----------------------------------------------------------------------------------------------------------------------------------------------
#---------------------------------------------------VARIABLE DECLARATION------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------------------------------------------------------
self.scale = scale;
self.energy = 15;
self.powerAbility = 35;
self.type = "VEGETABLE"
self.specialItem = False
self.bitmap = Image()
self.model = self.bitmap.loadModel("./models/Square.egg", "./tex/letuce.png", self.posX, self.posY, self.posZ, self.scale)
#end __init__
#end class ILetuce