Jump to navigation Jump to search
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.
- Download a copy of the repository (https://github.com/slashman/jsrl/archive/refs/heads/master.zip).
- Modify the code within the `./src/js` folder to create your game.
Games created from JSRL
- 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
- Uses unicodetiles for IO - https://tapiov.net/unicodetiles.js/
- Uses PIXI.JS for display