Skip to content

Instantly share code, notes, and snippets.

@lee2sman
Last active April 30, 2020 20:56
Show Gist options
  • Save lee2sman/6916ce5118c42c61a04a709de48fa8ce to your computer and use it in GitHub Desktop.
Save lee2sman/6916ce5118c42c61a04a709de48fa8ce to your computer and use it in GitHub Desktop.
Class notes for April 30

April 30, 2020 - New Directions in Virtual Space

News!

New Discord server! It's a chat group. It's like Slack! It's popular in game communities! It's optional!

Join here.

Senior project 'games and virtual spaces' highlights:

Iwan Traeger-Payne's new game Transfer - (currently Windows-only)

  • Iwan demonstrates the game in our online exhibit video here at 1hr19min in

Stephanie Vasquez' project Shattered Perception

Christian Aufiero's game Don't Play This

Katherine Lousell's text adventure game Into The World, a game about social anxiety.

User Interface!

Go to GameObject menu and choose UI and then text

GameObject Menu > UI > Text

Try changing the x and y in the rectTransform to move your new default text around the screen.

Note that you can only see this text in the game window not in the Scene view.

Your font size can be as large as 25 FYI or else it disappears from view.

Note: In scripting, you must put using UnityEngine.UI; at the top of your script!

Let's script!

We'll make a score:

public Text scoreText;

The text we will present is created by converting the score to text (from a number): scoreText.text = "Score: " + score.ToString();

public int score;
		public Text scoreText;

		void Start ()
		{
			score = 0;
			scoreText.text = "Score: " + score.ToString();
		}

		void OnTriggerEnter (Collider col)
		{
			if (col.gameObject.tag == "prize") {
				Destroy (col.transform.parent.gameObject);
				score++;
				scoreText.text = "Score: " + score.ToString();
			}
		}

Online Arcade - Thursday May 14, 7pm

Lee to build on LikeLike platform.

We will have 3 wings: flatgames, first world, and final world

We will have it virtually catered.

Next class is a check-in

Meet at 3pm instead of 2:30 on May 7.

Final schedule

Projects due on May 12 by end of day

Online arcade party on May 14 7pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment