Skip to content

StaNLink-Inc/stanstarter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ StanStarter - Unity Base Game Template

The Sacred Core - Protected foundation for all Stan-generated Unity games.

๐Ÿ”’ What is StanStarter?

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.

๐Ÿ“ฆ What's Inside?

Assets/_StanCore/ (NEVER OVERWRITTEN)

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)

Packages/manifest.json

Pre-configured Unity packages:

  • Universal Render Pipeline (URP)
  • Input System
  • TextMeshPro
  • UI Toolkit

ProjectSettings/

All Unity project configuration files for consistent builds.

๐Ÿš€ How Stan Uses This

  1. Clone StanStarter โ†’ Creates new project from this template
  2. Import Templates โ†’ Adds game-specific templates to Assets/StanTemplates/
  3. Generate Code โ†’ Stan AI writes game code to Assets/Scripts/
  4. Inject Config โ†’ GitHub Actions replaces placeholders:
    • {{PROJECT_ID}} โ†’ Actual project ID
    • {{IS_PAID}} โ†’ true/false based on user tier
    • {{ALLOWED_DOMAINS}} โ†’ Whitelisted domains
  5. Build WebGL โ†’ Unity builds the complete game
  6. Deploy to R2 โ†’ Uploaded to games.stanlink.online/{project_id}

๐Ÿ” Security Features

Domain Lock

Games only run on whitelisted domains. If someone downloads your game files and hosts them elsewhere, the domain lock kills the game immediately.

Origin Guard

Cloudflare Worker protects R2 assets - only serves files to whitelisted domains.

Analytics Tracking

Every game play is tracked with domain information, so you know where your game is being played.

WASM Obfuscation

Unity's WebGL build produces obfuscated WASM that's nearly impossible to decompile.

๐ŸŽฏ Result

Game files can be downloaded, but they're USELESS outside your domain! ๐Ÿ”’โœจ

๐Ÿ“ Placeholders

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

๐Ÿšซ What NOT to Modify

NEVER modify files in Assets/_StanCore/ - These are Stan's protected systems and will break domain locking, analytics, and ad integration.

๐Ÿ“š Learn More


Built with โค๏ธ by StanLink Inc.

About

DNA for all games at https://games.stanlink.online

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages