SpriteKit Liquid (water)

纵然是瞬间 提交于 2019-12-21 03:51:09

问题


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.

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

EDIT: I was able to simulate water using this tutorial: http://www.raywenderlich.com/85515/liquidfun-tutorial-1

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

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?


回答1:


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!

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

I hope that this was helpful!

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

Greetings!



来源:https://stackoverflow.com/questions/33153574/spritekit-liquid-water

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!