Jump to content
  • entries
    6
  • comments
    4
  • views
    9,875

Batari Hardware collision 30fps flicker


Piggles

644 views

I had a problem for a while figuring out what to do about making my flickering sprites collide properly. Using odd frame, even frame, I found that only sprites on the same frame could collide. So I varied my flickering with one sprite alternating frames, and the other doing two frames in a row. Attached is the code and a binary. You drive sprites A and B. C and D will wrap around the vertical edges. If you touch C or D, one of your sprites will die and turn into a skull, the other will keep moving. The reset switch resets the program. Flickered sprites look horrible, but at least now I have two p0s and p1s that'll crash into each other.

 

altflick.bas

 

altflick.bas.bin

1 Comment


Recommended Comments

It just occurred to me that this may be elementary to the experienced Bb programmer. And certainly for the 6507 programmer who by his nature will be sure his sprites make use of hardware collision. However, I suppose if I struggled with it, then perhaps someone else did too. Or at least a new coder can benefit from my mistakes and not have to stumble with silliness and focus on actual gameplay.

 

What to do with it now? I suppose I ought to write a game....

 

 

...and finish it this time...

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...