Run a project
After creating a project, move into its directory and run:
cd my-game
oxid run
oxid run expects to find a package.json in the current working directory.
How the runtime resolves your project
When you run the command, Oxid:
- reads
package.json - loads the
oxidconfiguration object - resolves the JavaScript entrypoint from
oxid.entry - reads that file and boots the runtime
- opens the native window using the configured title, width and height
Oxid still accepts the legacy top-level main field as a fallback for older projects, but new projects should use oxid.entry.
Locale resolution
For oxid run, CLI messages are resolved in this order:
--langOXID_LANGoxid.localefrompackage.json- the default locale
This affects Oxid's own messages, not your game text.