質問編集履歴

2

要点以外割愛

2016/09/25 01:20

投稿

tototan
tototan

スコア34

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- 不足のためひどいコーディングでお恥ずかしいですが、解決方法をご存知の方がいらっしゃればご教授よろしくお願いします。
15
+ 解決方法をご存知の方がいらっしゃればご教授よろしくお願いします。
16
16
 
17
17
 
18
18
 
@@ -26,49 +26,9 @@
26
26
 
27
27
  コード
28
28
 
29
- class StepViewController: UIViewController {
29
+
30
30
 
31
- var viewInitiated: Bool = false
32
-
33
-
34
-
35
- override func loadView() {
36
-
37
- self.title = stepName;
38
-
39
- let skView = SKView()
40
-
41
- self.view = skView
42
-
43
- }
44
-
45
-
46
-
47
- let slowStep:TimeInterval = 0.8
48
-
49
- let quickStep:TimeInterval = 0.4
50
-
51
-
52
-
53
- override func viewWillLayoutSubviews() {
54
-
55
- if(!viewInitiated){
31
+ ```swift
56
-
57
- super.viewWillLayoutSubviews()
58
-
59
- let skView = self.view as! SKView
60
-
61
- skView.showsFPS = false
62
-
63
- skView.showsNodeCount = false
64
-
65
-
66
-
67
- let scene = BaseScene(size: skView.bounds.size)
68
-
69
- scene.scaleMode = .aspectFill
70
-
71
-
72
32
 
73
33
  ////////// 円弧の描画
74
34
 
@@ -100,104 +60,4 @@
100
60
 
101
61
  scene.pathMoveAction_gl = SKAction.follow(path_gl, asOffset: true,orientToPath: false, duration: 0.5)
102
62
 
103
-
104
-
105
- scene.backRotate = SKAction.rotate(toAngle: scene.DegreeToRadian(0.0), duration: 0.5)
106
-
107
- scene.rotateAction270RE = SKAction.rotate(toAngle: scene.DegreeToRadian(-270.0) , duration: 0.5)
108
-
109
-
110
-
111
- StepData.gl_x_start = 90
112
-
113
- StepData.gl_y_start = 160
114
-
115
-
116
-
117
- scene.gl = SKSpriteNode(imageNamed: "gl2")
118
-
119
-
120
-
121
- scene.moveToAction_gl_1st = SKAction.move(by: CGVector(dx: 0, dy: 50), duration: slowStep)
122
-
123
-
124
-
125
- scene.backAction_gl = SKAction.move(to: CGPoint(x: StepData.gl_x_start, y: StepData.gl_y_start), duration: 0.5)
126
-
127
-
128
-
129
- // actionGroup設定
130
-
131
- scene.actionGroup_gl_1st = SKAction.group([
132
-
133
- scene.moveToAction_gl_1st!,
134
-
135
- scene.soundAction_slow
136
-
137
- ])
63
+ ```
138
-
139
-
140
-
141
- scene.actionGroup_gl_2nd = SKAction.group([
142
-
143
- scene.rotateAction135RE!,
144
-
145
- scene.soundAction_quick,
146
-
147
- ])
148
-
149
-
150
-
151
- scene.actionGroup_gl_3rd = SKAction.group([
152
-
153
- scene.rotateAction270RE!,
154
-
155
- scene.soundAction_quickF
156
-
157
- ])
158
-
159
-
160
-
161
- scene.actionGroup_gl_back = SKAction.group([
162
-
163
- scene.backAction_gl!,
164
-
165
- scene.backRotate!
166
-
167
- ])
168
-
169
-
170
-
171
- // actionsequence設定
172
-
173
- scene.action_gl = SKAction.sequence([
174
-
175
- scene.actionGroup_gl_1st!,
176
-
177
- scene.waitAction08,
178
-
179
- scene.actionGroup_gl_2nd!,
180
-
181
- scene.waitAction08,
182
-
183
- scene.actionGroup_gl_3rd!,
184
-
185
- scene.soundAction_quick,
186
-
187
- scene.actionGroup_gl_back!
188
-
189
- ])
190
-
191
-
192
-
193
-
194
-
195
- skView.presentScene(scene)
196
-
197
-
198
-
199
- self.viewInitiated = true
200
-
201
- }
202
-
203
- }

1

URL間違い

2016/09/25 01:20

投稿

tototan
tototan

スコア34

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  https://forums.developer.apple.com/thread/63462
24
24
 
25
- http://stackoverflow.com/questions/39508387/1-cgpathmovetopoint-is-unavailable-use-movetotransform-2-cgpathaddlinet```swift3
25
+ http://stackoverflow.com/questions/39508387/1-cgpathmovetopoint-is-unavailable-use-movetotransform-2-cgpathaddlinet
26
26
 
27
27
  コード
28
28