Today I was at the Genius Bar, and I watched 3 and 1/2 videos ( towards the end of the last video, I fell asleep). It turns out that I am farther than I thought I was- I don't know why, I thought that I was on video 19 or something, but I was actually on 22 and after today I am up to the beginning of video 26.
I finished watching video 25 at home.
Once again today, Tommy and I had no customers at the Genius Bar.
The first video I watched was about the animation of the image. We had the balls in our world, that moved and came in wherever we clicked the mouse. After a lot of clicking, the world would get very crowded. So what Michael Kolling wanted to do was to make the balls fade out. He wanted the balls to become more and more transparent as they went on. He taught us that the transparence of the ball ranged from 0-255, with 0 being completely transparent. We created an if statement that said, if the alpha( transparency) of the ball is greater than 0, subtract 1 from it. Else, if the alpha is not greater than 0, remove the ball from the world. The statement looks like this:
void changeTransparency()
{
GreenfootImage img = getImage();
int alpha = img.getTransparency();
if (alpha > 0)
{
img.setTransparency(alpha-1);
}
else
{
getWorld().removeObject(this);
}
}
After that, I think we finished with the ball world. I am not sure what we will do next as he did not do anything new in the two following videos.
The following video was a pretty pointless one, in my opinion. He showed us a sort of brick breaker game, but without the bricks - just a paddle and a ball. He didn't teach us how to do it or anything, and that's why I was confused as to why he showed it. I didn't learn anything from it.
The video after that was a very long one. It was about dealing with errors ( a bit ironic, I thought, after being stuck for 3 classes with problems). He talked about syntax problems and about runtime problems. My problems were mostly runtime problems. The thing is, with that video he could not have helped me much because the examples of runtime problems that he solves are the ones in which a whole new screen pops up and gives what the error is. He taught how to read that language and tell what the error was. I think that this video was incredibly important and I think I didn't understand everything that he taught. I will definitely be re watching that video.
I am trying to find a final checkpoint of some sort, to wrap up and be able to present in the next 4 classes, however I have a dilemma. I am not sure if he will be completely starting on a new project, or if he will be doing more with the balls. And I don't think that I have enough time at all to start on a whole new project.
Next class I will try to organize the remaining 4 or so classes before the end of the quarter, and I will decide on a final goal for my presentation.
No comments:
Post a Comment