Showing posts with label effect. Show all posts
Showing posts with label effect. Show all posts
Sunday, March 23, 2008
Particle Engine - first attempt
So, time wen't by, and friends/family/kids/work came in the way of finishing the particle engine (read: I prioritized real life over this blog, so sue me ;) )
First attempt contains a rather "amputated" version of a linked list which doesn't implement any search functions or other methods normaly implemented, for the sake of "pretty design" I could of course write these methods, but it would be a waste of time.
My main focus from here on is to optimize the engine, currently I've spottede a few design flaws that could be different, and I've got a few idea's for futher optimizing.
Click here to download the source
Stay tuned ...
First attempt contains a rather "amputated" version of a linked list which doesn't implement any search functions or other methods normaly implemented, for the sake of "pretty design" I could of course write these methods, but it would be a waste of time.
My main focus from here on is to optimize the engine, currently I've spottede a few design flaws that could be different, and I've got a few idea's for futher optimizing.
Click here to download the source
Stay tuned ...
Labels:
Data structures,
effect,
Particle engine
Sunday, March 9, 2008
A small starfield with a bluring effect..
This was one of my first experiments after reading a few chapters in the "Professional ActionScript 3.0" book.Granted, the code is not optimized, pretty or in anyother way OO as it should be, but it works. which was the most important thing for me at the time.
For those interested, it's a pretty simple algorithme, a "star" starts it's life in a random postion between -10 and 10 on both the x and y axis, and the cordinate space moves it's 0,0 to the center of the screen,done by adding 1/2 of the screen width,height to the stars upon rendering.
Moving the stars is done by multiplying a randomly assigned acceleration value. so the farther the star get's away from the center, the faster it gets.
It sounds advance, and confusing, but is pretty simple.
Also I added a small pixel based blur effect using the Red component, but afterwards I've learned that flash has it's own filters. I'll have to look into that some day.
Click here to download the swf,fla and as files
It was also written in the rubbish flash cs 3 IDE .. which held me back in a big way.- Kenneth C
Subscribe to:
Posts (Atom)