Code ‘n Play Interactive Games with Unity & JavaScript.

Slides:



Advertisements
Similar presentations
GAME:IT Junior Learning Game Maker: The Control Tab.
Advertisements

Introduction to Macromedia Director 8.5 – Lingo
Chapter 08: Adding Adding Interactivity Interactivity With With Behaviors Behaviors By Bill Bennett Associate Professor MSJC CIS MVC.
Computer and Communication Fundamental Basic web programming Lecture 8 Rina Zviel-Girshin.
UFCFSU-30-13D Technologies for the Web Creating and Updating a Graphical Heads-Up Display (HUD)
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
Georgia Institute of Technology JavaScript part 2 Barb Ericson Georgia Institute of Technology May 2006.
UFCFSU-30-13D Technologies for the Web Creating and Using GUI Components.
Sketchify Tutorial Variables sketchify.sf.net Željko Obrenović
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
Flash Workshop Flash Workshop :: Agenda  Introductions  Look at a few Flash Examples  Flash Web Sites  Flash Web Applications  Flash Games.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
UFCEKU-20-3Web Games Programming Unity 3D Physics Colliders and Object Collisions.
HTML Forms/Events (Instructor Lesson) The Event model HTML Forms Custom Events 1.
SE 320 – Introduction to Game Development Lecture 4: Programming in Unity & Project Presentations Lecturer: Gazihan Alankuş Please look at the last two.
Chapter 19: Adding JavaScript
Study Guide For Test Chapter 5, 6,& 7 Test is Friday, May 15th.
UFCEKU-20-3Web Games Programming Unity 3D Basic Concepts Using and Creating Prefabs.
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
Interacting with a Web Page using JavaScript Mat Kelly GTAI Presentation January 10, 2014.
Review For Test Chapter 4 & 5 Test is Wednesday, January 27th.
Programming & Scratch. Programming Learning to program is ultimately about learning to think logically and to approach problems methodically. The building.
SE 320 – Introduction to Game Development Lecture 8: Animations, GUIs, Debugging and IDEs Lecturer: Gazihan Alankuş Please look at the last two slides.
Today’s Agenda 1.Collect Pre-Lab 5 2.Collect Alice project storyboards 3.Events 4.Dummy Objects 5.Assign pair programming teams and meet upstairs for Lab.
CO1552 Web Application Development HTML Forms, Events and an introduction to JavaScript.
Web Games Programming An Introduction to Unity 3D.
QML Qt Quick with QML and you can use JavaScript for engine along C++ Started to be released since late 2009 (Qt 4.7) Nokia focused on that for the Symbian/Meego.
Web Games Programming Unity Scripting Fundamentals.
Introduction to Flash MX 2004: Action Scripting Lloyd Rieber.
Game Maker – Getting Started What is Game Maker?.
CS324e - Elements of Graphics and Visualization Java GUIs - Event Handling.
Interactive Programming Alice. Control of flow Control of flow -- how the sequence of actions in a program is controlled. What action happens first, what.
Event JavaScript's interaction with HTML is handled through events that occur when the user or browser manipulates a page. When the page loads, that is.
Dialog boxes in JavaScript Events in JavaScript – What are they – “Which events are there?” – “How do I register event handlers to an HTML element?” –
Unit 3 Music and Sound Evangel College S.2 ICT.
11 General Game Programming Approach. The program is event-driven The program is event-driven –Messages = events –So as all windows system (for example.
Unity GUI Creating and Using GUI Components. Agenda GUI Components GUI Layout Using Styles and Skins for Design ‘Look and Feel’ Scripting GUI Communication.
Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,
Active X – Mouse Events. Structured Graphics Control  Included in Internet Explorer v5.0  Add to page with the OBJECT tag  Accessible via scripting.
Problem Solving Methodology Rachel Gauci. Problem Solving Methodology Development Design Analysis Evaluation Solution requirements and constraints. Scope.
Computer Game Design ActionScript is… Object-oriented programming Everything you do in ActionScript does something to some object* Some objects.
Event Handling. Objectives Using event handlers Simulating events Using event-related methods.
Today we are learning to: Understand how flow charts are used to design games Add events to our objects to control stuff in our game – (Using the user.
Event Handling & AJAX IT210 Web Systems. Question How do we enable users to dynamically interact with a website? Answer: Use mouse and keyboard to trigger.
Event Handling (the right way). A Simple Web Page Events - Summary The web page looks like this:
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
Understanding JavaScript and Coding Essentials Lesson 8.
LESSON : EVENTS AND FORM VALIDATION -JAVASCRIPT. EVENTS CLICK.
Intro to ActionScript CIS 126 Greg Shorts. What Is ActionScript? ActionScript is the scripting language Flash uses to control its movies and the objects.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
UFCFSU-30-13D Technologies for the Web An Introduction to Unity 3D.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Event Driven (Asynchronous) Programming. Event handling in Unity Subclass a class that contains event handling methods, and then override those methods.
Quick Intro to Unity Lecture 2.
Unity 2D: Step by Step, Part 4
Introduction to Event-Driven Programming
Goals Give student some idea what this class is about
Introduction to Programming the WWW I
Lesson 1: Buttons and Events – 12/18
JavaScript and Events.
Chapter 2: GUI API Chapter 2.
Simple Windows Applications
Interface Programming 2 Week 1
Week 6: Time and triggers!
Web Design and Development
Tonga Institute of Higher Education
Unity Game Development
Barb Ericson Georgia Institute of Technology May 2006
Presentation transcript:

Code ‘n Play Interactive Games with Unity & JavaScript

Agenda EnvironmentPopular FunctionsAnimationsCollidersCross-script CommunicationFinal Remarks

Environment OK, so it’s not really JavaScript. It’s UnityScript. C# and Boo are also supported.Lots of drag & drop and menu-based functionalityGetting better with age, as evinced by the new GUI system.

Popular Functions called on the frame when a script is enabled just before any of the Update methods is called the first time. (Script Reference) Start called when the script object is initialized, regardless of whether or not the script is enabled. Awake the most commonly used function to implement any kind of game behavior. Update OnGUI is called for rendering and handling GUI events. OnGUI OnMouseDown is called when the user has pressed the mouse button while over the GUIElement or Collider. OnMouseDown

Popular Functions EXAMPLE OnGUI is called for rendering and handling GUI events. OnGUI The GUISkin must be assigned with script.

Animations Material RGBA valuesX, Y offset Transform PositionRotationScale Animator (Mecanim Sate Machine) Conditions (e.g. SetBool(“boolName”, false);

Colliders Add a collider to make game objects and GUI elements “clickable” Use a mouse event function like OnMouseDown or OnMouseUp to check Trigger something to happen

Cross-script Communication In script 2, create a variable that points to game object 1 and a variable that points to an instance of script 1. Assign the values in the Start() function. Create script 2 and attach it to game object 2 (can be same as game object 1) Create script 1 and attach it to game object 1

Final Remarks Come to my “Intro to Game Development” talk in November Thanks to Girl Develop It Thanks to the audience Contact