stickyPiston
1bb9448408
Doubled the size of the tiles (tilemap.png, tilemap.min.js, level.js). Doubled the size of the player (player.js). Added the source files of the tilemap (res/aseprite).
46 lines
3.2 KiB
JavaScript
46 lines
3.2 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
|
|
* 32. 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
|
|
* 64. Chest closed
|
|
* 33. Chest opened
|
|
* 34. Rock 1
|
|
* 35. Rock 2
|
|
* 36. door
|
|
* 37. Ladder (should be over wall)
|
|
* 38. Torch
|
|
* 39. Staircase
|
|
------------------------------------------------------------------- */
|
|
module.exports=[{x:0,y:0,walkable:!1},{x:32,y:0,walkable:!1},{x:64,y:0,walkable:!1},{x:96,y:0,walkable:!1},{x:128,y:0,walkable:!1},{x:0,y:32,walkable:!1},{x:32,y:32,walkable:!1},{x:64,y:32,walkable:!1},{x:96,y:32,walkable:!1},{x:128,y:32,walkable:!1},{x:0,y:64,walkable:!1},{x:32,y:64,walkable:!1},{x:64,y:64,walkable:!1},{x:96,y:64,walkable:!1},{x:128,y:64,walkable:!1},{x:0,y:96,walkable:!1},{x:32,y:96,walkable:!0},{x:64,y:96,walkable:!0},{x:96,y:96,walkable:!0},{x:128,y:96,walkable:!0},{x:0,y:128,walkable:!1},{x:32,y:128,walkable:!1},{x:64,y:128,walkable:!1},{x:96,y:128,walkable:!1},{x:128,y:128,walkable:!1},{x:0,y:80,walkable:!1},{x:32,y:80,walkable:!1},{x:64,y:80,walkable:!1},{x:96,y:80,walkable:!1},{x:128,y:80,walkable:!1},{x:0,y:96,walkable:!1},{x:32,y:96,walkable:!1},{x:64,y:96,walkable:!1},{x:96,y:96,walkable:!1},{x:128,y:96,walkable:!1},{x:0,y:224,walkable:!1},{x:32,y:224,walkable:!1},{x:64,y:224,walkable:!1},{x:96,y:224,walkable:!1},{x:128,y:224,walkable:!1}]; |