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

http://retrograde.trustno1.org/pics/JBIRD2.GIF

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

thanks

please explain again.