rornic / rustcraft

Another Minecraft clone, written in Rust.
Apache License 2.0
5 stars 0 forks source link

Always spawn the player on top of a block #6

Closed rornic closed 1 year ago

rornic commented 1 year ago

The player currently spawns at a hard-coded position in the world. This means they can spawn under the world when using random seeds. This change is to adjust spawning so that they always spawn on the top of a chunk (i.e. the spawn position is visible to the sky).