March 25, 2013

Rubber Disk


Here's the Stretchy Disk program I named in my Stretchy Ball post. My dad soon figured out how to fix the shape, and then I added a couple of enhancements. As with Stretchy Ball, just click and stretch:

March 24, 2013

Stretchy Ball


Once I finished the curvy lines program, I butchered it and started working towards my original goal: to create a stretchy disk. I succeeded, but the shape of the disk when I stretched it was all wrong. After a while, I got my dad to come over and take a look at the math, and he started playing with it too, trying to figure out how to fix the shape.

At one point, he changed something wrong and got a ball instead of a disk. It looked pretty cool, so I saved it. Later I made some changes. Here's the finished result; just click and stretch:

March 20, 2013

Curvy Lines


I wanted to write a program for a stretchy disk, but I made it too fancy and ended up with this. To use the program, click the mouse on the lines. Keeping the mouse pressed, move the mouse.

To create more lines, press the UP arrow. To get rid of lines, press the DOWN arrow.

Block Breaker

Block Breaker is an edited version of Super Ball. I added blocks and a couple more features for a very fun and addictive game. Here it is:

March 14, 2013

Super Ball

The Khan Academy computer science module uses JavaScript with a library called Processing. Processing is what allows you to draw graphics, and JavaScript is what does everything else (which can be quite a lot).

When I first learned about Khan Academy, I had never programmed in JavaScript before, let alone Processing. But I had been programming for so long in other languages that I caught on very quickly, and wrote my first program: Super Ball.

I had sometimes thought about how cool a bouncing ball program with gravity would be, and when I found Khan Academy's computer science module, I just had to write one. So here it is; if you get a high score, just comment. Enjoy!

Khan Academy

Khan Academy is a website where anybody can go to learn all kinds of stuff, from history to mathematics. It's 100% free, and you don't even need an account.

My favorite thing about Khan Academy is the computer science module; you can write, save, and share computer programs, all on the site. I've been writing programs on Khan Academy for almost 6 months now, and still enjoy it as much as when I first started.

Here's the address: www.khanacademy.org Take a look, and see what you think.