vinport16 / chunkball.github.io

breaking a voxel world into chunks, enable peer2peer setup with large maps
0 stars 0 forks source link

respawn and count as death when stuck in block #44

Open vinport16 opened 1 year ago

vinport16 commented 1 year ago

in anticipation of loadouts that can create blocks: when a player inevitably gets stuck in a new block that appears in their world, what should happen?

in this pull request:

how does this make you feel? I'm thinking that projectiles that place blocks will try not to build where players are, but there could always be a delay in where the server thinks players are vs where they actually are, so there's a good chance people will get stuck even if we try to avoid it.

mes258 commented 1 year ago

I was thinking about this as well. I think for any shot that creates blocks, it should have an explosion(s) that is greater than the volume of the blocks created. The explosion would happen first, killing anyone in the area. Then the blocks would be placed. That said, I'm sure there will be an edge case that results in a player getting stuck, so we still need this as a backup.