예제 #1
0
파일: playGame.py 프로젝트: nchpmn/S-kuru
def collideBalls(b1, b2):
    """Check for collision between two balls"""
    if module_physicsEngine.collideTest(b1, b2): # If they have collided
        module_physicsEngine.ballBounce(b1, b2)
예제 #2
0
파일: playGame.py 프로젝트: nchpmn/S-kuru
def collideExit(ball):
    """Check for a ball exiting (colliding with exit)"""
    for e in exits:
        if module_physicsEngine.collideTest(ball, e):
            ball.exited = True