• Twitter
  • Facebook
  • Google+
  • RSS Feed

Tuesday, 27 January 2015

Interactivity 2- Scripting and setting up our project

No comments:
 
During our second lesson we looked at coding and we were set a task with the following instructions:  


 'Create a new C# script.


Create three new public bool variables named:​ catAsleep​, mouseAwake​ and mouseHide


Set mouseAwake = true 

Write the code statements to express the following:

If cat is asleep and mouse is awake then mouse does not need to hide


If cat is not asleep and mouse is awake then mouse needs to hide


If mouse is awake and mouse is hiding then cat is awake


If mouse is not hiding or mouse is asleep then cat is awake​'

The code means that when the cat is asleep and the mouse is awake then the mouse is not hiding. Below that the ! means it is false, meaning that if the cat is not asleep and the mouse is awake then the mouse is hiding and so on...



We began setting up our project. We started with a new project and changed the resolution to portrait so that it looked like a web space shooter game.






No comments:

Post a Comment

 
© 2012. Design by Main-Blogger - Blogger Template and Blogging Stuff