by MDavis (1 Submission)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(2 Votes)

Very Simple Collision Detection.
The intent here is for simple collision detection between two shapes only. Speed and precision were not needed, nor considered.
Mostly Written by MDavis, with credit given to Rosh Mendis (very cool soccer game post on VBC!) for the actual collision function.
I'm fairly new to VB and I needed a collision detection for a small game I am writing.
My web searches led me to complicated (to me, anyway:)) posts that had a lot more than just collision, which confused me.
So, I wrote this to learn more for myself, and now that I understand it better, I thought I'd post it to possibly help someone else.
Inputs
N/A
Assumes
N/A
Code Returns
N/A
Side Effects
Laughing at the simplicity, perhaps?
API DeclarationsN/A