Problem Solving Methodology Rachel Gauci. Problem Solving Methodology Development Design Analysis Evaluation Solution requirements and constraints. Scope.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

CE 311 K Introduction to Computer Methods VB Controls and Events Daene C. McKinney.
Indistar® Leadership Team Meetings. Where can we plan a meeting? Choose ‘Plan Your Meeting’ from the main menu screen Click on Meeting Agenda Setup.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
UNIT 12 LO4 BE ABLE TO CREATE WEBSITES Cambridge Technicals.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
© 2010 Delmar, Cengage Learning Chapter 12 Working with Library Items and Snippets.
UFCFSU-30-13D Technologies for the Web Creating and Using GUI Components.
A graphical user interface (GUI) is a pictorial interface to a program. A good GUI can make programs easier to use by providing them with a consistent.
© Anselm Spoerri Lecture 11 Flash –Build Flash Website with Animated Navigation Structure –Decide on Overall Navigation Layout, Import Images & Organize.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
HELLO WORLD: YOUR FIRST PROGRAM CHAPTER Topics  Hello World?  Creating a Unity Project –The Unity Project Folder  MonoDevelop: Unity's Code Editor.
Based on Roll-a-ball video tutorial from Unity Technologies Part WakeUpAndCode.com.
Graphical Tree-Based Scientific Calculator: CalcuWiz Will Ryan Christian Braunlich.
Getting Started Example ICS2O curriculum
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
SE 350 – Programming Games Lecture 6: Programming with Unity Lecturer: Gazihan Alankuş Please look at the last slide for assignments (marked with TODO)
CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
The Bean Counter: A JavaScript Program
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
Introduction to Matlab & Data Analysis
End HomeWelcome! The Software Development Process.
Chapter 12: How Long Can This Go On?
HOMEWORK REVIEW This is an if else statement layout if (condition) { code to be executed if condition is true; } else { code to be executed if condition.
SE 320 – Introduction to Game Development Lecture 8: Animations, GUIs, Debugging and IDEs Lecturer: Gazihan Alankuş Please look at the last two slides.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Web Games Programming Unity Scripting Fundamentals.
UFCFS D Technologies for the Web Unity 3D: Review of Topics and Related Concepts.
Coding Design Tools Rachel Gauci. What are Coding Design Tools? IPO charts (Input Process Output) Input- Make a list of what data is required (this generally.
USING UNITY JAVASCRIPT. CONVENTIONS AND SYNTAX IN JAVASCRIPT Case Sensitivity All keywords like var or function must be in lowercase. All variable names,
Learning Unity. Getting Unity
Coding Design Tools Rachel Gauci. Task: Counting On Create a program that will print out a sequence of numbers from "1" to a "number entered”. Decision’s.
USING UNITY JAVASCRIPT. CONVENTIONS AND SYNTAX IN JAVASCRIPT Case Sensitivity All keywords like var or function must be in lowercase. All variable names,
CS324e - Elements of Graphics and Visualization Java GUIs - Event Handling.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
UFCEK-20-3Web Games Programming Unity 3D: Review of Topics Publishing for the Web.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 5A Repetition (Concepts)
Unity GUI Creating and Using GUI Components. Agenda GUI Components GUI Layout Using Styles and Skins for Design ‘Look and Feel’ Scripting GUI Communication.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
CHAPTER 10 ERROR HANDLING & DEBUGGING JavaScript can be hard to learn. Everyone makes mistakes when writing it.
Object-Oriented Application Development Using VB.NET 1 Chapter 11 Using Multiple Forms with Problem Domain Classes.
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
UFCFY5-30-1Multimedia Studio Scripting for Interactive Media Using Interface Fields to Receive and Display Data to the User.
Expressive Intelligence Studio // Center for Games and Playable Media // Unity Pro John Murray Expressive.
Using Forms and Form Elements In Visual Basic.NET.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
1 Agenda  Unit 8: Programs and Data. 2 Structured data - Array There are many situations where we want to apply the same processing to a collections.
Prof. Anselm SpoerriMultimedia Production Rutgers Lecture 11 Flash –Build Flash Website with Animated Navigation Structure –Decide on Overall.
Digital Game Design ACST 3710 Your First Unity Program 1.
EEC-693/793 Applied Computer Vision with Depth Cameras
Quick Intro to Unity Lecture 2.
EEC-693/793 Applied Computer Vision with Depth Cameras
Lesson 1: Buttons and Events – 12/18
EEC-693/793 Applied Computer Vision with Depth Cameras
Today’s lesson – Python next steps
T. Jumana Abu Shmais – AOU - Riyadh
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT
Week 6: Time and triggers!
Training & Development
EEC-693/793 Applied Computer Vision with Depth Cameras
Unity Game Development
Unity Game Development
Introduction to JavaScript
Running & Testing :: IDEs
Presentation transcript:

Problem Solving Methodology Rachel Gauci

Problem Solving Methodology Development Design Analysis Evaluation Solution requirements and constraints. Scope of the solution Solution design (IPO CHART, PSEUDOCODE ETC.) Create the code Testing (DEBUGGING- TESTING TABLES) Report Document When an information problem exists, a structured plan is followed to ensure that the most appropriate solution is found and implemented. In ICT the structured plan is the problem solving methodology.

CODING IN UNITY

‘Hello World’ script #pragma strict function Start() { Debug.Log (“Hello”); Debug.Log (“My name is Rachel”) Debug.Log (“Welcome to Javascript in Unity”) } Function Update () { } TASK: 1.Open Unity 2.Create a new project 3.Add in an empty object (GameObject -> create empty) 4.Add a new javascript and name it HelloWorld (right click on assets folder -> create-> Javascript) 5.Open the script and type in the following to MonoDevlop and click save 6.Back in Unity press play and watch what happens.

Adding 2 numbers (Math's) # pragma strict Var num1 : int = 3; Var num2 : int = 4; Var num3 : int; Function Start () { Debug.Log (“Number 1 =” +num1); Debug.Log (“Number 2 = ” +num2); Num3 = num1 + num2; Debug.Log (“Number 1 + Number 2 =” +num3); } TASK: 1.Right click on your assets folder, create -> a new Javascript and name it AddNumbers. 2.Open the script in MonoDevelop and type in the following code. 3.Click save and return to Unity. 4.Create a new scene (file-> new scene) 5.Create an empty object (GameObject -> create new) 6.Attach the script to the object 7.Press play

Movement (Rotation) #pragma strict var variableRotationRate = 0.0f; var fixedRotationRate = 0.0f; function Update () { transform.Rotate (Vector3.up * Time.deltaTime * (variableRotationRate * 360.0f )); } function FixedUpdate () { transform.Rotate (Vector3.up * Time.deltaTime * (fixedRotationRate * 360.0f )); }

TASK 1.Create a new scene 2.Insert 2x cubes (GameObject -> create other -> cube) 3.Ensure the cubes are not overlapping (in the scene view move the cubes in a particular position) 4.Create a new JavaScript, open MonoDevelop and paste the code from my website in. (this code is in my SAC preparation page) 5.Click save 6.Return to Unity and check the console for any errors, fix them 7.Attach the script to the 2 cubes and press play, what happens? 8.Now stop play and tweak the rotation rate to 0.25 and its fixed rotation rate to 0 for one for the cubes. for the second cube set the rotation rate to 0 and the fixed rotation rate to press play and see the difference. (This is done by selecting the cube/sphere, then in the inspector view look at the script’s variables are available for change

GUI WHAT IS GUI? A graphical user interface (GUI) is a human-computer interface (i.e., a way for humans to interact with computers) Unity GUI allows you to create a wide variety of highly functional GUIs very quickly and easily. Rather than creating a GUI object, manually positioning it, and then writing a script that handles its functionality, you can do everything at once with just a few lines of code. The code produces GUI controls that are instantiated, positioned and handled with a single function call.

Example #pragma strict var heightArray = new Array(); var userInput : String; var arrInfo : String; var displayText: String; // // Shows GUI elements (buttons, input) // function OnGUI() { //[Input] 'Add Element' user input userInput = GUI.TextField(Rect(10, 10, 200, 50), userInput, 25); //[Button] Add Button if(GUI.Button(Rect(220,10,150,50),"Add Height in CM's")){ heightArray.Push(userInput); userInput = ""; } // //[Loop] create a display text of all the heights... var arrElements = ""; for(var i: int = 0; i < heightArray.length ; i++) { arrElements += heightArray[i] + ", "; } //[Variable] arrInfo = "Count: "+ heightArray.length.ToString() + "\n Heights: " + arrElements; //[Display] Middle Information Box GUI.Box(Rect(10, 80, 400, 50),arrInfo); }

INSTANTIATE WATCH: pting/instantiate pting/instantiate pting/instantiate