Skip to content

A starter template for creating playable ads using Three.js and @smoud/playable-sdk with TypeScript support

Notifications You must be signed in to change notification settings

smoudjs/playable-template-three

Repository files navigation

Playable Template with Three.js

A starter template for creating playable ads using Three.js with TypeScript support. This template combines:

Demo

Try out this template:

Features

  • Three.js integration for high-performance 3D graphics
  • TypeScript support for better development experience
  • Hot module replacement during development
  • Game structure with Three.js and SDK integration
  • Event handling (resize, pause, resume, volume, etc.)
  • Installation button implementation
  • Interaction tracking
  • Responsive 3D scene scaling
  • GLTF model loading and animation
  • Proper lighting setup
  • Smooth animation loop management

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.ts - Main entry point with SDK, Three.js and Game initialization
  • src/Game.ts - Game logic and Three.js scene setup
  • src/index.css - Styles for your playable
  • src/index.html - HTML template
  • assets/ - Directory for your game assets (3D models, textures, etc.)

Looking for More?

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

About

A starter template for creating playable ads using Three.js and @smoud/playable-sdk with TypeScript support

Topics

Resources

Stars

Watchers

Forks