mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-10-04 17:25:09 -04:00
Render to center of subtile (#167)
This commit is contained in:
parent
3abfa51b8f
commit
ea134afe90
@ -162,10 +162,9 @@ func (v *AnimatedEntity) Render(target *ebiten.Image, offsetX, offsetY int) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Probably not pixel perfect, should render from center of sub-tile?
|
|
||||||
// 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
|
localY := ((v.subcellX + v.subcellY) * 8) - 4
|
||||||
|
|
||||||
// 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{}
|
||||||
|
Loading…
Reference in New Issue
Block a user