I am planning to add a waterfal in my game.
What is the best way of doing it? I thought in animated tiles or rotating palette or even particle effect. What should I use? Does anyone has already done a similar effect?
I would use animated tiles. Colour cycling tends to look lame and was really only useful in the ancient days of 256 colour displays or less.
I actually coded a dynamic waterfall effect on the C64 years ago using redefined character images as my tiles. The basic effect was to scroll the image in one texture by one pixel and spill the bottom row over to the top line in another texture that was scrolled at a faster rate… repeat that a few times and stack the textures vertically so it looks like the water is accelerating as it falls. The empty line on the first texture can be replaced with a random pattern or cycle through some stored patterns.
A particle system could be used as well. Even added to the above effect for splashes at the bottom etc.
You can grab some old code I wrote that does a particle water effect here: http://www.cfxweb.net/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=295&ttitle=Contest%203%20entry%205
I’m doing waterfalls, or rather water falling, as a simple particle effect in a game I’m working on now. I tried using an animation first but that looked quite static, that’s probably an effect of my poor artistic skills more than anything else though
Anyway I’m satisfied with the looks of the waterfall, you could check it out here if you want. I could rip out the source if you want, but I guess swpalmers code is much better.
http://www.enormousgames.com/subsites/thelittleplummer/plummer.jnlp
hmmm seems like my webhost is down at the moment, hehe with a price of 99 swedish kronors (that would be in the range of 12-13$) a year for 250Mb storage, ‘‘unlimited’’ bandwidth, php and mysql the host should be shitty
use the fire method, ever implemented burning plasma fire ( we used in many assembly demos )
you have some hot spots where the fire lives ( white spots and then fire burns from bottom to top and cools down).
for water its the same effect, vice versa, with some physics altered, water is going from blue to white ( water with oxygen )
DrBizzar0 could you send me the source code of your game?I want to see if I can use your waterfall code in my game. If so, I will of couse add your name in the credits section.
Send to my email: luizfernando_estivalet@yahoo.com
Thanks,
Luiz Fernando
Sure, I’ll mail it later today, just have some things I need to take care of first.