From RogueBasin
Jump to navigation Jump to search

JSRL (JavaScript Roguelike Template) is a basic roguelike you can build upon to create your own.

In this repo you will find a bare-bones roguelike with tile and character-based displays, and tools to bundle it for the web or as an executable.

Check out the online demo at: https://slashie.net/jsrl

What is this good for? the idea is: you take this simple game and start adding and transforming it into what makes your roguelike unique!


  • Player can walk around
  • Raycasting Field of View algorithm
  • Player can move between persistent levels
  • Enemies move around chasing the player
  • Player can pick up, drop and use items (including using items on a given direction)
  • Player remember visited maps
  • A simple Being class based on Races definitions, with random and follow player intents
  • A simple Item class based on Item Type definitions
  • Infrastructure for Level Generation
  • Line wrap text boxes

How to use

JSRL is designed for you to take a snapshot of the repository, and then part ways with it to create your game.

Tutorials on how to create your game around the basic codebase will come soon.

Games created from JSRL

Version History

  • 0.0.4 - November 26, 2022 - PIXI graphical version
  • 0.0.3 - November 19, 2022 - Electron packaging, viewport scaling
  • 0.0.2 - March 2021 - Added support for static maps loading
  • 0.0.1 - November 2017 - Initial version based on PokemonRL codebase