CarenStridberg Posted December 3, 2023 Share Posted December 3, 2023 I divided the game area into four areas: A, B, C, and the outside area. The pink triangle represents the character. Zombies outside area A: these zombies will be totally ignored by the game, and their data will not be modified at all. These zombies are actually "dead", so I call this area "THE DEAD AREA". Zombies in area A: 1. Any zombie getting out of this area will be deleted at all. 2. New zombies will spawn at ther edge of this area. In fact, if you want the density of zombies to be a constant (e.g., ρ), and the average speed of zombies is v, and spawning speed of zombies is p (its unit is s^-1 * m^-1, or tick^-1 * m^-1, or something like that. p is the amout of zombies spawned per second on unit length), you will find: p * C = ρ * C * v / 2 that is: p = ρv / 2 (C is assumed to be the grith of this area, and it is eliminated) and that means you can control the amout of zombies by controlling the spawing speed. If you want to furtehr divide this area(area A) into more parts (e.g., towns, forests and so on), you can apply this process to them one by one. And finnally, the density of the zombies will be a constant in area A. that will prevent zombies from stacking in the inactive area of the game. 3. Zombies in this area will move, and all kind of zombies will be treated equally(i.e., no differences between walking zombies and crawlling zombies) to simplify the calculation. Zombies in area B: area B is the active area. Zomvbies there will participate in normal game process. Zombies in area C: the visible area. Link to comment Share on other sites More sharing options...
getstoopid Posted December 4, 2023 Share Posted December 4, 2023 Sounds like minecraft spawning/despawning logic? I think that this wouldn't apply to pz because of zombie migration, even if it feels somewhat broken sometimes. Link to comment Share on other sites More sharing options...
CarenStridberg Posted December 5, 2023 Author Share Posted December 5, 2023 20 hours ago, getstoopid said: Sounds like minecraft spawning/despawning logic? I think that this wouldn't apply to pz because of zombie migration, even if it feels somewhat broken sometimes. oh that does't matter. zombie migration happens in area B and C only. Link to comment Share on other sites More sharing options...
PoshRocketeer Posted December 6, 2023 Share Posted December 6, 2023 I understand what you're suggesting but my question is... why? Link to comment Share on other sites More sharing options...
CarenStridberg Posted December 6, 2023 Author Share Posted December 6, 2023 8 hours ago, PoshRocketeer said: I understand what you're suggesting but my question is... why? if you stays in your house for a looog time, you will find that a large number of zombies have spawned at the edge of the block. that's because each block has a spawning limit, when the number of zombies is below the limit, they will keep spawning at the edge of this block, and that's unnatural. This new mechanism is designed to avoid this situation while keep zombies 'alive'. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now