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 :)



Great game, small bug. When we are in the game and we go back to the menu, either from the pause menu or after the game over screen, you are not clearing the ds
table, and that is causing the menu screen to drop around 15 fps. After starting another round, it resets the dots, so in-game, it is not a problem.
add this in _initmenu
to fix this issue.
ds={} |



I added a small minimap in the bottom left corner.
- Toggle minimap from pause menu
- It will show all players as circles with color and proportional size
- Player is highlighted by a crosshair lines across the whole map
[Please log in to post a comment]