1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-16 01:17:10 -05:00

Adjust sub-tile rendering offset. (#182)

-5 Y when rendering based on sub-tile matches real D2 (at least for
rendering act 1 stash)
This commit is contained in:
Ziemas 2019-11-16 01:48:49 +01:00 committed by Tim Sarbin
parent c72c4d5768
commit 0e0ad09e70

View File

@ -172,7 +172,7 @@ func (v *AnimatedEntity) Render(target *ebiten.Image, offsetX, offsetY int) {
// Location within the current tile // Location within the current tile
localX := (v.subcellX - v.subcellY) * 16 localX := (v.subcellX - v.subcellY) * 16
localY := ((v.subcellX + v.subcellY) * 8) - 4 localY := ((v.subcellX + v.subcellY) * 8) - 5
// TODO: Transparency op maybe, but it'l murder batch calls // TODO: Transparency op maybe, but it'l murder batch calls
opts := &ebiten.DrawImageOptions{} opts := &ebiten.DrawImageOptions{}