egordorichev / LastTry

:deciduous_tree: LastTry is open-source game written in Java, using LibGDX library and inspired by Terraria :deciduous_tree:
MIT License
119 stars 17 forks source link

Players have the same spawn point in all worlds. #98

Closed Col-E closed 7 years ago

Col-E commented 7 years ago

The spawn point is handled in the player data, and is not different in each world

In world_a spawn is in a valley. In world_b the same spot is inside a cliff. The player spawn is oriented around world_a, so spawning in a cliff in world_b occurs, instead of being placed on top of the cliff.

Solution: Spawn is handled by the world, not the player.

egordorichev commented 7 years ago

Hmm, I guess, the player should spawn in the center of the world, right? We only need to manage y-axis.

Col-E commented 7 years ago

Y-axis management done in the pull I'm working on.

Col-E commented 7 years ago

Resolved in https://github.com/egordorichev/LastTry/pull/103