Friday, October 22, 2010

Day 12: improvements on the race





With pretty much the same sensor as last time, we changed the race. Now Gobo tries to go right, and the TRex goes left! If they hit each other, they bounce back and then resume their respective motion.

If the TRex gets to the left, he says that he wins; if Gobo gets to the right, he says that he wins!

Because of the way the bounce is coded, it's actually better if you stop right before you hit the other sprite, and wait for that sprite to bounce back. There's actually technique involved in this game...

Later, we also started working with the laser cutter. By which I mean, Casey drew the picture and I offered "helpful" suggestions. Pictures coming soon!

No comments:

Post a Comment