And then there was steam!
ciw42 on 2006/03/29 18:14
of Chris Wilson
Spent around 4 hours last night (well, early this morning) hacking away with some art and the code to produce realistic looking steam for my train, and I'm really pleased with it.
It actually billows nicely, dissipates pretty much like proper smoke, and it looks good and realistic whether the train is stationary or moving at high speed.
Had something working after around 5 minutes, but kept tweaking things and trying new ideas, and in the end, the whole thing comes in at only around 20 lines of code and only uses one small image. Going to add a few more parameters which may be useful if I have steam elsewhere in the game, and then it's back on with the game framework.