market tilemap draft

This commit is contained in:
Kelly Peng 2022-05-07 14:12:38 -04:00
parent 5ff8353e3a
commit e50465b866
5 changed files with 203 additions and 1 deletions

View File

@ -0,0 +1,145 @@
{
"columns":20,
"tileheight":16,
"tilewidth":16,
"tilecount":400,
"firstgid":1,
"imageheight":320,
"imagewidth":320,
"margin":0,
"spacing":0,
"name":"market_tileset",
"image":"shattered_sword_assets/tilemaps/market_tileset.png",
"background": 0,
"minroom": 5,
"entrance": {
"width": 40,
"height": 20,
"bottomLayer": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 83, 84, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, 24, 25, 26, 27, 28, 29, 29, 29, 29, 29, 30, 31, 32, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, 24, 103, 104, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 43, 44, 45, 46, 47, 48, 49, 49, 49, 49, 49, 50, 51, 52, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 43, 44, 123, 61, 61, 62, 63, 64, 65, 66, 66, 66, 66, 66, 66, 72, 63, 64, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 72, 63, 64, 65, 66, 66, 66, 66, 66, 66, 72, 63, 64, 124, 61, 61, 62, 63, 64, 85, 86, 87, 88, 89, 90, 91, 92, 63, 64, 85, 86, 87, 88, 68, 69, 70, 71, 89, 90, 91, 92, 63, 64, 85, 86, 87, 88, 89, 90, 91, 92, 63, 64, 124, 61, 61, 62, 63, 64, 85, 106, 107, 108, 109, 110, 111, 112, 63, 64, 105, 106, 107, 108, 128, 129, 130, 131, 109, 110, 111, 112, 63, 64, 105, 106, 107, 108, 109, 110, 111, 112, 63, 64, 124, 61, 61, 62, 63, 64, 125, 126, 126, 126, 126, 126, 126, 132, 63, 64, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 132, 63, 64, 125, 126, 126, 126, 126, 126, 126, 132, 63, 64, 124, 61, 61, 62, 63, 64, 127, 141, 142, 143, 148, 149, 150, 152, 63, 64, 127, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 152, 63, 64, 127, 141, 142, 143, 148, 149, 150, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 161, 162, 163, 168, 169, 170, 152, 63, 64, 127, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 152, 63, 64, 127, 161, 162, 163, 168, 169, 170, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 181, 182, 183, 188, 189, 190, 152, 63, 64, 127, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 152, 63, 64, 127, 181, 182, 183, 188, 189, 190, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 201, 202, 203, 208, 209, 210, 152, 63, 64, 127, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 152, 63, 64, 127, 201, 202, 203, 208, 209, 210, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 221, 222, 223, 228, 229, 230, 152, 63, 64, 127, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 152, 63, 64, 127, 221, 222, 223, 228, 229, 230, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 241, 242, 243, 248, 249, 250, 152, 63, 64, 127, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 152, 63, 64, 127, 241, 242, 243, 248, 249, 250, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 261, 262, 263, 268, 269, 270, 152, 63, 64, 127, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 152, 63, 64, 127, 261, 262, 263, 268, 269, 270, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 281, 282, 348, 349, 290, 290, 290, 290, 290, 290, 346, 347, 348, 349, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 346, 347, 348, 349, 290, 290, 290, 290, 290, 290, 346, 347, 287, 288, 61, 61, 301, 302, 368, 369, 290, 290, 290, 290, 290, 290, 366, 367, 368, 369, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 366, 367, 368, 369, 290, 290, 290, 290, 290, 290, 366, 367, 307, 308, 61, 61, 321, 322, 327, 328, 289, 289, 289, 289, 289, 61, 321, 322, 327, 328, 289, 289, 289, 289, 289, 289, 289, 289, 289, 61, 321, 322, 327, 328, 289, 289, 289, 289, 289, 61, 321, 322, 327, 328, 289],
"topLayer": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 365, 363, 362, 363, 362, 363, 363, 365, 365, 365, 365, 363, 362, 363, 362, 363, 362, 363, 362, 363, 363, 365, 365, 365, 365, 363, 362, 363, 362, 363, 363, 365, 0, 0, 0, 0, 0, 0, 0, 0, 365, 363, 362, 363, 362, 363, 363, 365, 365, 365, 365, 363, 362, 363, 362, 363, 362, 363, 362, 363, 363, 365, 365, 365, 365, 363, 362, 363, 362, 363, 363, 365, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"entrances": [
{
"x": 18,
"y": 0,
"width": 4,
"alt_tile": [0, 0]
}
],
"sprites": [
{
"type": "player",
"x": 17,
"y": 16
}
]
},
"exit": {
"width": 40,
"height": 20,
"bottomLayer": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 83, 84, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, 24, 25, 26, 27, 28, 29, 29, 29, 29, 29, 30, 31, 32, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, 24, 103, 104, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 43, 44, 45, 46, 47, 48, 49, 49, 49, 49, 49, 50, 51, 52, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 43, 44, 123, 61, 61, 62, 63, 64, 65, 66, 66, 66, 66, 66, 66, 72, 63, 64, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 72, 63, 64, 65, 66, 66, 66, 66, 66, 66, 72, 63, 64, 124, 61, 61, 62, 63, 64, 85, 86, 87, 88, 89, 90, 91, 92, 63, 64, 85, 86, 87, 88, 68, 69, 70, 71, 89, 90, 91, 92, 63, 64, 85, 86, 87, 88, 89, 90, 91, 92, 63, 64, 124, 61, 61, 62, 63, 64, 85, 106, 107, 108, 109, 110, 111, 112, 63, 64, 105, 106, 107, 108, 128, 129, 130, 131, 109, 110, 111, 112, 63, 64, 105, 106, 107, 108, 109, 110, 111, 112, 63, 64, 124, 61, 61, 62, 63, 64, 125, 126, 126, 126, 126, 126, 126, 132, 63, 64, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 132, 63, 64, 125, 126, 126, 126, 126, 126, 126, 132, 63, 64, 124, 61, 61, 62, 63, 64, 127, 141, 142, 143, 148, 149, 150, 152, 63, 64, 127, 290, 290, 290, 144, 145, 146, 147, 290, 290, 290, 152, 63, 64, 127, 141, 142, 143, 148, 149, 150, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 161, 162, 163, 168, 169, 170, 152, 63, 64, 127, 290, 290, 290, 164, 165, 166, 167, 290, 290, 290, 152, 63, 64, 127, 161, 162, 163, 168, 169, 170, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 181, 182, 183, 188, 189, 190, 152, 63, 64, 127, 290, 290, 290, 184, 185, 186, 187, 290, 290, 290, 152, 63, 64, 127, 181, 182, 183, 188, 189, 190, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 201, 202, 203, 208, 209, 210, 152, 63, 64, 127, 290, 290, 290, 204, 205, 206, 207, 290, 290, 290, 152, 63, 64, 127, 201, 202, 203, 208, 209, 210, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 221, 222, 223, 228, 229, 230, 152, 63, 64, 127, 290, 290, 290, 224, 225, 226, 227, 290, 290, 290, 152, 63, 64, 127, 221, 222, 223, 228, 229, 230, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 241, 242, 243, 248, 249, 250, 152, 63, 64, 127, 290, 290, 290, 244, 245, 246, 247, 290, 290, 290, 152, 63, 64, 127, 241, 242, 243, 248, 249, 250, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 261, 262, 263, 268, 269, 270, 152, 63, 64, 127, 290, 290, 290, 264, 265, 266, 267, 290, 290, 290, 152, 63, 64, 127, 261, 262, 263, 268, 269, 270, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61],
"topLayer": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 362, 363, 362, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 362, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 363, 0, 0, 0, 0, 363, 363, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 364, 361, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 363, 0, 0, 0, 0, 363, 363, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 364],
"objectLayer": [
{
"x": 16,
"y": 9
},
{
"x": 24,
"y": 12
},
{
"x": 5,
"y": 17
},
{
"x": 32,
"y": 17
}
],
"entrances": [
{
"x": 18,
"y": 19,
"width": 4,
"alt_tile": [341, 342]
}
]
},
"rooms": [
{
"width": 40,
"height": 20,
"weight": 2,
"bottomLayer": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 83, 84, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, 24, 25, 26, 27, 28, 29, 29, 29, 29, 29, 30, 31, 32, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, 24, 103, 104, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 43, 44, 45, 46, 47, 48, 49, 49, 49, 49, 49, 50, 51, 52, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 43, 44, 123, 61, 61, 62, 63, 64, 65, 66, 66, 66, 66, 66, 66, 72, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 65, 66, 66, 66, 66, 66, 66, 72, 63, 64, 124, 61, 61, 62, 63, 64, 85, 86, 87, 88, 89, 90, 91, 92, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 85, 86, 87, 88, 89, 90, 91, 92, 63, 64, 124, 61, 61, 62, 63, 64, 85, 106, 107, 108, 109, 110, 111, 112, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 105, 106, 107, 108, 109, 110, 111, 112, 63, 64, 124, 61, 61, 62, 63, 64, 125, 126, 126, 126, 126, 126, 126, 132, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 125, 126, 126, 126, 126, 126, 126, 132, 63, 64, 124, 61, 61, 62, 63, 64, 127, 141, 142, 143, 148, 149, 150, 152, 63, 64, 127, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 152, 63, 64, 127, 141, 142, 143, 148, 149, 150, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 161, 162, 163, 168, 169, 170, 152, 63, 64, 127, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 152, 63, 64, 127, 161, 162, 163, 168, 169, 170, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 181, 182, 183, 188, 189, 190, 152, 63, 64, 127, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 152, 63, 64, 127, 181, 182, 183, 188, 189, 190, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 201, 202, 203, 208, 209, 210, 152, 63, 64, 127, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 152, 63, 64, 127, 201, 202, 203, 208, 209, 210, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 221, 222, 223, 228, 229, 230, 152, 63, 64, 127, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 152, 63, 64, 127, 221, 222, 223, 228, 229, 230, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 241, 242, 243, 248, 249, 250, 152, 63, 64, 127, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 152, 63, 64, 127, 241, 242, 243, 248, 249, 250, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 261, 262, 263, 268, 269, 270, 152, 63, 64, 127, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 152, 63, 64, 127, 261, 262, 263, 268, 269, 270, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 67, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 67, 63, 64, 127, 290, 290, 290, 290, 290, 290, 67, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 67, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 67, 63, 64, 127, 290, 290, 290, 290, 290, 290, 67, 63, 64, 124, 61],
"topLayer": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 362, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 341, 362, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 0, 0, 0, 0, 361, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 363, 0, 0, 0, 0, 363, 363, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 364, 361, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 363, 363, 363, 363, 363, 363, 363, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 364],
"objectLayer": [
{
"x": 6,
"y": 16
},
{
"x": 22,
"y": 17
},
{
"x": 20,
"y": 5
}
],
"entrances": [
{
"x": 18,
"y": 0,
"width": 4,
"alt_tile": [0, 0]
},
{
"x": 18,
"y": 19,
"width": 4,
"alt_tile": [341, 342]
}
]
},
{
"width": 40,
"height": 20,
"weight": 2,
"bottomLayer": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 10, 11, 12, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, 4, 83, 84, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, 24, 25, 26, 27, 28, 29, 29, 29, 29, 29, 30, 31, 32, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, 24, 103, 104, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 43, 44, 45, 46, 47, 48, 49, 49, 49, 49, 49, 50, 51, 52, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 43, 44, 123, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 72, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 85, 86, 87, 88, 68, 69, 70, 71, 89, 90, 91, 92, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 105, 106, 107, 108, 128, 129, 130, 131, 109, 110, 111, 112, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 125, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 132, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 191, 192, 193, 194, 290, 152, 63, 64, 127, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 152, 63, 64, 127, 290, 191, 192, 193, 194, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 211, 212, 213, 214, 290, 152, 63, 64, 127, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 152, 63, 64, 127, 290, 211, 212, 213, 214, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 231, 232, 233, 234, 290, 152, 63, 64, 127, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 152, 63, 64, 127, 290, 231, 232, 233, 234, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 251, 252, 253, 254, 290, 152, 63, 64, 127, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 152, 63, 64, 127, 290, 251, 252, 253, 254, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61, 61, 62, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 152, 63, 64, 127, 290, 290, 290, 290, 290, 290, 152, 63, 64, 124, 61],
"topLayer": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 362, 363, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 363, 0, 0, 0, 0, 363, 363, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 364, 361, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 363, 363, 363, 363, 363, 363, 363, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 362, 363, 364],
"objectLayer": [
{
"x": 6,
"y": 4
},
{
"x": 32,
"y": 4
},
{
"x": 5,
"y": 17
},
{
"x": 30,
"y": 17
}
],
"entrances": [
{
"x": 18,
"y": 0,
"width": 4,
"alt_tile": [0, 0]
},
{
"x": 18,
"y": 19,
"width": 4,
"alt_tile": [341, 342]
}
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -44,6 +44,7 @@ import Porcelain from "./Porcelain";
import Tutorial from "./Tutorial"; import Tutorial from "./Tutorial";
import Greatwall from "./Greatwall"; import Greatwall from "./Greatwall";
import Snow from "./Snow"; import Snow from "./Snow";
import Market from "./Market";
import MainMenu from "./MainMenu"; import MainMenu from "./MainMenu";
// TODO // TODO

View File

@ -15,6 +15,7 @@ import Tutorial from "./Tutorial";
import Porcelain from "./Porcelain"; import Porcelain from "./Porcelain";
import Greatwall from './Greatwall'; import Greatwall from './Greatwall';
import Snow from './Snow'; import Snow from './Snow';
import Market from './Market';
import InputWrapper from "../Tools/InputWrapper"; import InputWrapper from "../Tools/InputWrapper";
import TextInput from "../../Wolfie2D/Nodes/UIElements/TextInput"; import TextInput from "../../Wolfie2D/Nodes/UIElements/TextInput";
@ -65,7 +66,14 @@ export default class Levels extends Scene {
snow.backgroundColor = Color.TRANSPARENT; snow.backgroundColor = Color.TRANSPARENT;
snow.onClickEventId = "snow"; snow.onClickEventId = "snow";
const back = this.add.uiElement(UIElementType.BUTTON, "primary", {position: new Vec2(center.x, center.y + 300), text: "Back"}); const market = this.add.uiElement(UIElementType.BUTTON, "primary", {position: new Vec2(center.x, center.y + 300), text: "market(Test)"});
market.size.set(200, 50);
market.borderWidth = 2;
market.borderColor = Color.WHITE;
market.backgroundColor = Color.TRANSPARENT;
market.onClickEventId = "market";
const back = this.add.uiElement(UIElementType.BUTTON, "primary", {position: new Vec2(center.x, center.y + 400), text: "Back"});
back.size.set(200, 50); back.size.set(200, 50);
back.borderWidth = 2; back.borderWidth = 2;
back.borderColor = Color.WHITE; back.borderColor = Color.WHITE;
@ -76,6 +84,7 @@ export default class Levels extends Scene {
this.receiver.subscribe("porcelain"); this.receiver.subscribe("porcelain");
this.receiver.subscribe("greatwall"); this.receiver.subscribe("greatwall");
this.receiver.subscribe("snow"); this.receiver.subscribe("snow");
this.receiver.subscribe("market");
this.receiver.subscribe("back"); this.receiver.subscribe("back");
} }
@ -153,6 +162,21 @@ export default class Levels extends Scene {
this.sceneManager.changeToScene(Snow, {}, sceneOptions); this.sceneManager.changeToScene(Snow, {}, sceneOptions);
} }
if(event.type === "market"){
let sceneOptions = {
physics: {
groupNames: ["ground", "player", "enemies"],
collisions:
[
[0, 1, 1],
[1, 0, 0],
[1, 0, 0]
]
}
}
this.sceneManager.changeToScene(Market, {}, sceneOptions);
}
if(event.type === "back"){ if(event.type === "back"){
this.sceneManager.changeToScene(MainMenu, {}); this.sceneManager.changeToScene(MainMenu, {});
} }

