You are currently viewing this lesson as a guest.
Animation with Turtle Project
Completed

Animation with Turtle Project

Project: Animation


Now let's create a snake game.


Let’s understand animation before we start building.

  • There are steps in animation:

  • draw, erase/clear/ hide, change position, draw/show again, repeat.

  • To create animation with turtle we have to follow the same steps.

Steps:

  • First we set up the turtle window

  • Then, we define our turtle. In the example, the turtle's name is Donatello (or don for short), but you can name whatever name you want. Just remember to refer to the same throughout the game.

  • Next, you create a function to draw a square.

  • Next, you move the turtle to the starting position.

  • Finally, you create a loop to draw the square, erase it, move it forward, and redraw it again.

  • Run and test out your animation.

Challenges

  • First challenge is to customize your animation to draw a star (instead of a square) and fill it with a different color.


    • Second challenge is to draw and animate multiple stars of different size and different colors and at different positions


    Did you like this lesson?

    (Voting helps us personalize your learning experience!)