Пример #1
0
 def place_nescient(self, nescient, dest):
     nsci = nescient 
     Battlefield.place_nescient(self, nsci, dest)
     r,s,hexh,rech,size = nsci.hexparams
     nsci.image.fill(black)
     for part in nsci.body:
         if part != None:
             xpos, ypos = nsci.body[part].location
             p_i = nsci.rects[part]
             if ypos&1:
                 p_i.topleft = [((xpos * p_i.width) + .5*p_i.width), (ypos*(hexh + s))]
             else:
                 p_i.topleft = [(xpos * p_i.width), (ypos*(hexh + s))]
             nsci.image.blit(nsci.hex, p_i)
     self.contentimgs.add(nsci)