Skip to content
/ tudi Public

An FRP-based 2D game engine for the browser, written in TypeScript

Notifications You must be signed in to change notification settings

SodiePops/tudi

Repository files navigation

tudi

Javascript Game Engine

styled with prettier

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.


Examples

Asteroids - repo

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.

About

An FRP-based 2D game engine for the browser, written in TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published