SpriteKit液体(水) [英] SpriteKit Liquid (water)

查看:203
本文介绍了SpriteKit液体(水)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的spriteKit应用程序中获得少量液体?

How can I get a small amount of liquid in my spriteKit application?

我想要将液体放入容器中,它将被密封在里面但我想要它能够四处走动。

I want that liquid in a container, it will be sealed inside but I want it to be able to move around.

有没有更好的方法来实现这个?也许没有SpriteKit的选项?

Is there a better way to implement this? Maybe an option without SpriteKit?

编辑:
我可以使用本教程模拟水:
http://www.raywenderlich.com/85515/liquidfun-tutorial-1

我发现这个示例项目:
https://github.com/safx/liquidfun- ios-sample

and this sample project I found: https://github.com/safx/liquidfun-ios-sample

但它要求我运行2个物理世界(1个用于box2D,1个用spriteKit)。有谁知道如何将我的粒子从box2D变成spriteKit?我想这应该是可行的,因为spriteKit也在box2D上运行吗?

BUT it requires me to run 2 physics worlds (1 for box2D and 1 with spriteKit). Does anyone know how I can get my particles from box2D into spriteKit? I imagine this should be doable since spriteKit runs on box2D as well right?

推荐答案

我可以建议你LiquidFun 的。它非常容易安装,玩它很有趣。
你可以建立像我的水在哪里?等游戏......等等!

I can suggest you "LiquidFun". Its very easy to Install and it is fun to play around with it. You can build Games like "Where's my Water?"... and others!

以下是RayWenderlich教程的链接:点击我

Here is a link to a tutorial from RayWenderlich: Click Me

我希望这有用!

I hope that this was helpful!


//但请注意,此版本的LiquidFun仅适用于XCode 6.3

// But Note that this Version of LiquidFun is only for XCode 6.3

问候!

这篇关于SpriteKit液体(水)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