Beispiel #1
0
        mandalorianObj.showDin(gridObj.getMatrix())
    else:
        inRange = False


bulletObj = []
fireball = 0

while True:

    move(2, 0)
    configObj.setTime(150 - (round(time.time()) - round(T)))
    print(Style.BRIGHT + "Time Remaining:", configObj.getTime(), end='\t \t')
    print("Lives:", configObj.getLives(), end='\t \t')
    print("Coins:", configObj.getCoins(), end='\t \t')
    print("Enemy Lives:", configObj.getEnemyLives(), end='\n')
    if shieldObj.getWait() != 0:
        remainingTime = configObj.getTime() - shieldObj.getWait()
    print("Shield Wait Time:", remainingTime)

    if configObj.getStart() + speedfactor + 100 < 500:
        configObj.changeStart(speedfactor)
    else:
        if fireball % 10 == 0:
            iceObj.append(IceBall())
        fireball = fireball + 1
        pass

    for ball in iceObj:
        if ball.getPlaced() == 1:
            ball.removeItem(gridObj.getMatrix())