Professor Ira Fay Class 4. Mining Part 3 Programming Concepts Josie Nutter Unity Demo.

Slides:



Advertisements
Similar presentations
AP Computer Science Anthony Keen. Computer 101 What happens when you turn a computer on? –BIOS tries to start a system loader –A system loader tries to.
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Chapter 7 - Iteration. Chapter Goals Program repitiation statements – or loops – with the for, while, and do-while statements Program repitiation statements.
CS107 Introduction to Computer Science Lecture 3, 4 An Introduction to Algorithms: Loops.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Computer Science 1620 Loops.
CS150 Introduction to Computer Science 1
Smoking is prohibited 1 CS 101 Second Exam Review Prepared by Dr. Amer Al-Badarneh 
Intro to Java while loops pseudocode. 1 A “Loop” A simple but powerful mechanism for “making lots of things happen!” Performs a statement (or block) over.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
CS Class 07 Topics –  When software goes wrong  Count controlled loops  Sentential controlled loops  putting it all together Announcements.
SE 320 – Introduction to Game Development Lecture 4: Programming in Unity & Project Presentations Lecturer: Gazihan Alankuş Please look at the last two.
CPSC 171 Introduction to Computer Science 3 Levels of Understanding Algorithms More Algorithm Discovery and Design.
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
Professor Ira Fay Class 9. Game Guru Programming for Game Designers.
Engineering 1020 Introduction to Programming Peter King Winter 2010.
1 CS 1430: Programming in C++. 2 Input: Input ends with -1 Sentinel-Controlled Loop Input: Input begins with.
Visual Basic.net Loops. Used to do multiple executions of the same block of code Do while loops Do until loops For next loops.
ORDER OF CONTENT AND INSTRUCTIONS A program in its simplest form usually contains three kinds of activity:  INPUT : The program asks the user for some.
USING UNITY JAVASCRIPT. CONVENTIONS AND SYNTAX IN JAVASCRIPT Case Sensitivity All keywords like var or function must be in lowercase. All variable names,
Chapter 4 Loops Write code that prints out the numbers Very often, we want to repeat a (group of) statement(s). In C++, we have 3 major ways of.
Control Structures II Repetition (Loops). Why Is Repetition Needed? How can you solve the following problem: What is the sum of all the numbers from 1.
By Chad Blankenbeker.  The for-loop is best used when you know how many times it is going to be looped  So if you know you want it to only loop 10 times,
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,
Professor Ira Fay Class 10. Game Guru Programming for Game Designers.
Variables and Inheritance Part 1
CS Class 05 Topics  Selection: switch statement Announcements  Read pages 74-83, ,
Unit 2 – Algorithms & Pseudocode. Algorithms Computer problems solved by executing series of action in order Procedure –The Actions to execute –The Order.
“The perfect project plan is possible if one first documents a list of all the unknowns.” Bill Langley.
Repetition. Control of Flow SEQUENCE SELECTION (if..else, switch…case) REPETITION.
Professor Ira Fay Class 8. Game Guru Programming for Game Designers.
Professor Ira Fay Class 2. Survey feedback Mining Part 1 Meta-Discussion Programming vs. Math Mining Part 2.
Problem Solving Methodology Rachel Gauci. Problem Solving Methodology Development Design Analysis Evaluation Solution requirements and constraints. Scope.
CSD 340 (Blum)1 Starting JavaScript Homage to the Homage to the Square.
1 Printing in Python Every program needs to do some output This is usually to the screen (shell window) Later we’ll see graphics windows and external files.
Conditionals Opening Discussion zWhat did we talk about last class? zDo you have any questions about the assignment? zPass by value limitations.
Loops ISYS 350. Two Types of Loops while loop for loop.
Recursion A recursive definition is one which uses the word or concept being defined in the definition itself Example: “A computer is a machine.
Professor Ira Fay Class 11. Game Guru Programming for Game Designers.
GameDevClub CODE CHEAT SHEET NOTE: ALL OF THE CODE IS CASE-SENSITIVE AND THE SYNTAX IS STRICT SO A LOT OF YOUR ERRORS WILL PROBABLY COME FROM TYPOS If.
CMSC 150 LOOPS CS 150: Fri 20 Jan Representing DNA AGTCCAGTGTCAA.
PLUS FACTORIES ENTITY COMPONENT SYSTEMS. ECS OVERVIEW My Inspiration is Unity's GameObject architecture.
I have used Scratch, to program a guide to internet safety. This is done by using QR codes to make it more interactive and interesting for people playing.
Week 6 - Friday.  What did we talk about last time?  Loop examples.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
FOR LOOPS "LOOP FOR A SET NUMBER OF TIMES.". FOR ( START_VALUE; END_VALUE; INCREMENT_NUMBER ) { //YOUR_CODE_HERE } So after the word "for" (in lowercase)
Debugging Watch and Text Output Alice. Debugging Techniques Several techniques are helpful in eliminating errors (bugs) in programs: careful design incremental.
Loops ISYS 350. Two Types of Loops while loop for loop.
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
Professor Ira Fay Class 5. Mining survey for() loops arrays cupcake lab.
Loops ISYS 350. Two Types of Loops while loop for loop.
Professor Ira Fay Class 6. Mining survey feedback 2D arrays Objects Part 1 walkthrough.
Professor Ira Fay Class 1. Course Intro Syllabus Project 1.
Women in Game Programming
for Repetition Structures
Think What will be the output?
Functions CIS 40 – Introduction to Programming in Python
Iteration with While You can say that again.
Programming Misconceptions
Data Structures – 1D Lists
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Remembering lists of values lists
Variables variable: A piece of the computer's memory that is given a name and type, and can store a value. Like preset stations on a car stereo, or cell.
Variables and Inheritance Part 1
Introduction to Programming with Python
Just Basic Lessons 9 Mr. Kalmes.
Building Java Programs
Assignment Operators Topics Increment and Decrement Operators
Presentation transcript:

Professor Ira Fay Class 4

Mining Part 3 Programming Concepts Josie Nutter Unity Demo

 Stand up  Learn the name of someone you don’t know  Sit down

 How is it going?  Are you using the walkthroughs?  GitHub?

 Creating a GameObject and attaching a script  Time.time  Update() loop

 With a growth mindset, we can improve our skills through practicing.  Learning happens over time, not instantly.  The process of learning is uncomfortable when we’re not competent yet.

 Lines of code are executed in order  = is an assignment operator  Programming is typo-intolerant  You have to say the magic words exactly right for the spell to work!

 Variables hold information  Variables can change value while the program is executing  Example  int myRoll;

 Methods are like a factory:  They take input, and spit out results  Example  Random.Range(1,7);

 +=  //  if ()

 ++  enum

// add 1 to i i = i + 1; // add 1 to i i += 1; // add 1 to i i++;

How do we track where we are in the game? // 0 is Bronze // 1 is Silver // 2 is Done int gameState = 0;

How do we track where we are in the game? // 0 is Bronze // 1 is Silver // 2 is Done int gameState = 0; if (gameState == 0) { SpawnBronze(); }

How do we track where we are in the game? public enum GameState { Bronze, Silver, Done }

How do we track where we are in the game? GameState myState = GameState.Bronze; if (myState == GameState.Bronze) { SpawnBronze(); }

 Now!  Come prepared with 1 question

 Monday!  Come prepared with 1 question

How could I display the numbers 1 to 9?

print (“1”); print (“2”); print (“3”); print (“4”); print (“5”); print (“6”); print (“7”); print (“8”); print (“9”);

How could I display the numbers 1 to 99? 1 to 999?

// Count from 1 to 9 for (int i = 1; i < 10; i += 1) { print (i); } // We could also use a while() loop int i = 1; while (i < 10) { print (i); i += 1; }

// Count from 1 to 99 for (int i = 1; i < 100; i += 1) { print (i); } // We could also use a while() loop int i = 1; while (i < 100) { print (i); i += 1; }

// Count from 1 to 999 for (int i = 1; i < 1000; i += 1) { print (i); } // We could also use a while() loop int i = 1; while (i < 1000) { print (i); i += 1; }

 Isaiah + team made a game over the summer!