Solved

Firework graphic source code

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

758 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

16 Experts available now in Live!

Get 1:1 Help Now