You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.3 KiB

//Portes Logiques
var imageHeight = 75 / 2;
var imageWidth = 50;
var imageRotation = 0;
//couleur
const blackColor = "#444442";
const whiteColor = "#D7CCC8";
//Image
var pathImg = "img/txt_en/";
const imageLogiqueEt = "and.png";
const imageLogiqueOu = "or.png";
const imageLogiqueEtNon = "nand.png";
const imageLogiqueInv = "not.png";
const imageLogiqueNonOu = "nor.png";
//line
var colorLineInnactive = "black";
var colorLineActive = "#2ec22e"; //FFF033
const lineStroke = 4;
const pourcentageBreak = 15;
const tension = 0;
//objectif
var colorEnd = "#fe8a71";
//switch
const SwitchHeight = 25;
const SwitchWidth = 50;
const colorSwitchBorder = "black";
var colorSwitchInnactiveBackground = "#fe8a71";
var colorSwitchActiveBackground = "#2ec22e";
//timer
var timeEnd = 10;
var timeTot = 0;
//switch
var numberOfSwitch = 0;
//grid
var colonneTot = 4;
var numberPerColonne = [];
var liveColonneNumber = [];
var niveauActuel = 1;
var isTuto = true;
var isTutoriel = false;
//window
var windowWidth = 0;
var windowHeight = 0;
var mobile = false;
var allowedInfoPorte = true;
var double = false;
var click = 0, perfectClick = 0;
var successPanel = true;
var arrayPorte = [];
const NOMBRETEST = 500;
var tempCol = [], tempMatchs = [], tempFork = [], tempPortes = [], changePorte = [];