Interactive 3D Educational Browser Game for Children Aged 4–6
لعبة تعليمية ثلاثية الأبعاد للأطفال لتمييز الصور الحقيقية من المنشأة بالذكاء الاصطناعي
Space Detective (محقّق الفضاء الصغير) is a premium, lightweight, browser-based 3D educational game designed for young children (ages 4–6). Set in a colorful, futuristic deep-space universe, players take on the role of a junior space detective accompanied by a friendly 3D robot companion. Together, they explore diverse planets and inspect cosmic transmissions to learn how to distinguish verified real photographs from AI-generated imagery in a fun, positive, and age-appropriate manner.
The project strictly follows a Single-File Game Architecture designed for high accessibility, zero setup friction, and optimal performance across tablets, laptops, and mobile devices.
- Markup & Styling: HTML5 & CSS3 (embedded in
index.html). - Logic & Gameplay: Vanilla JavaScript (ES6+, embedded in
index.html). - 3D Graphics Engine: Three.js (loaded via CDN).
- Animation Support: GSAP (via CDN, when advanced UI/camera transitions are required).
- Voice & Accessibility: Web Speech API (
SpeechSynthesis) for natural Arabic voice prompts. - Language & Orientation: Native Arabic interface with full Right-to-Left (RTL) layout.
Design Principle: No bundlers, no frameworks (React/Vue/Angular), no TypeScript, no Node.js backend, and no databases. The game runs completely client-side in the browser.
space-detective/
│
├── index.html # Single-file game entry point (HTML, CSS, JS, Three.js)
│
├── docs/ # Architecture, game design, and roadmap documentation
│ ├── project-brief.md # Vision, pedagogical goals, and constraints
│ ├── game-design.md # Screen flows, UX specs, robot mascot, and scoring
│ └── implementation-plan.md # Phased engineering roadmap and acceptance criteria
│
├── README.md # Project summary and quickstart guide
│
└── .gitignore # Standard OS and IDE exclusions
Because the game utilizes Three.js shaders and standard web APIs, it must be served through an HTTP server rather than opened via the direct file:// protocol.
If Python is installed on your machine:
# In the space-detective directory:
python -m http.server 8000Then navigate to: http://localhost:8000
If Node.js is available:
npx serve .
# or
npx http-server -p 8000- Open
space-detectivein Visual Studio Code. - Install the Live Server extension.
- Right-click
index.htmland click "Open with Live Server".
- Supported Browsers: Modern Chromium-based browsers (Google Chrome, Microsoft Edge), Mozilla Firefox, and Apple Safari (macOS / iOS / iPadOS).
- Hardware Acceleration: WebGL 1.0 or WebGL 2.0 support enabled.
- Display: Responsive design optimized for touch screens (iPad/Android tablets) and desktops (1024×768 up to 4K).
- Internet / CDN Connection: Required to load Three.js and Google Fonts from verified CDNs on initial page load.
- Speech Synthesis: Requires browser support for the Web Speech API with Arabic (
ar-SA/ar) voice support for optimal audio immersion.
This project is built with care for early-childhood cognitive development:
- Positive Reinforcement: No failure states, timers, or penalizing sounds.
- Responsible AI Literacy: Avoids teaching flawed heuristics (e.g., "AI always makes bad hands"); instead, focuses on guided observation, context, and media origin awareness.
- Audio-First RTL Interface: Large visual cues and spoken Arabic audio instructions minimize dependence on reading skills.
Detailed project specifications are organized in the docs/ directory:
- docs/project-brief.md — Educational objectives and technical constraints.
- docs/game-design.md — Complete game loop, screen designs, and art direction.
- docs/implementation-plan.md — 8-phase execution plan and verification milestones.