Main.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:catcom 作者: Meepasaurus 项目源码 文件源码
def update(self):
        """Update called every frame"""
        #add check for colission here
        collideB = self.grid.collisionBottom(self.col, self.y)
        if collideB == False:
            self.y+=1
        elif self.placed != True:
            self.placed = True
            #self.grid.add_block(collideB[1], self.col, self.blocktype_file)
            #print "Placed a " + str(self.type) + " at [" + str(collideB[1]) + "][" + str(self.col) + "]"
            if collideB[1] == 0:
                #print "GAME OVER!!"
                #pygame.quit()
                #sys.exit(0)
                return True
        self.screen.blit(self.block_sample, (self.x,self.y))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号