Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
Something went wrong. Try again.
TypeScript
1234567891011/** * Asserts will throw in `process.env.NODE_ENV === 'development'` builds if the expression evaluates false */export function assert(message: string, expression: () => boolean) { if (process.env.NODE_ENV === 'development') { if (!expression()) { throw new Error(message); } }}