Games with physics thanks to HTML5 and JS. The programmer simulates the movement of tissue
The programmer, who calls himself Stuffit, published the source code on the Codepen portal. The code simulates the physics of tissue. Uses HTML5, Canvas, CSS and JavaScript, approximately 300 lines of code. Fabric without texture, simple mesh, but for demonstration purposes it serves perfectly.
There is an opportunity to test the code directly on Codepen If you pull the mouse very hard, the canvas may tear. The simplicity of the code, which only needs a browser to work with, is impressive. It gives an idea of the direction in which web games will develop. Staffit has already created several similar toys. ')
Translation from Czech source