From 05088fa18b6a35a3e1ac365a25c41df9c36ea14b Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Tue, 31 Aug 2021 15:18:21 +1000 Subject: [PATCH] comment --- engine/iso.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/iso.go b/engine/iso.go index dfa8548..ee0c7fa 100644 --- a/engine/iso.go +++ b/engine/iso.go @@ -15,8 +15,9 @@ type IsoProjection struct { // Project projects a 3D coordinate into 2D. // If ZX = 0, x is unchanged; similarly for ZY and y. // Otherwise, x becomes x + z/ZX and y becomes y + z/ZY. -// This is because there's little reason for an isometric projection in a game -// to exaggerate the Z position. +// Dividing Z is used because there's little reason for an isometric projection +// 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. func (π IsoProjection) Project(x, y, z int) (xp, yp int) { xp, yp = x, y if π.ZX != 0 {