Yendor.ts is a TypeScript API for roguelike developers. It provides a true color console, a robust random number generator, a field of view toolkit, and other utilities frequently used in roguelikes.
It comes with a simple generic roguelike game to extend.
- fast WebGL/Canvas true color console (using pixi.js)
- BSP based dungeon building toolkit
- CMWC random number generator
- field of view toolkit using restrictive precise angle shadowcasting
- A* pathfinding toolkit
- install node.js
- install TypeScript (version 1.3+ required)
npm install -g typescript
- install jake
npm install -g jake
jake
Then open game/index.html in your favorite browser.
jake tests
Then open game/index.html in your favorite browser.
jake benchmark
Then open game/index.html in your favorite browser.
By default, Yendor will render the screen using PIXI. PIXI will try to use a webGL renderer and fall back to a canvas based renderer if that doesn't work. Yet, if you have rendering issues, you can force the use of a specific renderer by adding the renderer
parameter to the URL.
http://mysite/index.html?renderer=<rendererName>
Following renderer names are supported :
- pixi/webgl : should be the fastest except if you have broken OpenGL drivers or an old browser
- pixi/canvas : should work on not so recent browser, but not on very old browsers
- yendor/div : failsafe but slow classic HTML renderer
Yendor's code uses the MIT license, see our LICENSE
file.