Skip to content

Commit ce12f1b

Browse files
committed
Pathfinder: Version 1.1, 2016-09-28
Updated to Swift 3 This sample demonstrates how to use GameplayKit’s pathfinding features to map out a game world and find paths through it.
1 parent 8f1a16a commit ce12f1b

File tree

78 files changed

+2345
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2345
-0
lines changed

Pathfinder/LICENSE.txt

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Sample code project: Pathfinder: GameplayKit Pathfinding Basics
2+
Version: 1.1
3+
4+
IMPORTANT: This Apple software is supplied to you by Apple
5+
Inc. ("Apple") in consideration of your agreement to the following
6+
terms, and your use, installation, modification or redistribution of
7+
this Apple software constitutes acceptance of these terms. If you do
8+
not agree with these terms, please do not use, install, modify or
9+
redistribute this Apple software.
10+
11+
In consideration of your agreement to abide by the following terms, and
12+
subject to these terms, Apple grants you a personal, non-exclusive
13+
license, under Apple's copyrights in this original Apple software (the
14+
"Apple Software"), to use, reproduce, modify and redistribute the Apple
15+
Software, with or without modifications, in source and/or binary forms;
16+
provided that if you redistribute the Apple Software in its entirety and
17+
without modifications, you must retain this notice and the following
18+
text and disclaimers in all such redistributions of the Apple Software.
19+
Neither the name, trademarks, service marks or logos of Apple Inc. may
20+
be used to endorse or promote products derived from the Apple Software
21+
without specific prior written permission from Apple. Except as
22+
expressly stated in this notice, no other rights or licenses, express or
23+
implied, are granted by Apple herein, including but not limited to any
24+
patent rights that may be infringed by your derivative works or by other
25+
works in which the Apple Software may be incorporated.
26+
27+
The Apple Software is provided by Apple on an "AS IS" basis. APPLE
28+
MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
29+
THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
30+
FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
31+
OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
32+
33+
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
34+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36+
INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
37+
MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
38+
AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
39+
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
40+
POSSIBILITY OF SUCH DAMAGE.
41+
42+
Copyright (C) 2016 Apple Inc. All Rights Reserved.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "20x20",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "20x20",
11+
"scale" : "3x"
12+
},
13+
{
14+
"size" : "29x29",
15+
"idiom" : "iphone",
16+
"filename" : "iOS-29@2x.png",
17+
"scale" : "2x"
18+
},
19+
{
20+
"size" : "29x29",
21+
"idiom" : "iphone",
22+
"filename" : "iOS-29@3x.png",
23+
"scale" : "3x"
24+
},
25+
{
26+
"size" : "40x40",
27+
"idiom" : "iphone",
28+
"filename" : "iOS-40@2x.png",
29+
"scale" : "2x"
30+
},
31+
{
32+
"size" : "40x40",
33+
"idiom" : "iphone",
34+
"filename" : "iOS-40@3x.png",
35+
"scale" : "3x"
36+
},
37+
{
38+
"size" : "60x60",
39+
"idiom" : "iphone",
40+
"filename" : "iPhone-60@2x.png",
41+
"scale" : "2x"
42+
},
43+
{
44+
"size" : "60x60",
45+
"idiom" : "iphone",
46+
"filename" : "iPhone-60@3x.png",
47+
"scale" : "3x"
48+
},
49+
{
50+
"idiom" : "ipad",
51+
"size" : "20x20",
52+
"scale" : "1x"
53+
},
54+
{
55+
"idiom" : "ipad",
56+
"size" : "20x20",
57+
"scale" : "2x"
58+
},
59+
{
60+
"size" : "29x29",
61+
"idiom" : "ipad",
62+
"filename" : "iOS-29@1x.png",
63+
"scale" : "1x"
64+
},
65+
{
66+
"size" : "29x29",
67+
"idiom" : "ipad",
68+
"filename" : "iOS-29@2x-1.png",
69+
"scale" : "2x"
70+
},
71+
{
72+
"size" : "40x40",
73+
"idiom" : "ipad",
74+
"filename" : "iOS-40@1x.png",
75+
"scale" : "1x"
76+
},
77+
{
78+
"size" : "40x40",
79+
"idiom" : "ipad",
80+
"filename" : "iOS-40@2x-1.png",
81+
"scale" : "2x"
82+
},
83+
{
84+
"size" : "76x76",
85+
"idiom" : "ipad",
86+
"filename" : "iPad-76@1x.png",
87+
"scale" : "1x"
88+
},
89+
{
90+
"size" : "76x76",
91+
"idiom" : "ipad",
92+
"filename" : "iPad-76@2x.png",
93+
"scale" : "2x"
94+
},
95+
{
96+
"size" : "83.5x83.5",
97+
"idiom" : "ipad",
98+
"filename" : "iOS_pro_pathfinding_2x.png",
99+
"scale" : "2x"
100+
},
101+
{
102+
"size" : "16x16",
103+
"idiom" : "mac",
104+
"filename" : "Mac-16.png",
105+
"scale" : "1x"
106+
},
107+
{
108+
"size" : "16x16",
109+
"idiom" : "mac",
110+
"filename" : "Mac-32.png",
111+
"scale" : "2x"
112+
},
113+
{
114+
"size" : "32x32",
115+
"idiom" : "mac",
116+
"filename" : "Mac-33.png",
117+
"scale" : "1x"
118+
},
119+
{
120+
"size" : "32x32",
121+
"idiom" : "mac",
122+
"filename" : "Mac-64.png",
123+
"scale" : "2x"
124+
},
125+
{
126+
"size" : "128x128",
127+
"idiom" : "mac",
128+
"filename" : "Mac-128.png",
129+
"scale" : "1x"
130+
},
131+
{
132+
"size" : "128x128",
133+
"idiom" : "mac",
134+
"filename" : "Mac-256.png",
135+
"scale" : "2x"
136+
},
137+
{
138+
"size" : "256x256",
139+
"idiom" : "mac",
140+
"filename" : "Mac-257.png",
141+
"scale" : "1x"
142+
},
143+
{
144+
"size" : "256x256",
145+
"idiom" : "mac",
146+
"filename" : "Mac-512.png",
147+
"scale" : "2x"
148+
},
149+
{
150+
"size" : "512x512",
151+
"idiom" : "mac",
152+
"filename" : "Mac-513.png",
153+
"scale" : "1x"
154+
},
155+
{
156+
"size" : "512x512",
157+
"idiom" : "mac",
158+
"filename" : "Mac-1024.png",
159+
"scale" : "2x"
160+
}
161+
],
162+
"info" : {
163+
"version" : 1,
164+
"author" : "xcode"
165+
}
166+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"images" : [
3+
{
4+
"orientation" : "landscape",
5+
"idiom" : "tv",
6+
"filename" : "pathfinder.png",
7+
"extent" : "full-screen",
8+
"minimum-system-version" : "9.0",
9+
"scale" : "1x"
10+
}
11+
],
12+
"info" : {
13+
"version" : 1,
14+
"author" : "xcode"
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"scale" : "1x"
6+
}
7+
],
8+
"info" : {
9+
"version" : 1,
10+
"author" : "xcode"
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"layers" : [
3+
{
4+
"filename" : "Front.imagestacklayer"
5+
},
6+
{
7+
"filename" : "Middle.imagestacklayer"
8+
},
9+
{
10+
"filename" : "Back.imagestacklayer"
11+
}
12+
],
13+
"info" : {
14+
"version" : 1,
15+
"author" : "xcode"
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"scale" : "1x"
6+
}
7+
],
8+
"info" : {
9+
"version" : 1,
10+
"author" : "xcode"
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"scale" : "1x"
6+
}
7+
],
8+
"info" : {
9+
"version" : 1,
10+
"author" : "xcode"
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"filename" : "layer3.png",
6+
"scale" : "1x"
7+
}
8+
],
9+
"info" : {
10+
"version" : 1,
11+
"author" : "xcode"
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
},
6+
"properties" : {
7+
"frame-size" : {
8+
"width" : 144,
9+
"height" : 144
10+
},
11+
"frame-center" : {
12+
"x" : 208,
13+
"y" : 127
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "tv",
5+
"filename" : "gradient-fill-1.png",
6+
"scale" : "1x"
7+
}
8+
],
9+
"info" : {
10+
"version" : 1,
11+
"author" : "xcode"
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
},
6+
"properties" : {
7+
"frame-size" : {
8+
"width" : 400,
9+
"height" : 240
10+
},
11+
"frame-center" : {
12+
"x" : 200,
13+
"y" : 120
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)