Base code platform mainly imported from glZombies