izissise / PFA

Tek3 End of Year's Project
GNU General Public License v3.0
0 stars 0 forks source link

Chunk's background generation on client's side #14

Closed Tastyep closed 9 years ago

Tastyep commented 9 years ago

Because it doesn't change the game much, I think the background tiles could be generated on the client's side. Plus considering the client's seed / server's seed is the same there should be normaly no changes. The main advantage should be the size of the data on the network divided by 2.

What do you think about this ?

izissise commented 9 years ago

So the background would not be modifiable by players ? Also is it not the point of doing the generation on the server side to not send the world's seed so cheating is harder ?

Christopher-Steel commented 9 years ago

Not sending the seed isn't that important, since the clients don't know our generation algorithm which means that they cannot use the seed to guess generation info.

I'd say that generation happens on the server side to prevent third party software from connecting to the server and generating chunks in whatever way they want them to be (ressource spawning, generating buildings, etc).

If we are following Terraria and Starbound on this then background tiles should be editable by the players. For example a player should be able to build a wooden cabin and have the "wall" in the background be made of wood tiles or straw tiles or whatever he chooses to put there.

Tastyep commented 9 years ago

I Forgot the client can edit the background, let it as is