master
parent
68b44e6741
commit
1ed4c2cbcf
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 27 KiB |
@ -0,0 +1,60 @@
|
|||||||
|
function createGame1(){
|
||||||
|
|
||||||
|
timeEnd = 20;
|
||||||
|
|
||||||
|
initTimer();
|
||||||
|
|
||||||
|
createSwitch("s1", 20, 20);
|
||||||
|
createSwitch("s2", 20, 90);
|
||||||
|
createSwitch("s3", 20, 300);
|
||||||
|
createSwitch("s4", 20, 500);
|
||||||
|
createSwitch("s5", 20, 700);
|
||||||
|
createSwitch("s6", 20, 600);
|
||||||
|
createSwitch("s7", 350, 600);
|
||||||
|
|
||||||
|
createLogique(200, 100, "logique1","et");
|
||||||
|
createLogique(300,200,"logique2","nonou");
|
||||||
|
createLogique(500,300,"logique3","et");
|
||||||
|
createLogique(500,400,"logique4","etnon");
|
||||||
|
createLogique(500,500,"logique5","inv");
|
||||||
|
|
||||||
|
createLink(stage.findOne("#s7"), findLogique("logique5"));
|
||||||
|
createLink(stage.findOne("#s5"), findLogique("logique4"));
|
||||||
|
createLink(stage.findOne("#s6"), findLogique("logique4"));
|
||||||
|
createLink(stage.findOne("#s3"), findLogique("logique2"));
|
||||||
|
createLink(stage.findOne("#s2"), findLogique("logique1"));
|
||||||
|
createLink(stage.findOne("#s1"), findLogique("logique1"));
|
||||||
|
createLink(findLogique("logique1"),findLogique("logique2"));
|
||||||
|
createLink(stage.findOne("#s4"), findLogique("logique3"));
|
||||||
|
createLink(findLogique("logique2"),findLogique("logique3"));
|
||||||
|
initAllSwitch();
|
||||||
|
createEnd(800, 320);
|
||||||
|
initEnd();
|
||||||
|
}
|
||||||
|
function createGame2(){
|
||||||
|
|
||||||
|
timeEnd = 40;
|
||||||
|
|
||||||
|
initTimer();
|
||||||
|
|
||||||
|
switchCreator(7);
|
||||||
|
|
||||||
|
insertLogiqueColonne("logique1", "et", 0);
|
||||||
|
insertLogiqueColonne("logique2", "nonou", 1);
|
||||||
|
insertLogiqueColonne("logique3", "et", 2);
|
||||||
|
insertLogiqueColonne("logique4", "etnon", 2);
|
||||||
|
insertLogiqueColonne("logique5", "inv", 2);
|
||||||
|
|
||||||
|
createLink(stage.findOne("#s7"), findLogique("logique5"));
|
||||||
|
createLink(stage.findOne("#s5"), findLogique("logique4"));
|
||||||
|
createLink(stage.findOne("#s6"), findLogique("logique4"));
|
||||||
|
createLink(stage.findOne("#s3"), findLogique("logique2"));
|
||||||
|
createLink(stage.findOne("#s2"), findLogique("logique1"));
|
||||||
|
createLink(stage.findOne("#s1"), findLogique("logique1"));
|
||||||
|
createLink(findLogique("logique1"),findLogique("logique2"));
|
||||||
|
createLink(stage.findOne("#s4"), findLogique("logique3"));
|
||||||
|
createLink(findLogique("logique2"),findLogique("logique3"));
|
||||||
|
initAllSwitch();
|
||||||
|
createEnd();
|
||||||
|
initEnd();
|
||||||
|
}
|
Loading…
Reference in new issue