mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-10 18:47:23 -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:
parent
c72c4d5768
commit
0e0ad09e70
@ -172,7 +172,7 @@ func (v *AnimatedEntity) Render(target *ebiten.Image, offsetX, offsetY int) {
|
||||
|
||||
// Location within the current tile
|
||||
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
|
||||
opts := &ebiten.DrawImageOptions{}
|
||||
|
Loading…
Reference in New Issue
Block a user