Skip to content

Commit 0a102db

Browse files
committed
added to BackgroundPhoto w/Matt
1 parent 79e4934 commit 0a102db

File tree

5 files changed

+28
-30
lines changed

5 files changed

+28
-30
lines changed
0 Bytes
Binary file not shown.

TeachingKidsProgramming/src/org/teachingkidsprogramming/section04mastery/BackgroundPhoto.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static void main(String[] args)
88
// Set the current picture to this url "http://img2.timeinc.net/ew/dynamic/imgs/101110/sonny-cher_240.jpg" --#7.1
99
// Set the background image to the current picture--#7.2
1010
// Set the current side to 2 pixels long --#4.1
11-
// Do the following 75 times --#2
11+
// Do the following 75 times --#2.1
1212
// Set the current pen color to crimson --#8.1
1313
// Use the current pen color for the line the tortoise draws --#8.2
1414
// Increase the length of a side by 1 pixel --#5
@@ -17,6 +17,6 @@ public static void main(String[] args)
1717
// Set the Y position of the tortoise to 65 pixels --#4.4
1818
// Turn the tortoise 1/3rd of 360 degrees to the right --#1
1919
// Turn the tortoise 1 more degree --#6
20-
// Repeat
20+
// Repeat --#2.2
2121
}
2222
}

TeachingKidsProgramming/src/org/teachingkidsprogramming/section07events/ConnectTheDots.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.teachingkidsprogramming.section07events;
22

3+
import org.teachingextensions.logo.Tortoise;
34
import org.teachingextensions.windows.MouseLeftClickListener;
45
import org.teachingextensions.windows.MouseRightClickListener;
56

@@ -8,11 +9,13 @@ public class ConnectTheDots implements MouseRightClickListener, MouseLeftClickLi
89
public static void main(String[] args)
910
{
1011
//Create a new 'Connect The Dots' window. --#1.1
12+
ConnectTheDots dots = new ConnectTheDots();
1113
}
1214
public ConnectTheDots()
1315
{
1416
// Listen for right clicks on the window for the tortoise --#20.2
1517
// Listen for left clicks on the window for the tortoise --#1.2
18+
Tortoise.getBackgroundWindow().addMouseRightClickListener(this);
1619
//Make the Tortoise go as fast as possible. --#4
1720
// clearTheScreen (recipe below) --#19
1821
// ------------- Recipe for clearTheScreen --#19

TeachingKidsProgramming/src/org/teachingkidsprogramming/section07events/OldSimpleBubbleQuiz.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

TeachingKidsProgramming/src/org/teachingkidsprogramming/section07events/SimpleBubbleQuiz.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,27 @@ public static void main(String[] args)
2626
{
2727
new SimpleBubbleQuizGrader().grade(new SimpleBubbleQuiz());
2828
}
29+
//this is the original quiz (from SmallBasic) - need to be translated to Java
30+
//Variables needed for Quiz
31+
// action[1] = 15
32+
// ball = 1
33+
// BubbleQuiz.StartQuizAt = Question2
34+
//--------------------Begin Quiz --------------------
35+
//Question1 - Is At the bottom of this quiz. But do it 1st!
36+
// Sub Question2
37+
// Set the 1st action to 5
38+
// EndSub
39+
// Sub Question3
40+
//Have the timer call Move every 100 milliseconds
41+
// EndSub
42+
// Sub Question4
43+
// Set the 2nd action to -6
44+
// EndSub
45+
// Sub Question5
46+
//Change the color for the next circle to be yellow
47+
//Make the current ball be a circle with a 11 pixel radius
48+
// EndSub
49+
//Question1
50+
//Create a subroutine called Move
51+
// that calls Quiz.DoMovement()
2952
}

0 commit comments

Comments
 (0)