The Sacred Core - Protected foundation for all Stan-generated Unity games.
StanStarter is the protected base template that every Stan game builds upon. It contains the core systems that ensure games work correctly on Stan's platform while preventing unauthorized distribution.
This folder contains Stan's protected systems:
- StanDomainLock.cs - Kill switch that prevents games from running on unauthorized domains
- StanAnalytics.cs - Phone-home tracking to monitor where games are played
- StanAdManager.cs - Ad injection points for Adsterra integration
- StanWatermark.cs - "Play on Stan" branding overlay (free tier only)
Pre-configured Unity packages:
- Universal Render Pipeline (URP)
- Input System
- TextMeshPro
- UI Toolkit
All Unity project configuration files for consistent builds.
- Clone StanStarter โ Creates new project from this template
- Import Templates โ Adds game-specific templates to
Assets/StanTemplates/ - Generate Code โ Stan AI writes game code to
Assets/Scripts/ - Inject Config โ GitHub Actions replaces placeholders:
{{PROJECT_ID}}โ Actual project ID{{IS_PAID}}โ true/false based on user tier{{ALLOWED_DOMAINS}}โ Whitelisted domains
- Build WebGL โ Unity builds the complete game
- Deploy to R2 โ Uploaded to
games.stanlink.online/{project_id}
Games only run on whitelisted domains. If someone downloads your game files and hosts them elsewhere, the domain lock kills the game immediately.
Cloudflare Worker protects R2 assets - only serves files to whitelisted domains.
Every game play is tracked with domain information, so you know where your game is being played.
Unity's WebGL build produces obfuscated WASM that's nearly impossible to decompile.
Game files can be downloaded, but they're USELESS outside your domain! ๐โจ
These placeholders are replaced during build:
{{PROJECT_ID}}- Unique project identifier{{IS_PAID}}- Boolean flag for paid/free tier{{ALLOWED_DOMAINS}}- Comma-separated list of authorized domains
NEVER modify files in Assets/_StanCore/ - These are Stan's protected systems and will break domain locking, analytics, and ad integration.
Built with โค๏ธ by StanLink Inc.