tudi
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

tudi

Javascript Game Engine

Notes

The build script outputs this project in three different ways:

  1. The tsc compiled source with *.d.ts type declarations and source maps. Uses CommonJS module syntax to support the majority of bundlers/tools.
  2. Same as above, but with ES2015 module syntax, to enable tree shaking.
  3. A UMD bundle, compiled to ES5, for use in browsers.

See this article for a more detailed explanation.


Making a Game with tudi

Project Structure

src/
├── Components/
│   ├── Health.ts
│   ├── Weapon.ts
│   ├── PlayerController.ts
│   └── EnemyController.ts
├── Prefabs/
│   ├── Player.ts
│   └── Enemy.ts
├── Scenes/
│   ├── LevelOne.ts
│   └── LevelTwo.ts
└── index.ts

If a component is only used in a single entity, it is ok to put it inside the same file as the prefab.

Readme

Keywords

none

Package Sidebar

Install

npm i tudi

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • ianjsikes