Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wiirios/rpg
- Owner: wiirios
- License: mit
- Created: 2024-06-05T18:46:40.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-25T01:15:37.000Z (6 months ago)
- Last Synced: 2024-11-13T18:45:23.918Z (about 2 months ago)
- Topics: game, rpg, vanilla-javascript
- Language: JavaScript
- Homepage: https://winnd11.github.io/RPG/
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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