Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipping issues #455

Open
vieiraa opened this issue Feb 1, 2020 · 2 comments
Open

Clipping issues #455

vieiraa opened this issue Feb 1, 2020 · 2 comments

Comments

@vieiraa
Copy link
Contributor

vieiraa commented Feb 1, 2020

Parts of the player's sprites can be seen through a wall:

image

@AJenbo
Copy link

AJenbo commented Feb 1, 2020

This is a hard one to solve, the problem stems from walls and floors being on the same tile. This makes it close to impossible to draw the tiles in an order that doesn't cause issues like this. The original game checked if you were moving in a diagonal and if that was the case it would redraw the tile you were moving in to. But this actually created new issues where it could draw on top of sprites on the other side of the wall.

DIABLO_20190428_063210

In the following video, you can see how the original render first renders the hero sticking through the wall, and then tries to cover it up but renders on top of the bookcase when doing do.
https://youtu.be/9JN_8shuKy0

Additionally, this also means that true transparency cannot be used since this method results in the same transparent tile being rendered multiple times.

p.s. the movement tracking fails when actors make sharp turns at walls, this can easily be done as you pass by Farnham's house: https://youtu.be/smZgepWpEA0

@wheybags
Copy link
Owner

wheybags commented Feb 2, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants