CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 129 users online: 2 members, 104 guests and 23 bots.
Members: kellyace2.
Bots: MSN/Bing (1), Magpie Crawler (6), Googlebot (16).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
elfprince13


OVER NINE THOUSAND!


Joined: 23 May 2005
Posts: 10246
Location: A galaxy far far away......

Posted: 04 Jul 2012 10:55:50 am    Post subject: Project Firework


Link


(my apologies for the artifacting in the video capture)

I've got a fun little Java program (and animation API) here that displays a sunset followed by Fireworks (sorry the video quality is pretty bad). I'd love to see what kind of creative firework code you guys can come up with for the 4th. The source and compiled binaries are available here.

You can write some new classes to extend AnimObject (or either of the two example classes I provided - SimpleFirework and SimpleSparklingFirework). You should probably only have to modify the worldTick method in FireworksWorld.java to add your new effects, but you're also welcome to write your own class that extends either FireworksWorld or AnimationWorld and a new main class to go along with it.

If anyone comes up with a couple cool ones and posts them here, I'll happily turn it all into an applet (or a Java WebStart app), and host it on SFGP for everyone to play with.


Happy Fourth.
_________________
StickFigure Graphic Productions || VSHI: Vermont Sustainable Heating Initiative


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55874
Location: Earth, Sol, Milky Way

Posted: 04 Jul 2012 12:36:52 pm    Post subject:

Very cool, Elfprince; thanks for sharing! It looks to me as if it picks a few fixed points along the horizon as the firework launching points; is that accurate?
_________________


Back to top
elfprince13


OVER NINE THOUSAND!


Joined: 23 May 2005
Posts: 10246
Location: A galaxy far far away......

Posted: 05 Jul 2012 12:31:48 am    Post subject:

Yes, though it would be easy to change that. I figured it was semi realistic to limit the number of places being launched from.
_________________
StickFigure Graphic Productions || VSHI: Vermont Sustainable Heating Initiative


Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.024262 seconds.