TheMaverickProgrammer / OpenNetBattle

An open source card-based battle engine written in modern C++
GNU General Public License v3.0
197 stars 41 forks source link

Fix tile origin #149

Closed ArthurCose closed 2 years ago

ArthurCose commented 2 years ago

The center of the tile was calculated as lower than the real center as it used the entire texture height, rather than just the surface height (texture height - overlap height)

Left is the fix, Right is old: fixed centers

TheMaverickProgrammer commented 2 years ago

I'd like to keep the engine open ended and tiles have their own origin to denote center placement.