A clone of the popular agar.io for Pico8, created on a rainy Saturday morning for fun.
Controls
Arrows to move in the desired direction.
Future updates
Several upgrades planned, coming soon
- improved performance for larger maps and number of enemies
- X to shoot/O to splice
- improved bot AI to chase/escape
Feel free to leave your feedback and suggestions!




.png)
I think I may have messed something up...
I was previously at around 12k, somewhere past 10k at least and this randomly happened. All of my size disappeared and I became extremely tiny, I'm not extremely sure but it may have been the size of a pixel




@Waterwool that happended because of overflow if you grow more than ~32k. I've now fixed this and the game is won at 30k. Thanks for the report!



this is fun!
I think your distance function («len») can be made more efficient by avoiding sqrt: https://www.lexaloffle.com/bbs/?tid=36059



@merwok thanks for the link, that was an interesting read! For checking whether a blob can eat another, I use this function, which avoids overflow and sqrt.
function inrange(a,b,l) local dx = abs(a.x-b.x) local dy = abs(a.y-b.y) return dx<=l and dy<=l and (dx^2+dy^2<=l^2) end |
The len
I only use for the player input/direction to get slightly more precise input :)
[Please log in to post a comment]