CodeBase - Easy to Use 3D Sparkle Generator

Return to the CodeBase listing

Category: 3D Effects

Version: 1.0

0
0

Information

Uploaded: 9th Feb 2007 14:09

Modified: 9th Feb 2007 14:09

Author:  Trek

Summary

Allows you to create a sparkle fountain with only 3 commands.

Full Description

This code, which is very similar to my last codebase entry (Explosion Generator), allows you to create fountains of sparks extremely easily and efficiently. One command sets up your generator with a specified range of objects to be used for sparkles, another you stick in your main loop to control any active sparks, and then whenever you want to have a brilliant spray of sparks, you simply call the TriggerSparkles() function with the position, size, etc. of the sparkles you want to generate.<br /> <br /> This is very handy for things like when your character collects a powerup or something like that.<br /> <br /> To run this demo, simply download the included Spark.png graphic and put it in the same directory as the code.<br /> <br /> No credit is required but a reference to &quot;Trek Software&quot; as the author is always appreciated. <br /> <br /> To check out my other productions, go to www.TrekSoftware.org

Comments

No comments yet.