CodeBase - Automatic sliding sprite collision

Return to the CodeBase listing

Category: Sprite

Version: 2.0

0
0

Information

Uploaded: 27th Dec 2006 07:39

Modified: 28th Dec 2006 08:52

Author:  Code Dragon

Summary

Performs sliding collision between sprites

Full Description

Call resolve_spr_collision(moveable, stationary) to resolve sprite collision. moveable is the sprite that's allowed to move (a character) and stationary is the sprite that's not allowed to move (a wall). This function will do sliding collision on the sprites, no matter what shape they're in. (This doesn't support collision resolution for transparent pixels, it will treat all sprites as rectangles or squares)

Comments

No comments yet.