360.0
500
360
500.0
50
2
filename
page4$0.mml
date
1197487208593
url
C:\Documents and Settings\apallant\My Documents\SAM\MW-CoulombForceVersi_07-12-7-7-45\page4$0.mml
size
32116
codebase
C:\Documents and Settings\apallant\My Documents\SAM\MW-CoulombForceVersi_07-12-7-7-45
define %sig %element[1].sigma;
define %hit_text_box 0;
Monitor the electron's motion.
20
Electron monitor
// hitting boundary
if((%atom[1].rx > %width - %sig) or (%atom[1].ry > %height - %sig) or (%atom[1].ry < %sig));
stop immediately;
set %hit_text_box -1;
set textbox[11].text <t>Target missed!</t>;
return;
endif;
// hit rectangle #0
if((%atom[1].rx > %rectangle[0].x) and (%atom[1].rx < %rectangle[0].x + %rectangle[0].width) and (%atom[1].ry > %rectangle[0].y) and (%atom[1].ry < %rectangle[0].y + %rectangle[0].height));
stop immediately;
set textbox[11].text <t>You win!</t>;
set %hit_text_box %number_of_textboxes-1;
return;
endif;
// hit rectangle #1
if((%atom[1].rx > %rectangle[1].x) and (%atom[1].rx < %rectangle[1].x + %rectangle[1].width) and (%atom[1].ry > %rectangle[1].y) and (%atom[1].ry < %rectangle[1].y + %rectangle[1].height));
stop immediately;
set textbox[11].text <t>You win!</t>;
set %hit_text_box %number_of_textboxes-1;
return;
endif;
0.5
None
-16776961
-2236946
255
0
255
255
1
3
485.0
-10.0
300.0
1
4
485.0
-10.0
240.0
1
5
485.0
-10.0
180.0
1
6
485.0
-10.0
120.0
1
7
485.0
-10.0
60.0
1
8
485.0
-10.0
30.0
1
9
485.0
-10.0
90.0
1
10
485.0
-10.0
150.0
1
11
485.0
-10.0
210.0
1
12
485.0
-10.0
270.0
1
13
485.0
-10.0
330.0
204
204
204
255
2
28
4
245.0
-410.0
180.0
2
29
4
250.0
180.0
360.0
0
0
255
255
17.0
1
0
0
255
255
2
18.0
472.0
306.0
17.0
1
1
2
18.0
472.0
66.0
255
192
0
255
360.0
1
2
10.0
490.0
0.0
204
204
204
255
20.0
1
25
128
128
128
255
2
20.0
-1.0
170.0
10.0
1
26
2
20.0
175.0
false
Courier New
0
12
1
14
-4
450.0
290.0
Courier New
0
12
1
15
-3
450.0
260.0
Courier New
0
12
1
16
-2
450.0
230.0
Courier New
0
12
1
17
-1
450.0
200.0
Courier New
0
12
1
18
0
450.0
170.0
Courier New
0
12
1
19
1
450.0
140.0
Courier New
0
12
1
20
2
450.0
110.0
Courier New
0
12
1
21
4
450.0
50.0
Courier New
0
12
1
22
5
450.0
1
23
3
450.0
81.0
1
24
-5
450.0
321.0
Trebuchet MS Bold
1
24
1
27
156.0
159.0
3
0.15
false
250.0
330.0
true
1
-1.0
472.2773846893962
307.92675329355416
true
0.08426770069636887
0.05309893610915195