def funcRight_p2(screen = None , player = None): if player.effect!='electrified': player.setheading(0) playerForward(player)
import math import timeit #the window wn = turtle.Screen() wn.bgcolor("black") #Set up the player player = turtle.Turtle() player.speed(0) player.penup() player.shape("triangle") player.color("blue") player.setposition(0, 0) player.setheading(90) playerspeed = 15 #Enemies enemies = [] numOfEnemies = 6 turtle1 = turtle.Turtle() for i in range(numOfEnemies): enemies.append(turtle.Turtle()) enemyBullet = turtle.Turtle() enemyBullet.shape("circle")
def funcLeft_p1(screen = None , player = None): if player.effect!='electrified': player.setheading(180) playerForward(player)