Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wiirios/rpg

Text Based RPG
https://github.com/wiirios/rpg

game rpg vanilla-javascript

Last synced: about 1 month ago
JSON representation

Text Based RPG

Awesome Lists containing this project

README

        

RPG


First game I made using vanilla js, and here is the list of programs I used to create it:

**Set difficulty**

```js

localStorage.setItem('localMonsterLife', 35) // change the monster's life here

```

You may be wondering

> "why you chose to use localstorage to store life?"

The answer is simple: it's because this was the only way I could update the characters' lives in the middle of battle

**AND YES I know that localstorage saves files in the browser cache, to do this you just need to delete it, look for `winnd11.github.io` in your browser settings and delete the data.**

Play online here!

**NOTE: I recommend playing with full screen.**

MIT License


This project is licensed under MIT license, read more at docs.github