Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need input on a possible bug in v3.5.0
#29
(01-21-2023, 04:59 PM)SMcNeill Wrote:
(01-21-2023, 04:38 PM)bplus Wrote: Can we do this for multicolor images colliding with multicolor images?

Maybe an outline of one shape outline collides with the outline of the other object shape.

Did 2 Asteroids ever collide with each other in that game?

That's usually how I mask all my collisions, when I'm using color collisions like these.  If you notice, I'm actually working and detecting color collision on a backdrop screen, rather than the visible display.  So, let's say I had a red, white, and blue starship, and a green, yellow, and purple enemy ship.  Those would be the images that display on the user's screen, but for my backdrop, I'd have a simple set of faded alpha blue (hero) pixels and faded alpha red (enemy) pixels, which I could then quickly check for blending in the backdrop using mem comparisons.  If necessary, I could assign a palette of various colors for different things (faded green for health, faded yellow for power-ups, ect), but all I'd have to do is check for those blended values (blue for hero + green for health = collision with a health object), to know how to interpret them.  Wink

very interesting the faded Color Collision!  The alpha channel gives many gift to the BASIC coders!
Reply


Messages In This Thread
RE: I need input on a possible bug in v3.5.0 - by TempodiBasic - 01-21-2023, 05:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is this a bug with Round or is it just me BarrySWTP 10 1,290 07-07-2025, 08:40 PM
Last Post: BarrySWTP
  Exiting FOR NEXT, maybe a bug? Version 4.1.0 on Linux Circlotron 4 866 05-09-2025, 02:22 AM
Last Post: Circlotron
  Mix mode input of a binary open file Question! doppler 5 1,504 11-28-2024, 03:06 PM
Last Post: Petr
  I have fallen in a bug or weird behaviour TempodiBasic 2 692 10-08-2024, 06:09 PM
Last Post: TempodiBasic
  3.13.1 bug report - keyboard characters swapped Circlotron 3 1,025 06-03-2024, 05:16 AM
Last Post: Circlotron

Forum Jump:


Users browsing this thread: 1 Guest(s)