Activity 1
Activity 2
Number Wizards Number 3
using UnityEngine;
using System.Collections;
public class NumberWizard : MonoBehaviour {
int max = 1000;
int min = 1;
int guess = 500;
// Use this for initialization
void Start () {
print ("Welcome to Number Wizard");
print ("Pick a number in your head, Dont tell me it");
print ("The highest number you can choose is " + max);
print ("and the lowest number is " + min);
print ("is your number higher or lower then 500?");
print ("Press up for higher, down for lower and enter for equal");
print ("Change lower variable? Left and Right arrows for lower value");
print ("and a,d for the maximum value");
}
// Update is called once per fram
void Update () {
if(Input.GetKeyDown (KeyCode.LeftArrow)) {
min = min +1;
print ("The Min is now " + min);
}
if(Input.GetKeyDown (KeyCode.RightArrow)) {
min = min -1;
print ("The Min is now " + min);
}
if(Input.GetKeyDown (KeyCode.D)) {
max = max +1;
print ("The Max is now " + max);
}
if(Input.GetKeyDown (KeyCode.A)) {
max = max -1;
print ("The Max is now " + max);
}
if(Input.GetKeyDown (KeyCode.UpArrow)) {
print ("Up Pressed");
min = guess;
guess = (min + max) / 2;
print ("is your number higher or lower then " + guess);
} if (Input.GetKeyDown (KeyCode.DownArrow)) {
print ("Down Pressed");
max = guess;
guess = (max + min) / 2;
print ("is your number higher or lower then " + guess);
} if (Input.GetKeyDown (KeyCode.Return))
print ("I win I guessed your number was " + guess);
}
}
Activity 3
https://drive.google.com/file/d/0B4jXNOpy33kUR0R2bnRob0ctY0U/view?usp=sharing
https://drive.google.com/folderview?id=0B4jXNOpy33kUVWZxVE9sdUh3YVk&usp=sharing
Final Project!
https://drive.google.com/folderview?id=0B4jXNOpy33kUQjIyT0tJX2pIRFE&usp=sharing
Couldnt get the death collision to work saddly