honesty
This commit is contained in:
parent
05088fa18b
commit
36336c67b9
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ type IsoProjection struct {
|
||||||
// in a game to exaggerate the Z position, and integers are used to preserve
|
// in a game to exaggerate the Z position, and integers are used to preserve
|
||||||
// "pixel perfect" calculation in case you are making the next Celeste.
|
// "pixel perfect" calculation in case you are making the next Celeste.
|
||||||
func (π IsoProjection) Project(x, y, z int) (xp, yp int) {
|
func (π IsoProjection) Project(x, y, z int) (xp, yp int) {
|
||||||
|
// I'm using the π character because I'm a maths wanker
|
||||||
xp, yp = x, y
|
xp, yp = x, y
|
||||||
if π.ZX != 0 {
|
if π.ZX != 0 {
|
||||||
xp += z / π.ZX
|
xp += z / π.ZX
|
||||||
|
|
Loading…
Reference in a new issue