42 lines
2.9 KiB
JavaScript
42 lines
2.9 KiB
JavaScript
/** -------------------------------------------------------------------
|
|
* Tile map for caa-game
|
|
* Index for tilemap file
|
|
*
|
|
* 0. Corner top-left
|
|
* 1. normal top wall middle piece
|
|
* 2. Corner top -> left wall
|
|
* 3. Left wall
|
|
* 4. top wall before corner
|
|
* 5. corner top -> right wall
|
|
* 6. normal right wall piece
|
|
* 7. Corner right -> top
|
|
* 8. Corner right -> bottom
|
|
* 9. bottom wall piece before 8.
|
|
* 10. normal bottom wall piece
|
|
* 11. Corner bottom -> right
|
|
* 12. Corner right -> bottom
|
|
* 13. Corner bottom -> left
|
|
* 14. Bottom wall piece before 13.
|
|
* 15. Corner left -> bottom
|
|
* 16. Normal floor tile
|
|
* 17. +-shaped floor tile
|
|
* 18. Heavily cracked floor tile
|
|
* 19. Lightly cracked floor tile
|
|
* 20. Normal brick wall 1
|
|
* 21. Normal brick wall 2
|
|
* 22. Normal brick wall 3
|
|
* 23. blood brick wall 1
|
|
* 24. blood brick wall 2
|
|
* 25. blood brick wall 3
|
|
* 26. light vines brick wall 1
|
|
* 27. light vines brick wall 2
|
|
* 28. light vines brick wall 3
|
|
* 29. heavy vines brick wall 1
|
|
* 30. heavy vines brick wall 2
|
|
* 31. heavy vines brick wall 3
|
|
* 32. Chest closed
|
|
* 33. Chest opened
|
|
* 34. Rock 1
|
|
* 35. Rock 2
|
|
------------------------------------------------------------------- */
|
|
module.exports=[{x:0,y:0,walkable:!1},{x:16,y:0,walkable:!1},{x:32,y:0,walkable:!1},{x:48,y:0,walkable:!1},{x:64,y:0,walkable:!1},{x:0,y:16,walkable:!1},{x:16,y:16,walkable:!1},{x:32,y:16,walkable:!1},{x:48,y:16,walkable:!1},{x:64,y:16,walkable:!1},{x:0,y:32,walkable:!1},{x:16,y:32,walkable:!1},{x:32,y:32,walkable:!1},{x:48,y:32,walkable:!1},{x:64,y:32,walkable:!1},{x:0,y:48,walkable:!1},{x:16,y:48,walkable:!0},{x:32,y:48,walkable:!0},{x:48,y:48,walkable:!0},{x:64,y:48,walkable:!0},{x:0,y:64,walkable:!1},{x:16,y:64,walkable:!1},{x:32,y:64,walkable:!1},{x:48,y:64,walkable:!1},{x:64,y:64,walkable:!1},{x:0,y:80,walkable:!1},{x:16,y:80,walkable:!1},{x:32,y:80,walkable:!1},{x:48,y:80,walkable:!1},{x:64,y:80,walkable:!1},{x:0,y:96,walkable:!1},{x:16,y:96,walkable:!1},{x:32,y:96,walkable:!1},{x:48,y:96,walkable:!1},{x:64,y:96,walkable:!1},{x:0,y:112,walkable:!1}]; |