nskins / goby

Command-line role-playing game framework
MIT License
122 stars 56 forks source link

Respawn Location #125

Closed nskins closed 6 years ago

nskins commented 6 years ago

The Map variable regen_coords has been removed in favor of a Player variable named respawn_location. Originally, each Map would provide the (y,x) coordinates at which one would respawn on that Map. However, it makes more sense for the Player to have a more global respawn point that can possibly change throughout the game. For instance, if the Player dies in a cave, it might make sense to respawn somewhere in the previous city.

This is a feature I've long had in the back of my head so please enjoy!

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling db8ab0f51240f5974b301299bc79121d18a6bc09 on respawn into c7091e0d4ec86959e4bad3f878a947ba56242ab1 on 0.2.0.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 63bf73d2ca1a7f56d7afdd738ae1103728402c65 on respawn into c7091e0d4ec86959e4bad3f878a947ba56242ab1 on 0.2.0.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 7613eec89b0c471127011fe09f6b78b04fd75a6d on respawn into c7091e0d4ec86959e4bad3f878a947ba56242ab1 on 0.2.0.