Hacker News new | ask | show | jobs
by jastanton 2998 days ago
This is great! About 6 years ago I created a worms destructible terrain using canvas. Still up on my website all these years later, no promises on code quality though :)

http://jastanton.com/experiments/Destructible-Terrain/

1 comments

My unfinished clone: https://kmbaragona.gitlab.io/volley/

WebGL (three.js) based. Keyboard input, arrow keys + space to fire. (no use on any mobile device) Terrain operations are done on vector svg-like objects, not pixels or polygons. Physics is also done in vector space. Terrain is converted to polygons just before rendering.

Was kind of fun :) With the right terrain the physics let you drive your tank round and round in a loop with centripetal force.