예제 #1
0
파일: Game.py 프로젝트: libavg/mtc-sponc
    def onClash(self, object, position):
        if self.isHard():
            Clash(self.game, pos=position)
            object.hitSpeedup(self.getLength()/config.MAX_BAT_LENGTH)

            self.__playSound(position)
        Line.onClash(self, object ,position)
        return False
예제 #2
0
파일: Game.py 프로젝트: libavg/mtc-sponc
 def onClash(self, object, position):
     Line.onClash(self, object, position)
     if isinstance(object, Ball):
         self.__playSound(position)
         return True