Skip to content

About

A gamified learning platform with level-based quizzes, multiplayer boss battles, AI explanations, learning analytics, rewards, and a course marketplace.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Implose.gg Logo

Implose.gg

A pixel-styled PWA that turns solo study into a live multiplayer quiz — with AI explanations, a course marketplace, achievements, and rewards.


Overview

Implose.gg is a browser-based learning game inspired by boss-battle quiz apps. Players join or host quiz rooms, answer questions under a timer, and take chunks off a shared boss's HP for every correct answer. Wrong answers get a per-question AI explanation. Creators publish their own courses to a public marketplace where other players can fork, play, and rate them. Admins and moderators keep an eye on content, users, and feedback from separate role-scoped panels.

The app is a PHP + MySQL stack served through XAMPP, installable as a fullscreen landscape PWA.


Screenshots

Guest — Public

Welcome Sign in Sign up
Welcome Sign in Sign up
Forgot password About FAQ
Forgot password About FAQ
Contact Download Policy
Contact Download Policy

User

Home & hosting

Home Host room Room lobby
Home Host room Room lobby

Live gameplay

Player lobby Live quiz Live leaderboard
Player lobby Live quiz Live leaderboard

AI tutor

AI explanation
AI explanation

Course builder

My courses Course setup Create course
My courses Course setup Create course

Marketplace

Browse Course detail Publish
Marketplace Course detail Publish
My forks Manage courses
My forks Manage courses

Progress & rewards

Achievements Rewards Global leaderboard
Achievements Rewards Leaderboard
Learning analytics
Analytics

Account centre

Account Active sessions
Account Sessions

Admin

Dashboard Users Achievements
Dashboard Users Achievements
Rewards Feedback Learning analytics
Rewards Feedback Analytics
AI settings Logs Reports
AI Logs Reports
File management
File management

Moderator

Dashboard Achievements Feedback
Dashboard Achievements Feedback

Features

Guest (Public)

  • Landing page with tap-to-start entry into the game
  • Learn what Implose.gg is — about, FAQ, download instructions
  • Contact form for general questions and bug reports
  • Read the privacy and terms policy

User

  • Home — hero panel with your streak, points, and quick access to hosting or joining a room
  • Host room — build a quiz session from any of your courses, share a room code, and start the countdown
  • Live quiz — real-time boss-battle rounds: everyone answers under a timer, correct answers damage the boss, chat runs alongside
  • AI explanations — get a tailored explanation for every wrong answer, powered by a Claude-compatible endpoint
  • Marketplace — browse public courses, fork them into your own library, rate what you played, publish your own
  • Course builder — create courses, add levels (quizzes), and author multiple-choice or short-answer questions with per-question time limits and marks
  • Achievements — unlock badges triggered by in-game events
  • Rewards — redeem hard-earned points for admin-managed rewards, receive a redemption token
  • Leaderboard — global rankings by total score, damage, accuracy, and completion time
  • Account centre — profile, avatar, security (change password, active sessions), and personal feedback thread

Admin

  • Dashboard — live counts of users, courses, sessions, and pending items
  • User management — create, edit, suspend, and role-change any account
  • Course & content — manage marketplace listings, feedback replies, and reports
  • Achievements & rewards — full CRUD with icon uploads and stock tracking
  • Learning analytics — quiz-level performance, topic accuracy, response-time distribution
  • Reports — moderate flagged messages and marketplace courses
  • Logs — full system activity log, filterable and exportable
  • AI settings — configure the AI endpoint, model, and API key used for explanations
  • File management — audit and clean up the uploads folder
  • Export report — generate a PDF report bundle

Moderator

  • Dashboard — pending reports and feedback awaiting review
  • Achievements — create and edit shared achievement definitions
  • Feedback & reports — respond to user submissions and resolve reports
  • Profile — personal profile management

Tech Stack

Layer Technology
Language PHP 8.2
Database MySQL / MariaDB
Server Apache 2.4 (XAMPP)
Frontend Vanilla HTML / CSS / JS, pixel-art design system
PWA manifest.json — fullscreen landscape, installable
PDFs dompdf/dompdf ^3.1 (generate) + smalot/pdfparser ^2.12 (parse)
Email resend/resend-php ^1.3 — OTP verification, password reset
Captcha Cloudflare Turnstile
AI Any Claude-compatible /v1/chat/completions endpoint
Package manager Composer

Getting Started

Prerequisites

Setup

  1. Clone into your XAMPP htdocs as Implose.gg-src (the folder name matters — all in-app paths reference /Implose.gg-src/...):

    cd /path/to/xampp/htdocs
    git clone https://github.com/AaronKhoolb/Implose.gg.git Implose.gg-src
    cd Implose.gg-src
  2. Install PHP dependencies:

    composer install
  3. Create the database:

    • Open phpMyAdmin (http://localhost/phpmyadmin)
    • Create a database named implose.gg
    • Import implose_gg.sql
  4. Configure environment: Copy .env and fill in your values:

    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_NAME=implose.gg
    DB_USERNAME=root
    DB_PASSWORD=your_mysql_password
    
    SMTP_API_KEY=your_resend_api_key
    SMTP_EMAIL="Implose.gg <noreply@yourdomain.com>"
    
    TURNSTILE_SITE_KEY=your_turnstile_site_key
    TURNSTILE_SECRET_KEY=your_turnstile_secret_key
  5. Set the AI key (optional — required for in-game AI explanations): Log in as admin and open Admin → AI Settings, or update AI_SETTING_T directly with your endpoint and key.

  6. Open the app:

    http://localhost/Implose.gg-src/
    

Default Credentials

All seed accounts share the same password: password123

Role Email Password
Admin admin@example.com password123
Moderator moderator@example.com password123
User user@example.com password123

Change these before you deploy anywhere public.


Project Structure

Implose.gg-src/
├── index.php                  # Root landing page
├── manifest.json              # PWA manifest
├── composer.json              # PHP dependencies
├── implose_gg.sql             # Database dump (schema + seed)
├── .env                       # Environment config (fill in locally)
├── actions/                   # Form handlers (POST endpoints)
│   ├── auth/                  # Sign up / in / OTP / password reset
│   ├── user/                  # Game, marketplace, quiz-room, chat
│   ├── moderator/
│   └── admin/
├── api/                       # JSON endpoints for live gameplay
│   └── game/
│       ├── ai_explanation/    # AI-powered explanations on wrong answers
│       ├── chat/              # In-room chat polling
│       └── quiz_room/         # Room / boss / leaderboard state
├── includes/                  # Shared PHP: db, auth, header, AI engine
├── pages/                     # Rendered views
│   ├── auth/                  # Sign in / up / OTP / reset
│   ├── public/                # About, FAQ, contact, policy
│   ├── user/                  # Home, game, marketplace, account, etc.
│   ├── moderator/
│   └── admin/
├── assets/                    # CSS / JS / fonts / images
│   ├── css/
│   ├── js/
│   ├── fonts/                 # Press Start 2P, Pixelify Sans, Saira, Inter
│   └── images/
├── uploads/                   # User-uploaded content (avatars, files, etc.)
└── vendor/                    # Composer packages

Contributors

Contributors

About

A gamified learning platform with level-based quizzes, multiplayer boss battles, AI explanations, learning analytics, rewards, and a course marketplace.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages