Skip to content

A starter template for creating playable ads using @smoud/playable-sdk with JavaScript

Notifications You must be signed in to change notification settings

smoudjs/playable-template-base-js

Repository files navigation

Base Playable Template (JavaScript)

A starter template for creating playable ads with JavaScript. This template uses:

Demo

Try out this template:

Features

  • 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

Getting Started

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Start development server:
    npm run dev
  4. Build for production:
    npm run build

Project Structure

  • src/index.js - Main entry point with SDK and Game initialization
  • src/Game.js - Game logic
  • src/index.css - Styles for your playable
  • src/index.html - HTML template

Looking for More?

Check out other available templates for different frameworks and use cases:

About

A starter template for creating playable ads using @smoud/playable-sdk with JavaScript

Topics

Resources

Stars

Watchers

Forks