Professor Ira Fay Class 9. Game Guru Programming for Game Designers.

Slides:



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

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
© Glenn Rowe AC Lab 2 A simple card game (twenty- one)
Making Decisions in Python Sec 9-10 Web Design. Objectives The student will: Understand how to make a decision in Python Understand the structure of an.
CSc 2310 Principles of Programming (Java)
Introduction to Computing Science and Programming I
Introduction to Computer Programming I CSE 113
1 Lab Session-3 CSIT221 Spring 2003 b Group Worksheet 3 Exercise (Demo Required) b No new lab demo will be assigned to allow you to focus on HW#1.
Python November 18, Unit 7. So Far We can get user input We can create variables We can convert values from one type to another using functions We can.
1 Arithmetic in C. 2 Type Casting: STOPPED You can change the data type of the variable in an expression by: (data_Type) Variable_Name Ex: int a = 15;
Administrative MUST GO TO CORRECT LAB SECTION! Homework due 11:59pm on Tuesday. 25 points off if late (up to 24 hours) Cannot submit after 11:59pm on Wednesday.
Introduction to MATLAB ENGR 1187 MATLAB 1. Programming In The Real World Programming is a powerful tool for solving problems in every day industry settings.
Ira Fay, Brandon Patton, Dave Tomczyk 8/14/13. Nerdcore Learning Logo NASA Logo? Other schools?
An Introduction to Textual Programming
Repetition Statements Repeating an Action A specified number of times While a Condition is True Until a Condition is True.
CPSC 171 Introduction to Computer Science 3 Levels of Understanding Algorithms More Algorithm Discovery and Design.
Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.
ECS 10 10/8. Outline Announcements Homework 2 questions Boolean expressions If/else statements State variables and avoiding sys.exit(…) Example: Coin.
Media Computing Instructor Byung Kim Olsen 231 Office hours – MWF 9:00-10:00 AM or by appointment.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Chapter 2 - Algorithms and Design
Engineering 1020 Introduction to Programming Peter King Winter 2010.
Bug Session Four. Session description Objectives Session activities summary Resources Prior knowledge of sequencing instructions using Bug Bug website.
CSC Intro. to Computing Lecture 13: PALGO. Announcements Midterm is in one week  Time to start reviewing  We will do more review in class Tuesday.
Learning the skills for programming Advanced Visual Programming.
Slide 3-1 CHAPTER 3 Conditional Statements Objectives To learn to use conditional test statements to compare numerical and string data values To learn.
PHP Logic. Review: Variables Variables: a symbol or name that stands for a value – Data types ( Similar to C++ or Java): Int, Float, Boolean, String,
Computer Science 1 Week 11. This Week... QBasic While Loops QBasic While Loops Audio Basics Audio Basics.
1 Module 3 Conditional Statements. Objectives  Conditional test statements to compare numerical and string data values  Looping statements to repeat.
1 Chapter 2 - Algorithms and Design print Statement input Statement and Variables Assignment Statement if Statement Flowcharts Flow of Control Looping.
Professor Ira Fay Class 10. Game Guru Programming for Game Designers.
Professor Ira Fay Class 8. Game Guru Programming for Game Designers.
Professor Ira Fay Class 4. Mining Part 3 Programming Concepts Josie Nutter Unity Demo.
Introduction Chapter 1 8/31 & 9/1 Imagine! Java: Programming Concepts in Context by Frank M. Carrano, (c) Pearson Education - Prentice Hall, 2010.
Professor Ira Fay Class 2. Survey feedback Mining Part 1 Meta-Discussion Programming vs. Math Mining Part 2.
Decision Structures, String Comparison, Nested Structures
COP 3275 – Iteration and loops Instructor: Diego Rivera-Gutierrez.
Using Lists Games Programming in Scratch. Games Programming in Scratch Extension – Using Lists Learning Objectives Create a temporary data store (list)
Fall 2012 Professor C. Van Loan Introduction to CSE Using Matlab GUIs CS 1115.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
More Sequences. Review: String Sequences  Strings are sequences of characters so we can: Use an index to refer to an individual character: Use slices.
Professor Ira Fay Class 11. Game Guru Programming for Game Designers.
CS320n – Elements of Visual Programming Assignment Help Session.
int [] scores = new int [10];
1 Project 7: Looping. Project 7 For this project you will produce two Java programs. The requirements for each program will be described separately on.
BIT 115: Introduction To Programming Professor: Dr. Baba Kofi Weusijana (say Doc-tor Way-oo-see-jah-nah, Doc-tor, or Bah-bah)
ROUNDING TO NEAREST TENS QUIZ REMEMBER THE RULES 0-4 = THE NUMBERS STAY THE SAME THE NUMBER THAT IS IN THE BOX 0-9 ADD ONE TO THE GAME= THE NUMBER IN THE.
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
LO: We’re learning to outline a program using Pseudo Code.
1 Project 5: Leap Years. 222 Leap Years Write a program that reads an integer value from the user representing a year and determines if the year is a.
Loops. Review Control Structure – making decisions if-statement Program Design Understand what you want to do Design your solution Write and test your.
HTML FORM AND PHP IST 210: Organization of Data IST210 1.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 The Web Wizard’s Guide to PHP by David A. Lash.
Professor Ira Fay Class 5. Mining survey for() loops arrays cupcake lab.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
Professor Ira Fay Class 6. Mining survey feedback 2D arrays Objects Part 1 walkthrough.
Professor Ira Fay Class 1. Course Intro Syllabus Project 1.
Modelling and Simulating Social Systems with MATLAB
Women in Game Programming
Modelling and Simulating Social Systems with MATLAB
Number guessing game Pick a random number between 1 and 10
Safe Searching The internet is the biggest library in the world you can find almost anything you want to From TV shows to sports results is what can help.
int [] scores = new int [10];
Truth tables: Ways to organize results of Boolean expressions.
Truth tables: Ways to organize results of Boolean expressions.
Truth tables: Ways to organize results of Boolean expressions.
Computer Science 1 For..do loop Dry Run Take notes on the For loop
Interactive media.
Presentation transcript:

