Java - 2d Array Tile Map Collision
- by Corey
How would I go about making certain tiles in my array collide with my player? Like say I want every number 2 in the array to collide. I am reading my array from a txt file if that matters and I am using the slick2d library.
Here is my code if needed.
public class Tiles {
Image[] tiles = new Image[3];
int[][] map = new int[500][500];
Image…