Skip to content

A basic state-machine based text adventure exercise as part of our Complete Unity C# Developer course (http://gdev.tv/cudgithub)

License

Notifications You must be signed in to change notification settings

CompleteUnityDeveloper/Text101-Original

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Complete Unity Developer - Section 3 - Text101

This is the Complete Unity Developer - one of the most successful e-learning courses on the internet! Completely re-worked from scratch with brand-new projects and our latest teaching techniques. You will benefit from the fact we have already taught over 360,336 students game development, many shipping commercial games as a result.

You're welcome to download, fork or do whatever else legal with all the files! The real value is in our huge, high-quality online tutorials that accompany this repo. You can check out the course here: Complete Unity Developer

In This Section

Introduction To Text101

  • What Text 101 teaches
  • Increase our scripting skills (nearly 200 lines!).
  • The basics of “finite state machines”.
  • Invite you to create and share your own story.
  • Build our game to the web.
  • Share with the world.

Section 3 Game Design Document

Your Text 101 Assets

Section 3 Notes

Creating New Projects

  • Recap how to create and save projects
  • Set Up and save your Text 101 project
  • What gets 'carried over'
  • Import your prison image asset
  • Save your project

Adding 2D User Interface Text

  • Adding a UI > Text element to a scene
  • Setting the camera background colour
  • Moving and scaling your text
  • How to programatically change text
  • Challenge: Change text only on key press
  • Challenge: Add and scale the image

Word Wrapping & Joining Strings

Building Your Game Engine

  • The structure of our “engine”
  • What's an enum?
  • Challenge: complete the story

Our TextController.cs Script

Re-Organising Your Code

  • Update Your Update() Method
  • Rename freedom to corridor_0

Extending Our Prison Story

  • Add New State Methods.
  • Create your own text adventure.
  • How to enable code folding in Unity.
  • How to use Region to fold code.
  • Local Play Testing.

Our Extended Story Script

Build For Web & Share

Text101 Unity 5 & Web GL Build (Optional)

  • Upgrade to Unity 5.
  • About Web GL builds.
  • Build for Web GL and share.

DOWNLOAD Section 3 Unity Project

Section 3 Wrap Up

  • Recap and what's next
  • Did you write your own story?
  • Go on, be brave!
  • Maybe ask a friend to write it?
  • Build for the web.
  • Share with our fantastic community

About

A basic state-machine based text adventure exercise as part of our Complete Unity C# Developer course (http://gdev.tv/cudgithub)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages