@@ -169,41 +169,7 @@ class MenuScene: SKScene {
169169 chandelier. setScale ( self . size. height/ 350 )
170170 chair. setScale ( self . size. height/ 350 )
171171 flyAction. setScale ( self . size. height/ 3150 )
172-
173- scenarioImage. position = CGPoint ( x: self . size. width/ 2 , y: self . size. height/ 2 )
174- scenarioImage. zPosition = 0
175-
176- soundButton. position = CGPoint ( x: self . size. width/ 2 , y: self . size. height/ 3.5 )
177- soundButton. zPosition = 1
178-
179- scoreLabel. position = CGPoint ( x: self . size. width/ 2 , y: self . size. height/ 2.5 )
180- scoreLabel. zPosition = 1
181- scoreLabel. fontSize = self . size. height/ 15
182-
183- musicButton. position = CGPoint ( x: soundButton. position. x + self . size. width/ 9.5 , y: self . size. height/ 3.5 )
184- musicButton. zPosition = 1
185-
186- gameCenterButton. position = CGPoint ( x: soundButton. position. x - self . size. width/ 9.5 , y: self . size. height/ 3.5 )
187- gameCenterButton. zPosition = 1
188-
189- playButton. position = CGPoint ( x: self . size. width/ 2 , y: self . size. height/ 1.6 )
190- playButton. zPosition = 1
191-
192- piano. position = CGPoint ( x: self . size. width/ 8.5 , y: self . size. height/ 3.5 )
193- piano. zPosition = 1
194-
195- catAction. position = CGPoint ( x: self . size. width/ 6 , y: self . size. height/ 1.55 )
196- catAction. zPosition = 2
197-
198- chandelier. position = CGPoint ( x: self . size. width/ 1.3 , y: self . size. height/ 1.13 )
199- chandelier. zPosition = 1
200-
201- chair. position = CGPoint ( x: self . size. width/ 1.215 , y: self . size. height/ 7.5 )
202- chair. zPosition = 1
203-
204- flyAction. position = CGPoint ( x: self . size. width/ 1.215 , y: self . size. height/ 2.6 )
205- flyAction. zPosition = 1
206-
172+
207173 default :
208174 break
209175 }
@@ -244,6 +210,48 @@ class MenuScene: SKScene {
244210
245211 flyAction. position = CGPoint ( x: self . size. width/ 1.215 , y: self . size. height/ 2.28 )
246212 flyAction. zPosition = 1
213+
214+ #if os(iOS)
215+ switch UIDevice . current. userInterfaceIdiom {
216+ case . pad:
217+ scenarioImage. position = CGPoint ( x: self . size. width/ 2 , y: self . size. height/ 2 )
218+ scenarioImage. zPosition = 0
219+
220+ soundButton. position = CGPoint ( x: self . size. width/ 2 , y: self . size. height/ 3.5 )
221+ soundButton. zPosition = 1
222+
223+ scoreLabel. position = CGPoint ( x: self . size. width/ 2 , y: self . size. height/ 2.5 )
224+ scoreLabel. zPosition = 1
225+ scoreLabel. fontSize = self . size. height/ 15
226+
227+ musicButton. position = CGPoint ( x: soundButton. position. x + self . size. width/ 9.5 , y: self . size. height/ 3.5 )
228+ musicButton. zPosition = 1
229+
230+ gameCenterButton. position = CGPoint ( x: soundButton. position. x - self . size. width/ 9.5 , y: self . size. height/ 3.5 )
231+ gameCenterButton. zPosition = 1
232+
233+ playButton. position = CGPoint ( x: self . size. width/ 2 , y: self . size. height/ 1.6 )
234+ playButton. zPosition = 1
235+
236+ piano. position = CGPoint ( x: self . size. width/ 8.5 , y: self . size. height/ 3.5 )
237+ piano. zPosition = 1
238+
239+ catAction. position = CGPoint ( x: self . size. width/ 6 , y: self . size. height/ 1.55 )
240+ catAction. zPosition = 2
241+
242+ chandelier. position = CGPoint ( x: self . size. width/ 1.3 , y: self . size. height/ 1.13 )
243+ chandelier. zPosition = 1
244+
245+ chair. position = CGPoint ( x: self . size. width/ 1.215 , y: self . size. height/ 7.5 )
246+ chair. zPosition = 1
247+
248+ flyAction. position = CGPoint ( x: self . size. width/ 1.215 , y: self . size. height/ 2.6 )
249+ flyAction. zPosition = 1
250+
251+ default :
252+ break
253+ }
254+ #endif
247255 }
248256
249257 #if os(tvOS)
0 commit comments