https://github.com/smoudjs/playable-template-pixi
A starter template for creating playable ads using PixiJS and @smoud/playable-sdk with TypeScript support
https://github.com/smoudjs/playable-template-pixi
2d ads boilerplate pixi pixijs playable playable-ad template typescript webgl
Last synced: 2 months ago
JSON representation
A starter template for creating playable ads using PixiJS and @smoud/playable-sdk with TypeScript support
- Host: GitHub
- URL: https://github.com/smoudjs/playable-template-pixi
- Owner: smoudjs
- Created: 2025-03-16T00:32:03.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-03-31T16:31:32.000Z (2 months ago)
- Last Synced: 2025-03-31T17:40:03.943Z (2 months ago)
- Topics: 2d, ads, boilerplate, pixi, pixijs, playable, playable-ad, template, typescript, webgl
- Language: TypeScript
- Homepage:
- Size: 179 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playable Template with PixiJS
A starter template for creating playable ads using PixiJS with TypeScript support. This template combines:
- [PixiJS](https://pixijs.com/) - Fast, flexible 2D WebGL renderer
- [@smoud/playable-sdk](https://github.com/smoudjs/playable-sdk#readme) - SDK for creating playable ads with standardized events and methods
- [@smoud/playable-scripts](https://github.com/smoudjs/playable-scripts#readme) - Build and development tools optimized for playable ads## Demo
Try out this template:
- [View on CodePen](https://codepen.io/peter-hutsul/pen/PwoEaWR)## Features
- 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## Getting Started
1. Clone this repository
2. Install dependencies:
```bash
npm install
```
3. Start development server:
```bash
npm run dev
```
4. Build for production:
```bash
npm run build
```## Project Structure
- `src/index.ts` - Main entry point with SDK, PixiJS and Game initialization
- `src/Game.ts` - Game logic and PixiJS application setup
- `src/index.css` - Styles for your playable
- `src/index.html` - HTML template
- `assets/` - Directory for your game assets (sprites, textures, etc.)## Looking for More?
Check out other available templates for different frameworks and use cases:
- [playable-template-base](https://github.com/smoudjs/playable-template-base) - Template base version
- [playable-template-base-js](https://github.com/smoudjs/playable-template-base-js) - Template base version (JavaScript)
- [playable-template-three](https://github.com/smoudjs/playable-template-three) - Template with Three.js
- [playable-template-phaser](https://github.com/smoudjs/playable-template-phaser) - Template with Phaser