Category: All Things Devin
New Year’s 2017 Snow
Devin’s First Unity Program
Devin completed his first Unity program while taking the [Udemy Unity Course].
using UnityEngine; using System.Collections; public class NumberQizards : MonoBehaviour { int max = 1000; int min = 1; int guess; // Use this for initialization void Start() { StartGame(); } void StartGame () { print("Pick a number in your head but dont tell me."); max = 1000; min = 1; guess = 500; print("The highist number you can pick is " + max); print("The lowest number you can pick is " + min); NextGuess(); } void NextGuess() { print("Is the number higher or lower then " + guess + "?"); print("Up arrow for higher , down arrow for lower"); } // Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.UpArrow)) { min = guess; guess = Mathf.FloorToInt((max + min) / 2f); NextGuess(); } else if (Input.GetKeyDown(KeyCode.DownArrow)) { max = guess; guess = Mathf.CeilToInt((max + min) / 2f); NextGuess(); } else if (Input.GetKeyDown(KeyCode.Return)) { print("You won!"); StartGame(); } } }
Toddler Computer Games
I found [a site] with a bunch of games for kids up to 5 years old.
Baby Devin has arrived
Gender: Male
Born: Thursday May 3rd, 2007 at
Time: 10:51 pm.
Weight: 8 lbs. 14 ounces
Height: 20
Head: 13
Chest: 14
Labor: 12 hours