简体   繁体   English

Sprite Kit场景+ Tab Bar控制器

[英]sprite kit scene + tab bar controller

I am really new to iOS programming, so any help is appreciated. 我真的是iOS编程的新手,因此不胜感激。

I am making a simple game. 我正在做一个简单的游戏。 What I want is: 我想要的是:

  • a sprite kit welcome scene, which opens up(an animation) to the main game. Sprite Kit的欢迎场景,向主游戏打开(动画)。
  • the main game has 3 tabs, so I need a tab bar (like the one on the view controllers). 主要游戏有3个标签,因此我需要一个标签栏(如视图控制器上的标签栏)。
  • two of those tabs will contain at least one sprite kit scene for the game play. 其中两个选项卡将至少包含一个用于游戏的Sprite Kit场景。

Right now, I have the animated welcome scene done, which opens up and go into the game scene when the user presses the screen, but there's no tabs(tab bar) on the main game scene. 现在,我已经完成了动画欢迎场景,当用户按下屏幕时,它将打开并进入游戏场景,但是主游戏场景上没有选项卡(选项卡栏)。

What I don't know is that how should I do so that the scenes are linking together and also be able to shift/change and go between them... 我不知道该怎么做,以使场景链接在一起,并且能够在它们之间移动/更改和移动...

You can make and customize three view controllers and add SKView in each of them to show three different scenes. 您可以制作和自定义三个视图控制器,并在每个视图控制器中添加SKView以显示三个不同的场景。 Use UITabbarController to handle this default way. 使用UITabbarController处理这种默认方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM