Trapping Circles

Trapping Circles

This game is from ldjam.com, which is currently unavailable.
You can try viewing the original page on Web Archive (may not load correctly).
overall: 3.36
fun: 3.62
innovation: 2.67
theme: 3.12
graphics: 2.64
humor: 1.69
mood: 2.36
Control with arrows, wasd, dpad or any of the analog sticks on a xbox controller. Build walls by enclosing an area without enemies. Enemies take damage when hitting walls, but not when hitting each other. Defeat all enemies to win the level and advance to the next. The more enemies you have, the worse it is. How many can you handle?

Tested in Chrome and Firefox, somethings off in Edge but it unbelievably almost works.

![01.png](https://rialgar.github.io/LD40/index.xhtml)
Web/HTML5/WebGL

Source

Notes:


Renders entirely in the fragment shader, because I can. Not the most performant solution, quite a bit of texture sampling going on because I use data textures to pass in the data. Also I should not redraw the unchanging bits each frame. But it works!

Inspired by JezzBalls and another game from that era which I do not remember the name of. You controlled a Spider and had to fill the screen in the same manner you do in this game. But your enemy was a snake and your goal was some percentage of the screen covered, at which point the snake just left through a hole.
Found a bug?
Tell us on Discord