CodeBase - 2D Tile based scrolling with collision
Return to the CodeBase listing
Category: Basic 2D
Version: 1.5
Information
Uploaded: 30th Apr 2005 19:06
Modified: 13th Aug 2005 21:41
Author: pizzaman
Summary
An example of how to scroll a tile based map in 2D, with collision implemented.
Full Description
This is an example of how to scroll a tile based map in 2D, with collision implemented. It uses data staments to store the map which is then transferred to an array. The array is then used to display the correct images on screen.<br /> <br /> For the player (a box), 4 collision points are set around it, and if one of the collision points detects a tile that it cannot pass through, the players coordinates are set back to the coordinates before they collided.
Comments
No comments yet.