A starter template for creating playable ads with JavaScript. This template uses:
- @smoud/playable-sdk - SDK for creating playable ads with standardized events and methods
- @smoud/playable-scripts - Build and development tools optimized for playable ads
Try out this template:
- Modern JavaScript (ES6+)
- Hot module replacement during development
- Basic game structure with SDK integration
- Event handling (resize, pause, resume, volume, etc.)
- Installation button implementation
- Interaction tracking
- Clone this repository
- Install dependencies:
npm install
- Start development server:
npm run dev
- Build for production:
npm run build
src/index.js
- Main entry point with SDK and Game initializationsrc/Game.js
- Game logicsrc/index.css
- Styles for your playablesrc/index.html
- HTML template
Check out other available templates for different frameworks and use cases:
- playable-template-base - TypeScript version of this template
- playable-template-pixi - Template with PixiJS
- playable-template-three - Template with Three.js
- playable-template-phaser - Template with Phaser