Hosting & Deployment
Doodle Engine games are standard web applications. The build output is static HTML, CSS, and JavaScript that can be hosted anywhere.
Building for Production
Section titled “Building for Production”npm run build # or: yarn build / pnpm buildThis produces a dist/ directory containing:
index.html: entry pointassets/: bundled JavaScript and CSS- Any static files from your project root (images, audio, video)
Static Hosting
Section titled “Static Hosting”The build output is fully static. Upload the dist/ folder to any static host. Most hosts need:
- Build command:
npm run build - Publish directory:
dist
For itch.io: zip the contents of dist/ and upload as an HTML5 game project.
Asset Hosting
Section titled “Asset Hosting”For small games, bundle everything in dist/. For games with large media files, host audio and video on a CDN and configure the base paths:
<GameShell audioOptions={{ audioBasePath: 'https://cdn.example.com/audio' }} videoBasePath="https://cdn.example.com/video"/>Desktop Packaging
Section titled “Desktop Packaging”Doodle Engine games can be packaged as desktop applications using standard web-to-desktop wrappers. No special engine configuration is needed.
Electron: wraps your game in a Chromium window:
- Build with
npm run build - Create an Electron main process that loads
dist/index.html - Package with
electron-builderorelectron-forge
Tauri: lighter alternative using the system webview:
- Build with
npm run build - Point Tauri’s
devPathat yourdist/directory - Build with
tauri build