View File

@ -0,0 +1,32 @@
import { TiledTilemapData } from "../../Wolfie2D/DataTypes/Tilesets/TiledData";
import Vec2 from "../../Wolfie2D/DataTypes/Vec2";
import Debug from "../../Wolfie2D/Debug/Debug";
import { GameEventType } from "../../Wolfie2D/Events/GameEventType";
import RandomMapGenerator from "../Tools/RandomMapGenerator";
import GameLevel from "./GameLevel";
import Label from "../../Wolfie2D/Nodes/UIElements/Label";
import Color from "../../Wolfie2D/Utils/Color";
import { UIElementType } from "../../Wolfie2D/Nodes/UIElements/UIElementTypes";
import { Statuses } from "../sword_enums";
import AABB from "../../Wolfie2D/DataTypes/Shapes/AABB";
import EnemyAI from "../AI/EnemyAI";
import BattlerAI from "../AI/BattlerAI";
import InputWrapper from "../Tools/InputWrapper";
export default class Market extends GameLevel {
loadScene(): void {
super.loadScene();
this.rmg = new RandomMapGenerator("shattered_sword_assets/jsons/market_template.json", InputWrapper.randomSeed);
this.map = this.rmg.getMap();
console.log(this.map);
this.load.tilemapFromObject("map", this.map);
//load enemies
//can load enemy sprite here
//sprites obtained from cse380 sprite wesbite
// this.load.spritesheet("black_pudding","shattered_sword_assets/spritesheets/black_pudding.json");
//load music here
}
}