finds.dev← search

// the find

ondras/rot.js

★ 2,697 · JavaScript · BSD-3-Clause · updated Nov 2024

ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!

rot.js is a JavaScript/TypeScript library that gives you the building blocks for browser-based roguelike games: dungeon generation, FOV, pathfinding, lighting, and a turn scheduler. It's been the go-to for JS roguelike hobbyists for over a decade. If you're building a roguelike in the browser and don't want to figure out recursive shadowcasting yourself, this is what you reach for.

The FOV implementations are genuinely good — three shadowcasting variants (discrete, precise, recursive) with clear trade-offs documented. The map generators cover real roguelike algorithms: BSP digger, cellular automata, Rogue-style rooms, Eller's maze. TypeScript source with proper .d.ts output means you get real type safety. The interactive manual is actually useful — live code demos in the browser, not static screenshots.

Declared 'feature-complete' in the README, which in practice means it's in maintenance mode — last push November 2024, TODO file still exists. No ECS or entity system built in; the addons/ folder has half-finished sketches (being.js, entity.js) that are undocumented and look abandoned. The WebGL tile backend (tile-gl) has essentially no documentation compared to everything else. No hexagonal grid pathfinding despite hex display support, which is a gap you'll hit the moment you make a hex map.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →