Questions tagged «spritekit»

2
SpriteKit是否遵循MVC模式?
我目前正在开发一个名为Old Frank的iOS项目,该项目一直在尝试遵循MVC设计模式。 要点是。 GameObjects(model) <- Scene(controller) -> Sprites "SpriteKit" (View) 现在,如果我对MVC的理解正确,那么如果您想遵循MVC,就无法使用SpriteKit提供的许多功能。例如any SKAction,碰撞检测等。 难道不是取决于游戏对象所在的模型以及它们在触摸其他对象时应如何反应吗?确定模型是否随时间推移是否取决于模型? 除了渲染之外,SpriteKit是否有其他部分可以被认为可以用作MVC中的“视图”?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.