mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-20 07:27:19 -05: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
|
||||
}
|
||||
|
||||
// TODO: Probably not pixel perfect, should render from center of sub-tile?
|
||||
// Location within the current tile
|
||||
localX := (v.subcellX - v.subcellY) * 16
|
||||
localY := (v.subcellX + v.subcellY) * 8
|
||||
localX := ((v.subcellX - v.subcellY) * 16)
|
||||
localY := ((v.subcellX + v.subcellY) * 8) - 4
|
||||
|
||||
// TODO: Transparency op maybe, but it'l murder batch calls
|
||||
opts := &ebiten.DrawImageOptions{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user