Space Invaders - Defense Thing

So simple question, what would be the best way to design the defense bits in space invaders?

I am curious if it should be done using individual little sprites, 6x6, then when they are hit, alter the pixels of that sprite to show the noise/damage effect.

How would you do it?

If for whatever reason you are unaware what I am even on about, have a go and shoot the defense structure:

Space Invaders

What they do is pretty simple:

They have 5 different ‘kinds’ of defense-blocks:

  1. The full Block
  2. The half blocks:
    2.1. The upper-left-filled half
    2.2. The upper-right-filled half
    2.3. The lower-left-filled half
    2.4. the lower-right-filled-half

And then they have 4 different damage levels, and for each defense-block they have 4 images for each damage level.

If you shoot a sprite it, the damage level decreases, the sprite changes. If you shoot it 4 times, it disappears. :slight_smile:

But thats not interesting enough, of course. And it’s too easy to implement, too, I’m curious about the other ideas! :smiley:

Yeah I thought it was something like that, but that is quit a few sprites for something so trivial.

Is it not possible to generate a little bit of noise on the current sprite for every damage level and alpha the pixels? lol

Yeah of course it is :slight_smile:

You might want to look into Destructible terrain, GameDevTuts+ always makes very, very good gamedevelopment articles ^^

Thank you!

I’ll have a look over it soon as I am home :smiley: