ondras / rot.js

ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!
https://ondras.github.io/rot.js/hp/
BSD 3-Clause "New" or "Revised" License
2.33k stars 254 forks source link

npm releases not up to date #81

Closed fritzy closed 7 years ago

fritzy commented 8 years ago

The documentation says I should be able to forceSquareRatio, which doesn't work from the npm release, but does for the rot.min.js download. I'd rather be able to rely on my my package.json file for managing libraries. Would you like help keeping this up to date?

ondras commented 8 years ago

Hi,

I just published a fresh npm update. Please let me know if this stuff works for you, as npm is still not the main way of distributing rot.js :)

mattiascibien commented 8 years ago

I tried it but whenever I do require('rot-js') node says it cannot find the module.

ondras commented 8 years ago

I tried it but whenever I do require('rot-js') node says it cannot find the module.

You have to install the module first. Try npm install rot-js --save in your project's directory.

mattiascibien commented 8 years ago

@ondras I guess I did not installed it correctly. Today I seem to have 0.6.1 working. Sorry.

seiyria commented 8 years ago

If I install 0.6.1, I get an empty module as well. I noticed my builds started breaking and I could not figure out why. Have to revert to 0.6.0 to be able to use ROT.

ondras commented 8 years ago

I am not entirely sure what went wrong with 0.6.1. Please try npm updating to 0.6.2, this version works for me.