Reputation: 343
I want to implement a sea surface from above perspective for one of my games in iOS (with SpriteKit).
Basically like a relaxed sea, from above - subtle wave motion going around, with possible objects floating and reacting with the motion. As if you're flying from a plan, and looking down at the sea, and you can see a beach ball on the water surface, which is moving according to changes in the water.
I tried to search for libraries or guides since i assumed this would be popular thing, but sadly i could not find anything.
So i am asking for your help and guidance:
Is what i'm asking to do, complicated to implement? would love directions to guides or information about tools within iOS / SpriteKit so i can start from somewhere.
I would love to implement that sea engine myself, but - are there are external libraries that do such stuff?
Thank you for your time!
Upvotes: 1
Views: 968
Reputation: 2967
This would not be very complicated if you want more of a cartoony feel for your game rather than real world physics.
What you can do is draw an ocean image or blue background and then have a few other images (little ripples of the water, beach ball, junk, etc) all at random locations. This will give the impression that you have an ocean with stuff in it.
Now for making the stuff float around, you can pick a direction you want your "wind" to go in and then loop through all of your objects and apply that force to them so they all look to be floating together.
Upvotes: 1