vtb store update
Browse files- store.json +23 -0
store.json
CHANGED
|
@@ -859,5 +859,28 @@
|
|
| 859 |
"edits": [],
|
| 860 |
"shared_at": 1783763188,
|
| 861 |
"owner": "bg2"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 862 |
}
|
| 863 |
}
|
|
|
|
| 859 |
"edits": [],
|
| 860 |
"shared_at": 1783763188,
|
| 861 |
"owner": "bg2"
|
| 862 |
+
},
|
| 863 |
+
"un jeu joli___GLM 4.7": {
|
| 864 |
+
"block_id": "m8YVgLIpR45wEnb9mREf",
|
| 865 |
+
"intention": "Un jeu joli",
|
| 866 |
+
"html": "<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\">\n <title>Lumière et Bulles</title>\n <style>\n :root {\n --font-main: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;\n --color-ui: #ffffff;\n --color-bg-start: #2b1055;\n --color-bg-end: #7597de;\n }\n\n body, html {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background: linear-gradient(to bottom, var(--color-bg-start), var(--color-bg-end));\n font-family: var(--font-main);\n touch-action: none; /* Empêche le zoom/scroll sur mobile */\n user-select: none;\n -webkit-user-select: none;\n }\n\n #canvas-jeu {\n display: block;\n width: 100%;\n height: 100%;\n cursor: pointer;\n }\n\n /* Interface utilisateur superposée */\n #interface {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none; /* Laisse passer les clics vers le canvas */\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: 20px;\n box-sizing: border-box;\n }\n\n .score-container {\n text-align: center;\n color: var(--color-ui);\n text-shadow: 0 2px 10px rgba(0,0,0,0.2);\n opacity: 0;\n transition: opacity 0.5s ease;\n }\n\n .score-valeur {\n font-size: 4rem;\n font-weight: 200;\n line-height: 1;\n }\n\n .score-label {\n font-size: 1rem;\n text-transform: uppercase;\n letter-spacing: 2px;\n opacity: 0.8;\n }\n\n /* Écran de démarrage / Pause */\n #ecran-accueil {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(5px);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n pointer-events: auto;\n transition: opacity 0.5s ease, visibility 0.5s;\n z-index: 10;\n }\n\n #ecran-accueil.cache {\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n }\n\n h1 {\n color: white;\n font-weight: 300;\n font-size: 2.5rem;\n margin-bottom: 40px;\n text-shadow: 0 4px 15px rgba(0,0,0,0.3);\n text-align: center;\n }\n\n .btn-jouer {\n background: white;\n color: #333;\n border: none;\n padding: 20px 60px;\n font-size: 1.5rem;\n border-radius: 50px;\n cursor: pointer;\n box-shadow: 0 10px 25px rgba(0,0,0,0.2);\n transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;\n font-family: var(--font-main);\n font-weight: 600;\n }\n\n .btn-jouer:hover, .btn-jouer:active {\n transform: scale(1.05);\n box-shadow: 0 15px 35px rgba(0,0,0,0.3);\n }\n\n .btn-jouer:active {\n transform: scale(0.95);\n }\n\n /* Indicateur de combo */\n #combo-msg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: white;\n font-size: 2rem;\n font-weight: bold;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.3s, transform 0.3s;\n text-shadow: 0 0 20px rgba(255,255,255,0.8);\n }\n\n #combo-msg.actif {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1.2);\n }\n\n </style>\n</head>\n<body>\n\n <canvas id=\"canvas-jeu\"></canvas>\n\n <div id=\"interface\">\n <div class=\"score-container\" id=\"score-ui\">\n <div class=\"score-valeur\" id=\"score\">0</div>\n <div class=\"score-label\">Étoiles</div>\n </div>\n <div id=\"combo-msg\">Magnifique !</div>\n </div>\n\n <div id=\"ecran-accueil\">\n <h1>Lumière</h1>\n <button class=\"btn-jouer\" id=\"btn-start\">Jouer</button>\n </div>\n\n <script>\n /**\n * Logique du jeu \"Lumière\"\n * Un jeu de réflexe et de détente. Éclatez les bulles de lumière.\n */\n\n const canvas = document.getElementById('canvas-jeu');\n const ctx = canvas.getContext('2d');\n const scoreEl = document.getElementById('score');\n const scoreContainer = document.getElementById('score-ui');\n const ecranAccueil = document.getElementById('ecran-accueil');\n const btnStart = document.getElementById('btn-start');\n const comboMsg = document.getElementById('combo-msg');\n\n // État du jeu\n let jeuActif = false;\n let score = 0;\n let largeur, hauteur;\n let animationId;\n let dernierTemps = 0;\n let timerBulle = 0;\n let intervalleBulle = 800; // ms entre les bulles\n let difficulte = 1;\n \n // Entités\n const bulles = [];\n const particules = [];\n\n // Configuration visuelle\n const couleurs = [\n { h: 200, s: 80, l: 60 }, // Bleu clair\n { h: 280, s: 70, l: 65 }, // Violet doux\n { h: 340, s: 80, l: 60 }, // Rose\n { h: 160, s: 70, l: 55 }, // Vert d'eau\n { h: 40, s: 90, l: 60 } // Or\n ];\n\n // --- Gestion du Redimensionnement ---\n function redimensionner() {\n largeur = window.innerWidth;\n hauteur = window.innerHeight;\n canvas.width = largeur;\n canvas.height = hauteur;\n }\n window.addEventListener('resize', redimensionner);\n redimensionner();\n\n // --- Classes ---\n\n class Bulle {\n constructor() {\n this.rayon = Math.random() * 30 + 30; // Entre 30 et 60\n this.x = Math.random() * (largeur - this.rayon * 2) + this.rayon;\n this.y = hauteur + this.rayon;\n this.vitesseY = Math.random() * 2 + 1 + (difficulte * 0.2);\n this.vitesseX = (Math.random() - 0.5) * 1;\n this.couleurBase = couleurs[Math.floor(Math.random() * couleurs.length)];\n this.alpha = 0;\n this.phaseMontee = true;\n this.oscillation = Math.random() * Math.PI * 2;\n }\n\n update(dt) {\n // Mouvement vertical\n this.y -= this.vitesseY * (dt / 16);\n \n // Mouvement latéral doux\n this.oscillation += 0.02;\n this.x += Math.sin(this.oscillation) * 0.5;\n\n // Apparition en fondu\n if (this.phaseMontee && this.alpha < 0.8) {\n this.alpha += 0.02;\n }\n\n // Disparition si hors écran (haut)\n if (this.y < -this.rayon) {\n return false; // À supprimer\n }\n return true; // Garder\n }\n\n dessiner(ctx) {\n ctx.save();\n ctx.globalAlpha = this.alpha;\n \n // Dégradé pour effet 3D\n const gradient = ctx.createRadialGradient(\n this.x - this.rayon * 0.3, \n this.y - this.rayon * 0.3, \n this.rayon * 0.1, \n this.x, \n this.y, \n this.rayon\n );\n \n const c = this.couleurBase;\n gradient.addColorStop(0, `hsla(${c.h}, ${c.s}%, 90%, 1)`);\n gradient.addColorStop(0.5, `hsla(${c.h}, ${c.s}%, ${c.l}%, 0.8)`);\n gradient.addColorStop(1, `hsla(${c.h}, ${c.s}%, ${c.l - 20}%, 0.1)`);\n\n ctx.fillStyle = gradient;\n ctx.beginPath();\n ctx.arc(this.x, this.y, this.rayon, 0, Math.PI * 2);\n ctx.fill();\n\n // Reflet\n ctx.fillStyle = 'rgba(255, 255, 255, 0.4)';\n ctx.beginPath();\n ctx.arc(this.x - this.rayon * 0.3, this.y - this.rayon * 0.3, this.rayon * 0.2, 0, Math.PI * 2);\n ctx.fill();\n\n ctx.restore();\n }\n\n estTouche(x, y) {\n const dist = Math.hypot(this.x - x, this.y - y);\n return dist < this.rayon + 10; // +10 de marge tactile\n }\n }\n\n class Particule {\n constructor(x, y, couleur) {\n this.x = x;\n this.y = y;\n const angle = Math.random() * Math.PI * 2;\n const vitesse = Math.random() * 4 + 2;\n this.vx = Math.cos(angle) * vitesse;\n this.vy = Math.sin(angle) * vitesse;\n this.vie = 1.0;\n this.decroissance = Math.random() * 0.02 + 0.015;\n this.taille = Math.random() * 4 + 2;\n this.couleur = couleur;\n }\n\n update() {\n this.x += this.vx;\n this.y += this.vy;\n this.vy += 0.1; // Gravité légère\n this.vie -= this.decroissance;\n return this.vie > 0;\n }\n\n dessiner(ctx) {\n ctx.save();\n ctx.globalAlpha = this.vie;\n ctx.fillStyle = `hsl(${this.couleur.h}, ${this.couleur.s}%, 80%)`;\n ctx.beginPath();\n ctx.arc(this.x, this.y, this.taille, 0, Math.PI * 2);\n ctx.fill();\n ctx.restore();\n }\n }\n\n // --- Logique du Jeu ---\n\n function demarrerJeu() {\n jeuActif = true;\n score = 0;\n difficulte = 1;\n bulles.length = 0;\n particules.length = 0;\n scoreEl.innerText = score;\n ecranAccueil.classList.add('cache');\n scoreContainer.style.opacity = '1';\n dernierTemps = performance.now();\n boucle(dernierTemps);\n }\n\n function creerExplosion(x, y, couleur) {\n for (let i = 0; i < 15; i++) {\n particules.push(new Particule(x, y, couleur));\n }\n }\n\n function afficherCombo() {\n comboMsg.classList.add('actif');\n setTimeout(() => {\n comboMsg.classList.remove('actif');\n }, 800);\n }\n\n function gererInteraction(x, y) {\n if (!jeuActif) return;\n\n let touche = false;\n // Itérer à l'envers pour toucher la bulle du dessus en premier\n for (let i = bulles.length - 1; i >= 0; i--) {\n const b = bulles[i];\n if (b.estTouche(x, y)) {\n // Touché !\n creerExplosion(b.x, b.y, b.couleurBase);\n bulles.splice(i, 1);\n score += 10;\n scoreEl.innerText = score;\n \n // Feedback visuel score\n scoreEl.style.transform = \"scale(1.2)\";\n setTimeout(() => scoreEl.style.transform = \"scale(1)\", 100);\n\n // Augmentation progressive de la difficulté\n if (score % 100 === 0) {\n difficulte += 0.5;\n intervalleBulle = Math.max(200, 800 - (difficulte * 50));\n afficherCombo();\n }\n \n touche = true;\n break; // Un seul coup par clic\n }\n }\n\n // Effet de ripples même si on rate (pour le plaisir visuel)\n if (!touche) {\n creerExplosion(x, y, { h: 0, s: 0, l: 100 }); // Petites étincelles blanches\n }\n }\n\n // --- Boucle Principale ---\n\n function boucle(temps) {\n if (!jeuActif) return;\n\n const dt = temps - dernierTemps;\n dernierTemps = temps;\n\n // Nettoyer l'écran\n ctx.clearRect(0, 0, largeur, hauteur);\n\n // Génération des bulles\n timerBulle += dt;\n if (timerBulle > intervalleBulle) {\n bulles.push(new Bulle());\n timerBulle = 0;\n }\n\n // Mise à jour et dessin des bulles\n for (let i = bulles.length - 1; i >= 0; i--) {\n const b = bulles[i];\n if (!b.update(dt)) {\n bulles.splice(i, 1);\n } else {\n b.dessiner(ctx);\n }\n }\n\n // Mise à jour et dessin des particules\n for (let i = particules.length - 1; i >= 0; i--) {\n const p = particules[i];\n if (!p.update()) {\n particules.splice(i, 1);\n } else {\n p.dessiner(ctx);\n }\n }\n\n animationId = requestAnimationFrame(boucle);\n }\n\n // --- Événements ---\n\n btnStart.addEventListener('click', demarrerJeu);\n\n // Souris\n canvas.addEventListener('mousedown', (e) => {\n gererInteraction(e.clientX, e.clientY);\n });\n\n // Tactile\n canvas.addEventListener('touchstart', (e) => {\n e.preventDefault(); // Empêche le défilement\n for (let i = 0; i < e.changedTouches.length; i++) {\n const t = e.changedTouches[i];\n gererInteraction(t.clientX, t.clientY);\n }\n }, { passive: false });\n\n // Animation de fond initiale (avant le jeu)\n function animationFond() {\n if (jeuActif) return;\n \n // Dessine juste quelques bulles décoratives\n ctx.clearRect(0, 0, largeur, hauteur);\n \n if (Math.random() < 0.02) {\n const b = new Bulle();\n b.y = hauteur + 50;\n b.vitesseY = 1;\n bulles.push(b);\n }\n\n for (let i = bulles.length - 1; i >= 0; i--) {\n const b = bulles[i];\n b.y -= 1;\n b.alpha = 0.3;\n b.dessiner(ctx);\n if (b.y < -100) bulles.splice(i, 1);\n }\n \n requestAnimationFrame(animationFond);\n }\n \n // Lancer l'ambiance au chargement\n animationFond();\n\n </script>\n\n<!-- VTB_SIG_v1 -->\n<style>\n#__vtb_badge{position:fixed;bottom:14px;right:14px;z-index:2147483646;display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:980px;background:rgba(255,255,255,.92);color:#1d1d1f;font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:11px;font-weight:500;text-decoration:none;box-shadow:0 2px 12px rgba(0,0,0,.12);backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,.06);transition:opacity .2s}\n#__vtb_badge:hover{opacity:.85}\n#__vtb_badge b{color:#6e56cf;font-weight:600}\nhtml[dir=\"rtl\"] #__vtb_badge{right:auto;left:14px}\n@media print{#__vtb_badge{display:none}}\n</style>\n<a id=\"__vtb_badge\" href=\"https://voxtobox.com\" target=\"_blank\" rel=\"noopener\">Cree avec <b>VoxToBox</b> beta</a>\n</body>\n</html>",
|
| 867 |
+
"model": "GLM 4.7",
|
| 868 |
+
"category": "autre",
|
| 869 |
+
"author": "Bg2",
|
| 870 |
+
"shared": true,
|
| 871 |
+
"count": 1,
|
| 872 |
+
"created": 1783763230,
|
| 873 |
+
"last_seen": 1783763230,
|
| 874 |
+
"signals": {
|
| 875 |
+
"present_total": 0,
|
| 876 |
+
"present_count": 0,
|
| 877 |
+
"downloads": 0,
|
| 878 |
+
"repeats": 0,
|
| 879 |
+
"modifies": 0,
|
| 880 |
+
"visits": 0
|
| 881 |
+
},
|
| 882 |
+
"edits": [],
|
| 883 |
+
"shared_at": 1783763233,
|
| 884 |
+
"owner": "bg2"
|
| 885 |
}
|
| 886 |
}
|