Create a simple turtle graphics program. Below are a possible layout and turtle design.
Test by drawing shapes
Create a simple game. Create a maze(s) the user must program a path through the maze, or any other game you can think of that requires drawing lines.
Layers can determine what will be displayed on top of other element. For example, the turtle sprite will always be displayed on top of all other layers.
Layer | Use/Description |
---|---|
Layer3 | top most layer used for the turtle sprite |
Layer2 | used for the lines drawn by the turtle |
Layer1 | used for the grid |
Layer0 | bottom most layer used for background images, mazes, background color, ... |
Note: Layers are independent and can be displayed or removed without effecting the other layers.
Little Turtle is designed to build a command sequence a few commands at a time.
Command | Example | Description |
---|---|---|
H | H | home, center the turtle in the drawing area point in direction 0 |
M | M 5 | move forward ? steps |
L | L 2 | turn left (0-6) |
R | R 6 | turn right (0-6) |
U | U | pen up (stop drawing) |
D | D | pen down (start drawing) |
C | C 3 | pen color (1-6) |
S | S 2 | pen size (1-9) |
Note:
Note: