a carmack scroll algorithm test project coding in AS3