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
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
helpShow this help messageversionShow the version number and exitnew <path>Create a new project at the pathdev <path>Start development modebuild <path>Build the projectsetup <path>Setup a config file in the current directorybundle <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)