Initial Commit

This commit is contained in:
Tyrel Souza 2016-04-07 23:02:05 -04:00
commit cbf40600c2
11 changed files with 502 additions and 0 deletions

BIN
assets/arrow_tileset.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,74 @@
{ "height":11,
"layers":[
{
"data":[19, 20, 19, 19, 19, 20, 19, 19, 19, 19, 20, 20, 20, 19, 19, 20, 19, 20, 19, 19, 19, 20, 20, 19, 20, 19, 19, 20, 19, 19, 20, 19, 20, 19, 19, 19, 19, 20, 20, 19, 19, 20, 20, 19, 20, 20, 19, 20, 19, 20, 19, 20, 19, 20, 20, 20, 19, 19, 20, 20, 20, 20, 20, 19, 20, 19, 19, 20, 19, 19, 20, 19, 20, 19, 20, 20, 19, 20, 19, 19, 19, 20, 19, 19, 20, 20, 20, 19, 20, 20, 19, 19, 20, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 19, 20, 19, 20, 20, 19, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 19, 19, 20, 20, 19, 19, 20, 19, 19, 19, 19, 20, 20, 19, 20, 19, 20, 19, 20, 20, 20, 20, 19, 19, 20, 19, 19, 20, 19, 19, 19, 20, 19, 19, 20, 19, 19, 19, 20, 19, 19, 20, 19, 20, 19, 20, 19, 20, 19, 20, 19, 19, 19, 20, 20, 19, 20, 20],
"height":11,
"name":"Water",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[6, 6, 6, 5, 5, 6, 5, 5, 5, 6, 6, 5, 6, 5, 5, 6, 5, 5, 5, 6, 5, 6, 6, 6, 5, 5, 6, 5, 6, 6, 5, 5, 5, 5, 5, 6, 6, 5, 5, 6, 6, 5, 5, 5, 5, 6, 6, 5, 5, 5, 5, 6, 5, 6, 5, 6, 6, 6, 5, 6, 5, 5, 5, 6, 5, 5, 6, 5, 6, 6, 6, 6, 6, 6, 5, 6, 5, 6, 5, 6, 5, 5, 5, 6, 5, 5, 5, 6, 6, 6, 5, 6, 6, 6, 6, 5, 6, 5, 5, 5, 6, 5, 5, 6, 6, 5, 6, 5, 6, 5, 6, 6, 0, 0, 0, 0, 0, 0, 0, 6, 5, 5, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6],
"height":11,
"name":"Ground",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[185, 211, 212, 211, 212, 211, 212, 211, 212, 211, 212, 211, 212, 211, 212, 211, 212, 184, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 185, 0, 0, 186, 186, 186, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 212, 0, 0, 186, 0, 0, 186, 0, 186, 186, 186, 186, 186, 0, 186, 186, 0, 211, 185, 0, 0, 186, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 184, 212, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 211, 185, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 185, 184, 185, 184],
"height":11,
"name":"Trees",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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":11,
"name":"Misc",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
}],
"nextobjectid":1,
"orientation":"orthogonal",
"properties":
{
},
"renderorder":"right-down",
"tileheight":64,
"tilesets":[
{
"firstgid":1,
"image":"tilesheet_complete.png",
"imageheight":1280,
"imagewidth":1728,
"margin":0,
"name":"kenney_complete",
"properties":
{
},
"spacing":0,
"tileheight":64,
"tilewidth":64
}],
"tilewidth":64,
"version":1,
"width":18
}

View File

