Coder Social home page Coder Social logo

schkrabrty / 03-text101 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from completeunitydeveloper/text101-original

0.0 1.0 0.0 69 KB

A basic state-machine based text adventure exercise as part of http://www.CompleteUnityDeveloper.com

License: MIT License

C# 100.00%

03-text101's Introduction

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

03-text101's People

Contributors

robmeade avatar

Watchers

Soumyajit Chakraborty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.