TracerKit Pro Documentation
Welcome to the official documentation for TracerKit Pro. This engine is a professional-grade suite for building high-quality kids' tracing and connect-the-dots games using Phaser 3 and TypeScript.
Core Highlights
- Universal Engine: Supports both classic tracing and sequential connect-the-dots.
- Visual Studio: Design and edit levels in-browser with zero coding required.
- Dynamic Theming: Fully customizable UI and gameplay visuals with real-time feedback.
- Enterprise Ready: Secure admin authentication and robust asset management.
Starter Game Packs
TracerKit Pro comes bundled with three professionally designed game packs to get you started immediately:
- Alphabet Adventure: A complete A-Z tracing journey with phonics-ready paths.
- Essential Shapes: Mastering geometric primitives, from circles to complex stars.
- Counting Quest: An engaging number tracing experience (0-9) for early learners.
System Requirements
| Environment | Requirements |
|---|---|
| Server | Node.js 18.0+, NPM 10.0+ |
| Hosting | Any Node.js 18+ compatible host (Cloud, VPS, or Shared with Node support) |
| Static | Any Host (e.g., GitHub Pages) support "Game-Only" mode |
| Browsers | Latest Chrome, Safari, Edge, Firefox (Desktop & Mobile) |
Installation Guide
Follow the specific guide below depending on whether you are setting up locally for development or deploying to a live server.
Local Development Setup
Use these steps for quick setup on your local machine to start designing levels.
- Extract the
tracerkit-pro-v1.0.0.zipfile. - Terminal: Open your terminal and navigate to the folder:
cd tracerkit-pro - Dependencies: Install the required modules:
npm install - Configuration: Rename the
.env.examplefile to.envand update the values as needed (see below). - Run: Start the engine:
npm run server
http://localhost:3001 to start the Setup
Wizard.
Production Server Setup
Follow these steps to deploy to a live environment (e.g., VPS or cPanel).
- Upload: Upload
tracerkit-pro-v1.0.0.zipto your server. - Extract: Extract into your application root.
- Environment: Rename
.env.exampleto.env(or set variables in your cloud dashboard). - Build: Run
npm installthennpm run build. - Start: Use a process manager like PM2 to run
npm start.
Environment Configuration (.env)
Your .env file manages security and server settings. Fill it with these values:
# 🌐 Server Configuration
PORT=3001
# 🔐 Security - IMPORTANT: Change this in production!
COOKIE_SECRET=8e2c4a9b1d5f3h7j0k6m9p2r5s8v1x4z7w0y3b6n9q2t5w8z1c4f7i0l3o6r9u2x
# 🍪 Authentication
AUTH_COOKIE_NAME=game_admin_auth
# 🛑 Rate Limiting (Brute-force protection)
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX=100
COOKIE_SECRET in production.
Generate a random string (minimum 64 characters) to secure admin sessions.
First-Time Setup
When you first run the server, it detects that no admin account exists. You will be automatically redirected to the Setup Wizard.
TracerKit Pro Setup Wizard
Enter your chosen username and a strong password. Once submitted, the engine creates an
admin-secret.json file and hashes your password using bcrypt.
Admin Dashboard
The Admin Dashboard is the nerve center of your game engine. Here you can create "Game Packs" (folders containing specific game themes like "Animals" or "Numbers").
Admin Dashboard Overview
Creating Your First Pack
Simply enter a Game ID (alpha-numeric) and a title. Choose a starting theme preset and click "Create Pack". The engine will generate the necessary file structure automatically.
Setting a Default Game
TracerKit Pro allows you to set a Default Game. When visitors load the root URL of your site, they will be automatically redirected to this game pack. Click the Green Star (⭐) button on any game card in the dashboard to set it as the default pack instantly.
Importing & Exporting Packs
TracerKit Pro makes it easy to backup your work or move game packs between different servers.
- Exporting: Click the Export (📥) icon on any game card to
download a portable
.zipfile containing all levels, assets, and configurations for that pack. - Importing: Use the Import Zone at the bottom of the dashboard.
You can drag and drop an exported
.zipfile or click to browse.
Level Design Studio
The heart of TracerKit Pro is the Level Design Studio. This powerful, browser-based editor allows you to create complex tracing paths with zero coding. You can draw paths, place nodes, add audio triggers, and customize animations directly on the canvas.
Editor Workspace Overview
The Level Editor follows a professional workspace layout designed for efficiency:
TracerKit Pro Designer Workspace
| Area | Features & Capabilities |
|---|---|
| Main Toolbar | Creation tools, history (Undo/Redo), Shapes, Zoom, and Preview. |
| Left Sidebar | Level list management (Add, Duplicate, Delete, Batch Sort). |
| Right Sidebar | Configuration for Assets (Reveal Mode), Audio (Intro/Complete), and Level Metadata. |
| Canvas | The main high-precision drawing area with real-time feedback. |
| Status Bar | Real-time stats like current path length, total segments, and selection info. |
The Main Toolbar
The toolbar at the top provides all the tools needed to construct and refine your tracing logic.
Standard Design Toolbar
| Tool/Group | Description & Shortcut |
|---|---|
| ✥ Select | Move paths or individual nodes. (Shortcut: 1 or V) |
| 🖋 Point | Add discrete anchor points by clicking on the canvas. (Shortcut: 2) |
| 📐 Edit | High-precision node editing (click a path to see nodes). (Shortcut: 3 or
E)
|
| ✋ Hand | Pan the canvas without selecting objects. (Shortcut: 4 or
Space)
|
| Shapes | Insert perfect geometric primitives: Rectangles, Squares, Circles, Stars, etc. |
| ✓ Complete Path | Completes the current path and readies for the next. (Shortcut: Enter) |
Right Sidebar: Level & Assets
Configure how each specific level behaves and looks.
Advanced Level Configuration
- 📋 Level Info: Change the display name and toggle "Show All Paths at Once" (if off, paths appear sequentially as the user finishes them).
- 🎨 Assets:
- Background: Set a reference image. Use Scale and Opacity to match your guide.
- Color Reveal Mode: If checked, the background starts B/W and "reveals" color as the user traces.
- Visibility: Choose if the background is Always Visible, Editor Only, or only appears On Completion.
- Reward Image: The custom "completion" graphic that pops up when a level is finished.
- 🔊 Audio:
- Intro: Custom VO that plays when the level starts (e.g., "Trace the letter A").
- Completion: Custom sound or VO for the reward moment.
Contextual Properties
Clicking on a path or a node reveals specific floating toolbars for deeper control.
Selected Path Options
When you select a path, a floating menu appears with advanced manipulation tools:
Floating Path Properties Toolbar
- Markers: Toggle Start/End point indicators on the path. When enabled, a green circle marks the starting point and a red circle marks the ending point, helping players identify where to begin and finish tracing.
- Numbers: Toggle sequence numbers along the path. Displays numbered labels at each stop point to guide the player through the correct tracing order.
- Move Up: Move the selected path higher in the drawing order, changing which path the player traces first.
- Move Down: Move the selected path lower in the drawing order.
- Reverse Direction: Swap the start and end points of a path, reversing the tracing direction.
- Flip Horizontal: Mirror the selected path along the horizontal axis.
- Flip Vertical: Mirror the selected path along the vertical axis.
- Duplicate (
D): Create an exact copy of the selected path(s), preserving all nodes and settings. - Group (
Ctrl+G): Combine multiple selected paths into a single logical group for simultaneous moving or mirroring. - Ungroup (
Ctrl+Shift+G): Separate a grouped set of paths back into individual elements. - Delete Path (
Delete/Backspace): Remove the selected path from the level. - Clear All Paths: Reset the entire level by removing all paths. Use the ⚠️ icon to confirm and start over.
Selected Node Options (Nodes)
When editing a specific path node, use the floating Node Toolbar to:
Floating Node Properties Toolbar
- Stop Points: Defines where numbers appear on the path. In Connect Dot mode, these also act as mandatory checkpoints where the user must stop and start again (useful for multi-stroke shapes).
- Smooth/Sharp: Toggle between curved segments and sharp angles.
- Delete Node: Remove a specific point without deleting the whole path.
Keyboard Shortcuts
Efficiency is key. Use these shortcuts to speed up your design workflow:
| Tool/Action | Shortcut |
|---|---|
| Select / Point / Edit / Pan | 1 or V / 2 / 3 or E /
4 or Space
|
| Complete Path / New Path | Enter / N |
| Duplicate Path(s) | D |
| Group / Ungroup Paths | Ctrl+G / Ctrl+Shift+G |
| Straight Lines (Point Mode) | Hold Shift + Click |
| Multi-Select Paths | Hold Shift + Click (Select Mode) |
| Insert Rect / Square / Circle | R / Q / C |
| Insert Tri / Star / Poly | T / J / G |
| Save All / Undo / Redo | Ctrl+S / Ctrl+Z / Ctrl+Y |
| Zoom In / Out / Reset | + / - / 0 |
| Toggle UI | H |
How to Play
Once you've published your levels, players can interact with them using a simple touch or mouse interface. The engine handles all the complex logic of following paths, detecting errors, and triggering rewards.
1. Standard Tracing Mode
In this mode, players must trace along the logic path. The engine enforces boundaries and direction.
Standard Tracing Gameplay
2. Connect the Dots Mode
In this mode, numbers or indicators guide the player to tap/click points in sequence (1 → 2 → 3).
Connect the Dots Gameplay
SVG Path Import
Importing complex shapes from vector software is easy. TracerKit Pro supports standard SVG path data.
- Click the SVG Import button in the editor toolbar.
- Select your
.svgfile from your computer to import it directly onto the canvas.
Themes & Visuals
Change the entire mood of your game with the Dynamic Theming system. Each game pack can have its own unique personality.
Visual Customization
| Setting | Description |
|---|---|
| Theme Mode | Toggle between clean Light or immersive Dark themes. |
| Accent Colors | Specific Primary and Secondary colors for buttons and highlights. |
| Success Color | The color used for completion badges and celebration effects. |
Built-in Presets
Comes with 5 professionally designed presets: Dark Indigo, Dark Emerald, Dark Rose, Light Classic, and Light Warm. A Custom option is also available for total control over branding.
Audio Configuration
Engagement in kids' games relies heavily on audio feedback. TracerKit Pro provides 7 dedicated global audio slots.
| Audio Slot | Usage Scenario |
|---|---|
| Background Music | Continuous loop during gameplay (Auto-fades between levels). |
| Level Success | Plays when the entire level is finished. |
| Path Complete | Plays when completing 1 path or stroke. |
| Path Error | Plays when a mistake occurs (e.g., straying too far). |
| Dot Connect | Plays when connecting dots in Connect Mode. |
| Active Tracing | Continuous feedback while tracing a line. |
| UI Click Sound | Feedback for interface buttons and menus. |
Game Mode Settings
Fine-tune the difficulty and behavior of each game pack.
Tracing Settings
Admin General Settings Panel
- Toddler Mode: When enabled, the trace line automatically follows the path. Ideal for younger players.
- Path Precision: Adjust the tolerance (10px to 80px). Strict mode requires perfect tracing; loose mode is more forgiving.
Connect the Dots Settings
Connect the Dots Settings Panel
- Dot Hit Radius: Adjust how close the user needs to get to a dot to trigger a connection.
Universal Display Options
Universal Display Settings Panel
- Level Card Mode Menu Only: Choose between showing initials (A, B, C) or numbers (1, 2, 3) on the level selection cards.
- Follow Path Connect Only: When enabled, the line snaps to the predefined path for a smoother experience.
- Progressive Dots Connect Only: Reveal dots one at a time as the player progresses, instead of showing all at once.
- Direction Arrow Both Modes: Shows a direction arrow on the start marker (Trace) or active dot (Connect) to guide movement.
- Start/End Circles Trace Only: Shows markers for the first and last points of a path to indicate where to begin and finish.
- Point Numbers Both Modes: Displays sequence numbers (1, 2, 3...) on each path point to guide the movement order.
- Guide Line Trace Only: Shows a visible "neon" guide path for the user to follow.
- Background Effects Both Modes: Toggles the animated particle effects (like stars) within the gameplay area.
- Path Progress Dots Both Modes: Shows progress indicators at the bottom (●○○) for levels with multiple paths.
Choosing a Hosting Method
Depending on your needs, you can host the full game engine or just the published game. Use the comparison below to choose the best method for your project.
| Feature | Railway / VPS | Vercel / Netlify | Static Hosting |
|---|---|---|---|
| Admin Dashboard | ✅ Fully Supported | ⚠️ Limited Support* | ❌ Not Available |
| Level Saving | ✅ Enabled | ❌ Not Supported* | ❌ Not Available |
| SVG Import | ✅ Native | ✅ Native | ❌ Not Available |
| Best For | Production Sites | Prototyping | Simple Distribution |
public/assets/games/ folder, any levels you create in the editor on these
platforms will be lost when the server restarts. We strongly recommend
Railway or a VPS for the full experience.
Managed Cloud Hosting (Recommended)
Managed platforms are the easiest way to deploy TracerKit Pro. They handle SSL, scaling, and automatic deployments from GitHub.
Deploy to Railway / Render
- Push your project to a private GitHub repository.
- Connect your repository to Railway or Render.
- Add your
COOKIE_SECRETin the environment variables. - The engine will automatically run
npm buildand start the server.
Vercel Deployment
Ideal for quick previews or hosting the static game front-end.
- Push your project to a private GitHub repository.
- Import your repository to Vercel.
- Add your
COOKIE_SECRETin the **Environment Variables** tab. - Set **Framework Preset** to Other.
- Set **Build Command** to
npm run build. - Set **Output Directory** to
dist.
Terminal-Based Setup (VPS / SSH)
For developers using a VPS (DigitalOcean, Ubuntu, AWS), follow these terminal commands to get running.
1. Clone and Install
git clone [your-repo-url]
npm install
npm run build
2. Environment Setup
Create a .env file in the root directory and add your secret key:
COOKIE_SECRET=your_very_secure_random_string_here
2. Process Management (PM2)
Use PM2 to keep the app running forever, even after a server crash.
# Install PM2
npm install -g pm2
# Start the application
pm2 start app.js --name tracerkit
# Ensure it starts on reboot
pm2 startup
pm2 save
3. Nginx Reverse Proxy
To serve your app on port 80/443, use this Nginx block:
location / {
proxy_pass http://localhost:3001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
cPanel GUI Setup (Shared Hosting)
If your host provides the "Setup Node.js App" module in cPanel, follow these precise steps.
- Node.js Version: Select 18.x or higher.
- Application Mode: Production.
- Application Root: The folder where you uploaded the files (e.g.,
public_html/tracer). - Application URL: Your domain or subdomain.
- Application Startup File:
passenger.cjs(Mandatory)
Setup Steps:
- Upload the ZIP of your project and extract it in your Application Root.
- Open cPanel > Setup Node.js App and click "Create Application".
- Enter the details from the box above and click "Create Application".
- Create your
.envfile in the app root withCOOKIE_SECRET=your_secret. - Scroll down and click "Run NPM Install".
- Click "Run JS Script" and select
buildto compile the engine. - Restart the application using the "Restart" button at the top.
Static Hosting (Game Only)
If you prefer to host only the final game (without the Admin Panel) on platforms like GitHub Pages, Netlify, or Vercel:
- Run
npm run buildlocally. - Copy your game folders from
public/assets/games/intodist/assets/games/. - Upload the entire
dist/folder to your web host.
How to Manage Your Project
Managing TracerKit Pro is designed to be seamless for both developers and non-technical administrators.
Daily Management Flow
- Access the Dashboard: Log in at
/adminto view your packs. - Create New Content: Use the "Create Pack" button for new themes.
- Design Levels: Enter the Editor to draw paths or import SVGs.
- Update Visuals: Use the "Settings" icon in the dashboard to change theme presets or colors instantly.
Updating the Engine
If you are using the full Node.js installation with GitHub/PM2:
# On your local machine or server
git pull origin main
npm install
npm run build
.env file secure and never commit it to
public repositories.
File Structure Explainer
A quick overview of the key files and directories in your project:
├── server/ # Node.js Express backend logic
├── src/ # TypeScript Game & Editor source
├── public/ # Static assets & front-end code
│ └── assets/games/ # Your created Game Packs
├── dist/ # Compiled production build
├── app.js # Primary entry point for VPS/Cloud
├── passenger.cjs # Essential startup file for cPanel/Passenger
├── package.sh # Delivery & deployment helper script
└── .env # Your private server configuration (Secret)
Source Code & Customization
For developers looking to extend the engine beyond the dashboard:
Core Logic Files
- Tracing Logic:
src/game/mechanics/TracingController.ts(Handles path following and error detection). - Gameplay Scene:
src/game/GameScene.ts(Orchestrates level state, timers, and rewards). - Level Selection:
src/scenes/MenuScene.ts(Handles the pack/level choice screens). - Data Handling:
src/classes/LevelManager.ts(Handles loading/saving of pack data). - Global Constants:
src/GameConstants.ts(Change base resolution or grid settings). - Theme Config:
public/admin.js(EditTHEME_PRESETSto add your own dashboard designs).
Frequently Asked Questions
How do I update an existing Game Pack?
Simply click the "Edit" button on the dashboard to enter the Level Design Studio. Change any path or setting and it will save instantly.
Can I host this on my own private server?
Absolutely. You own the code. As long as the server has Node.js 18+, you can host it anywhere (VPS, Dedicated, or Shared with Node support).
Do I need to pay for hosting?
You can start for free on platforms like Railway or Render. For high traffic, you may eventually need a paid tier (usually $5-$10/mo).
Is the Setup Wizard secure?
Yes. It is programmed to run only once. Once your credentials are saved in
admin-secret.json, the setup routes are permanently locked for security.
Troubleshooting Common Issues
If you see "Unexpected token" errors, your server is running an old Node.js version. Fix: Ensure your server is running Node.js 18.0 or higher.
This is usually a permission issue on your server or host storage limits. Fix: Contact your host or use a platform with persistent storage like Railway.
This is a generic error from Phusion Passenger. Fix: Check the
stderr.log in your root folder via cPanel File Manager
to see the specific error.
Technical Support
We provide comprehensive support for all buyers. If you encounter any issues:
- Email: studiosupershark@gmail.com
- Include your: CodeCanyon Purchase Code