@hmpu/powerups.platformer
v1.0.13
Published
A platformer game engine module for Happy Meal Power-Ups, built with TypeScript, PixiJS, Matter.js, and GSAP.
Keywords
Readme
@hmpu/powerups.platformer
A platformer game engine module for Happy Meal Power-Ups, built with TypeScript, PixiJS, Matter.js, and GSAP.
Features
- Performance Optimized: Pixi.js v8 with native culling and render groups
- Physics-based: Platformer logic using Matter.js physics engine
- Modern Rendering: Advanced rendering and animation with PixiJS v8
- Viewport Management: Smooth camera controls with pixi-viewport
- Audio System: Comprehensive sound support via @pixi/sound and Tone.js
- Event System: Modular event system via @hmpu/powerups.services.global-event-listener
- TypeScript: Full TypeScript support with type definitions
Installation
npm install @hmpu/powerups.platformer
# or
pnpm add @hmpu/powerups.platformer
# or
yarn add @hmpu/powerups.platformerPeer Dependencies
Make sure your project includes the following versions:
[email protected]matter-js@^0.20.0pixi-viewport@^6.0.3pixi.js@^8.11.0(updated for v8 performance)typescript@>=5.8.3
Usage
Import and initialize the platformer engine in your project:
import { PlatformerEngine } from "@hmpu/powerups.platformer";
const engine = new PlatformerEngine({
// configuration options
});
engine.start();Scripts
pnpm build— Build the TypeScript projectpnpm publish— Build and publish the package
Development
Install dependencies and build:
pnpm install
pnpm buildAPI Extractor
License
Copyright © McDonald's Corporation.
