by IRBMe (22 Submissions)
Category: Games
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (14 Votes)
This is a DLL (full source included) written in pure assembly which will detect a collision between 2 sprites given their masks to the pixel. Because it is written in assembly, it is extremely fast. The fastest I got for 1 call on my 1.65 GHz was 2 milliseconds. The slowest being 11 milliseconds. You can use it outwith VB if you want (VB Calls to the DLL are slow). This is the second submission with some optmiization and also I fixed a bug whereby it raised an access violation when used with compiled exe's. If you like it, please vote and leave some feedback. ;)
Download Collision detection for games written in machine code (14 KB)