Professor Ira Fay Class 9

Game Guru Programming for Game Designers

 Observe  Rules of the game  Scoring  Characters  Animations  Audio  User interface  Anything at all!

Average Value  Game Guru: 4 (one person gave it a 1)  Get to Know Hampshire: 2.6  Dice: 3.8  Dice Hours Spent: 10.4

 Install Dropbox (or something similar)  Find an interesting professor  Check out a boardgame from the library  Find a CEL-1 activity

 Game Guru  In-class playtests  Dice project

 Length of Dice project (too long)  In-class playtests  Nothing

 Didn’t need help (9)  I have attended TA hours (4)

 Due today! How many people completed it?  Website  Roll 1d6  Pick one of the game options  What game option did you pick?

 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  $myRoll

 Methods are like a factory:  They take input, and spit out results  Example  rand(1, 6);

 +=  //  if ()  for ()

$totalScore = 0; $myRoll = rand(1, 6); $totalScore = $totalScore + $myRoll;

$totalScore = 0; $myRoll = rand(1, 6); $totalScore += $myRoll;

// Player starts with a score of 0 $totalScore = 0; // Roll 1d6 $myRoll = rand(1, 6); // Add the roll to the score $totalScore += $myRoll;

// Player starts with a score of 0 $totalScore = 0; // Roll 1d6 $myRoll = rand(1, 6); // if the roll is greater than 4 if ($myRoll > 4) { // Add the roll to the score $totalScore += $myRoll; }

> means greater than < means less than >= means greater than or equal to <= means less than or equal to == means equal != means not equal Remember that = is an assignment operator!

How could I display the numbers 1 to 9?

echo “1”; echo “2”; echo “3”; echo “4”; echo “5”; echo “6”; echo “7”; echo “8”; echo “9”;

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

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

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

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

 For the rest of this unit, we’ll have ample lab time in class. Bring your computer!  Lisette: Kai S, Ben, Truman, Dakari  Meghan: Kai M, Grace, Zack  Gabriella: Helena, Ethan, Joel  George: Quinn, Bryan, Max

Read the syllabus to know what to do!  Programming for Game Designers Part 2 due Weds  Get to Know Hampshire project ongoing Game Guru: Pick a game to show next class, submit written analysis before class