@ -0,0 +1,74 @@
{ "height":11,
"layers":[
{
"data":[19, 20, 19, 19, 19, 20, 19, 19, 19, 19, 20, 20, 20, 19, 19, 20, 19, 20, 19, 19, 19, 20, 20, 19, 20, 19, 19, 20, 19, 19, 20, 19, 20, 19, 19, 19, 19, 20, 20, 19, 19, 20, 20, 19, 20, 20, 19, 20, 19, 20, 19, 20, 19, 20, 20, 20, 19, 19, 20, 20, 20, 20, 20, 19, 20, 19, 19, 20, 19, 19, 20, 19, 20, 19, 20, 20, 19, 20, 19, 19, 19, 20, 19, 19, 20, 20, 20, 19, 20, 20, 19, 19, 20, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 19, 20, 19, 20, 20, 19, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 19, 19, 20, 20, 19, 19, 20, 19, 19, 19, 19, 20, 20, 19, 20, 19, 20, 19, 20, 20, 20, 20, 19, 19, 20, 19, 19, 20, 19, 19, 19, 20, 19, 19, 20, 19, 19, 19, 20, 19, 19, 20, 19, 20, 19, 20, 19, 20, 19, 20, 19, 19, 19, 20, 20, 19, 20, 20],
"height":11,
"name":"Water",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[6, 6, 5, 5, 6, 6, 6, 6, 6, 5, 5, 5, 5, 6, 6, 5, 6, 6, 6, 6, 5, 6, 5, 6, 5, 6, 6, 5, 5, 6, 6, 5, 6, 5, 6, 6, 6, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 6, 6, 6, 6, 6, 5, 6, 6, 5, 6, 5, 6, 6, 6, 6, 5, 5, 5, 6, 6, 6, 6, 6, 5, 6, 6, 5, 6, 6, 6, 6, 6, 5, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 6, 6, 6, 5, 6, 6, 6, 5, 6, 6, 6, 6, 6, 5, 6, 6, 6, 5, 5, 6, 5, 5, 6, 6, 6, 6, 6, 5, 6, 6, 6, 5, 6, 5, 6, 6, 6, 5, 6, 6, 6, 0, 0, 0, 0, 0, 5, 6, 5, 6, 6, 6, 6, 6, 5, 6, 6, 5, 0, 0, 0, 0, 0, 0, 0, 6, 5, 6, 6, 6, 6, 6, 6, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 5, 5, 6],
"height":11,
"name":"Ground",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[185, 211, 212, 211, 212, 211, 212, 211, 212, 211, 212, 211, 212, 211, 212, 211, 212, 186, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 185, 0, 0, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 0, 211, 212, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 184, 185, 0, 0, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 0, 0, 186, 0, 211, 212, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 186, 186, 0, 186, 0, 184, 185, 0, 186, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 211, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 186, 186, 186, 0, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 185, 184, 185, 211],
"height":11,
"name":"Trees",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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":11,
"name":"Misc",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
}],
"nextobjectid":1,
"orientation":"orthogonal",
"properties":
{
},
"renderorder":"right-down",
"tileheight":64,
"tilesets":[
{
"firstgid":1,
"image":"tilesheet_complete.png",
"imageheight":1280,
"imagewidth":1728,
"margin":0,
"name":"kenney_complete",
"properties":
{
},
"spacing":0,
"tileheight":64,
"tilewidth":64
}],
"tilewidth":64,
"version":1,
"width":18
}

View File

