Closed namiwang closed 1 year ago
I recommend using https://kaboomjs.com/#vec2 instead.
Yea it's a bit confusing
import { Vec2 } from "kaboom"
Should only import the type, the actual class is under KaboomCtx
const k = kaboom()
new k.Vec2(10, 20)
TS thinks this code is fine, yet the transpiled code is not working due to errors like