Friday, October 20, 2017

Cat and Mouse Game - Casares and Schaefer

How we designed our game 

 The main characters: We tried to be a more creative, so we replaced the characters mouse, cheese and cat for wizard (same function as mouse), ghost (same function as cat) and key (same function as cheese).


The stage: The stage is a blue maze.


Objectives: You are a wizard and you objective is to collect five keys. But is not so simple, you need to be careful with two thinks. First, the blue walls take you to the start position, so you need to avoid thisones. Most importantly, the ghost is the maze guardian, if he touchs you, you lose.

Scripts

Motion: The key needs to randomly appear somewhere in the stage when the game beggins, and also when the wizard touch it. It also need to bounce in the edges, so doesn´t appears in an impossible place. 



You control the wizard with your mouse.


The ghost, instead, moves automatically.

But as you know, the characters must to interact with walls:

Wizard: 
Ghost: 

Win and lose

Winnig: You collect the five keys


Losing: The ghost touch you


Wordcloud:





Cat and Mouse Game: Lemos and Antreassian


Cat and Mouse Game



This game has a medium level and we had to create everything, because this game doesn't start with anything done. For this work we needed to use this blocks obligatory, because if we didn't used them, we probably will have something wrong. This helped us, but some of the blocks we had not used before, so some classmates helped us and others we learned alone. The blocks were:

In this game are a cat and a mouse. The game starts when the green flag is clicked. The gamer is the mouse and the goal is to eat the cheese without touching the walls and without the cat caughts you before. The mouse moves with the mouse pointer and you can decide where you want to go. If the mouse touches a blue wall, the game will restart and if the cat caughts the mouse, the game ends.

Basic scripts for the cat:

 


When the cat touches the wall, he will change the direccion so you will never know where he is going to go and if the cat touchs the mouse, it will say "Caught you" and it will appear a "Game Over" backdrop.





Scripts for the mouse:


 If the mouse touches the blue wall, the mouse will restart the game. As you can see, if the cat caughts the mouse, it will disappear and the game ends.  If the food is 10 or more than 10 you won.







Scripts for the cheese:
The only thing that the cheese has to do is appear when the green flag is clicked and disappear when the mouse eat it or when the game ends.











This are some images of our game:


We end this blog by showing you a brainstorm of ideas that summarize the game:




Report "Cat and Mouse" ( Finsterbusch, Persichini) 2a

           

                    Report "Cat and Mouse"


In this deadline we have a medium difficult game named Cat and Mouse. This work is in Scratch, a platform in there you have to program the sprites and backgrounds with scripts. This time we have to program a cat and a mouse to move inside of a laberinth. We have to program the mouse to folow the mouse pionter and we have to program the cat to wander in the laberinth and when it touch the mouse the game it is supposed to stop. And we have a cheese that the mouse is supposed to eat.

Now here are the instruction.



                                 The Mouse






To do that the mouse folow the mouse pointer you have to do it so:







But the mouse don't have to go cross the walls. We put it so...







But when the mouse touch the cat it have to hide and the backdrop change to the backdrop 2
We made it so:






And to do that the mouse show when the game start and hide when you won and lose we put this...






                                                                         The cat 







The cat is supposed to wander in the labherinth and when it is going to touch a wall it must to point in a other direction. We put it so...







And the sript when it touvh te mous and it change backdrop and you lose. It is so...



And the sripts to make that the cat hide and show when it have to.





                                                   The cheese




This are the sripts for when the game begin.



I made a variable to too made that when the mouse eat the cheese five times he have enough cheeses and the game stop and you won. Here are the variable and the script...






When the mouse eat the cheese, a other cheese appears but it can't touch the blue then if it is so the mouse can't eat it.



If the mouse eat the cheese five times you won the game and the backdrop changes to backdrop 3. It is in this script.





 And the scripts to made thet the cheese appear when it is supposed to do, and when it is supposed to hide...







And in the backdrop is this script...



Now here are the different backdrops...




backdrop 1








Backdrop 2








backdrop 3






Here is a word cloud to this game...

                                                                   Now play it!!!!






















Mouse and Cat Game Report Barrera and Poletilo



Dufficulty: Medium






We had to create a report for the second deadline from the third Term of a cat and mouse game, which we did in scratch. In this blog we are going to inform you how we did this work and how to create or complete certain scratch problems. When we started the project we had a list of the blocks we could use. If we weren’t using them it meant we were doing something wrong.






In this game, you are the mouse who has to eat cheese but without getting caught by the cat.

The game begines when you click the green flag and the mouse will start following the mouse pointer. If you want the mouse (animal) to slow down you just have to click on the mouse (control).

The background is a maze with blue walls. When the mouse (animal) touches a wall, it will get back to the starting position. The goal is to eat 10 times the cheese, which will appear in a random position after you ate it. But when the cat caughts you, youl lose. The cat doesn't follow you, it's just roaming around the maze. But be careful, because every time the cat touches a wall, it will change direction and you won't know where to.



This is our maze:



The mouses script:

Firstly, the game had to start once the green flag was pressed. Because we used a speed variable so that the mouse (animal) slows down when you click the mouse (control), we started by setting the speed to 0. We also wanted to make the mouse (animal) always start at the same position and for this we used the motion block "go to x=...and y=..." and to point forwards. If the mouse (animal) touches an edge, it should bounce.



Because we also had different backgrounds, we changed the background to the maze every time you start to play. We also made the mouse (animal) wait for one second because if it would start immediatly after you pressed the green flag it would go towards the flag and might touch a wall.



This is how we made the mouse (animal) move:

Everything after the first things we already explained, we put inside a Forever. This way all the actions will keep repeating until the game finishes.

So that the mouse (animal) follows the mouse pointer, we made the mouse point towards the mouse pointer and move 2 steps. So that the mouse doesn't move like crazy when the mouse pointer is too close, we made the mouse (animal) stop as soon as the mouse pointer is too close. For this we used the If...Then... control with a operator and a sensor. If the distance to the mouse pointer was smaller than 4 pixels, the mouse (animal) should wait until the distance to the mouse pointer is bigger than 4 pixels.

So that the mouse doesn't go too fast, you have the choice to make it slow down by pressing the mouse (control). For this we used a speed variable and set the speed to a slower number.

For the game to be more difficult we made the mouse (animal) go back to the starting position as soon as it touches a wall, but after becaming a cloud of dust because of the crush.




These are some other basic programmings we has to make :






The cats script:


Basic Programming:






This is how we made the cat move:

The cat had to wander around the maze. Every time it crushed against a wall, it had to turn around and choose on it's own if to turn right, left, or go back were it came from. For this, inside a Forever, we put a Control Block: If...Then and inserted a blue colour sensor. So, when the cat touches a wall, it will walk a few steps back, face the way it came from, and pick a random number between 1 and 3 and multiply it by 90. This way, the cat can choose to turn right, left or move forward.
Also, so that the game can end, once the cat touches the mouse, the player loses.




The cheeses script:

The cheese hat to go to a random position, but without touching any blue wall.





These are some images of the game in action








Summarized:





Thanks for reading and we hope it helped you!