@ -0,0 +1,74 @@
{ "height":11,
"layers":[
{
"data":[19, 20, 19, 19, 19, 20, 19, 19, 19, 19, 20, 20, 20, 19, 19, 20, 19, 20, 19, 19, 19, 20, 20, 19, 20, 19, 19, 20, 19, 19, 20, 19, 20, 19, 19, 19, 19, 20, 20, 19, 19, 20, 20, 19, 20, 20, 19, 20, 19, 20, 19, 20, 19, 20, 20, 20, 19, 19, 20, 20, 20, 20, 20, 19, 20, 19, 19, 20, 19, 19, 20, 19, 20, 19, 20, 20, 19, 20, 19, 19, 19, 20, 19, 19, 20, 20, 20, 19, 20, 20, 19, 19, 20, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 19, 20, 19, 20, 20, 19, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 19, 19, 20, 20, 19, 19, 20, 19, 19, 19, 19, 20, 20, 19, 20, 19, 20, 19, 20, 20, 20, 20, 19, 19, 20, 19, 19, 20, 19, 19, 19, 20, 19, 19, 20, 19, 19, 19, 20, 19, 19, 20, 19, 20, 19, 20, 19, 20, 19, 20, 19, 19, 19, 20, 20, 19, 20, 20],
"height":11,
"name":"Water",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[3, 1, 1, 19, 1, 3, 2, 2, 4, 2, 3, 4, 3, 1, 4, 2, 1, 1, 3, 2, 2, 20, 2, 2, 3, 1, 1, 3, 4, 3, 2, 3, 3, 3, 3, 2, 2, 2, 3, 20, 3, 1, 2, 3, 4, 4, 3, 1, 3, 3, 4, 1, 1, 1, 2, 4, 2, 20, 4, 4, 1, 2, 4, 1, 3, 2, 3, 3, 2, 4, 3, 4, 2, 1, 3, 19, 2, 2, 4, 4, 4, 2, 4, 1, 1, 2, 1, 2, 4, 2, 1, 3, 2, 19, 4, 4, 4, 2, 2, 4, 4, 2, 1, 3, 1, 3, 4, 4, 4, 1, 3, 19, 4, 3, 3, 1, 3, 4, 2, 1, 2, 3, 2, 4, 4, 3, 2, 2, 3, 20, 20, 19, 20, 3, 1, 4, 2, 2, 1, 2, 3, 1, 4, 1, 2, 4, 1, 2, 1, 1, 20, 3, 4, 1, 4, 2, 2, 3, 1, 2, 2, 3, 4, 1, 1, 2, 2, 3, 20, 20, 3, 3, 2, 4, 1, 3, 1, 2, 1, 2, 2, 3, 2, 1, 2, 2, 1, 19, 19, 4, 4, 1, 2, 2, 2, 3, 2, 2],
"height":11,
"name":"Ground",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[182, 208, 209, 0, 208, 209, 208, 209, 208, 209, 208, 209, 208, 209, 208, 209, 208, 209, 209, 0, 0, 0, 0, 0, 0, 183, 0, 0, 213, 0, 183, 0, 0, 0, 0, 181, 182, 0, 213, 0, 0, 0, 0, 183, 0, 0, 0, 0, 183, 0, 0, 0, 0, 208, 209, 183, 0, 0, 0, 0, 0, 183, 0, 0, 0, 0, 183, 0, 0, 0, 213, 181, 182, 0, 0, 0, 0, 0, 0, 0, 183, 0, 183, 0, 183, 0, 0, 0, 0, 208, 209, 0, 0, 0, 0, 213, 0, 0, 0, 183, 0, 0, 183, 0, 183, 213, 0, 181, 182, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 0, 183, 0, 0, 208, 209, 0, 0, 0, 0, 0, 0, 0, 0, 183, 183, 183, 183, 0, 183, 0, 0, 181, 182, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 208, 209, 0, 0, 213, 183, 0, 0, 0, 0, 0, 213, 0, 0, 0, 0, 183, 213, 181, 182, 181, 182, 181, 182, 181, 182, 0, 0, 181, 182, 181, 182, 181, 182, 181, 182, 208],
"height":11,
"name":"Trees",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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":11,
"name":"Misc",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
}],
"nextobjectid":1,
"orientation":"orthogonal",
"properties":
{
},
"renderorder":"right-down",
"tileheight":64,
"tilesets":[
{
"firstgid":1,
"image":"tilesheet_complete.png",
"imageheight":1280,
"imagewidth":1728,
"margin":0,
"name":"kenney_complete",
"properties":
{
},
"spacing":0,
"tileheight":64,
"tilewidth":64
}],
"tilewidth":64,
"version":1,
"width":18
}

View File

@ -0,0 +1,74 @@
{ "height":11,
"layers":[
{
"data":[19, 20, 19, 19, 19, 20, 19, 19, 19, 20, 19, 19, 20, 19, 19, 20, 20, 20, 19, 20, 19, 19, 19, 19, 20, 20, 19, 20, 19, 20, 19, 20, 20, 20, 19, 19, 19, 19, 20, 19, 19, 19, 19, 20, 19, 19, 19, 20, 20, 19, 19, 19, 19, 20, 19, 20, 20, 19, 20, 20, 19, 19, 20, 20, 20, 19, 19, 19, 20, 19, 19, 19, 20, 19, 20, 19, 19, 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 19, 20, 19, 20, 19, 20, 20, 20, 19, 20, 19, 20, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 20, 19, 20, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 20, 20, 20, 19, 20, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 19, 19, 20, 19, 19, 20, 19, 19, 20, 20, 20, 20, 19, 19, 19, 19, 20, 20, 19, 20, 19, 19, 20, 20, 20, 20, 20, 20, 19, 20, 19, 19, 19, 20, 19, 20, 19, 19, 19, 19, 19, 20, 19, 19, 19, 20, 20, 20, 20, 19, 20, 20, 20, 19],
"height":11,
"name":"Water",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[3, 1, 4, 3, 2, 2, 3, 2, 0, 0, 2, 1, 1, 3, 4, 2, 2, 1, 1, 4, 2, 4, 1, 3, 4, 1, 0, 0, 1, 1, 2, 3, 1, 3, 4, 3, 3, 4, 1, 2, 2, 3, 2, 0, 0, 0, 0, 3, 2, 3, 4, 4, 4, 1, 1, 2, 3, 4, 1, 3, 0, 0, 3, 4, 0, 0, 3, 2, 3, 4, 1, 4, 1, 1, 4, 2, 3, 4, 0, 1, 3, 1, 1, 0, 3, 2, 2, 4, 1, 2, 2, 1, 4, 1, 4, 4, 0, 3, 4, 1, 3, 0, 2, 3, 4, 4, 4, 2, 2, 2, 2, 1, 3, 2, 0, 0, 1, 2, 0, 0, 3, 4, 3, 2, 3, 3, 2, 4, 1, 1, 1, 2, 4, 0, 0, 0, 0, 2, 1, 3, 3, 2, 4, 4, 1, 3, 2, 3, 3, 1, 3, 1, 0, 0, 4, 3, 1, 1, 1, 3, 2, 2, 2, 1, 2, 4, 4, 1, 1, 4, 0, 0, 4, 3, 3, 3, 1, 2, 4, 3, 3, 4, 3, 4, 3, 3, 4, 4, 0, 0, 3, 3, 1, 2, 2, 1, 1, 2],
"height":11,
"name":"Ground",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[182, 183, 208, 209, 208, 209, 208, 209, 0, 0, 208, 209, 208, 209, 208, 209, 208, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 0, 208, 209, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 182, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 0, 0, 0, 208, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 208, 209, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 0, 0, 0, 181, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 208, 209, 0, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 183, 0, 0, 183, 181, 182, 181, 182, 181, 182, 181, 182, 0, 0, 181, 182, 181, 182, 181, 182, 181, 182],
"height":11,
"name":"Trees",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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":11,
"name":"Misc",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
}],
"nextobjectid":1,
"orientation":"orthogonal",
"properties":
{
},
"renderorder":"right-down",
"tileheight":64,
"tilesets":[
{
"firstgid":1,
"image":"tilesheet_complete.png",
"imageheight":1280,
"imagewidth":1728,
"margin":0,
"name":"kenney_complete",
"properties":
{
},
"spacing":0,
"tileheight":64,
"tilewidth":64
}],
"tilewidth":64,
"version":1,
"width":18
}

