Solved

Firework graphic source code

Posted on 1997-11-13
3
533 Views
Last Modified: 2012-06-27
I'm looking for source code for an animation of an exploding firework that can be used through the Borland compiler on a PC. I would be realy greatfull if anybody could help.
0
Comment
Question by:johnB
3 Comments
 
LVL 1

Expert Comment

by:ksato
ID: 1256321
If the DOS graphics library will do, you can try keeping track of n firework "pixels" and for each of those, keep track of each velocity (direction and how many pixels to skip when redrawing). Each render/redraw you do you can offset each firwork pixel so they won't all be going in the same direction. And decide how the firework pixels behave (bounce off screen dimensions, etc.). If you're just looking into experimenting, I can help you out with a "bouncing ball program" and you can go from there.  Cheers
0
 
LVL 2

Accepted Solution

by:
rigansen earned 100 total points
ID: 1256322
Some say "You know C++, then you know JAVA", I hope you know some C++ programming as well as C...  ;)

because there is a site with a fireworks applet at http://www.ivee.com/~wistrand/fireworks/, there you will be able to find the source code so you can check it out and get the idea.

The author says "You may freely use the applet for non-commercial purposes as much as you like", so I hope I'm not violating any copyright policy. If I am, let me know.

Hope this helps you out!!
0
 

Author Comment

by:johnB
ID: 1256323
I really could have done with somthing a bit more specificly C orientated, and I'd actually allready found the applet myself and It wasn't much use, but thanks anyway.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now