Close #1 : AI now follows polyline routes on the Routes layer of the map

This commit is contained in:
2014-07-06 17:18:08 -07:00
parent 3e27b50a80
commit 816b859197
3 changed files with 108 additions and 7 deletions

View File

@@ -291,7 +291,8 @@
"sprite_facing":"left",
"sprite_group":"townsfolk-female",
"sprite_has_treasure":"true",
"sprite_name":"townsfolk-female-2"
"sprite_name":"townsfolk-female-2",
"sprite_route":"BigTopRoute1"
},
"type":"AI",
"visible":true,
@@ -600,6 +601,71 @@
"width":50,
"x":0,
"y":0
},
{
"height":50,
"name":"Routes",
"objects":[
{
"height":0,
"name":"BigTopRoute1",
"polyline":[
{
"x":0,
"y":0
},
{
"x":0,
"y":128
},
{
"x":-64,
"y":192
},
{
"x":-64,
"y":320
},
{
"x":96,
"y":320
},
{
"x":96,
"y":128
},
{
"x":128,
"y":32
},
{
"x":128,
"y":-64
},
{
"x":32,
"y":-64
},
{
"x":0,
"y":0
}],
"properties":
{
},
"type":"",
"visible":true,
"width":0,
"x":640,
"y":160
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"width":50,
"x":0,
"y":0
}],
"orientation":"orthogonal",
"properties":