A roguelike developer's diary.
One day a student came to Moon and said, 'I understand how to avoid using BIGNUMs! We will simply use floats!' Moon struck the student with a stick. The student was enlightened.
Hey, it runs perfectly smooth for me using Chrome.It's handy that you can reach infinite negative hp without dying, since all the monsters on the level swarm you right away. :)
You might be interested in my JS roguelike: http://code.google.com/p/js-like/ :)Demo installation: http://ondras.zarovi.cz/js-like/
Excuse my ignorance, but what does the | operator do?
(Spends more than 10 seconds looking).Ah. Bitwise or - sneaky taking advantage of the truncate operation. I use Math.floor() which I'm guessing is slower.
Post a Comment