Friday, October 20, 2017

cat and mouse report ignacio fromm mateo burger

In this post of the cat and mouse report we will show you how to programme this fun game and the sprites, backdrops and bloks you have to use.from mateo burger and ignacio fromm
Mouse:
This capture you see here is the one from the mouse.
First of all, when the game starts, when you press the green flag, everything starts to work.In the upper left corner, we can see that if the mouse moves every 3 steps following the mouse pointer and when it touches an edge it bounces.If the maouse touches the blue lines,it goes back to where it started and if it touches the cat, that is game over. You loose and the backdrop changes.

We just had a little promblem.When the mouse goes too near to the mouse pointer it moved back an forth, but we did solve it with theese blocks wich helped us to keep the mouse where it is and to stay still when it is on the mouse.






                                                                     
                                               


                                                                   Cat
                   This capture you see here is the one from the cat.
The cat is like the problem of the game. The cat is what you must try to avoid so you dont loose the game.It moves in random direction over the screen, without touching the blue walls. It shows up 2.5 seconds later so you dont loose all the time.The cat moves 10 steps(a little bit faster than the mouse.when it touches the mouse, The backdrop changes and you lost, be careful!
The real challenge for us was to make cat move in random positions and not everytime it touched a wall.And we resolved the problem with this sprites.








Cheese
this is the objective of the game and this are its scripts.
When you click on the green Flag it shows itself in a random position and you have to get it with the mouse without touching the cat but the cheese does not move.If the Mouse touches the cheese it will hide and the cheese counter wil go up by one and then hide and show itself again in a random position.Once you have eaten more than 4 cheeses with the mouse whithout getting touched by the cat, the backdrop will change and you won. When that happens, all the sprites hide.



theese are the sprites we used.


And theese are the backdrops.
















Cat and Mouse post Ranftl and Martin

Hi we are Nacho Ranftl and Dante Martín, in this post we are going to teach you the way that we have created the Cat and Mouse game. This is a game where the player controls a mouse. His objective is to eat 5 cheeses to win. However if the mouse crashes against the wall or the cat he will lose.

Here is a picture of some scripts of this game:



  • First we had to make the movement of the mouse so it moves around the screen. For doing this we used a combination of the following scripts:Capture.PNG


  • Then we had to create a variable called cheese, we associated this variable with a certain object. And every time that the mouse touched the “cheese” the counter got one up.



  • After that we had to modify the scripts so that each time that the cat touched the walls it had to bounce. (Since when we had to create this post we were already finished with the maze it worked like it is shown below.)


  • We, had to add also that every time that the cat touched the mouse the game should stop to do this we used this group of scripts. We also did as an addition that when you lost, the background changed, to one that said that the game was over.



(When the mouse was touching the cat it would broadcast a message, when the cat would have received the message he will change the backdrop)



  • Then we added this certain combination from scripts to prevent the mouse from going through the wall.


As it is broadcasting message1 again it will repeat the process of losing. (shown 1 step above)

  • The last step was to make the cat move through the whole maze. (explained in step 3)



Dibujo sin título (2).png
wordcloud.png









In this post we are going to explain a game called "Mouse and cat" wich we did in scratch.  In deed the game is about a cat that wants to eat a mouse while the mouse wants to eat a cheese. The catch and realease game lapse in a laberinth.

The game starts when you click on the green flag. The mouse follows the mouse pointer and the background is a laberinth with blue wallls. If the mouse touches a blue wall the mouse will restart the game and if the cat catches the mouse, the game will end. The goal is to reach the cheese without losing.

The laberinth lookes like this:

The mouse works like this:

As you see the mouse starts moving when the green arrow is pressed and it follows the mouse pointer. etc....
 The cat works like this:

As you can see, the cat will change of direction when it touches a wall so, you will never know where is  going to go.
This is a collage of the game:




Juana Hurwitz and Pia Bonilla Rivas

Report Cat and Mouse Wunderlich and Ramirez Calvo


In the following post you are going to be informed about how we worked during twenty days with this game, called Cat and Mouse. We do a lot of our activities with a programm called Scratch, like the previous deadline. We learned a lot of things with this programm, which we will tell you later. Also you are going to read about which were our problems with this game, how we fixed them and which were our archievements. In addition you are going to be informed about which blocks did we use to resolve the activities which were asked.

Let´s start with a brainstorm of ideas which summerize our work in this deadline:



As we said before, we had to create a game called Cat and Mouse, which has a medium level. In diference to the low dificult level, this game doesn´t start with anything done, we had to create everything, but we had the same help, a list of blocks that we must use. If we didn´t use these blocks, we were doing something wrong, that´s why they were very helpful! Some of those blocks were new for us and now we know how to use them. In the following image you are going to see which were those blocks:


As we mentioned before some blocks were new for us, for example the "stop all" block. We saw this block a lot of times when we were working with our exercises, but we had never use it. The first time that we used it, was in this game and first it didn´t work very well, because the order of the blocks was incorrect. So, learning to use some blocks was one of our archievements. Now we are going to show you the correct order of our blocks: 




In this game there are two characters: the mouse and the cat. You are the mouse and the goal is to eat the cheese without the cat catching you. In the next image you can see the characters of our game: 



Our background is a maze, which has blue walls. If the mouse could eat the cheese without the cat catching it and then go to a pink square, then you go to the second level. The second level is also a maze, but it is more complicated! If the cat catch the mouse, then it would appear another backdrop, which says that you lose! If you can do both levels without the cat caughting you then it would appear a different background saying that you won! In the following collage you are going to see all the different backdrops of our game:



Now we are going to show you the blocks that we used to change to the second level. Remember that the pink square is the Object 1!



First we had to make the mouse move around the screen, the exercise says that the mouse must follow the mouse pointer. To make that possible we use the following block:


Another exercise that includes the mouse was that it should chek if it is touching one of the walls. We made that, if the mouse is touching the blue color it goes to the start position. But be had a problem, because when the mouse goes to the start position it touches a wall and a rule of the game says that, that could not happend. So we fixed it by making to mouse a costume and to make that possible be use the following blocks: 


First we had a problem making the costume, because we had no idea how to change to another one, but a classmate helped us and we could solve it. This is the costume from the mouse:


We also used some basic blocks for the mouse character:


We also used some basic scripts for the cat:


The cat should also move around the maze and every time it touches with a wall, it turns around and chooses another direction. If the cat caught the mouse, than also all the scripts from the cat would stop and change to the "You lose!" backdrop. To make that possible we used the following scripts:


The last character is the cheese and the only thing that it should do is disappear when the mouse touches it and reappear when the green flag is clicked. We used the following blocks to make that possible:



Finally we created a variable for cheese. We only use it a few times. For example the most important one is when the mouse eats the cheese (the first time), then the mouse says "If you want to play an other level go to the pink square" and the pink square appears. 



Cat and Mouse Report


In this post we will explain you how we scripted our work.
You have to know that every scratch startes with the green flag.

Mouse:
We had to make it follow the mouse-pointer, so it points toward to the mouse pointer and moves three steps. It follows the mouse-pointer in a specific speed.
It shows at the beginning of the maze.
If it touches the blue wall, it goes to its starting position. But if the cat (other script) touches, the backdrop switches, the mouse hides and other scripts stop. You lose. When the backdrop switches to blue sky3, it means you won. we will explain it better in the cheese explanation (other script). Finally, as you can see, we created a variable called food. It start in cero and once you reach five foods, the backdrop switches to blue sky3.
On the right side, there is a script that makes the mouse glide to the middle of the backdrop when you win (when the backdrop switches to blue sky3).
When the mouse gets near the mouse-pointer, it moves back and forth. We solved that problem by putting two operators, distance to block, if then block and wait until block. And to make the mouse move, it has to be in a bigger distance to the mouse-pointer than 4.

Cat:
When you click the green flag the backdrop switches to backdrop1 (maze). The cat goes to a specific position and points to a specific direction, because of the blocks “go to” and Point in direction”. It hides, so that the mouse has time to start moving and then it shows 2.5 secs later.
The cat moves 3 steps forward, a little bit faster than the mouse, and if it touches an edge, it bounces. If it touches the mouse, the mouse loses, the backdrop switches to moon (loser backdrop) and it stops all other scripts in this script.
This was a challenge for us, because we had to make the cat bounce on the blue walls of the maze. So if the cat touches a wall, it will move 3 steps back, will turn 90, 180 or 270 degrees right and will continue moving forward.
On the right there are two simple scripts, in both the cat should hide, if the backdrop switches.

Cheese:
When you click the green flag, the cheese shows in a random position. If it touches an edge it bounces, but this cheese, in comparison to the other sprites, doesn’t move.
If the mouse touches the cheese, the cheese will hide, the food-counter will change by one, the cheese will go to a random position and it will show again.
And if the food is bigger than four, the backdrop will change to blue sky3 (Win backdrop), it waits 1 second before stopping all, to make the gliding of the mouse to the middle of the backdrop.
As well as in the cat, it has to hide every time the backdrop changes, so that it not shows.

Sprites:
Mouse
Cat
Cheese

Backdrops:
Maze
Game Over
You Won

wordcloud.png