Create playable games with AI. Describe your game idea in plain English, and JG Engine will turn it into a real, browser-based game you can share with the world.
๐ฎ Live Demo: https://juggames.vercel.app
- Describe your game in natural language
- GPT-4o-mini generates complete Python/Pygame code
- Support for custom sprites (Pro/Premium)
- Multiple genres: Platformer, Adventure, Puzzle
- User Authentication: Secure sign-up with Supabase
- Build System: Python games compiled to WebAssembly (Pygbag)
- Cloud Storage: Games hosted on Supabase Storage
- Community Features: Share, like, comment, and discover games
- Dashboard: Manage your games, track stats, publish/unpublish
- Subscription Tiers: Free, Pro, and Premium plans with Stripe
| Feature | Free | Pro | Premium |
|---|---|---|---|
| Games per month | 3 | 20 | Unlimited |
| Custom sprites | โ | โ | โ |
| Build priority | Standard | Priority | Fastest |
| Private games | โ | โ | โ |
| Early features | โ | โ | โ |
-
Landing Page (
landing-page/) - Next.js 15 application- Marketing site and game creator
- User dashboard and community pages
- Supabase authentication and storage
- Stripe subscription management
-
Build Service (
build-service/) - Python Flask service- Compiles Python games with Pygbag
- Deploys to Supabase Storage
- Deployed on Fly.io
-
Demo Game (
demo-game/) - Sample game template- Pygame-CE based platformer
- Hollow Knight-inspired mechanics
- WebAssembly-ready
- Frontend: Next.js 15, React, Tailwind CSS, TypeScript
- Backend: Supabase (PostgreSQL, Auth, Storage)
- AI: OpenAI GPT-4o-mini
- Payments: Stripe
- Build Service: Python Flask, Pygbag, Pygame-CE
- Deployment: Vercel (frontend), Fly.io (build service)
- Node.js 18+
- Python 3.8+ (for local game development)
- Supabase account
- OpenAI API key
- Stripe account (optional, for payments)
git clone https://github.com/yourusername/kyx-engine.git
cd kyx-engine/landing-page
npm installCreate landing-page/.env.local:
# Supabase
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
# OpenAI
OPENAI_API_KEY=your_openai_key
# Build Service
BUILD_SERVICE_URL=your_build_service_url
BUILD_SERVICE_SECRET=your_shared_secret
# Site URL
NEXT_PUBLIC_SITE_URL=http://localhost:3001
# Stripe (optional)
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_key
STRIPE_SECRET_KEY=your_stripe_secret
STRIPE_WEBHOOK_SECRET=your_webhook_secret
STRIPE_PRICE_ID_PRO=price_xxx
STRIPE_PRICE_ID_PREMIUM=price_xxxRun the migrations in your Supabase SQL editor:
landing-page/supabase-schema.sql
landing-page/supabase-migration-subscriptions.sqlFollow the Build Service Guide to deploy to Fly.io.
cd landing-page
npm run devVisit http://localhost:3001
- Setup Guide - Complete setup instructions
- Architecture - System design and data flow
- Build Service - Deployment guide for build service
- Stripe Setup - Payment integration guide
- Sprite Upload - Custom sprite configuration
- Build Service Setup - Build service configuration
cd demo-game
python main.pycd demo-game
pygbag main.pyThe game will be compiled to WebAssembly and served at http://localhost:8000.
| Action | Input |
|---|---|
| Move | Arrow keys or WASD |
| Sprint | Shift |
| Dash | Ctrl / J |
| Jump | Space (hold for higher) |
- Push your code to GitHub
- Connect your repo to Vercel
- Add environment variables from
.env.local - Deploy!
cd build-service
fly launch
fly secrets set SUPABASE_URL=... SUPABASE_SERVICE_ROLE_KEY=...
fly deploy- User authentication via Supabase Auth
- Row Level Security (RLS) on all tables
- Content filtering and rate limiting
- Secure file uploads to Supabase Storage
- Webhook signature verification for Stripe
- Shared secret authentication for build service
- Natural language game descriptions
- Automatic code generation with GPT-4o-mini
- Support for custom player/enemy sprites
- Multiple game genres and difficulty levels
- Tone customization (hopeful, gritty, heroic)
- Browse games created by others
- Like and comment on games
- User profiles with game galleries
- Game statistics (plays, likes)
- Content moderation tools
- View all your games
- Track build status in real-time
- Publish/unpublish games
- Edit game details
- View analytics and stats
- Free tier with basic features
- Pro tier for serious creators
- Premium tier for unlimited creation
- Stripe-powered billing
- Customer portal for self-service
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
- Built with Next.js
- Powered by Supabase
- AI by OpenAI
- Payments by Stripe
- Games compiled with Pygbag
- Inspired by Hollow Knight's game mechanics
For questions or issues, please open an issue on GitHub or contact support.
Made with โค๏ธ by JugGames