add init with ten func to sprites-layer.