JavaScript Roguelike Template - The basics to start building your own
In this repo you will find a bare-bones roguelike with a character-based display, and tools to bundle it for the web.
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 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
git clone [email protected]:slashman/jsrl.git
cd jsrl
rm -rf .git
(Delete .git folder)- Create awesoem gaem
yarn install
ornpm install
yarn start
ornpm start
- Open your browser to
http://localhost:1234
yarn run build
ornpm run build
- Directory
dist
will contain the web directory you can serve
Uses unicodetiles for IO - http://tapiov.net/unicodetiles.js/