We are attempting a tank game in my class. I'm able to load the tank image however the image doesnt rotate. I did a search but cannot find a solution (or a simple one if it exists).
Here's what I have so far (very elementary). I'm hoping there's a simple solution to rotating the image to turn left/right.
import turtle
screen = turtle.Screen()
tankImage = "tank.gif"
screen.addshape(tankImage)
tank = turtle.Turtle()
tank.shape("turtle")
def left():
tank.left(20)
def right():
tank.right(20)
screen.listen()
screen.onkey(left, "Left")
screen.onkey(right, "Right")
turtle.mainloop()