1 decade ago by PeterRobinson
Hi,
I'm having a bit of a tough time trying to add custom collision map tiles to my game. I'm pretty sure I've found the right place but I'm just not entirely sure how to go about it.
The code I'm working with is in the file: lib\impact\collision-map.js
I'm having a bit of a tough time trying to add custom collision map tiles to my game. I'm pretty sure I've found the right place but I'm just not entirely sure how to go about it.
The code I'm working with is in the file: lib\impact\collision-map.js
ig.CollisionMap.defaultTileDef = { /* 15 NE */ 5: [0,1, 1,M, SOLID], 6: [0,M, 1,N, SOLID], 7: [0,N, 1,0, SOLID], /* 22 NE */ 3: [0,1, 1,H, SOLID], 4: [0,H, 1,0, SOLID], /* 45 NE */ 2: [0,1, 1,0, SOLID], /* 67 NE */ 10: [H,1, 1,0, SOLID], 21: [0,1, H,0, SOLID], /* 75 NE */ 32: [M,1, 1,0, SOLID], 43: [N,1, M,0, SOLID], 54: [0,1, N,0, SOLID],