Vault-Overseers / nuclear-14

Multiplayer survival role-playing game set in a post-nuclear apocalyptic world
https://nuclear14.com
GNU Affero General Public License v3.0
30 stars 49 forks source link

Table / Desk Sprite splitting / drawdepth #282

Open Peptide90 opened 3 weeks ago

Peptide90 commented 3 weeks ago

Essentially bounding boxes in this game suck, but to make them less bad it would be good to do the following. Look at the picture below: image You'll notice I'm standing on the table or drawns OVER the table sprite. However if I approach from the bottom as seen in the right table, I'd correctly be drawn OVER the table.

Same for the desk above, correctly over in one way but not the other.

Tables need their sprites split in half down across the X axis in the centre, and moved to another layer state.

Therefore we'd have two states per table which can be combined on the sprite component, but with a different drawdepth for both so you're correctly drawn under or over the table per direction.

Peptide90 commented 3 weeks ago

https://github.com/Vault-Overseers/nuclear-14/pull/281

Has the card table as above split into two sprite layers, however there is no current support for layers having their own drawdepths to make this work.