Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/r/a/ransack-python-HEAD/MAP/map.py   ransack-python(Download)
        self.playerXY = (px, py)
 
        if DIMEN <= const.HALFDIM:
            topX = 0
            topY = 0
            self.WINDOWOFFSET = (const.HALFDIM - DIMEN)/2
            else:
                topY = DIMEN - 10
            self.WINDOWSIZE = const.HALFDIM
            self.WINDOWOFFSET = 0
        oldTopX, oldTopY = self.topMapCorner

src/r/a/ransack-python-HEAD/MAP/minimap.py   ransack-python(Download)
    def drawMiniMap(self,screen, tx, ty, playerXY, visDict):
        miniMapBoard = pygame.Surface( [const.blocksize*const.HALFDIM,const.blocksize*const.HALFDIM] )
        miniMapBoard.fill(colors.black)
        for i in range(const.DIM):
            for j in range(const.DIM):
    def callMiniMap(self,screen, playerXY, visDict):
        self.visDict = visDict
        (px, py) = playerXY
        tx = px - const.HALFDIM
        ty = py - const.HALFDIM

src/r/a/ransack-python-HEAD/DISPLAY/display.py   ransack-python(Download)
        if map.getDIM() % 2 == 0:
            delta = delta + 1
        if DIMEN > const.HALFDIM:
            if (5*const.blocksize <= newX <= (DIMEN-5)*const.blocksize):
                newX = 5 * const.blocksize
                if dir in ['left','right'] and oldX == 5*const.blocksize:
                    scrolling = True
            if newX > (DIMEN-5)*const.blocksize:
                newX = newX - delta*const.blocksize
                if newX > const.HALFDIM*const.blocksize:
            if newY > (DIMEN-5)*const.blocksize:
                newY = newY - delta*const.blocksize
                if newY > const.HALFDIM*const.blocksize:
                    newY = newY - 300
        else:
            newX += (const.HALFDIM - DIMEN)/2*const.blocksize
            newY += (const.HALFDIM - DIMEN)/2*const.blocksize