Hacker News new | ask | show | jobs
by beebs93 4206 days ago
Ha, very slick - nice work!

The fabric makes timing a bit harder, but it's still a lot of fun.

2 comments

Pressing N for debug mode freezes the fabric. :)

var TOGGLE_CLEAR = 'C'.charCodeAt(0); var TOGGLE_BOX = 'B'.charCodeAt(0); var TOGGLE_UNDO_BOX = 'U'.charCodeAt(0); var TOGGLE_FLIPFLOP = 'F'.charCodeAt(0); var TOGGLE_RENDER = 'R'.charCodeAt(0); var TOGGLE_DEBUG = 'N'.charCodeAt(0);

Thanks!
Have you considered trying to make the fabric alter the gameplay (e.g. make things travel faster on warped fabric)?

Great work btw.

Thanks!

There's definitely room for experimentation! At some point I want to incorporate the cloth more in the actual gameplay itself, whether it's in this demo or something else.

It's a bit limited though, the forces exerted on the grid need to be within a relatively narrow range if the simulation is to obey the laws of sanity.