Hacker Newsnew | past | comments | ask | show | jobs | submit | hughsk's commentslogin


Just tried it on the two examples I provided. It doesn't remove conditionals, which was basically my whole point

FWIW, I don't think it can without assuming the input lies in a certain range.


Note:

> We may share information, including personally identifying information, with our Affiliates (companies that are part of our corporate groups of companies, including but not limited to Facebook) to help provide, understand, and improve our Services.


Alcohol is a drug. Unlike most other drugs though, alcohol withdrawal can be life-threatening and often requires hospitalization: http://en.wikipedia.org/wiki/Alcohol_withdrawal_syndrome


Hurry! http://hughsk.github.io/ludum-dare-27/

All JS, using browserify and a bunch of modules but no framework :)


Voting link?

http://www.ludumdare.com/compo/ludum-dare-27/?action=preview...

I found it on the LD site, but others might not.

Lovely Perlin? How how do you do the collisions exactly?


Thanks! Collisions/physics are handled by box2dweb, using a 2D greedy mesher to simplify the grid into quads: https://github.com/hughsk/continuous-box2d

The terrain is a mix of a cellular automaton (https://github.com/hughsk/cave-automata-2d) with a bit of perlin noise to fill in the gaps :)


Impressive


Thanks! Fairly feasible - the harder part would be resolving the correct files, with a small tweak to the API it'd be possible to pass that list to the tool directly.


Given one or more node-style CommonJS files, it resolves the files that are actually being used before including them. I'm looking to add a few other metrics, but I've updated the title to something more appropriate :)


Ah, the resolution part is great ! The traditional OO crowd loves their metrics visualizers, so you can be on the vanguard of a new fetish in js-land :D !


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: