stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

7h 45m 9s logged

Devlog #5: Wrote memory system

TL;DR: Wrote a memory system that holds the city state and sends changes that occurred to frontend


Goal for this session:

Make city.py track which cells changed since the last read, so the server can send small updates instead of the full state 10 times per second.

What I did:

Made a Cell and City class that hold info about… city and cell. Could have guessed tbh. Decided that each cell will represent one ip, and ips used by the same process will spawn (if possible) neighboring each another so we can get distinct districts.

Problems I hit:

My first grid generating algorithm could not spawn cells in an even way around the center. I used ai to help me with the math needed for the new one. It now works really good.

What I learned

  • Yes
  • Math is hard

Next up:

  • Establish the actual connection that will use this code

MY LONGEST SESSION EVER

0
12

Comments 0

No comments yet. Be the first!