SimonGreenaway / QL-Space-Invaders

Space Invaders for the Sinclair QL
MIT License
2 stars 1 forks source link

moon background #36

Closed JB1zzel closed 7 months ago

JB1zzel commented 7 months ago

Would it be possible to add a moon background?

See example in 4 colour mode:

image

SimonGreenaway commented 7 months ago

I like! What is the source of this image? Or better, can you do the above in mode 8?

JB1zzel commented 7 months ago

Very rough mock up

spacei

SimonGreenaway commented 7 months ago

No panic, I have a HQ image I can convert....

JB1zzel commented 7 months ago

image Here! in Mode 8. Can be made darker if needed.

SimonGreenaway commented 7 months ago

image

SimonGreenaway commented 7 months ago

It looks great! Maybe a little darker?

JB1zzel commented 7 months ago

image

Darker - and moved the moon up a little for a clearer hud

image

2 versions

SimonGreenaway commented 7 months ago

image

SimonGreenaway commented 7 months ago

However, the moon plays havoc with the collison detection for the bullets. So, it basically becomes a large base for the player! I'll have to think how to fix that.

JB1zzel commented 7 months ago

Does collision look for green pixels? I could try a no-green image?

SimonGreenaway commented 7 months ago

That might work. Only look for green pixels for the invaders bullets and white for the invaders....

SimonGreenaway commented 7 months ago

A green mask ANDed with the screen should quickly do the green. White... hmmm....

SimonGreenaway commented 7 months ago

And..... damage to bases won't show the moonscape behind. Tricky.

SimonGreenaway commented 7 months ago

Got the bullets working...

SimonGreenaway commented 7 months ago

image

Oh yeah, green is part of yellow!

JB1zzel commented 7 months ago

That looks good, does it work?