NetLogo banner

Home
Download
Help
Forum
Resources
Extensions
FAQ
NetLogo Publications
Contact Us
Donate

Models:
Library
Community
Modeling Commons

Beginners Interactive NetLogo Dictionary (BIND)
NetLogo Dictionary

User Manuals:
Web
Printable
Chinese
Czech
Farsi / Persian
Japanese
Spanish

  Donate

NetLogo User Community Models

(back to the NetLogo User Community Models)

[screen shot]

Download
If clicking does not initiate a download, try right clicking or control clicking and choosing "Save" or "Download".

Try It in NetLogo Web

## Brianna Tieu, Samson Wu (Period 4)

## WHAT IS IT?

The model is a recreation of the game Agar.io, in the language of Netlogo. The ultimate goal is to grow your cell as big as possible by eating other cells, which you can only do if you are bigger than the other cell.

## HOW IT WORKS

Our overall design plan was to build the world by adding elements of the simulation one and by one, which was how we put together the program. We first envisioned what we wanted our world to look like and then implemented this into the setup button. The setup button consists of the world design, bot placement (bots represent other players), and pellet placement (pellets represent food/non-moving cells). From here, we coded the interactive features of the model, like the moving bots. These bots are designed to go after the closest turtle, to recreate the multiplayer experience. Some interesting coding parts would be the implementation of the user message and the unique mouse control. Overall, there are no major changes from our prototype to our model.

## HOW TO USE IT

To start the model, click the setup button. Once you hit the setup button, hit the start button to begin playing the game. Once you have hit the start button, you can control the turtle centered at the origin of the world, labelled "you". From here, try to eat the smaller cells to gain size to become the largest cell in the world! You can view your score on the monitor labelled "cell size". You can also alter the difficulty by changing the slider other_players. The higher slider other_players is, the more difficult the game becomes.

Once you get the "Game Over!" message, hit "OK" and "setup" to play again!

## CREDITS AND REFERENCES

https://stackoverflow.com/questions/54171164/how-can-i-compare-the-size-of-2-turtles-within-my-code

http://www.netlogoweb.org/launch#http://ccl.northwestern.edu/netlogo/models/models/Sample%20Models/Games/Pac-Man.nlogo

https://stackoverflow.com/questions/65867804/two-agents-of-the-same-breed

(back to the NetLogo User Community Models)