Mini diablo game with html5 canvas and javascript
Test the demo:
http://mitallast.github.io/diablo-js/
The main purpose of this repository is to continue evolving this project. We want to make contributing to this project as easy and transparent as possible, and we are grateful for contributing bug fixes and improvements. Read below to learn how you can take part in improving this project.
The map can be found in the var level
. You can add new value to the array to change the map layout.
The game work with few setInterval
.
There is one for the hp regeneration of the player, one for the rendering of the map, one for the movement of the entities.
Different class can be found to create object like Mob, Object, Wall, Player, etc...
Right now, everything can be found in the diablo.js file.
- Segment the code: Export function in different file to make it easier to read.
You can use jekyll with ruby to run a local server and test your feature on your computer.
Check the documentation
Tool for extracting original diablo resources: https://github.com/mitallast/diablo-js/tree/master/dttool
Tool for calculating and transforming primitive shadow for extracted monster & hero tiles: https://github.com/mitallast/diablo-js/tree/master/shadowmaker Builded shadowmaker https://github.com/mitallast/diablo-js/blob/master/shadowmaker.jar
Some shell scripts for batch update images: https://github.com/mitallast/diablo-js/blob/master/monsters/make.sh https://github.com/mitallast/diablo-js/blob/master/monsters/rename.sh
More information you can find at original research from blizzhackers: http://www.blizzhackers.cc/viewtopic.php?f=182&t=370174&start=0
This project is MIT licensed, as found in the LICENSE file.