555.0false10005551000.01false0.00192255255150.050.0800.0150.00.81280025567.0214.0410.0403.0filenamecmd_test$0.mmldate1224112149997urlC:\Documents and Settings\Cynthia D'Angelo\Application Data\Molecular Workbench\cache\cmd_test\cmd_test$0.mmlsize15942codebaseC:\Documents and Settings\Cynthia D'Angelo\My Documents\SURGE\MW modelsdetects if puck hit goal100hit detectiondefine %dx %atom[0].rx + .5*%atom[0].sigma;
define %dy %atom[0].ry + .5*%atom[0].sigma;
define %ox %obstacle[0].x + %obstacle[0].width;
define %oy %obstacle[0].y + %obstacle[0].height;
if (%dx > %obstacle[0].x and %dx < %ox and %dy > %obstacle[0].y and %dy < %oy);
stop immediately;
message <t>You hit the goal!</t>
print %bonus_time;
store 1 %bonus_time;
endif;changes color of puck while going through special region500change color//select atom within(46,16,7,12);
//mark color #eeaeee;
define %dx %atom[0].rx;
define %dy %atom[0].ry;
define %rw (%rectangle[0].x + %rectangle[0].width);
if(%rectangle[0].x < %dx and %rw > %dx);
set atom[0].color #eeaeee;
endif;
count of number of times puck hits obstacle100score
define %dx1 %atom[0].rx + %atom[0].sigma;
define %dy1 %atom[0].ry + %atom[0].sigma;
define %ox1 %obstacle[1].x + %obstacle[1].width;
define %oy1 %obstacle[1].y + %obstacle[1].height;
if(100 > %model_time);
set %hits1 0; // reset %hits1 when the model resets
endif;
if (%dx1 > %obstacle[1].x and %dx1 < %ox1 and %dy1 > %obstacle[1].y and %dy1 < %oy1);
set %hits1 %hits1+1;
print %hits1;
store 0 %hits1;
endif;
0.5Nonetrue-16776961true25502552550025525501920255132.0274.0463.0157.03.020.0693.0203.050.125