๐ฎ Scralab Game Platform โ Full WordPress Setup
โ Feature Implementation
Feature | Implementation |
---|---|
Login / Signup | Use WordPress default system (or plugin like Ultimate Member) |
User Profiles | Ultimate Member + Custom Fields (for projects, games, followers) |
Game Editor (Blocks + Python/JS) | Embed a custom-built Blockly + CodeMirror editor via plugin or shortcode |
3D Game Engine | Use Three.js embedded in a custom plugin or block |
Game Projects | Custom Post Types (CPTs) called โGamesโ or โProjectsโ |
Studios / Groups | Custom Taxonomy or CPT with Member Plugin integration |
User Uploads / Game Save | Use Advanced Custom Fields (ACF) + AJAX save |
Follow System | Custom user meta + AJAX follow/unfollow |
Dev Tools (Admin-only) | Admin-only dashboard menu via a custom plugin |
Plugin System | Allow custom scripts/code saved to CPTs (moderated) |
๐ง Step-by-Step Setup Plan
1. ๐ Install Required Plugins
Plugin | Purpose |
---|---|
Ultimate Member | User profiles, login, followers |
Advanced Custom Fields (ACF) | Custom fields for game data |
Custom Post Type UI | Create Games, Studios, etc. |
WPCode | Embed Blockly, CodeMirror, and Three.js |
WP REST API Controller | Enable/extend API for AJAX save/load |
2. ๐งฉ Create Game Editor
- Use Blockly for Scratch-style blocks
- Use CodeMirror or Monaco Editor for Python/JS
- Use Three.js for 3D preview window
- Wrap all this in a custom WordPress plugin
โก๏ธ Plugin includes:
- Blockly-based editor
- Tabs for Python / JavaScript coding
- Three.js preview
- Save/load to custom post type (Game)
3. ๐ Dev Tools (Just for You)
Create a WordPress admin-only page (visible only to your user)
Features:
- View all user games
- Approve plugins
- Promote games to homepage
- Inject system-wide blocks/code