@nanoforge-dev/core
v1.0.0
Published
NanoForge Engine - Core
Readme
About
@nanoforge-dev/core is a core package that contains game main loop. It is used to initialize the game and run it.
Installation
Node.js 24.11.0 or newer is required.
npm install @nanoforge-dev/core
yarn add @nanoforge-dev/core
pnpm add @nanoforge-dev/core
bun add @nanoforge-dev/coreExample usage
Initialize the game in your main file.
import { type IRunOptions } from "@nanoforge-dev/common";
import { NanoforgeFactory } from "@nanoforge-dev/core";
export async function main(options: IRunClientOptions) {
const app = NanoforgeFactory.createClient();
await app.init(options);
await app.run();
}Links
Contributing
Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
documentation.
See the contribution guide if you'd like to submit a PR.
Help
If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to ask questions in discussions.
