I recreated SimCity in NetLogo - enjoy!

88 views
Skip to first unread message

Bwill

unread,
Sep 7, 2022, 12:14:54 PM9/7/22
to netlogo-users

This was another creation to help me work through some basic concepts with NetLogo.  The best way for me to learn some kind of programming language or platform is to try to make fun little games.  This is one of those!

There are some obvious enhancements that could be done. Feel free to enhance to your hearts content. If you do, I just ask that you please share back to the repo for all to enjoy.

This isn't even close to Will Wright's original ground breaking game of the same name.  But, I feel like it's a pretty neat simile.  Most importantly, it's kind of fun to play :)


The big challenge I found was scaling this game/model.  I wanted the game board bigger which meant more turtles, and just more stuff going on.  I found that the game bogged down and so I had to decrease the size of the board.  I haven't really found a good way to "tune" a model from a performance perspective.  That's something I plan on digging into.  What's causing the model to bog down? Where is it getting tied up?  That kind of thing.

I hope playing this game and digging through the code helps you to learn NetLogo as much as it has helped me in making it.  

Enjoy!

https://github.com/Ramadamadingdang/NetLogo-CityBuilder

(Click the green code button, then "download zip file" to get the .nlogo file)

John Chen

unread,
Sep 7, 2022, 12:41:12 PM9/7/22
to Bwill, netlogo-users
Looks amazing!

I would like to invite you to share this on Turtle Universe :) In addition to what is supported on desktop, there are several features that could help you make the game better (e.g. touch control, more control over the interface, etc)

I just tried to import this and it seems that the game is working great. I don't know how to make the city work though!

screenshot-1920x1080-1.png

--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/c0993d98-6515-4887-a520-9dda4c753aedn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages