Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add map class #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
416 changes: 416 additions & 0 deletions client/src/assets/atlas/player.json

Large diffs are not rendered by default.

Binary file added client/src/assets/atlas/player.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/items/capture-device.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/tilesets/electronics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/tilesets/furniture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/tilesets/plants.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/tilesets/set-pieces.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/tilesets/stairs-down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
354 changes: 354 additions & 0 deletions client/src/assets/maps/professor-lab.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,354 @@
{ "compressionlevel":0,
"editorsettings":
{
"export":
{
"format":"json",
"target":"professor-lab.json"
}
},
"height":19,
"infinite":false,
"layers":[
{
"data":[0, 0, 0, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 1456, 0, 0, 0, 0, 0, 0, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 1467, 0, 0, 0, 0, 0, 0, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 1478, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"height":19,
"id":1,
"name":"layer1",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":19,
"x":0,
"y":0
},
{
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 6, 1129, 1131, 1221, 1222, 0, 0, 0, 0, 962, 963, 0, 0, 0, 0, 0, 0, 0, 28, 30, 1333, 1335, 1262, 1263, 0, 0, 0, 66, 1003, 1004, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1333, 1171, 1171, 1171, 1335, 0, 0, 0, 1333, 1171, 1171, 1171, 1335, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1442, 1443, 1443, 1443, 1444, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1453, 1454, 1454, 1454, 1455, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1464, 1465, 1465, 1465, 1466, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1505, 9, 10, 11, 0, 0, 1405, 0, 0, 9, 10, 11, 1505, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"height":19,
"id":2,
"name":"layer2",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":19,
"x":0,
"y":0
},
{
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1129, 1130, 1130, 1130, 1131, 0, 0, 0, 1129, 1130, 1130, 1130, 1131, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"height":19,
"id":4,
"name":"above-player",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":19,
"x":0,
"y":0
},
{
"color":"#ffff00",
"draworder":"topdown",
"id":5,
"name":"events",
"objects":[
{
"height":16,
"id":69,
"name":"chooseCreature",
"rotation":0,
"type":"",
"visible":true,
"width":16,
"x":122.884605792868,
"y":114.52577576686
},
{
"height":16,
"id":74,
"name":"chooseCreature",
"rotation":0,
"type":"",
"visible":true,
"width":16,
"x":138.884605792868,
"y":114.52577576686
},
{
"height":16,
"id":75,
"name":"chooseCreature",
"rotation":0,
"type":"",
"visible":true,
"width":16,
"x":154.884605792868,
"y":114.52577576686
},
{
"height":16,
"id":93,
"name":"playerSpawn",
"rotation":0,
"type":"event",
"visible":true,
"width":16,
"x":144,
"y":240
},
{
"height":16,
"id":97,
"name":"chooseCreature",
"rotation":0,
"type":"",
"visible":true,
"width":16,
"x":171.201254052513,
"y":114.555131996152
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
{
"color":"#ff0000",
"draworder":"topdown",
"id":6,
"name":"collision",
"objects":[
{
"height":16,
"id":56,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":48,
"x":192,
"y":48
},
{
"height":320,
"id":81,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":16,
"x":256,
"y":-16
},
{
"height":16,
"id":83,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":208,
"x":48,
"y":288
},
{
"height":320,
"id":84,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":16,
"x":32,
"y":-16
},
{
"height":48,
"id":85,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":208,
"x":48,
"y":0
},
{
"height":16,
"id":86,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":64,
"x":80,
"y":48
},
{
"height":16,
"id":89,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":80,
"x":48,
"y":176
},
{
"height":16,
"id":90,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":80,
"x":176,
"y":176
},
{
"height":16,
"id":91,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":64,
"x":48,
"y":272
},
{
"height":16,
"id":92,
"name":"",
"rotation":0,
"type":"collision",
"visible":true,
"width":64,
"x":192,
"y":272
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
}],
"nextlayerid":7,
"nextobjectid":99,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.4.3",
"tileheight":16,
"tilesets":[
{
"columns":12,
"firstgid":1,
"image":"..\/images\/tilesets\/furniture.png",
"imageheight":96,
"imagewidth":192,
"margin":0,
"name":"furniture",
"spacing":0,
"tilecount":72,
"tileheight":16,
"tilewidth":16
},
{
"columns":4,
"firstgid":73,
"image":"..\/images\/tilesets\/electronics.png",
"imageheight":64,
"imagewidth":64,
"margin":0,
"name":"electronics",
"spacing":0,
"tilecount":16,
"tileheight":16,
"tilewidth":16
},
{
"columns":41,
"firstgid":89,
"image":"..\/images\/tilesets\/set-pieces.png",
"imageheight":512,
"imagewidth":671,
"margin":0,
"name":"set-pieces",
"spacing":0,
"tilecount":1312,
"tileheight":16,
"tiles":[
{
"id":1042,
"properties":[
{
"name":"act1",
"type":"string",
"value":"transition_teleport taba_town.tmx,43,46,0.3"
},
{
"name":"act2",
"type":"string",
"value":"player_face down"
}]
}],
"tilewidth":16
},
{
"columns":11,
"firstgid":1401,
"image":"..\/images\/tilesets\/floors-and-walls.png",
"imageheight":128,
"imagewidth":176,
"margin":0,
"name":"floors-and-walls",
"spacing":0,
"tilecount":88,
"tileheight":16,
"tilewidth":16
},
{
"columns":4,
"firstgid":1489,
"image":"..\/images\/tilesets\/stairs-down.png",
"imageheight":48,
"imagewidth":64,
"margin":0,
"name":"stairs-down",
"spacing":0,
"tilecount":12,
"tileheight":16,
"tilewidth":16
},
{
"columns":4,
"firstgid":1501,
"image":"..\/images\/tilesets\/plants.png",
"imageheight":64,
"imagewidth":64,
"margin":0,
"name":"plants",
"spacing":0,
"tilecount":16,
"tileheight":16,
"tilewidth":16
}],
"tilewidth":16,
"type":"map",
"version":1.4,
"width":19
}
Loading