A starter template for creating playable ads using PixiJS with TypeScript support. This template combines:
- PixiJS - Fast, flexible 2D WebGL renderer
- @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:
- PixiJS v8 integration for high-performance 2D graphics
- TypeScript support for better development experience
- Hot module replacement during development
- Game structure with PixiJS and SDK integration
- Event handling (resize, pause, resume, volume, etc.)
- Installation button implementation
- Interaction tracking
- Responsive canvas scaling
- 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, PixiJS and Game initializationsrc/Game.ts
- Game logic and PixiJS application setupsrc/index.css
- Styles for your playablesrc/index.html
- HTML templateassets/
- Directory for your game assets (sprites, textures, etc.)
Check out other available templates for different frameworks and use cases:
- playable-template-base - Template base version
- playable-template-base-js - Template base version (JavaScript)
- playable-template-three - Template with Three.js
- playable-template-phaser - Template with Phaser