Exemplo n.º 1
0
    def setupCheckpoints(self, mGame):
        self.checkpointmarkers = []
        cpl = self.checkpointlocs
        for i in range(len(cpl)-1):
             a = angleTo(cpl[i+1], cpl[i])
             self.checkpointmarkers.append(Checkpoint(mGame, cpl[i], a))
             



        self.startingOffsets = [10, 5]
#                             [[-50.4339, 60.4705, 3.80965, 117.910705566, 0, 0],
#                             [-51.3537, 64.2902, 3.84785, 116.122093201, 0, 0],
#                             [-41.7162, 69.1233, 4.14399, 117.631515503, 0, 0],
#                             [-40.1138, 65.7385, 4.12263, 115.860038757, 0, 0],
#                             [-30.2054, 70.476, 4.41469, 114.678634644, 0, 0],
#                             [-32.0705, 74.0726, 4.44123, 115.580863953, 0, 0],
#                             [-20.1875, 74.9774, 4.47768, 113.226844788, 0, 0],
#                             [-21.5922, 79.0628, 4.5176, 115.136543274, 0, 0]]
    
        self.powupPos = self.checkpointlocs
Exemplo n.º 2
0
 def applyOffset(self, start, x, y, m):
     return [start.x + x*m, start.y + y*m, start.z, angleTo(start, self.checkpointlocs[2]), 0, 0]