Apr 14, 2011
April 14 2011
Today I was filmed. I would have worked more on Greenfoot, but Zach needed me to be filmed for his... I know it's a video, but I'm not really sure what it's for. Anyway I did some photoshopping while he filmed my screen. The final picture is unfortunately on the school computer so I will add it at a later date.
Apr 12, 2011
April 12 2011
To summarize what I did today was add sound effects to my crabs, and put the correct format for the crabs and worms to come to the same spot every time. It took me a while to figure out how to format the crab's, worms and lobster's placement. I had to make sure they were spread far enough apart by knowing what numbers put what where. The sound effects didn't take to long. Now my Crab game is almost complete!
Apr 8, 2011
April 8 2011
I didn't do too much today. It was the last block on Friday so I kept getting distracted with Michael's project. But I have almost finished chapter 3, and specifically I set up the crab scenario to automatically set a certain number of worms, a crab and a lobster randomly in the world. So for next class I will finish chapter 3 and be able to do whatever chapter 4 is about.
Apr 6, 2011
April 6 2011
Today I made a game. Yay. I didn't have enough time to make the game have an ending, but I did make a code so the crab could turn with the right and left keyboard keys.
if (Greenfoot.isKeyDown("left"))
{
turn(-4);
}
After I used that for the left key, I added it for the right.
if (Greenfoot.isKeyDown("right"))
{
turn(-4);
}
This is my first attempt at using the keyboard.
In the video I showed how when I added
turn(-4);
for left and right, both keys did the same thing. But then I realized that I had to be able to make them go different directions so i changed the code for right to:
turn(4);
So I added some worms and played my game. Then I made sure the code was the same as the book and started messing around with the images.
Apr 4, 2011
April 4, 2011
Today I was supposed to do something. Well to be specific I needed to make my own method rather than using the book's. Of course I wasn't exactly sure where anything went. But I did add:
public void lookForWorm()
{
if ( canSee(Worm.class) )
{
eat(Worm.class);
}
{
After I did that (which I honestly don't know what changed) I tried to do the exercises on the page. But the only thing it told me to do was add:
randomTurn
So I was sort of confused. But towards the enf of class I gave up pondering the effects of my new method. I did manage to make a crab eat: llama's, worms (of course) and a fireball.
Subscribe to:
Comments (Atom)