def __init__(self, scene, pos = (0, 0, 0), rot = (0, 0, 0)): Object.__init__(self, scene, 'Player',(0, 0, 0), pos, rot) self.speed = 5 self.sensitivity = 100 self.collisionR = 1
def __init__(self, name, path, \ use, var, meth, call, types): # Call mother's init Object.__init__(self, name, path, \ use, var, meth, call, types, "") # last is function type self.in_module = []
def __init__(self, scene, colour=(255, 255, 255), pos=(0, 0, 0), rot=(0, 0, 0)): Object.__init__(self, scene, 'Light', colour, pos, rot) self.maxRange = 8 self.intensity = 20
def __init__(self, name, path, \ use, var, meth, call, \ types, fun_type): # Call mother's init Object.__init__(self, name, path, \ use, var, meth, call, types, fun_type) self.in_module = []
def __init__(self, scene, colour=(255, 255, 255), pos=(0, 0, 10), rot=(0, 0, 0)): Object.__init__(self, scene, 'Wall', colour, pos, rot) self.AddPoints((1, 1, 1)) #0 self.AddPoints((-1, 1, 1)) #1 self.AddPoints((-1, 1, -1)) #2 self.AddPoints((1, 1, -1)) #3 self.AddPoints((1, -1, 1)) #4 self.AddPoints((-1, -1, 1)) #5 self.AddPoints((-1, -1, -1)) #6 self.AddPoints((1, -1, -1)) #7 self.AddFace([0, 1, 5, 4]) self.AddFace([0, 3, 7, 4]) self.AddFace([6, 5, 1, 2]) self.AddFace([6, 7, 3, 2]) self.setImage("StoneB.png")
def __init__(self, scene, pos = (0, 0, 0), rot = (0, 0, 0)): Object.__init__(self, scene, 'Bullet', (0, 0, 0), pos, rot) self.speed = 10 self.colour = (255, 255, 255) self.timer = 5