skip to main
|
skip to sidebar
It Doesn't Have to DO Anything...
Friday, December 18, 2009
Rising Bubble
Alright, first post après capstone. This is just a little experiment toying with trigonometric functions as a method of movement. Once you click somewhere in the stage, a bubble is added. A few starting values are randomly selected and then plugged into the function of a
sine (sin) wave
. The x coordinate of the bubble is the result of the sine wave function. A constantly increasing value is plugged into the sine function and the result is the x coordinate. Since a sine wave is a repeating, oscillating curve, we get the left to right motion. The change in the y coordinate is simply a constant increase (though that constant is randomized at the beginning of the bubble's life cycle).
Enjoy! Expect another post (maybe something a little more complex) in the next few days. If you have any suggestions or just want to see something specific, let me know. I'll see what I can do!
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
About Me
Corey
Shelbyville, Indiana, United States
I'm a geekish sort of guy by most standards. I absolutely love to read and to play video games. I am a Flash developer currently living in Shelbyville, IN.
View my complete profile
Follow Me
Links
Blog Archive
►
2011
(7)
►
04/24 - 05/01
(1)
►
04/17 - 04/24
(1)
►
03/27 - 04/03
(1)
►
03/20 - 03/27
(1)
►
02/20 - 02/27
(1)
►
01/02 - 01/09
(2)
►
2010
(50)
►
11/07 - 11/14
(1)
►
06/13 - 06/20
(3)
►
06/06 - 06/13
(1)
►
05/30 - 06/06
(3)
►
05/23 - 05/30
(4)
►
05/16 - 05/23
(3)
►
05/09 - 05/16
(1)
►
05/02 - 05/09
(1)
►
04/25 - 05/02
(2)
►
04/04 - 04/11
(2)
►
03/28 - 04/04
(4)
►
03/14 - 03/21
(1)
►
03/07 - 03/14
(1)
►
02/28 - 03/07
(2)
►
02/21 - 02/28
(2)
►
02/14 - 02/21
(4)
►
02/07 - 02/14
(2)
►
01/31 - 02/07
(2)
►
01/24 - 01/31
(2)
►
01/17 - 01/24
(1)
►
01/10 - 01/17
(3)
►
01/03 - 01/10
(5)
▼
2009
(14)
►
12/27 - 01/03
(2)
►
12/20 - 12/27
(2)
▼
12/13 - 12/20
(1)
Rising Bubble
►
12/06 - 12/13
(1)
►
11/29 - 12/06
(3)
►
11/22 - 11/29
(5)
Followers