예제 #1
0
def target_spotted(direction, targetBotName, targetX, targetY):
    """when a bot is seen"""
    
    """Point the gun into the target"""
    gamefile.pointgun(direction)
    
    """To fire""" 
    gamefile.fire(2)
예제 #2
0
def target_spotted(direction):
    gamefile.pointgun(direction * 1.1)
    global lastTarget
    lastTarget = direction
    gamefile.fire()
예제 #3
0
def target_spotted(direction, targetBotName, targetX, targetY):
        gamefile.pointgun(direction*1.4)
        gamefile.fire(2)
        gamefile.fire(2)
	gamefile.fire(2)
def target_spotted(direction):
        gamefile.pointgun((direction)*1.3)
        gamefile.fire()
예제 #5
0
def target_spotted(direction, targetBotName, targetX, targetY):
        gamefile.pointgun(direction*1.1)
        global lastTarget
        lastTarget = direction
        gamefile.fire(2)
예제 #6
0
def target_spotted(direction):
        gamefile.pointgun(direction*1.4)
        gamefile.fire()
        gamefile.fire()
	gamefile.fire()
예제 #7
0
def target_spotted(direction, targetBotName, targetX, targetY):
    gamefile.pointgun(direction * 1.1)
    global lastTarget
    lastTarget = direction
    gamefile.fire(2)