Socket
Book a DemoInstallSign in
Socket

@clockwork-engine/platform-web-pixi

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clockwork-engine/platform-web-pixi

Web platform layer with PIXI.js rendering for Clockwork Engine

latest
Source
npmnpm
Version
2.9.0
Version published
Maintainers
1
Created
Source

@clockwork-engine/platform-web-pixi

NPM Version

Web platform layer with PIXI.js 2D rendering for Clockwork Engine.

What's Included

  • WebPlatformLayer - Main platform facade for web browsers
  • PixiRenderingLayer - PIXI.js-based 2D rendering with viewport support
  • WebAudioLayer - Web Audio API implementation
  • WebInputLayer - Browser input handling (mouse, keyboard, touch)

Installation

bun add @clockwork-engine/core @clockwork-engine/platform-web-pixi

Usage

import { GameCanvas } from '@clockwork-engine/core'
import { WebPlatformLayer } from '@clockwork-engine/platform-web-pixi'

// Create platform with container element
const container = document.getElementById('game-container')!
const platform = new WebPlatformLayer(container, {
  screenWidth: 800,
  screenHeight: 600,
  worldWidth: 800,
  worldHeight: 600,
})
await platform.init()

// Create your canvas with the platform
const canvas = new MyGameCanvas(options, platform)
await canvas.initialize()

Peer Dependencies

See the main README for full documentation.

Keywords

game-engine

FAQs

Package last updated on 18 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts