So, I'm still trying to dive into ruby and I thought of an idea;
Using 3 pictures (Head, Body, Tail) I would create a line of pictures that would move the head forward and extend the body, like so;
/T/B/B/B/H
The amount of bodies would change depending on what length I wanted, right.
So my train of thought was create an Array with the size of a parameter variable I.E; 5 and then use a for each loop to move/add more pictures. The problem is I can't seem to set the Array size passed 1 initially, so I'm wondering if I'm even on the right thought pattern?
Using 3 pictures (Head, Body, Tail) I would create a line of pictures that would move the head forward and extend the body, like so;
/T/B/B/B/H
The amount of bodies would change depending on what length I wanted, right.
So my train of thought was create an Array with the size of a parameter variable I.E; 5 and then use a for each loop to move/add more pictures. The problem is I can't seem to set the Array size passed 1 initially, so I'm wondering if I'm even on the right thought pattern?