Solved

Firework graphic source code

Posted on 1997-11-13
3
523 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C#, VS15, StructLayout 1 121
How to jump to matching brace in eclipse editor ? 1 263
distributed computing in Python 4 113
delete-remove 14 59
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 is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

948 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

19 Experts available now in Live!

Get 1:1 Help Now