goudengine
v0.0.841
Published
GoudEngine - build 2D and 3D games with TypeScript for Node.js and web
Maintainers
Readme
GoudEngine TypeScript SDK
Alpha -- This SDK is under active development. APIs change frequently. Report issues
TypeScript bindings for GoudEngine with two targets: Node.js desktop (napi-rs) and web browser (wasm-bindgen).
Installation
npm install goudengineQuick Start
import { GoudGame } from "goudengine";
const game = new GoudGame(800, 600, "My Game");
while (!game.shouldClose()) {
game.beginFrame(0.2, 0.2, 0.2, 1.0);
// game logic here
game.endFrame();
}
game.destroy();Documentation
See the Getting Started guide for installation, project setup, and examples.
Testing
cd sdks/typescript
npm test # node --test test/*.test.mjs
npm run typecheck # tsc --noEmit for both targetsPlatform Support
| Target | Backend | Status | |----|----|----| | Node.js | napi-rs native addon | Supported | | Web | wasm-bindgen WASM | Supported |
Architecture
This SDK is a thin wrapper -- all engine logic lives in Rust. Files with .g.rs or .g.ts suffix are auto-generated by the codegen pipeline. Do not hand-edit generated files. Run ./codegen.sh to regenerate.
