Labels

Tuesday, 22 May 2012

DSDN 142 - ArrayList code after lecture. Added to my code.

Here is my 'ArrayList' code that I worked on during tutorial :

float A = 50;
float ellipsex = 0;
float ellipsey = 0;

ArrayList Circles;

void setup() {
  size(500, 500);
  smooth();

  Circles = new ArrayList();
 
  for(int i = 0; i < 150; i++){
  Circle myCircle = new Circle(random(0,width),random(0,200));
  Circles.add(myCircle);
 }
}

void draw() {
  background(0);


  if (mousePressed == true) {
    ellipse(ellipsex, ellipsey, A, A);
    ellipsex = ellipsex + ((mouseX-ellipsex)/20.0);
    ellipsey = ellipsey + ((mouseY-ellipsey)/20.0);
  }

  if (mousePressed == true) {
    fill(255, 0, 0);
  }
  else {
    fill(255);
  }

for(int i = 0; i < 150; i++){
Circle myCircle = (Circle) Circles.get(i);
myCircle.play();
 }
}

class Circle {

  float x = 0;
  float y = 0;
  float speedX = 3;
  float speedY = 0.2;


  Circle(float xx, float yy) {

    x = xx;
    y = yy;
  }

  void play() {
    Thecircle();
    movement();
    bouncing();
    force();
  }

  void force() {
    speedY = speedY + 0.5;

  }
  void bouncing() {
    if (x > width) {
      speedX = speedX * -1;
    }
    if (x < 0) {
      speedX = speedX * -1;
    }
    if (y > height) {
      speedY = speedY * -1;
    }
    if (y < 0) {
      speedY = speedY * -1;
    }
  }

  void movement() {
    x = x + speedX;
    y = y + speedY;
  }

  void Thecircle() {
    ellipse(x, y, 20, 20);
  }

}  

Nowz I can haz many circlezzzz!!!!

    Here are two images of my project so far with ArrayLists and the one on the left has 50 circles while the one on the left has 150. I can have as many as i want to have obvoiusly but just wanted to show you some images of it :).

Sunday, 20 May 2012

DSDN 101 - Inspiration!

Here is a clip from YouTube which got me to the idea of post it noting. (LINK AT BOTTOM)
Although it looks like a lot of work, I'm up for the job! And cant wait to get started on my movie!
So now you know I want to get into post it noting and create a good stop motion out of it.
I have created some storyboards that I'll post up later on in the week so you can see my ideas and concepts of how to post it my idea.

My idea is based around "Old VS New" so for example I'm doing a really old computer :









 Then pan and zoom in and out to create a keyboard which is on a mac:
It will be a lot more longer and have a lot of detail in the stop motion.
Hopefully you get this idea of old vs new and then at the end of the clip it will have "A new way of seeing on the Mac laptop".



Best post it note clip out there:
http://www.youtube.com/watch?v=-ZtxHOfmhH4

DSDN 101 - Trail clip (stop motion)

 I stop motioned me making a paper hat!
Here it is:


Thursday, 17 May 2012

DSDN 142 - Photos of development

 Here we have an image of the bouncing balls when the mouse is clicked. As you can see the balls go red, implying you can hit the balls.
And here we have the normal bouncing balls with no click. I still need to work out how to collide the balls.

DSDN 142 - Overview so far...

So.... I have came from a really simple idea to many more ideas, to too many ideas, to a final idea!

My first few stages was learning how to create interactive objects/code.
 As you can see earlier in my blog, you can see my learning stages and how I learn't some helpful tips. Then I started exploring what I could create and thought of some ideas of interactivity I could create. I was firstly thinking about doing a wave of some sort which interacted with you when crossed your mouse across the "line" to create a wave. But then I saw too many codes like that so I decided to get away from mainstream ideas and look at some other inspirations.

Another idea I had was to create my own monster, which ended up being a rocket... and put an ellipse in the middle of the screen which represented a moon. And when that rocket when past the moon, the moon would create a puddle effect, waving out of the screen and the faster you go through the moon, the faster the puddle waves go. etc....

Then mainly after this point all my ideas started turning into games which we're not aloud to do. So I thought how could I make an interactive program that would be fun and isn't a game. This bring me to my final idea! Which was bouncing balls. And when you click the mouse the balls go 'red' and then that means you can hit the balls and when you release, the balls go 'white' implying you can't hit any of them.
This is more explain in the earlier post!! :)