@matematrolii/sketchbook
TypeScript icon, indicating that this package has built-in type declarations

0.2.29 • Public • Published

📒 Matematrolii Sketchbook

Simple web based game engine built on three.js and cannon.js focused on third-person character controls and related gameplay mechanics.

Features

  • World
    • Three.js scene
    • Cannon.js physics
    • Variable timescale
    • Frame skipping
    • FXAA anti-aliasing
  • Characters
    • Third-person camera
    • Raycast character controller with capsule collisions
    • General state system
    • Character AI

NPM

  1. Install:
npm i sketchbook
  1. Import:
import { World } from 'sketchbook';
  1. Load a glb scene defined in Blender:
const world = new World('scene.glb');

Contributing

  1. Get latest Node.js
  2. Fork this repository
  3. Run npm install
  4. Run npm run dev
  5. Make changes and test them out at http://localhost:8080
  6. Commit and make a pull request!

Package Sidebar

Install

npm i @matematrolii/sketchbook

Weekly Downloads

33

Version

0.2.29

License

MIT

Unpacked Size

7.92 MB

Total Files

184

Last publish

Collaborators

  • gabi09