Create a project
Use the CLI to scaffold a new Oxid project:
oxid new my-game
This creates a new directory and writes four files:
package.jsonmain.jsoxid.d.tstsconfig.json
If the target directory already exists, oxid new stops with an error instead of overwriting it.
What package.json contains
The generated manifest stores Oxid runtime settings under the oxid field:
{
"name": "my-game",
"oxid": {
"entry": "main.js",
"title": "my-game - Oxid Engine",
"width": 800,
"height": 600,
"locale": "pt-BR"
}
}
The exact locale value depends on the CLI locale resolution in effect when the project is created.
Why oxid.d.ts and tsconfig.json are included
Oxid scripts run as JavaScript, but the generated project also includes editor support:
oxid.d.tsdescribes the modules currently exposed by the runtimetsconfig.jsonenablescheckJsand points tooling at those types
That gives you autocomplete and basic checking in editors such as VS Code, while keeping JavaScript as the runtime language.