professor ira fay class 9. game guru programming for game designers
TRANSCRIPT
![Page 1: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/1.jpg)
Programming forGame Designers
Professor Ira FayClass 9
![Page 2: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/2.jpg)
Overview
• Game Guru• Programming for Game Designers
![Page 3: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/3.jpg)
Game Guru
Observe Rules of the game Scoring Characters Animations Audio User interface Anything at all!
![Page 4: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/4.jpg)
Survey
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
![Page 5: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/5.jpg)
Get to Know Hampshire
Install Dropbox (or something similar)
Find an interesting professor Check out a boardgame from the
library Find a CEL-1 activity
![Page 6: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/6.jpg)
Survey: Likes
Game Guru In-class playtests Dice project
![Page 7: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/7.jpg)
Survey: To Be Improved
Length of Dice project (too long) In-class playtests Nothing
![Page 8: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/8.jpg)
Survey: TA hours
Didn’t need help (9) I have attended TA hours (4)
![Page 9: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/9.jpg)
PfGD: Part 1
Due today! How many people completed it? Website Roll 1d6 Pick one of the game options
What game option did you pick?
![Page 10: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/10.jpg)
Growth Mindset Reminder
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.
![Page 11: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/11.jpg)
Programming
Lines of code are executed in order
= is an assignment operator
Programming is typo-intolerant You have to say the magic words exactly
rightfor the spell to work!
![Page 12: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/12.jpg)
Variables
Variables hold information
Variables can change value while the program is executing
Example $myRoll
![Page 13: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/13.jpg)
Methods
Methods are like a factory: They take input, and spit out results
Example rand(1, 6);
![Page 14: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/14.jpg)
Four Useful PHP commands
+=
//
if ()
for ()
![Page 15: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/15.jpg)
Useful PHP commands: +=$totalScore = 0;$myRoll = rand(1, 6);$totalScore = $totalScore + $myRoll;
![Page 16: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/16.jpg)
Useful PHP commands: +=$totalScore = 0;$myRoll = rand(1, 6);$totalScore += $myRoll;
![Page 17: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/17.jpg)
Useful PHP commands: //
// Player starts with a score of 0$totalScore = 0;
// Roll 1d6$myRoll = rand(1, 6);
// Add the roll to the score$totalScore += $myRoll;
![Page 18: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/18.jpg)
Useful PHP commands: if()// Player starts with a score of 0$totalScore = 0;
// Roll 1d6$myRoll = rand(1, 6);
// if the roll is greater than 4if ($myRoll > 4) {// Add the roll to the score$totalScore += $myRoll;
}
![Page 19: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/19.jpg)
Useful PHP commands: if()> 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!
![Page 20: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/20.jpg)
Useful PHP commands: for()How could I display the numbers 1 to 9?
![Page 21: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/21.jpg)
Useful PHP commands: for()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”;
![Page 22: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/22.jpg)
Useful PHP commands: for()How could I display the numbers 1 to 99?
1 to 999?
![Page 23: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/23.jpg)
Useful PHP commands: for()// Count from 1 to 9for ($i = 1; $i < 10; $i += 1) { echo $i;}
// We could also use a while() loop$i = 1;while ($i < 10) { echo $i; $i += 1;}
![Page 24: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/24.jpg)
Useful PHP commands: for()// Count from 1 to 99for ($i = 1; $i < 100; $i += 1) { echo $i;}
// We could also use a while() loop$i = 1;while ($i < 100) { echo $i; $i += 1;}
![Page 25: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/25.jpg)
Useful PHP commands: for()// Count from 1 to 999for ($i = 1; $i < 1000; $i += 1) { echo $i;}
// We could also use a while() loop$i = 1;while ($i < 1000) { echo $i; $i += 1;}
![Page 26: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/26.jpg)
Lab Time
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
![Page 27: Professor Ira Fay Class 9. Game Guru Programming for Game Designers](https://reader030.vdocuments.us/reader030/viewer/2022032708/56649e7a5503460f94b7b829/html5/thumbnails/27.jpg)
Outside of Class Activities
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