class End: def __init__(self, pos): self.bigCube = 0 self.white = LVector4(1, 1, 1, 1) self.snowTex = loader.loadTexture("ground.jpg") self.floor = Prism(pos, 500, 500, 50, self.white, self.snowTex, 'endFloor') def generate(self, space): self.floor.generate(space)
def __init__(self): ShowBase.__init__(self) ##################### # # Simply testing procedural geometry generation # ##################### prism = Prism(LVector3(0,0,0), 100, 100, 20, LVector4(1,1,1,1), loader.loadTexture("ground.jpg"), 'prism') prism.generate(render) ramp = Ramp(LVector3(100,100,100), 100, 100, 20, LVector4(1,1,1,1), loader.loadTexture("ground.jpg"), 'ramp') ramp.generate(render)