The Enemy - Wave04: Rock Slime
Yes, well, when I came across this on my graphic collecting, I though "this is weird! I must include it!" You actually need to see it animated to understand why, it morphs into three blobs and then morphs back into one again in a fluid, almost liquid fashion, something you don't see rock doing every day!I wanted to break up the wave of ships with something different, and this was it but in what way should it 'appear' to the player? I didn't really want it in the same place on screen as the player could easily line up and just plow shots into it so I decided it must move somehow, also, it doesn't shoot anything so it needed to be quite tough.
Looking back through the 'sine wave' topic I created on the GMC (see The Enemy - Wave03:Bioships), tsg1zzn actually came up with a formula for a sine wave which i didn't use, but I did now and adapted it for the Rock Slime
x += 2;
offset = 200;
str_x = 20;
str_y = .1;
y = offset + sin(x*str_y)*str_x;
The Rock Slime moved up and down in a smooth wave just enough to move out of range of the player's shots. I then placed a load of them on the level (they weren't 'created', they were on the level from the start but quite a way away) so when the player reached them, the Bio Ship wave just ends and the player is faced with all these Rock Slimes moving up and down, they take quite a bit to hit as well (6 hits I think).




