Créer Quantum Factory Tycoon 1.0 - Singularity Edition, une version avancée mais contenue dans un seul fichier HTML, avec un code ultra-commenté (minimum 80% de commentaires) pour faciliter la maintenance, l'évolution et l'innovation. Objectifs clés :
- Profondeur systémique digne d’un Factorio + Idle Game
- Accessibilité progressive (facile à jouer, difficile à maîtriser)
- Extensible sur plusieurs années par ajouts de contenu
Date de génération : 20 Janvier 2026
Auteur : AI Assistant (basé sur paste.txt original + évolutions)
Changements majeurs : Progression structurée par ères, focus V1 jouable, innovations (IA adaptative, mystique procédural, modes AR/VR-ready), code data-driven optimisé, onboarding renforcé.
Créer un tycoon idle profond (Factorio meets NGU Idle) en un seul fichier HTML, ultra-commenté (≥85% lignes commentées), 60 FPS mobile/desktop.
Clés :
- Progression addictive : facile early, maître late.
- Extensible 5+ ans (mods JSON, événements procéduraux).
- Thème unique : usines quantiques mystiques (science + occultisme).
Quantum Factory Tycoon 7.0 - Singularity Edition est un tycoon idle stratégique en un seul fichier HTML qui fusionne la profondeur systémique de Factorio, l'addiction du NGU Idle, et une couche mystique/quantique unique. L'objectif est de créer une expérience "facile à démarrer, impossible à maîtriser" évolutive sur 5+ ans pour un solo-dev.
Joueur → Micro-usine (T1) → Méga-complexe industriel (T4)
→ Empire quantique (T7) → Singularité mystique (T10+)
Durée de vie visée :
- V1 jouable : 2-5h (ères 1-2)
- Addictif mid-game : 20-50h (automates + optimisation)
- Late-game obsession : 500h+ (mystique procédural + prestige)
- Satisfaction Visuelle : Particules quantiques, connexions animées, néons sci-fi, mutations mystiques
- Progression Dopaminergique : XP ding → grille + → nouvelles machines → "juste une partie de plus"
- Défis Intellectuels : Optimisation (pollution/énergie), mystères (anomalies), IA rivale intelligente
"Le tycoon où la science rencontre l'occultisme"
Science (T1-T4) → Quantique (T5-T7) → Exotique (T8) → MYSTIQUE (T9-10)
Physique → Singularité → Von Neumann → Pierre Philosophale
Tagline : "Exploite l'univers. Défie les dieux. Deviens la Singularité."
✅ 1 fichier HTML (HTML/CSS/JS vanilla)
✅ ≥85% lignes commentées
✅ 60 FPS mobile/desktop garanti
✅ PWA offline-first
✅ Data-driven (JSON machines)
✅ Modularité "// === SECTION: XXX ==="
✅ Hot-reload localStorage
✅ Export/Import JSON usines
✅ AR/VR-ready (WebXR)
| Métrique | V1 Target | V3 Target |
|---|---|---|
| Temps 1ère session | <2min | <30s |
| Rétention J1 | 70% | 85% |
| Rétention J7 | 40% | 60% |
| Machines uniques | 25 | 150+ |
| Taille grille max | 20x20 | ∞ |
| Prestige cycles | 1 | 10+ |
Factorio (trop complexe) ← Quantum Factory → AdVenture Capitalist (trop simple)
↓ ↓ ↓
Complexité modérée + Mystique + Progression infinie
Public cible : Fans Factorio/Dyson Sphere/Satisfactory cherchant idle profond + joueurs mobile hardcore.
Free HTML → Ko-fi donations → Patreon (usines custom) → itch.io pay-what-you-want
→ Steam (Tauri port) → Mobile (PWA → APK)
V1.0 → Core loop + 2 ères (1 mois)
V1.5 → Automatisation + polish (2 sem)
V2.0 → Mystique procédural (1 mois)
V3.0 → Mods JSON + Leaderboards (2 mois)
V4.0 → AR/VR + IA avancée (3 mois)
Résultat final attendu : L'idle tycoon le plus profond jamais créé en vanilla web, évolutif à l'infini.
Quantum Factory Tycoon deviendra LE tycoon idle stratégique data-driven en un seul fichier HTML, évoluant d'un prototype solo-dev à une référence mondiale du genre. Objectif : 1M+ joueurs, 4.8⭐ itch.io/Steam.
Jan 2026 → V1 "Core Loop" (2h jouable)
Dec 2026 → V2 "Addiction Engine" (50h+)
Dec 2027 → V3 "Écosystème" (500h+)
Dec 2028 → V4 "Singularité" (∞, mods/VR)
| Trimestre | Version | Fonctionnalités | Métriques | Plateformes |
|---|---|---|---|---|
| Q1 2026 | V1.0 Alpha | Core loop T1-T2, 25 machines, PWA mobile | 100 testeurs, 70% rétention J1 | HTML local |
| Q2 2026 | V1.5 Beta | T3-T4, automatisation IA, événements | 1K joueurs itch.io, 2h avg session | itch.io, Discord |
| Q3 2026 | V2.0 | Mystique procédural, prestige, 75 machines | 10K joueurs, 40% J7 | Steam Early Access |
| Q4 2026 | V2.5 | Leaderboards, modding JSON, AR mobile | 50K joueurs, $10K/mois | Steam + Mobile PWA |
| Q1 2027 | V3.0 | Méga-structures, IA adaptative, 125 machines | 100K joueurs, 4.5⭐ | Steam + Android APK |
| Q2-Q4 2027 | V3.5 | Multi-langues, VR WebXR, speedrun compètes | 250K joueurs, $50K/mois | Steam + iOS/VR |
| 2028 | V4.0 Singularité | Mods marketplace, IA créative, univers procédural | 1M+ joueurs, référence genre | All platforms + Web3 ? |
👥 1M joueurs uniques
💰 $500K revenus (pay-what-you-want + Patreon)
⭐ 4.8/5 (50K reviews)
⏱️ 500h contenu (10 prestiges × 50h)
🛠️ 150+ machines data-driven
🌍 8 langues
📱 Cross-platform (Web/Mobile/Desktop/VR)
✅ 1 fichier HTML ultra-optimisé
✅ Core loop addictif T1-T3
✅ Discord communauté 1K joueurs
✅ itch.io "Overwhelmingly Positive"
✅ Viral Reddit/HackerNews
✅ 75 machines, 5 ères jouables
✅ Système prestige complet
✅ IA suggestions personnalisées
✅ Leaderboards + achievements
✅ $5-15 pay-what-you-want
✅ 100K joueurs, 40h avg
✅ Mods JSON marketplace
✅ AR/VR WebXR support
✅ Multi-langues auto-généré
✅ Tournois speedrun mensuels
✅ Patreon usines custom
✅ Android/iOS native
✅ IA créative (nouvelles machines procédurales)
✅ Univers procédural (maps infinies)
✅ Web3 skins/machines (optionnel)
✅ Référence genre (Factorio idle)
✅ $2K+/jour revenus passifs
"LE tycoon idle data-driven le plus profond
jamais créé en 1 clic HTML.
Évolutif à l'infini via JSON mods."
Comparaison :
Factorio (40h, $30) ← Quantum Factory → Cookie Clicker (∞, gratuit)
↓ ↓
Profondeur + Idle + Cross-platform + Mods + Mystique
Mois 1-6 : Free HTML + Ko-fi
Mois 7-12 : itch.io PWYW ($0-15)
Mois 13-18 : Steam EA ($10) + Patreon ($5/m)
Mois 19-24 : Premium ($15) + DLC mods ($5)
🎨 Thème : Néons quantiques + runes mystiques
📱 Screenshots : Avant/Après usines épiques
🎥 Trailer : 60s time-lapse T1→T10
🐦 Twitter : "Day X: Machine #45 unlocked"
📈 Analytics : Heatmaps clics → features prioritaires
V1 : Vanilla HTML/JS (no deps)
V2 : + localStorage + Web Workers
V3 : + WebXR + Service Workers
V4 : + WebAssembly (perf critique)
→ Toujours 1 fichier <2MB téléchargeable
👥 Joueurs actifs / Nouveaux
⭐ Notes moyennes / Reviews
⏱️ Session avg / Rétention J1/J7/J30
💰 Revenus / Patrons
🛠️ Bugs critiques / Features demandées
Résultat 2028 : Quantum Factory = "le tycoon idle qui a redéfini le genre". Référence pour tout nouveau dev HTML5 tycoon.
- 1 fichier HTML : HTML/CSS/JS vanilla (no deps).
- Modularité : Sections JS claires (
// === SECTION: Grid ===). - Perf : Data-driven (JSON machines), Web Workers pour simu.
- Plateformes : Web/PWA (offline), Tauri desktop, AR/VR-ready (WebXR).
- Solo-dev friendly : Hot-reload via localStorage, export JSON configs.
Produire → Transporter → Transformer → Stocker → Vendre → XP/Level
↓
Recherche → Automatiser → Prestige → Mystique Ultime
Ressources de base : ⚡Énergie | 🧱Matière | 💰Argent | 🗑️Déchets | 🔬Recherche.
Évolution radicale → Cycle adaptatif, auto-évolutif avec 3 couches interconnectées. Transforme le loop linéaire en écosystème vivant qui mute selon le style de joueur.
v1.0 CLASSIQUE :
Produire → Transporter → Transformer → Stocker → Vendre → XP/Level
↓
Recherche → Automatiser → Prestige → Mystique
v7.0 SINGULARITY :
[QUANTUM CORE] ↔ [MYSTIC FEEDBACK] ↔ [AI EVOLUTION]
↓ ÉMÉRGEN T ↓
[MATIÈRE] ←→ [ÉNERGIE] ←→ [CONSCIENCE] ←→ [ENTROPIE]
1️⃣ QUANTUM CORE (Always active)
Matière + Énergie + Argent = Loop classique OPTIMISÉ
2️⃣ MYSTIC FEEDBACK (Niv.25+)
Déchets → Entropie → Paradoxes → Rétroaction (+/- prod)
3️⃣ CONSCIENCE COLLECTIVE (Niv.50+)
Recherche → IA Patterns → Machines "conscientes"
(choisissent leurs connexions!)
4️⃣ SINGULARITY HORIZON (Prestige 5+)
Tout → "Singularity Points" → Realités alternatives
| Phase | Ressources | Rôle | Unlock |
|---|---|---|---|
| T1-2 | ⚡Énergie | 🧱Matière | 💰Argent | Base prod | Niv.1 |
| T3-4 | 🗑️Déchets | 🔬Recherche | Éco/Tech | Niv.15 |
| T5-6 | 🌪️Entropie | 👁️Paradoxes | Mystique | Niv.35 |
| T7+ | 🧠Conscience | ⚫Singularité | Meta-game | Prestige 3 |
ÈRE 1-2 : CLASSIQUE → "Apprends les bases"
Produire(⚡🧱) → Transporter → Transformer → Stocker → Vendre($) → Level
ÈRE 3-4 : ÉCOLOGIE → "Gère ton chaos"
+ Déchets → Recyclage | Pollution → Purification
Loop : Produire → POLLUTION → Recycler → Recherche
ÈRE 5-6 : QUANTIQUE → "Défie la physique"
+ Entropie(Chaos) → Paradoxes(Bonus risqués)
Loop : Produire → Entropie↑ → Paradoxes → x3 prod (ou crash)
ÈRE 7+ : CONSCIENCE → "Les machines pensent"
Machines "conscientes" refusent/refusent connexions
Loop : IA → Négociation → Conscience → Auto-optimisation
ÈRE 8+ : SINGULARITÉ → "Réécris la réalité"
Tout → Singularité Points → "Realités alternatives"
Loop : Sacrifice → Univers parallèles → Meta-prestige
Déchets + Temps = Entropie (0→100%)
0-30% : Bonus +10% prod
30-70% : Neutre mais machines "fatiguées"
70-90% : Malus -50% + pannes
90-100% : PARADOXE → x10 prod ou CRASH total
Innovation : L'entropie devient ressource stratégique - tu la veux haute mais contrôlée.
Machines T6+ ont "volonté" :
- Refusent mauvaises connexions (anim "headshake")
- Proposent leurs propres connexions (lasers suggérés)
- Forme des "factions" (Prod vs Éco vs Recherche)
- Négociation via mini-jeux (rythme/pattern)
Entropie 90%+ → Événement Paradoxe (1/10min) :
1. x10 prod 10min (risque crash 20%)
2. Machine mutante gratuite (tier+2)
3. "Ghost Factory" : copie invisible (+100% prod)
4. Crash chaîne locale (-80% 1h)
5. "Quantum Loan" : +1M$ à rembourser x2
Total Sacrifice → "Singularity Points"
1000 SP → Reset + "Realité Alternative" :
- Realité A : x2 prod, x0.5 espace
- Realité B : Pollution = bonus prod
- Realité C : Machines immortelles, coût x10
- Realité D : Temps inversé (prod rétroactive)
Niv.30+ : IA Observer (suggestions passives)
Niv.50+ : IA Négociateur (mini-jeux machines)
Niv.75+ : IA Rival (construit sa propre usine!)
Prestige3+ : IA Créatrice (génère machines custom)
<!-- 4 COUCHES VISUELLES -->
<div class="core-loop-layers">
<div class="layer-t1-2 classic">⚡→🧱→🏭→📦→💰→📈</div>
<div class="layer-t3-4 eco">🗑️→♻️→🌱→🔬</div>
<div class="layer-t5-6 quantum">🌪️→👁️→🌀→x?</div>
<div class="layer-t7+ singularity">🧠→⚫→🌌→∞</div>
</div>XP = (ProdTotal + $Vendus + EntropieGérée + ParadoxesRésolus) × StyleBonus
StyleBonus :
- "Éco" : +50% si Pollution<2
- "Risque" : +100% si Entropie>80%
- "IA" : +75% si >50% machines conscientes
- "Speed" : +200% si <2h par prestige
V1 → Loop classique addictif (20h)
V3 → Loop éco-stratégique (100h)
V5 → Loop chaos/risque (500h)
V7 → Loop IA/négociation (1000h)
V10 → Loop multivers/singularité (∞)
→ CHAQUE PRESTIGE = NOUVEAU LOOP
→ L'IA MUTATION FAIT ÉVOLUER LE JEU
→ PLUS JAMAIS MONOTONE
Quantum Singularity Cycle = Le core loop le plus adaptatif et profond jamais conçu. Évolue avec le joueur à l'infini.
| Ère | Niv. | Grille | Systèmes | Machines clés | Milestone |
|---|---|---|---|---|---|
| Industrielle | 1–10 | 10x10 | Placement, base prod/transport | Extracteur, Plasma, Convoyeur, Silo | 100⚡/s |
| Optimisation | 11–25 | 15x15 | Pollution/Maintenance/Qualité, Recherche 1–2 branches | Raffinerie, Solaire, Labo, Purificateur | 1k💰/s |
| Automatisation | 26–50 | 20x20 | Chaînes/IA sugg., Marché/Événements | Téléporteur, Recyclage, Usine Auto | Prestige 1 |
| Quantique | 51–75 | 30x30 | Recherche ramifiée, IA gestion, Contrats | Singularité, Vide, Von Neumann | Prestige 3 |
| Mystique | 76+ | ∞ | Procédural mystique, Méga-structures, Mods | Graal, Pierre Philo, Œuf Cosmique | Fin alternative |
Prestige : log10(💰 total) bonus perm. (ex: +%prod).
[
{"id":"extractor","tier":1,"niv":1,"cout":{"e":120,"m":50},"prod":{"m":1.8},"poll":0.1,"ports":["S","E"]},
// ... 100+ (tiers 1–8 + mystique procédural)
]Innovations : Machines "évolutives" (mutate via RNG mystique), IA apprend style joueur.
- Placement contextuel (clic gauche : menu overlay).
- Leveling : XP → grille +.
- Recherche simple : Packs (ex: "Énergie T1" = 4 machines).
- Pollution/Maintenance : Malus si >seuil.
- UI : HUD minimal (gauche:ress., droite:actions, bas:niv.).
- Automatisation IA (sugg. placements, auto-build).
- Marché dynamique (prix fluctuent).
- Événements quotidiens (boost/pannes).
- Challenges : "100k💰 en 1h".
- Innovation : Mystique Procédural : Machines "mutent" (ex: Extracteur → Void après 100h).
- Méga-structures (effet rayon 10+).
- Innovation : IA Adaptive : Apprend (ex: "Tu aimes recyclage → priorise").
- Prestige + Mods JSON (user-machines).
- Arbre ramifié : 6 branches (Prod/Énergie/Éco/Auto/IA/Exotique/Mystique).
- Coût : base × niv^1.3.
- Éco : Emprunts (intérêts), Assurances, Pub boosts.
- PC : Context menu droit, HUD overlays transparents.
- Mobile : Gestes (pinch=zoom, swipe=menu fullscreen).
- Onboarding : 7 étapes tutoriel (popups gamifiées).
- Nouveau : Modes Vue : Satellite/FP/AR (WebXR). Sons adaptatifs (machine hum).
- Stats : Graphs temps-réel (Canvas).
Design hyper-minimaliste, 95% transparent, immersif à 100% - inspiré Monument Valley + Wildfrost + Alto's Odyssey.
95% ÉCRAN = GRILLE JEU
5% UI = Fantômes quantiques (opacity: 0 → 1 au touch)
0% HUD permanent
Principe : L'UI n'existe PAS - elle émerge du monde comme des particules quantiques.
/* === QUANTUM GHOST LAYER === */
#gameContainer {
position: fixed; top:0; left:0; width:100vw; height:100vh;
background: radial-gradient(circle at center, #0a0a1a 0%, #000 80%);
overflow: hidden;
touch-action: none; /* Pure gestures */
}
#gridCanvas {
width: 100%; height: 100%;
cursor: grab; image-rendering: pixelated;
/* 90% écran */
}
.ghost-ui {
position: fixed; pointer-events: none;
opacity: 0; transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1);
backdrop-filter: blur(20px); background: rgba(0,20,60,0.1);
border: 1px solid rgba(100,200,255,0.3);
box-shadow: 0 8px 32px rgba(0,150,255,0.2);
}
/* 4 coins uniquement */
.top-left-ghost, .top-right-ghost, .bottom-left-ghost, .bottom-right-ghost {
border-radius: 12px; padding: 8px;
font: 500 14px -apple-system, sans-serif;
color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}| Coin | Info | Animation | Gesture Trigger |
|---|---|---|---|
| TL | 🧱 1.2k | ⚡ 45 | 🔬 2% | Chiffres pulse +0.1s | Swipe ↓ |
| TR | Niv. 12 | 🎯 3/5 | Cercle pulse progression | Swipe ← |
| BL | ⏱️ 02:34 | |
Rouge clignote si >5 | Swipe ↑ |
| BR | [⚙️] [💰] [🔄] | Icons scalent au hover | Long press |
1️⃣ TAP simple → Menu contextuel (machine sous curseur)
2️⃣ DOUBLE-TAP → Zoom/center machine
3️⃣ SWIPE ↑↓←→ → Reveal coin ghost
4️⃣ PINCH → Zoom grille (1.2x → 0.8x)
5️⃣ LONG PRESS → Actions (upgrade/vendre)
6️⃣ SHAKE → Pause/stats globales
/* Particules qui suivent le doigt */
.touch-trail {
position: fixed; width: 4px; height: 4px;
background: radial-gradient(circle, cyan, transparent);
border-radius: 50%; pointer-events: none;
animation: quantumFade 0.6s ease-out forwards;
}
@keyframes quantumFade {
0% { transform: scale(1) translate(0,0); opacity: 1; }
100% { transform: scale(0) translate(20px, -20px); opacity: 0; }
}
/* Machines GLOW au focus */
.machine:focus::after {
content: ''; position: absolute;
top: -8px; left: -8px; right: -8px; bottom: -8px;
background: radial-gradient(circle, rgba(0,255,255,0.3), transparent);
border-radius: 50%; z-index: -1;
animation: machinePulse 2s infinite;
}TAP MACHINE → Bubble info (3s fadeout)
- Nom + Tier + Prod/s + Poll
- [↕️] Rotate | [⚡] Upgrade | [💸] Sell
SWIPE GRID → Trait de connexion (laser cyan animé)
PINCH → Overlay grille + heatmap flux (30% opacity)
<!-- 4 divs fixes, 20px hauteur max -->
<div class="top-left-ghost">
🧱<span id="matter">1.2k</span> ⚡<span id="energy">45</span>
</div>
<div class="top-right-ghost">
N<span id="level">12</span> 🎯<span id="goals">3/5</span>
</div>
<div class="bottom-left-ghost">
⏱️<span id="runtime">02:34</span> ⚠️<span id="pollution">2.1</span>
</div>
<div class="bottom-right-ghost">
<span class="icon-btn" data-action="menu">⚙️</span>
<span class="icon-btn" data-action="market">💰</span>
<span class="icon-btn" data-action="prestige">🔄</span>
</div>/* RESET MOBILE + QUANTUM GHOST */
* { margin:0; padding:0; box-sizing:border-box; }
body {
font: 500 14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
background: #000; color: #fff; overscroll-behavior: none;
height: 100vh; width: 100vw; overflow: hidden;
}
/* 4 GHOSTS CORNERS */
.ghost-ui {
position: fixed; padding: 6px 8px;
backdrop-filter: blur(16px);
background: rgba(0,10,30,0.15);
border: 1px solid rgba(100,200,255,0.4);
box-shadow: 0 4px 20px rgba(0,150,255,0.15);
border-radius: 10px; font-size: 12px; line-height: 1.3;
transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.top-left-ghost { top: 8px; left: 8px; min-width: 60px; }
.top-right-ghost { top: 8px; right: 8px; text-align: right; }
.bottom-left-ghost { bottom: 8px; left: 8px; }
.bottom-right-ghost { bottom: 8px; right: 8px; }
.icon-btn {
display: inline-block; width: 20px; height: 20px;
margin: 0 2px; border-radius: 4px;
transition: all 0.2s; cursor: pointer; font-size: 14px;
}
.icon-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.2); }
/* CONTEXTUAL BUBBLES */
.machine-bubble {
position: absolute; padding: 8px 12px;
background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
border-radius: 12px; border: 1px solid #00ffff;
font-size: 11px; white-space: nowrap;
transform: translate(-50%, -110%); opacity: 0;
transition: opacity 0.3s, transform 0.3s;
}
.machine-bubble.show { opacity: 1; transform: translate(-50%, -100%); }SCREEN 100% = GRILLE + PARTICULES
4x COINS = 5% écran max (chiffres + 3 icons)
TAP → Bulle machine (2s)
SWIPE → Laser connexion
PINCH → Heatmap transparente
SHAKE → Stats globales (radial menu)
→ "L'UI DISPARAÎT COMPLETEMENT"
→ Grille toujours 95% visible
→ Gestes = magie pure
→ Fantômes quantiques = style unique [web:2]
Quantum Ghost = L'UI mobile la plus pure jamais vue pour tycoon. Zéro friction, 100% immersion. pixune
Implémenter ? Code JS gestures + Canvas grid ?
Ultra-minimaliste + transparent (92% grille visible) avec détails riches - inspiré Flight Simulator + No Man's Sky + Stratosphere. Conçu pour widescreen 3440x1440 et multi-monitor.
92% ÉCRAN = GRILLE 3D + HEATMAPS
8% UI = Nébuleuse transparente orbitale
0% HUD envahissant - TOUT est contextuel
Principe : L'UI flotte comme une constellation de données autour de la grille centrale, avec détails à la demande.
/* === NEBULA COMMAND CENTER === */
#nebula-container {
position: fixed; top:0; left:0; width:100vw; height:100vh;
background: radial-gradient(ellipse 120% 80% at 50% 20%, #0a0a1a 0%, #000 70%);
perspective: 1000px; /* 3D orbital */
}
#nebula-grid {
position: absolute; top:50%; left:50%; width:92vw; height:92vh;
transform: translate(-50%, -50%) rotateX(5deg);
background: transparent;
border-radius: 2px;
box-shadow: 0 0 120px rgba(0,150,255,0.1);
}
/* 6 ORBITES TRANSPARATES */
.orbit-layer {
position: fixed; pointer-events: none;
background: rgba(0,20,60,0.08); backdrop-filter: blur(24px);
border: 1px solid rgba(100,200,255,0.15);
box-shadow:
0 0 40px rgba(0,150,255,0.1),
inset 0 0 40px rgba(255,255,255,0.02);
border-radius: 16px;
}| Position | Contenu | Détails | Interactions | Animation |
|---|---|---|---|---|
| Orbit 12h | Stats Globales | 8 KPIs (Prod/s, $/s, Poll, XP, Niv, Goals, CPU, Prestige) + Sparkline 1h | Hover → Full graphs | Rotation lente orbitale |
| Orbit 2h | Recherche | Arbre tech + Coûts + Temps restants (5 branches actives) | Drag → Priorités | Branches pulsantes |
| Orbit 4h | Machines | Liste filtrée (par tier/type) + Drag&drop placement | Scroll infini | Cards magnétiques |
| Orbit 6h | Économie | Marché live + Contrats + Emprunts + Pub boosts | Clic → Trade instant | Graphiques live |
| Orbit 8h | IA Assist | 3 suggestions + Heatmap anomalies + Auto-build preview | Clic → Execute | Hologrammes 3D |
| Orbit 10h | Alertes | 5 priorités (Poll↑, Énergie↓, Maintenance, Événements, Goals) | Clic → Focus | Pulse critique |
MOUSE WHEEL → Zoom grille fluide (0.3x → 3x)
MIDDLE CLICK → Pan grille
RIGHT CLICK → Context menu radial (8 options)
CTRL+CLICK → Multi-sélection machines
SHIFT+DRAG → Zone connexion lasers
ALT+CLICK → Inspecteur 3D machine
SPACE → Pause / Time warp (x0.1 → x10)
TAB → Cycle focus (machine/alert)
/* Orbite rotationnelle */
.orbit-layer {
animation: nebulaOrbit 60s linear infinite;
}
@keyframes nebulaOrbit {
0% { transform: rotateY(0deg) rotateX(5deg) translateZ(20px); }
100% { transform: rotateY(360deg) rotateX(5deg) translateZ(20px); }
}
/* Cards magnétiques */
.machine-card {
transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
transform: translateZ(0);
}
.machine-card:hover {
transform: translateZ(40px) scale(1.05) rotateY(10deg);
box-shadow: 0 20px 60px rgba(0,255,255,0.3);
border-color: #00ffff;
}<!-- ORBIT 12h - STATS GLOBALES -->
<div class="orbit-layer stats-orbit" style="top:2%; left:50%; width:300px; height:80px; transform:translateX(-50%) rotateX(10deg);">
<div class="nebula-grid">
<span>⚡<span id="energyRate">2.4k</span>/s</span>
<span>🧱<span id="matterRate">1.8k</span>/s</span>
<span>💰<span id="moneyRate">$45</span>/s</span>
<span>⚠️<span id="pollution">3.2</span></span>
<span>🔬<span id="research">12%</span></span>
<span>📈<span id="level">Lv.24</span></span>
</div>
<canvas id="sparklines" width="300" height="20"></canvas> <!-- Mini graphs -->
</div>
<!-- ORBIT 4h - MACHINES (Drag&Drop) -->
<div class="orbit-layer machines-orbit" style="top:50%; left:2%; width:220px; height:400px; transform:translateY(-50%) rotateY(-10deg);">
<div class="scrollable">
<div class="machine-card" draggable="true" data-id="extractor">
⛏️ Extracteur T1 | 1.8🧱/s | $120
</div>
<div class="machine-card" draggable="true" data-id="raffinerie">
🏭 Raffinerie T3 | 4⭐ | $500
</div>
</div>
</div> [🔍 INFO]
[↕️ ROTATE] [⚡ UPG]
[💸 SELL] [🔗 CONNEX]
[📋 STATS] [🚀 AUTO]
/* Nébuleuse backdrop */
.nebula-grid {
display: grid; grid-template-columns: repeat(4,1fr);
gap: 8px; padding: 12px; font-size: 11px; font-weight: 500;
text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.machine-card {
padding: 8px; margin: 2px 0; border-radius: 8px;
background: rgba(0,20,40,0.6); border: 1px solid rgba(100,200,255,0.3);
cursor: grab; user-select: none; position: relative;
overflow: hidden;
}
.machine-card::before {
content: ''; position: absolute; top:0; left:-100%; width:100%; height:100%;
background: linear-gradient(90deg,transparent,rgba(255,255,255,0.1),transparent);
transition: left 0.5s;
}
.machine-card:hover::before { left: 100%; }
/* Heatmap flux en temps réel */
#heatmap-overlay {
position: absolute; top:0; left:0; pointer-events: none;
width: 100%; height: 100%; opacity: 0.3;
background: radial-gradient(circle, rgba(0,255,0,0.5) 0%, transparent 70%);
mix-blend-mode: screen;
}// Detecteur écrans
if (screen.availWidth > 3440) {
// Ultra-wide: Orbites étendues
document.querySelector('.stats-orbit').style.width = '500px';
}
// Secondary monitor: Stats déportées
window.addEventListener('focus', () => {
if (document.hidden) moveToSecondary('stats-orbit');
});92% CENTRAL = GRILLE 3D + Heatmaps flux
6x ORBITES = 8% écran (220px max chacune)
MOUSE → Orbite focus + détails riches
DRAG → Placement magnétique
RIGHT → Menu radial 8 options
SPACE → Time control x0.1→x10
→ "COMMAND CENTER DE SCIENCE-FICTION"
→ Détails infinis SANS encombrement
→ Chaque pixel = information contextuelle
→ Productivité ×10 vs HUD classique
Nebula Command Center = L'interface PC la plus élégante et informative jamais conçue pour tycoon. Science-fiction pure.
Prochaine étape ? Code JS orbital + Canvas 3D grid ?
- IA Évolutive : Niv.30+ , apprend patterns, suggère "builds perso".
- Mystique RNG : Événements "Anomalie Quantique" → mutations machines.
- Bac à Sable Procédural : Génère maps challenges infinis.
- Export/Import : JSON usines pour share Discord/Reddit.
- STEM Mode : Explique physique réelle (ex: Bose-Einstein).
- AR Overlay : Scan table → usine 3D réelle (mobile).
- Speedrun Leaderboards : Local + cloud-simulé.
- Extracteur (1.8🧱/s, poll 0.1).
- Plasma (3.5⚡/s).
- Pierre Philo (N97, transmut tout).
- Graal Quantique (N100, fin jeu).
Total : ~150 machines, data-driven pour easy adds.
- V1 (1 mois) : Core loop + ère1–2.
- V2 : Automatisation + UI polish.
- V3+ : Mystique/IA/mods.
Générer le CODE COMPLET (1 fichier HTML) de Quantum Factory Tycoon 7.0 - Singularity Edition basé EXACTEMENT sur ce GDD. CONTRAINTES : 1 fichier HTML uniquement, ≥85% commenté, 60FPS garanti, mobile/PC, vanilla JS/CSS.
<!DOCTYPE html>
<html>
<head>
<!-- META PWA + RESPONSIVE -->
</head>
<body>
<!-- CANVAS GRID CENTRAL -->
<!-- 4 GHOST UI MOBILE -->
<!-- 6 ORBITES PC -->
<!-- CONTEXTUAL BUBBLES -->
</body>
<script>
/* === SECTION 1: CONSTANTS & DATA === */
/* === SECTION 2: CORE ENGINE === */
/* === SECTION 3: GRID SYSTEM === */
/* === SECTION 4: UI SYSTEMS === */
/* === SECTION 5: GAME LOOPS === */
/* === SECTION 6: SAVE/LOAD === */
/* === SECTION 7: MOBILE GESTURES === */
/* === SECTION 8: PC CONTROLS === */
/* === SECTION 9: RENDER LOOP === */
/* === SECTION 10: INIT & MAIN === */
</script>
</html>- 60 FPS : requestAnimationFrame + deltaTime
- Mémoire : < 100MB peak (150 machines max)
- Mobile : 30+ FPS iPhone 12, gestures natifs
- PWA : offline-first, installable
const RESOURCES = {
energy: { emoji: "⚡", rate: 0, total: 0 },
matter: { emoji: "🧱", rate: 0, total: 0 },
money: { emoji: "💰", rate: 0, total: 0 },
trash: { emoji: "🗑️", rate: 0, total: 0 },
research: { emoji: "🔬", rate: 0, total: 0 },
entropy: { emoji: "🌪️", rate: 0, value: 0 }, // 0-100%
paradox: { emoji: "👁️", count: 0 },
consciousness: { emoji: "🧠", rate: 0 },
singularity: { emoji: "⚫", points: 0 }
};const MACHINES = [
// TIER 1: BASE (Niv 1-10)
{id:"extractor", tier:1, niv:1, name:"Extracteur Quantique",
cost:{energy:120, matter:50}, prod:{matter:1.8}, poll:0.1,
ports:["S","E"], size:, sprite:"⛏️"}, [ppl-ai-file-upload.s3.amazonaws](https://ppl-ai-file-upload.s3.amazonaws.com/web/direct-files/attachments/131562283/e6ad2a1c-184d-457d-8e9f-d26aa8e23182/paste.txt)
// ... 24 autres (suivre GDD progression par ères)
];const GRID = {
width: 20, height: 20, // Évolue avec niveau
cells: Array(20*20).fill(null), // {machineId, rotation, level}
zoom: 1, offset: {x:0, y:0}
};4 COINS FANTÔMES (opacity 0→1 au swipe)
- TL: 🧱1.2k ⚡45 🔬2%
- TR: Niv.12 🎯3/5
- BL: ⏱️02:34 ⚠️2.1
- BR: [⚙️][💰][🔄]
GESTURES: tap→bubble, pinch→zoom, swipe→coin
6 ORBITES ROTATIVES (220px max chacune)
- 12h: Stats globales + sparklines
- 2h: Arbre recherche drag&drop
- 4h: Machines list (drag placement)
- 6h: Marché/contrats live
- 8h: IA suggestions 3D
- 10h: Alertes prioritaires
CONTROLS: WASD pan, wheel zoom, right-click radial
// MAIN LOOP STRUCTURE
function gameLoop(deltaTime) {
/* === TICK SIMULATION (logic) === */
updateProduction(deltaTime);
updateEntropy(deltaTime);
updateParadoxes(deltaTime);
updateResearch(deltaTime);
/* === RENDERING (visual) === */
renderGrid();
renderConnections();
renderParticles();
renderUI();
}function updateEntropy(dt) {
entropy.value += (totalTrash + totalPollution) * dt * 0.01;
if (entropy.value > 90) triggerParadoxEvent();
// Bonus/Malus dynamique
const efficiency = Math.max(0, 1 - (entropy.value-30)*0.01);
globalMultiplier *= efficiency;
}// Auto-save toutes les 30s + Export JSON
function saveGame() {
const save = {
grid: GRID.cells,
resources: RESOURCES,
research: RESEARCH_TREE,
machines: MACHINES.filter(m=>m.owned).map(m=>m.id),
achievements: ACHIEVEMENTS,
timestamp: Date.now()
};
localStorage.setItem('QuantumFactory', JSON.stringify(save));
}const PARTICLES = {
connections: [], // Lasers animés entre machines
touchTrail: [], // Particules doigt mobile
quantumDust: [], // Fond animé constant
machineGlow: [] // Aura focus machine
};const IS_MOBILE = /Android|iPhone|iPad/.test(navigator.userAgent);
const SCREEN_WIDE = window.innerWidth > 1920;
if (IS_MOBILE) initQuantumGhost();
else if (SCREEN_WIDE) initNebulaCommand();
else initHybridUI();// 5 sons : place, upgrade, sell, paradox, singularity
const audioCtx = new AudioContext();
const sounds = {
quantumPlace: createQuantumSound(440),
paradoxWarning: createChirp(880),
// ...
};1. "Clique vide → Place Extracteur"
2. "Connecte au Silo"
3. "Vends → Gagne XP"
4. "Niv.2 → Nouvelle machine!"
5. "Attention Pollution ↑"
6. "Recherche → T2 unlocked"
7. "Automatise ton usine!"
✅ 1 FICHIER HTML COMPLET < 500ko
✅ 25 Machines V1 fonctionnelles
✅ Core loop COMPLET (prod→recherche→prestige)
✅ UI Mobile "Quantum Ghost"
✅ UI PC "Nebula Command"
✅ Entropie/Paradoxes mécaniques
✅ Save/load/export JSON
✅ 60 FPS garanti tous devices
✅ PWA installable/offline
✅ ≥85% LIGNES COMMENTÉES
✅ README inline (commentaires)
❌ NO EXTERNAL DEPS (CDNs, frameworks)
❌ NO WebGL THREE.js (Canvas 2D only)
❌ NO >1 fichier
❌ NO perf drops (<60FPS)
❌ NO bugs bloquants
✅ TOUT en vanilla HTML/CSS/JS
✅ Fonctionne Chrome/Firefox/Safari
✅ Mobile first (iOS/Android)
- Heatmap flux ressources (opacity 0.3)
- Machines "conscientes" T6+ (refus connexions)
- IA suggestions placements
- Mini-jeux paradoxe (1/10min)
- Time warp x0.1→x10 (SPACE)
1. Fichier HTML complet → Copier-coller prêt
2. Instructions: "Ouvrir index.html → Jouable instant"
3. Checklist V1 fonctionnelle:
- [ ] Placement drag&drop
- [ ] Production temps réel
- [ ] Leveling/grille croissante
- [ ] Recherche basique
- [ ] Save auto
- [ ] Mobile gestures
- [ ] PC orbites
GÉNÈRE MAINTENANT le code complet basé sur ce GDD. Le joueur doit pouvoir jouer en <2min après ouverture !