We made an endless runner! We used Box2D to simulate the physics world and detect collisions. We didn’t start from scratch, we owe big thanks to Christopher Caleb for his awesome open source endless runner. And also a special thanks to my Figment team: Antonio González, Alberto Montoya, Jorge Nolasco and Ismael Baltazar.
There are 5 different characters that make reference to the real Crayola products, each one has its own power. When you get hit enough times and your shell explodes, a bouncing boligoma lets you keep on playing until you either find another power-up or you die.
More on the technical side of things, we made use of a great memory management technique called object pooling, often used in this type of “endless” games. It’s useful when you need to reuse the same objects over and over again instead of destroying and recreating them, which would be costly.