Cursor Affordance

This isn’t a new idea to me but a new terminology is. So writing it down to help me remember. Cursor affordance! An important GUI feedback mechanism to allow a player to receive information about possible actions via the cursor/pointer. For example, can I attack...

Short-circuit Operators

FirstFunction() || SecondFunction() true || SecondFunction() true FirstFunction() && SecondFunction() false && SecondFunction() false...

Lerp Lerp Lerp

Linear interpolation known as Lerp. Why it’s called Lerp I do not know! Is it L for “Linear” with an erp for ‘ERPolation? Who knows. Take three inputs. A start value, and end value, and a percentage value between the start and the end. // In...