View File

@ -0,0 +1,74 @@
{ "height":11,
"layers":[
{
"data":[19, 20, 19, 19, 19, 20, 19, 19, 19, 20, 19, 19, 20, 19, 19, 20, 20, 20, 19, 20, 19, 19, 19, 19, 20, 20, 19, 20, 19, 20, 19, 20, 20, 20, 19, 19, 19, 19, 20, 19, 19, 19, 19, 20, 19, 19, 19, 20, 20, 19, 19, 19, 19, 20, 19, 20, 20, 19, 20, 20, 19, 19, 20, 20, 20, 19, 19, 19, 20, 19, 19, 19, 20, 19, 20, 19, 19, 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 19, 20, 19, 20, 19, 20, 20, 20, 19, 20, 19, 20, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 20, 19, 20, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 20, 20, 20, 19, 20, 19, 19, 19, 19, 19, 19, 20, 19, 19, 19, 19, 19, 20, 19, 19, 20, 19, 19, 20, 20, 20, 20, 19, 19, 19, 19, 20, 20, 19, 20, 19, 19, 20, 20, 20, 20, 20, 20, 19, 20, 19, 19, 19, 20, 19, 20, 19, 19, 19, 19, 19, 20, 19, 19, 19, 20, 20, 20, 20, 19, 20, 20, 20, 19],
"height":11,
"name":"Water",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[3, 1, 4, 3, 2, 2, 3, 2, 1, 1, 2, 1, 1, 3, 4, 2, 2, 1, 4, 2, 2, 4, 1, 3, 4, 1, 4, 2, 1, 1, 2, 3, 1, 3, 3, 4, 0, 0, 1, 3, 2, 3, 4, 2, 0, 0, 3, 3, 2, 3, 4, 1, 0, 0, 0, 0, 0, 0, 2, 4, 0, 0, 0, 0, 0, 0, 2, 4, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 0, 0, 1, 2, 2, 1, 4, 1, 0, 0, 3, 3, 4, 1, 3, 3, 0, 0, 4, 4, 4, 2, 2, 2, 2, 1, 3, 2, 1, 3, 1, 2, 3, 4, 3, 4, 3, 2, 3, 3, 2, 4, 1, 1, 1, 2, 4, 4, 2, 4, 4, 2, 1, 3, 3, 2, 4, 4, 1, 3, 2, 3, 3, 1, 3, 1, 3, 1, 4, 3, 1, 1, 1, 3, 2, 2, 2, 1, 2, 4, 4, 1, 1, 4, 1, 1, 4, 3, 3, 3, 1, 2, 4, 3, 3, 4, 3, 4, 3, 3, 4, 4, 2, 2, 3, 3, 1, 2, 2, 1, 1, 2],
"height":11,
"name":"Ground",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
},
{
"data":[182, 208, 209, 208, 209, 208, 209, 208, 209, 208, 209, 208, 209, 208, 209, 208, 209, 181, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 0, 0, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 208, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 0, 0, 0, 0, 183, 0, 181, 209, 0, 183, 183, 183, 183, 0, 0, 0, 0, 183, 0, 0, 0, 183, 183, 0, 208, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 0, 0, 183, 183, 0, 0, 181, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 208, 182, 181, 182, 183, 181, 182, 181, 182, 181, 182, 181, 182, 183, 181, 182, 181, 182, 181],
"height":11,
"name":"Trees",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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":11,
"name":"Misc",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":18,
"x":0,
"y":0
}],
"nextobjectid":1,
"orientation":"orthogonal",
"properties":
{
},
"renderorder":"right-down",
"tileheight":64,
"tilesets":[
{
"firstgid":1,
"image":"tilesheet_complete.png",
"imageheight":1280,
"imagewidth":1728,
"margin":0,
"name":"kenney_complete",
"properties":
{
},
"spacing":0,
"tileheight":64,
"tilewidth":64
}],
"tilewidth":64,
"version":1,
"width":18
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

14
index.html Normal file
View File

@ -0,0 +1,14 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Top Down Stuff</title>
<style>body {margin: 0; padding: 0;}</style>
<script src="lib/phaser.min.js"></script>
<script src="src/game.js"></script>
</head>
<body>
</body>
</html>

1
lib/phaser.map Normal file

File diff suppressed because one or more lines are too long

27
lib/phaser.min.js vendored Normal file

File diff suppressed because one or more lines are too long

90
src/game.js Normal file
View File

@ -0,0 +1,90 @@
var game = new Phaser.Game(1152, 704, Phaser.AUTO, '');
game.state.add('play', {
preload: function(){
game.load.spritesheet('character', 'assets/arrow_tileset.png', 32, 32);
game.stage.backgroundColor = '#787878';
game.load.tilemap('forest1', 'assets/tilemaps/maps/Forest1.json', null, Phaser.Tilemap.TILED_JSON);
game.load.tilemap('forest2', 'assets/tilemaps/maps/Forest2.json', null, Phaser.Tilemap.TILED_JSON);
game.load.tilemap('forest3', 'assets/tilemaps/maps/Forest3.json', null, Phaser.Tilemap.TILED_JSON);
game.load.tilemap('fall1', 'assets/tilemaps/maps/Fall1.json', null, Phaser.Tilemap.TILED_JSON);
game.load.tilemap('fall2', 'assets/tilemaps/maps/Fall2.json', null, Phaser.Tilemap.TILED_JSON);
game.load.image('tiles', 'assets/tilemaps/tiles/tilesheet_complete.png');
this.layers = {};
},
create: function(){
game.physics.startSystem(Phaser.Physics.ARCADE);
this.cursors = this.game.input.keyboard.createCursorKeys();
this.createTileMap('forest1');
this.createPlayer();
this.setCollisions();
},
update: function(){
this.playerMovement();
game.debug.bodyInfo(this.player, 32, this.game.world.height - 100);
},
setCollisions: function(){
game.physics.collide(this.player, this.layers['water']);
game.physics.collide(this.player, this.layers['trees']);
},
createTileMap: function(map_name){
this.map = game.add.tilemap(map_name);
this.map.addTilesetImage('kenney_complete', 'tiles');
this.layers['water'] = this.map.createLayer('Water');
this.layers['ground'] = this.map.createLayer('Ground');
this.layers['trees'] = this.map.createLayer('Trees');
this.layers['misc'] = this.map.createLayer('Misc');
},
createPlayer: function(){
this.player = game.add.sprite(50, 50, 'character');
game.physics.arcade.enable(this.player);
this.player.body.collideWorldBounds = true;
this.player.animations.add('up', [9,10,11], 10, true);
this.player.animations.add('down', [0,1,2], 10, true);
this.player.animations.add('left', [3,4,5], 10, true);
this.player.animations.add('right', [6,7,8], 10, true);
this.player.speed = 200;
},
playerMovement: function(){
this.player.body.velocity.y = 0;
this.player.body.velocity.x = 0;
if(this.cursors.up.isDown) {
this.player.body.velocity.y -= this.player.speed;
this.player.animations.play('up');
}
else if(this.cursors.down.isDown) {
this.player.body.velocity.y += this.player.speed;
this.player.animations.play('down');
}
if(this.cursors.left.isDown) {
this.player.body.velocity.x -= this.player.speed;
this.player.animations.play('left');
}
else if(this.cursors.right.isDown) {
this.player.body.velocity.x += this.player.speed;
this.player.animations.play('right');
} else {
this.player.animations.stop(null, true);
}
}
});
game.state.start('play');