An open API service indexing awesome lists of open source software.

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

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