move some platform drawing logic into the camera