Professional Toolkit : Interactivity Workshop 2

/
0 Comments
Today we worked more on coding and were left to figure some of it out for ourselves, based off of an english description provided. We had to translate this into coding language.

Coding for a cat and mouse game


For example, the first coding asks what if the cat is asleep and the mouse is awake. The answer to this is in the line below, indicating that the mouse does not need to hide and therefore mouseHide = false.

In the one below that, the exclamation before the 'catAsleep' means that this is not the case and therefore the '!' is a shortcut for meaning the cat is NOT asleep. Therefore the mouse will have to hide in order to not get caught and therefore mouseHide = true.

We also learnt some coding in order to change the colour of a cube when clicked upon.



Then we started developing our game, which involves spaceships. We learnt how to put the spaceship down to it's most basic shape, re-size the game landscape and spaceship in relation to each other and added a moving engine to the back of the spaceship.

The spaceship with engine activated


How spaceship will look in game mode







You may also like

No comments: