Texture coordinates of a pyramid of cubes

hi,
i plan to map a pyramid of cubes in a way as to be able to make textures flow down. just like the bird from the vintage game

any thoughts on how i can arrange the textures of all sides ? is it even possible via textures ?

thanks

please explain again.