JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q23984F
  • License MIT

Game dev framework

Package Exports

  • magic-framework
  • magic-framework/index.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (magic-framework) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme







npx magic-framework new <folder-name>

Bun runtime is currently only supported.

🔮 Features

Core Functionality

  • CLI & Project creation
  • CLI <--> Client debug bridge, connection status overlay
  • Assets & Project hot-reloading
  • Project bundling

Development Tools

  • Data-driven per-instance state machine
  • Input support (keyboard, mouse, mobile touch, controllers (Xbox))
  • Binary static asset bundler

Work In Progress

  • Math utilities
  • Audio capabilities
  • Blazingly fast logging™

⚗️ TODOs

Build and Asset Management

  • Build step version of stateInstancer
  • MOF: Magic 3D Object Format
  • Mesh and material builder
  • Use web workers to load/parse asset bundle
  • Investigate: wasm module hot reload
  • Investigate: image formats, custom wasm decoder?
  • Investigate: Zig support (wasm)

Audio Enhancements

  • Volume control
  • Pitch adjustment

Blender Integration

  • Find local version of Blender
  • Overwrite MOF exporter script
  • .blend hot-reload exporter

Performance and Reloading

  • Chunked hot reload (no full rebuild)
  • WebGPU & WebGL integration

🪄 License

Magic Framework is licensed under MIT.

Logos and visual assets are created and copyright held by Alve Larsson, 2024.