Arbitrary interface

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
groomed_goose
Prole
Posts: 7
Joined: Thu Dec 04, 2008 7:03 am

Arbitrary interface

Post by groomed_goose »

This might be obvious to people who have been using love a bit but I've been thinking about it and I don't have any clean ideas :(
I want to make a boat game where the water surface is some arbitrary function. I'm just not sure how to draw an arbitrary rounded surface.
I want the curvature of the water surface to interact with the boats, so I can't just fake it and make an animation in front of the boats.
But some combination of sine waves of differing frequencies would be satisfactory, I'm just not sure how to draw that.
cheers
Scott
User avatar
Kuromeku
Party member
Posts: 166
Joined: Sun Jul 20, 2008 5:45 pm

Re: Arbitrary interface

Post by Kuromeku »

You could probably make it better, I'm pretty shit at maths and this sort of stuff.

The waves are more triangular than they are smooth, but the concept is here, you should be able to make it how you want it from this.

http://kudomiku.com/dump/water.love
User avatar
groomed_goose
Prole
Posts: 7
Joined: Thu Dec 04, 2008 7:03 am

Re: Arbitrary interface

Post by groomed_goose »

Thanks for the idea, thats a good way of doing it, let you know how it goes
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests