JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q24001F
  • 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

Magic Framework

npm version

A collection of utils and implementations for web games, with the goal of making web games concerned about speed and bundle size easy. some parts are ported from my private Zig engine.

Written in Typescript (mostly)

New magic project

npx magic-framework new <folder-name>

Commands

  • help Show this help message
  • version Show the version number and exit
  • new <path> Create a new project at the path
  • dev <path> Start development mode
  • build <path> Build the project
  • setup <path> Setup a config file in the current directory
  • bundle <path> Bundle the project

TODOs:

  • Build step version if stateInstancer
  • Audio: volume, pitch
  • MOF: Magic 3D Object Format
  • Mesh and material builder
  • Use web workers to load/parse asset bundle
  • Blender: Find local version
  • Blender: overwrite MOF exporter script
  • Blender: .blend hot-reload exporter
  • Chunked hot reload (no full rebuild)
  • Webgpu & WebGL stuff
  • Investigate: in-browser hot-reloading
  • Investigate: wasm module hot reload
  • Investigate: Image formats, custom wasm decoder?
  • Investigate: Zig support (wasm)