• Register

The game you are trying to view has ceased development and consequently been archived. If you are a member of this game, can demonstrate that it is being actively developed and will be able to keep this profile up to date with the latest news, images, videos and downloads, please contact us with all details and we will consider its re-activation.

Kung Fu Kingdom is a Real Time Strategy game for the PC currently under development by Gorilla Tactics, an independent game developer. In the Kingdom, you are the glorious new leader of a Kung Fu Temple. The monks who inhabit your temple are lazy, obnoxious, and a danger to themselves and others! It is your job to whip them into fighting shape, while expanding your temple complex and dealing with the many dangers living within the Kung Fu Kingdom.

Post news Report RSS Fun with Splines!

In our efforts to make sure Kung Fu Kingdom doesn't play like its built on a grid (which it is, of course) we have decided to use splines for rivers and roads instead of making them tile based. For those of you who are not in the know about splines, let's get you in the know.

Posted by on

This is what a spline is. OH SNAP! That still doesn't make any sense!

Basically a spline is a curve made from a series of points. In games, we apply a repeating texture, or a repeating series of textures, to the spline line in order to make a road or a river! They can be used for other things, and they are pretty important because, as I mentioned in the summary, they can be used to take your game off the grid, so to speak.

Here were some early tests.


As you can see, there are some serious stretching problems (putting aside how ugly the texture is - Sorry Somjade).

After a few tweaks by Terry (Lead Programmer) we managed to get pretty good looking splines. One of the bigger problems we had was when we wanted to do really sharp turns. By using a separate, 90 degree turn texture we have somewhat alleviated this problem, though as always it has introduced new ones.


I'll post again once we have finished the road texture and made something truly sexy looking. All this work was made petty easy by the Flat Red Ball engine using their Sprite Chain's, which are basically splines.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: