My Mousey Game: Scratch Collisions

30 Apr

This is a first!  I’m typing this blog post ON MY RASPBERRY PI!

 

A while ago, I was just playing around on the Scratch website when i found a pretty interesting  game. The point of the game was to make this little stick figure guy (or girl) get to these doors. In the game you had to cross over these platforms to do tasks. When playing the game, I realized that it was REALLY fun and thought that I would do something similar but with a little kiddy flare to it. so I started to think what could i do to make it fun yet different. After taking some time to think about something popped in my head, ” Why don’t i just make a maze,” ,but than I thought, ” What if it was a mouse going to… what… how about CHEESE!!!” 

The thing that I really learned in doing this project is collisions.  I learned how to do something when two pieces touch.  This worked two places.  First, I had to end the game if mousey touched the outside of the maze (the black part).  At first, I did this by saying, “If mouse color is touching black” but this made the maze too hard because of the way that the mouse turns around corners.  So, instead, I changed it so that the gray ears have to touch the black color.  This is better.

Second, was when the mouse touches the cheese.  So, I also made is so that when mousey’s ears touch the yellow cheese, the game ends and says “Congratulations, you are a winner!”    The dropper tool is really helpful here because I can just click on the cheese to get its color.

Enough talk, I want you to play!  Here’s the link to my game.  http://scratch.mit.edu/projects/krystal92586/3227321 

 

Advertisements

3 Responses to “My Mousey Game: Scratch Collisions”

  1. Johnny B July 3, 2013 at 3:04 am #

    This was a great game. I enjoyed it and was impressed. I am looking forward to creating a game on my new raspberry pi as well. Thank you for the inspiration. Keep up the good work.

Trackbacks/Pingbacks

  1. My Mousey Game: Scratch Collisions | Raspberry World - April 30, 2013

    […] By krystal92586 […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: