A starter template for creating playable ads with TypeScript support. 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:
- TypeScript support
- 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.ts
- Main entry point with SDK and Game initializationsrc/Game.ts
- 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-js - JavaScript version of this template
- playable-template-pixi - Template with PixiJS
- playable-template-three - Template with Three.js
- playable-template-phaser - Template with Phaser