Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Let's have a (virtual) fireworks competition!

This thread is locked; no one can reply to it. rss feed Print
Let's have a (virtual) fireworks competition!
ixilom
Member #7,167
April 2006
avatar

If they all had the same outward speeds, you'd wind up with a ring again.

It is the ring effect I'm trying to make :P

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

Arthur Kalliokoski
Second in Command
February 2005
avatar

So use do_circle() and only draw every N'th pixel.

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

ixilom
Member #7,167
April 2006
avatar

Not using Allegro :P I'm doing this with XNA framework :)

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

Arthur Kalliokoski
Second in Command
February 2005
avatar

So use Timorgs idea, but I'd think it'd look pretty lame...

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

Slartibartfast
Member #8,789
June 2007
avatar

This is what mine looks like.
{"name":"600098","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/3\/23cccd0089db987103d62c6fd5565b54.png","w":650,"h":509,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/3\/23cccd0089db987103d62c6fd5565b54"}600098
This is about as much as I can do without it stopping being exciting.
But it has all those configurable parameters!
Source attached, includes a crappy makefile.
The code is terribly ugly.
If anyone is bored feel free to suggest a better general approach/design I should have taken in the first place to avoid having such an ugly POS.

(Allegro 4.9.16)

EDIT: uploaded improved Line.cpp (increased line thickness to make it stand out more)

blargmob
Member #8,356
February 2007
avatar

Here's my piece of shit entry. The code is horribly ugly and there is a massive memory leak which I am far too lazy to fix. Hit the spacebar to launch a firework.

{"name":"600102","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/3\/23b295132dbb118c793379186ab5627a.png","w":816,"h":636,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/3\/23b295132dbb118c793379186ab5627a"}600102

---
"No amount of prayer would have produced the computers you use to spread your nonsense." Arthur Kalliokoski

type568
Member #8,381
March 2007
avatar

blargmob: You are evil. Very. Crashed on launch.

Felix-The-Ghost
Member #9,729
April 2008
avatar

You know what...I think I'll try this.

==========================
<--- The ghost with the most!
---------------------------
[Website] [Youtube]

blargmob
Member #8,356
February 2007
avatar

type568 said:

blargmob: You are evil. Very. Crashed on launch.

What exactly happened? Did it say anything? You'll need XNA GS 3.1 and .NET 3.5 in order to build it. And I think you just need .NET 3.5 to run it...

---
"No amount of prayer would have produced the computers you use to spread your nonsense." Arthur Kalliokoski

LennyLen
Member #5,313
December 2004
avatar

Here's mine:

{"name":"600105","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/c\/7c57afb05efd3f893e907a004c1e28cf.png","w":758,"h":626,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/c\/7c57afb05efd3f893e907a004c1e28cf"}600105

edit: Oops, forgot the source

blargmob
Member #8,356
February 2007
avatar

^^ lulz

---
"No amount of prayer would have produced the computers you use to spread your nonsense." Arthur Kalliokoski

Jonatan Hedborg
Member #4,886
July 2004
avatar

LennyLen said:

Here's mine:

Weak :'(

-------
Sweden: Free from the shackles of Democracy since 2008-06-18!

Vanneto
Member #8,643
May 2007

Here is my current version...

{"name":"600107","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/2\/529e230857efa31da0d1c5649e24f22c.png","w":825,"h":643,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/2\/529e230857efa31da0d1c5649e24f22c"}600107

In capitalist America bank robs you.

Jonatan Hedborg
Member #4,886
July 2004
avatar

Wow, lots more participants than I expected! Keep it up everyone! :D

Except LennyLen. You killed my soul :(

-------
Sweden: Free from the shackles of Democracy since 2008-06-18!

Timorg
Member #2,028
March 2002

Except LennyLen. You killed my soul :(

Perhaps you should look at the source before it is too late to resuscitate said soul.

____________________________________________________________________________________________
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

Jonatan Hedborg
Member #4,886
July 2004
avatar

I did.

That's what killed it.

-------
Sweden: Free from the shackles of Democracy since 2008-06-18!

Timorg
Member #2,028
March 2002

Oh I thought you meant that your soul died, as there was no way you could compete with the entry.

____________________________________________________________________________________________
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

LennyLen
Member #5,313
December 2004
avatar

If I can get all the C# programming tasks I assigned myself for the day finished before I have to leave for work this evening, I'll have a go at a real entry.

But hey, at least it was nice[1], tidy, code for two minutes worth of coding. ;)

References

  1. except for checking whether the image loaded successfully

Dario ff
Member #10,065
August 2008
avatar

{"name":"600108","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/5\/65d1dbee6fb4379c961fabc16732ac4a.jpg","w":793,"h":612,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/5\/65d1dbee6fb4379c961fabc16732ac4a"}600108

You could've photoshopped it a bit, apart from resizing :P

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

LennyLen
Member #5,313
December 2004
avatar

dario ff said:

You could've photoshopped it a bit, apart from resizing

Just figuring out how to re-tint the image in PhotoShop would have taken me longer than it took to code the entire thing. ;)

Dario ff
Member #10,065
August 2008
avatar

CTRL+U - Hue, Colorize
CTRL+T - Transform

Now you don't have to figure it out :)

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

LennyLen
Member #5,313
December 2004
avatar

Perhaps I should also have mentioned that I don't have PhotoShop. ;)

Don Freeman
Member #5,110
October 2004
avatar

LennyLen: I give you points...that made me laugh. :)

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

Dustin Dettmer
Member #3,935
October 2003
avatar

Hey look someone already posted my image on google image search!
65d1dbee6fb4379c961fabc16732ac4a-240.jpg

Trent Gamblin
Member #261
April 2000
avatar

Here's my entry

{"name":"600113","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/4\/24c62b7bbcfa2df048e4c45db4fa069a.jpg","w":806,"h":625,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/4\/24c62b7bbcfa2df048e4c45db4fa069a"}600113



Go to: