Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

As promised, setting popularity to a perfect 1000 creates a scenario in which there is no delay in customer spawns. The result is a human serpent that brings my poor chromebook down to <20 fps with some external browser lag as well. Personally, I'm impressed it runs so well with that many entities and unoptimized javascript behind it. Their pathfinding becomes somewhat more clear as you watch the chaos unfold, but all the chairs on the map aren't enough to satisfy them. 

- There are some interesting caps with how the people wait in line. As many as the can will occupy a chair at a time, and the remainder should line up behind them. However, at very high populations, there is a cap on how many will attempt to share a seat, and the line has breaks in it. The people are all still in a line, but they have some preset idea about how many may occupy each segment and generate splits with empty space accordingly.

- By overloading the entities, I was also able to get them to enter the 4th dimension and walk through my tables with no respect for the laws of physics. Here is a screenshot of the mess I made https://imgpile.com/i/d1uvG2.

Did you write this entire thing in plain javascript?

A good bit of the code is in plain javascript. Though I outsourced pathfinding to an external library for efficiency's sake.