File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import org .jointheleague .graphical .robot .Robot ;
2+
3+ /*** Teacher's note ***/
4+ /* Before beginning recipe:
5+ * 1. ask students to find and explain the variable in this recipe.
6+ * 2. ask students what robot commands they think they will use to make picture in the laminated hand-outs. */
7+
8+ public class FlamingNinjaStar {
9+ public static void main (String [] args ) {
10+
11+ int baseSize = 300 ; //the size of the black part of the star
12+ int flameSize = 200 ; //the length of the flaming arms
13+
14+ // *14. Use the methods setX and setY to move the ninja star into the center of the screen
15+
16+ // *15. Make some adjustments to see what other kinds of shapes you can make.
17+
18+ // 1. Show the robot
19+
20+ // 12. Set the robot speed to 10
21+
22+ // 13. Make all the code below repeat 25 times
23+
24+ // 2. Turn the robot 1/8 of a circle
25+
26+ // 3. Move the robot 64 pixels
27+
28+
29+ // 4. Turn the robot 40 degrees to the LEFT. (Negative numbers will turn the robot counter-clockwise.)
30+
31+ // 5. Move the robot the distance in the variable flameSize
32+
33+ // 6. Turn the robot 170 degrees
34+
35+ // 7. Move the robot the distance in the variable flameSize (again)
36+
37+ // 8. Turn the robot 64 degrees to the right
38+
39+ // 9. Move the robot the distance in the variable baseSize
40+
41+ // 10. Check that your shape is the same as Figure 1. This is one arm of the ninja star.
42+ // 11. Color your ninja star like Figure 2.
43+
44+ }
45+
46+ }
47+
48+
You can’t perform that action at this time.
0 commit comments