400.0750400750.020.0-655361010-112181.0truetruetruetrue21.0729.00.0-655361010-11225.0truetruetruetrue706.022.0373.00.0178.0truetruetruetrue22.0728.0220.00.023.0truetruetruetrue707.022.0-655361010-11287.0truetruetruetrue21.0381.0119.00.087.0truetruetruetrue21.0565.0254.0398.0truetruetruetrue21.01.0filenamepage3$0.mmldate1243965041000url/Users/ddamelin/Desktop/ETMove/page3$0.mmlsize21711codebase/che/hp/etdefine %d 0.5;
define %electron_speed 2500;30Collision1set %flag count(-1, %obstacle[0].x-%d, %obstacle[0].y-%d, %obstacle[0].width + 2*%d, %obstacle[0].height + 2*%d);
if(%flag > 0);
stop;
message <t>Collision!<p>Click on OK to adjust your charges and try again.</t>;
select element 1;
remove;
set %flag 0;
endif;
set %flag count(-1, %obstacle[1].x-%d, %obstacle[1].y-%d, %obstacle[1].width + 2*%d, %obstacle[1].height + 2*%d);
if(%flag > 0);
stop;
message <t>Collision!<p>Click on OK to adjust your charges and try again.</t>;
select element 1;
remove;
set %flag 0;
endif;
set %flag count(-1, %obstacle[2].x-%d, %obstacle[2].y-%d, %obstacle[2].width + 2*%d, %obstacle[2].height + 2*%d);
if(%flag > 0);
stop;
message <t>Collision!<p>Click on OK to adjust your charges and try again.</t>;
select element 1;
remove;
set %flag 0;
endif;
set %flag count(-1, %obstacle[3].x-%d, %obstacle[3].y-%d, %obstacle[3].width + 2*%d, %obstacle[3].height + 2*%d);
if(%flag > 0);
stop;
message <t>Collision!<p>Click on OK to adjust your charges and try again.</t>;
select element 1;
remove;
set %flag 0;
endif;
set %flag count(-1, %obstacle[4].x-%d, %obstacle[4].y-%d, %obstacle[4].width + 2*%d, %obstacle[4].height + 2*%d);
if(%flag > 0);
stop;
message <t>Collision!<p>Click on OK to adjust your charges and try again.</t>;
select element 1;
remove;
set %flag 0;
set %flag 0;
endif;
set %flag count(-1, %obstacle[5].x-%d, %obstacle[5].y-%d, %obstacle[5].width + 2*%d, %obstacle[5].height + 2*%d);
if(%flag > 0);
stop;
message <t>Collision!<p>Click on OK to adjust your charges and try again.</t>;
select element 1;
remove;
set %flag 0;
endif;
set %flag count(-1, %obstacle[6].x-%d, %obstacle[6].y-%d, %obstacle[6].width + 2*%d, %obstacle[6].height + 2*%d);
if(%flag > 0);
stop;
message <t>Collision!<p>Click on OK to adjust your charges and try again.</t>;
select element 1;
remove;
set %flag 0;
endif;
set %flag count(-1, %obstacle[0].x, %obstacle[0].height, %obstacle[2].width, %obstacle[2].y);
if(%flag > 0);
stop;
message <t>You win! Click on Reset to try again.</t>;
endif;1.0None-1677696125502552550025525511.0122.040.0194.518.033.01118.022.0183.5false2-1.0false251.094.02-1.0false249.0145.0