<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Non classé Archives &#8226; Les Francs Limiers concepteurs ludiques</title>
	<atom:link href="https://www.lesfrancslimiers.com/category/non-classe/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lesfrancslimiers.com/category/non-classe/</link>
	<description>Créateurs de jeux de piste, escape game et escape box !</description>
	<lastBuildDate>Fri, 16 Apr 2021 09:00:22 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.lesfrancslimiers.com/wp-content/uploads/2021/11/favicon_lfl.png</url>
	<title>Non classé Archives &#8226; Les Francs Limiers concepteurs ludiques</title>
	<link>https://www.lesfrancslimiers.com/category/non-classe/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">155816531</site>	<item>
		<title>laby</title>
		<link>https://www.lesfrancslimiers.com/2021/04/16/laby/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=laby</link>
					<comments>https://www.lesfrancslimiers.com/2021/04/16/laby/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 16 Apr 2021 08:57:47 +0000</pubDate>
				<category><![CDATA[Non classé]]></category>
		<guid isPermaLink="false">https://www.lesfrancslimiers.com/?p=29814</guid>

					<description><![CDATA[<p>Enigmes</p>
<p>L'article <a href="https://www.lesfrancslimiers.com/2021/04/16/laby/">laby</a> vient de <a href="https://www.lesfrancslimiers.com">Les Francs Limiers concepteurs ludiques</a>. L'escape game des Francs Limiers à retrouver à Metz Semécourt !</p>
]]></description>
										<content:encoded><![CDATA[
<!doctype html>
<html lang="fr">
    <head>
        <meta charset="utf-8">
        <title>Enigmes</title>
    </head>
    <style>
    body
        canvas {
        background-image: url("https://img.genial.ly/5c912c587082c2326aa13bd6/8e0f504b-31fc-4969-88f2-053aaf672bae.png");
        background-size: cover;
        }
    </style>
        <body>
            <input id="enigme1" type="button" onclick="enigme(this.id)" value="Montrer l'énigme 1">         
            <input id="enigme2" type="button" onclick="enigme(this.id)" value="Montrer l'énigme 2">
            <input id="enigme3" type="button" onclick="enigme(this.id)" value="Montrer l'énigme 3">
            <input id="enigme4" type="button" onclick="enigme(this.id)" value="Montrer l'énigme 4">
            <input id="enigme5" type="button" onclick="enigme(this.id)" value="Montrer l'énigme 5">
            <input id="enigme6" type="button" onclick="enigme(this.id)" value="Montrer l'énigme 6">
            <p id="affichage_enigme"></p>
            <p id="affichage_indice"></p>
            <p id="affichage_reponse"></p>
                <script>
                    let i ;
                    let enigme_selectionnee ;
                    function enigme(id_enigme) {
                        let contenu_enigme ;
                        let contenu_indice ;
                        if (id_enigme.slice(-1) == "1") {
                            contenu_enigme = 
                                '<h1>Enigme 1</h1>' +
                                '<h2>Cher Père Noël</h2>' +
                                '<p>Mon très cher Père Noël</p>' +
                                '<p>Maman a dû te dire que j\'avais été très sage cette année.</p>' +
                                '<p>Depuis un an, je réfléchis et j\'ai préparé une liste pour que toute la famille ait un cadeau.</p>' +
                                '<p>Commence par maman qui voudrait une liseuse pour emmener sa bibliothèque partout.</p>' +
                                '<p>C\'est une ssession d\'escape game en famille qui ferait plasir à papa.</p>' +
                                '<p>Camille, ma grande soeur, aimerait de nouveaux jeux de société pour jouer en famille.</p>' +
                                '<p>Le vélo rouge sans roulettes du catalogue serait super pour mon frère Nicolas.</p>' +
                                '<p>Xavier est petit alors amène un gros nounours tout doux cette année.</p>' +
                                '<p>Voilà, je crois que c\'est tout... ah oui sinon, pour moi, la console de jeu évidemment !</p>' +
                                '<p>Il faudra que tu fasses attention à toi, papa a cassé la cheminée et a installé un poêle à bois.</p>' +
                                '<p>Il faut passer par la porte maintenant.</p>' +
                                '<form onsubmit="checkAnswer(); return false">' +
                                    '<input id="reponse_utilisateur" type="text" placeholder="Rentrez votre réponse" maxlength=4 required>'+
                                    '<input type="submit" value="Valider la réponse">'+
                                '</form>' +
                                '<p><input id="indice1" type="button" onclick="indice(this.id)" value="Montrer l\'indice"></p>';
                        } else if (id_enigme.slice(-1) == "2"){                                                            
                            contenu_enigme = 
                                '<h1>Enigme 2</h1>' +
                                '<h2>Cent pas dans la neige</h2>' +
                                '<canvas width="728" height="681" id="canvas"></canvas>'+
                                '<p><input type="button" onclick="draw()" value="Dessiner sur le labyrinthe"></input>'+
                                '<input type="button" class="btn btn-success" onclick=" window.open(\'https://img.genial.ly/5c912c587082c2326aa13bd6/8e0f504b-31fc-4969-88f2-053aaf672bae.png\')" value="Imprimer l\'image"></input></p>'+
                                '<form onsubmit="checkAnswer(); return false">' +
                                    '<input id="reponse_utilisateur" type="text" placeholder="Rentrez votre réponse" required>'+
                                    '<input type="submit" value="Valider la réponse">'+
                                '</form>' +
                                '<input id="indice2" type="button" onclick="indice(this.id)" value="Montrer l\'indice">';
                        } else if (id_enigme.slice(-1) == 3){                                                              
                            contenu_enigme = 
                                '<p>Trouver le truc</p>' +                                                    
                                '<input id="indice3" type="button" onclick="indice(this.id)" value="Montrer l\'indice">';
                        } else if (id_enigme.slice(-1) == 4){                                                              
                            contenu_enigme = 
                                '<p>Trouver le truc</p>' +                                                    
                                '<input id="indice4" type="button" onclick="indice(this.id)" value="Montrer l\'indice">';
                        } else if (id_enigme.slice(-1) == 5){                                                              
                            contenu_enigme = 
                                '<p>Trouver le truc</p>' +                                                    
                                '<input id="indice5" type="button" onclick="indice(this.id)" value="Montrer l\'indice">';
                        } else if (id_enigme.slice(-1) == 6){                                                              
                            contenu_enigme = 
                                '<p>Trouver le truc</p>' +                                                    
                                '<input id="indice6" type="button" onclick="indice(this.id)" value="Montrer l\'indice">';
                        }
                        document.getElementById("affichage_enigme").innerHTML = contenu_enigme;
                        document.getElementById("affichage_indice").innerHTML = "" ;                                                    document.getElementById("affichage_reponse").innerHTML = "";
                        enigme_selectionnee = id_enigme.slice(-1);
                        i = 0;
                    }
                    function indice(id_indice) {
                        if (i != 0) {
                            contenu_indice = "" ;
                            i = 0 ;
                            } else if (id_indice.slice(-1) == "1") {
                                contenu_indice = 
                                    '<p>Indice : Lis bien la lettre et déchiffre Romain...</p>';
                            } else if (id_indice.slice(-1) == 2){
                                contenu_indice = 
                                    '<p>Indice : Dans la neige, on laisse toujours une trace ! Orientez-vous bien et prenez du recul...</p>';
                            } else if (id_indice.slice(-1) == 3){
                                contenu_indice = 
                                    '<p>Indice : [Pâques au tison,] Noël au balcon...</p>';
                            } else if (id_indice.slice(-1) == 4){
                                contenu_indice = 
                                    '<p>Indice : Mon cadeau est situé tout à gauche...</p>';
                            } else if (id_indice.slice(-1) == 5){
                                contenu_indice = 
                                    '<p>Indice : Vous êtes ici ! Suivez toutes les directions jusqu\'à la sortie...</p>';
                            } else if (id_indice.slice(-1) == 6){
                                contenu_indice = 
                                    '<p>Indice : Après mûre réflexion, vous vous souvenez que le chiffre des unités est 3...</p>';
                            }
                        document.getElementById("affichage_indice").innerHTML = contenu_indice;
                        if (contenu_indice != "") {
                            i = i+1 ;
                            }
                    }
                    function checkAnswer() {
                        let reponse_utilisateur = document.getElementById("reponse_utilisateur").value;
                        reponse_utilisateur = reponse_utilisateur.toUpperCase();
                        let reponse_enigme
                            if (enigme_selectionnee == "1") {
                                reponse_enigme = 2867 ;
                            } else if (enigme_selectionnee == "2"){
                                reponse_enigme = "MON BEAU SAPIN";
                            } else if (enigme_selectionnee == "3"){
                                reponse_enigme = 
                                    '<p>Indice : [Pâques au tison,] Noël au balcon...</p>';
                            } else if (enigme_selectionnee == "4"){
                                reponse_enigme = 
                                    '<p>Indice : Mon cadeau est situé tout à gauche...</p>';
                            } else if (enigme_selectionnee == "5"){
                                reponse_enigme = 
                                    '<p>Indice : Vous êtes ici ! Suivez toutes les directions jusqu\'à la sortie...</p>';
                            } else if (enigme_selectionnee == "6"){
                                reponse_enigme = 
                                    '<p>Indice : Après mûre réflexion, vous vous souvenez que le chiffre des unités est 3...</p>';
                            }
                        if (reponse_enigme == reponse_utilisateur) {
                            document.getElementById("affichage_reponse").innerHTML = "La réponse est bonne !";
                        } else {
                            document.getElementById("affichage_reponse").innerHTML = "La réponse est mauvaise !";
                        }
                    }
                    function draw() {
                    
                        // Variables for referencing the canvas and 2dcanvas context
                        var canvas,ctx;

                        // Variables to keep track of the mouse position and left-button status
                        var mouseX,mouseY,moving, mouseDown=0;

                        // Variables to keep track of the touch position
                        var touchX,touchY;

                        var userDrawnPixels = [];

                        // Get the touch position relative to the top-left of the canvas
                        // When we get the raw values of pageX and pageY below, they take into account the scrolling on the page
                        // but not the position relative to our target div. We'll adjust them using "target.offsetLeft" and
                        // "target.offsetTop" to get the correct values in relation to the top left of the canvas.
                        function getTouchPos(e) {
                                if (!e)
                                    var e = event;

                                if(e.touches) {
                                    if (e.touches.length == 1) { // Only deal with one finger
                                        var touch = e.touches[0]; // Get the information for finger #1
                                        touchX=touch.pageX-touch.target.offsetLeft;
                                        touchY=touch.pageY-touch.target.offsetTop;
                                    }
                                }
                        }

                        // Set-up the canvas and add our event handlers after the page has loaded
                        function init() {
                                // Get the specific canvas element from the HTML document
                                canvas = document.getElementById('canvas');

                                canvas.focus();

                                canvas.width  = (window.innerWidth > 728) ? 728 : window.innerWidth;
                                canvas.height = (window.innerHeight > 681) ? 681 : window.innerHeight;

                                // If the browser supports the canvas tag, get the 2d drawing context for this canvas
                                if (canvas.getContext)
                                    ctx = canvas.getContext('2d');

                                // Check that we have a valid context to draw on/with before adding event handlers
                                if (ctx) {
                                    // React to mouse events on the canvas, and mouseup on the entire document
                                    canvas.addEventListener('mousedown', sketchpad_mouseDown, false);
                                    canvas.addEventListener('mousemove', sketchpad_mouseMove, false);
                                    canvas.addEventListener('mouseup', mouseOrTouchUp, false);

                                    // React to touch events on the canvas
                                    canvas.addEventListener('touchstart', sketchpad_touchStart, false);
                                    canvas.addEventListener('touchmove', sketchpad_touchMove, false);
                                    canvas.addEventListener('touchend', mouseOrTouchUp, false);
                                }
                        }

                        // Draws a dot at a specific position on the supplied canvas name
                        // Parameters are: A canvas context, the x position, the y position, the size of the dot
                        function drawLine(ctx, x, y, size) {
                                ctx.fillStyle = "red";
                                ctx.strokeStyle = "red";
                                ctx.beginPath();

                                var n = userDrawnPixels.length;
                                var point = userDrawnPixels[n-1];

                                if ((n>1) && moving) {
                                    var prevPoint = userDrawnPixels[n-2];
                                    ctx.moveTo(prevPoint[0],prevPoint[1]);
                                    ctx.lineTo(point[0], point[1]);
                                } else {
                                    //ctx.moveTo(point[0],point[0]);
                                    //ctx.lineTo(point[0], point[1]);
                                }

                                ctx.lineCap = "round";
                                ctx.lineJoin = "round";
                                ctx.lineWidth = size;
                                ctx.stroke();
                                ctx.closePath();
                                ctx.fill();
                        }


                        function drawDot(ctx, x, y, size) {
                                ctx.fillStyle = "red";
                                ctx.strokeStyle = "red";

                                // Draw a filled circle
                                ctx.beginPath();
                                ctx.arc(x, y, size, 0, Math.PI*2, true);
                                ctx.closePath();
                                ctx.fill();
                        }

                                // Keep track of the mouse button being pressed and draw a dot at current location
                        function sketchpad_mouseDown() {

                                userDrawnPixels.push([mouseX, mouseY]);
                                drawDot(ctx,mouseX,mouseY,3);

                                mouseDown=1;
                        }


                        function mouseOrTouchUp() {
                                mouseDown=0;
                                moving=0;
                        }

                        function sketchpad_mouseMove(e) {
                                // Update the mouse co-ordinates when moved
                                getMousePos(e);

                                // Draw a dot if the mouse button is currently being pressed
                                if (mouseDown==1) {
                                    drawLine(ctx,mouseX,mouseY,6);
                                    userDrawnPixels.push([mouseX, mouseY]);
                                    moving=1;
                                }
                        }

                        // Get the current mouse position relative to the top-left of the canvas
                        function getMousePos(e) {
                                if (!e)
                                    var e = event;

                                if (e.offsetX) {
                                    mouseX = e.offsetX;
                                    mouseY = e.offsetY;
                                }
                                else if (e.layerX) {
                                    mouseX = e.layerX;
                                    mouseY = e.layerY;
                                }
                        }

                        // Draw something when a touch start is detected
                        function sketchpad_touchStart() {
                                getTouchPos();
                                userDrawnPixels.push([touchX, touchY]);
                                drawDot(ctx,touchX,touchY,3);

                                // Prevent a scrolling action as a result of this touchmove triggering.
                                event.preventDefault();

                                moving=1;
                        }

                        function sketchpad_touchMove(e) {
                                getTouchPos(e);
                                userDrawnPixels.push([touchX, touchY]);
                                drawLine(ctx,touchX,touchY,6);

                                // Prevent a scrolling action as a result of this touchmove triggering.
                                event.preventDefault();
                        }

                        init();
                    }
                </script>
        </body>
</html>

<p>L'article <a href="https://www.lesfrancslimiers.com/2021/04/16/laby/">laby</a> vient de <a href="https://www.lesfrancslimiers.com">Les Francs Limiers concepteurs ludiques</a>. L'escape game des Francs Limiers à retrouver à Metz Semécourt !</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.lesfrancslimiers.com/2021/04/16/laby/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">29814</post-id>	</item>
	</channel>
</rss>
