https://coremission.net/gamedev/max-arvan/