Wednesday, September 17, 2014

Wednesday, September 17th

Today, I finally got back to watching videos.

I only managed to watch two videos, but one of them was 30 minutes long. It was a relief to finally forget about anything that had to do with snakes and turtles, and just start a new project from the start. What we did was we put balls into a world, and made them move around. To be honest I thought it would be 2 lines of code to write that, but it took a lot more. The reason for this is that we had to inherit some actions ( such as atWorldEdge) from the animal class. Since the ball is not an animal, we had to go back to the animal class code from the old program and copy it from there. Also, it took a lot of code just to simply get the ball from the start to move to the left instead of the right.

What I am learning from this video and of course from the past problems that I had is something very important: even though some things may look easy to code, it doesn't mean that they always are. It did take a long time to watch that video. Once again, I think that Michael Kolling took way too long, and especially in that one. I like his videos better when they short and explain everything quickly.

Today, while working, a question came to me. When we are working with Greenfoot, there is a Greenfoot class documentation. Meaning some actions are inherited from the actor class, some from the world class, some from the Greenfoot class and more. I asked myself " when you code Java to make an application, where do all the actions come from?" Is there a HUGE Java class documentation? I thought this was an interesting question.

Apart from that, I was happy to get back on track and to watch videos again. I hope to watch many more videos next class and find a new game idea.

* I wrote this blog post last night, but forgot to post it. *

No comments:

Post a Comment