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

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

Experimental User Interfaces ME-E4200 Lecture X - Project January 2015.
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
PHP Conditions MIS 3501, Fall 2014 Jeremy Shafer Department of MIS Fox School of Business Temple University September 11, 2014.
Introduction to Computer Programming I CSE 113
A simple PHP application We are going to develop a simple PHP application with a Web interface. The user enters two numbers and the application returns.
PHP Form Processing. Using Forms in PHP  Two steps to process  Display the form  Process the submitted data.
Website Development Introducing PHP The PHP scripting language Syntax derives from C, Java and Perl Open Source Links to MySql database.
PHP Form Processing. Using Forms in PHP  Two steps to process  Display the form  Process the submitted data.
Uploading Files. Why? By giving a user the option to upload a file you are creating an interactive page You can enable users have a greater web experience.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
Web forms in PHP Forms Recap  Way of allowing user interaction  Allows users to input data that can then be processed by a program / stored in a back-end.
Application Development Description and exemplification of server-side scripting language for server connection, database selection, execution of SQL queries.
PHP : Hypertext Preprocessor
1 Chapter 6 – Creating Web Forms and Validating User Input spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information.
Week 4  Using PHP with HTML forms  Form Validation  Create your own Contact form Please Visit:
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
PHP Forms and User Input The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input.
Lecture 6 – Form processing (Part 1) SFDV3011 – Advanced Web Development 1.
Week 7. Lecture 3 PHP Forms. PHP forms In part 2 of this course, we discussed html forms, php form is similar. Lets do a quick recap of the things we.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
NMED 3850 A Advanced Online Design January 26, 2010 V. Mahadevan.
Visual Basic Games: Prepare for Hangman
Professor Ira Fay Class 9. Game Guru Programming for Game Designers.
FUNCTIONS AND STORED PROCEDURES & FUNCTIONS AND PROTECTING A DB AND PHP (Chapters 9, 15, 18)
A little PHP. Enter the simple HTML code seen below.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
JavaScript – Quiz #9 Lecture Code:
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Variables and Expressions CMSC 201 Chang (rev )
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,
ITM © Port, KazmanVariables - 1 ITM 352 Expressions, Precedence, Working with Strings.
Javadoc Comments.  Java API has a documentation tool called javadoc  The javadoc tool is used on the source code embedded with javadoc-style comments.
2010/11 : [1]PHP with MySQLBuilding Web Applications using MySQL and PHP (W1) PHP with MySQL.
Comments in PHP In PHP, we use // to make a singleline comment or /* and */ to make a large comment block. Comment is a part of your PHP code that will.
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.
>> PHP: Insert Query & Form Processing. Insert Query Step 1: Define Form Variables Step 2: Make DB Connection Step 3: Error Handling Step 4: Define the.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
Professor Ira Fay Class 2. Survey feedback Mining Part 1 Meta-Discussion Programming vs. Math Mining Part 2.
Creating Databases for Web applications Server side vs client side PHP basics Homework: Get your own versions of sending working: both html and Flash!
Variables and Expressions CMSC 201. Today we start Python! Two ways to use python: You can write a program, as a series of instructions in a file, and.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 7 - Introduction to Common Gateway Interface (CGI) Outline 7.1Introduction 7.2A Simple HTTP Transaction.
Since you’ll need a place for the user to enter a search query. Every form must have these basic components: – The submission type defined with the method.
CST336, Dr. Krzysztof Pietroszek Week 2: PHP. 1.Introduction to PHP 2.Embed PHP code into an HTML web page 3.Generate (output HTML) web page using PHP.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting PHP Basics.
 Variables can store data of different types, and different data types can do different things.  PHP supports the following data types:  String  Integer.
PHP Form Processing * referenced from
NMD202 Web Scripting Week2. Web site
Midterm Review Tami Meredith. Primitive Data Types byte, short, int, long Values without a decimal point,..., -1, 0, 1, 2,... float, double Values with.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
LO: We’re learning to outline a program using Pseudo Code.
PHP Tutorial. What is PHP PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
Professor Ira Fay Class 5. Mining survey for() loops arrays cupcake lab.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
Unit 7 How to Upload Files. A very useful aspect of PHP is its ability to manage file uploads to your server. Before you can use PHP to manage your uploads,
Professor Ira Fay Class 6. Mining survey feedback 2D arrays Objects Part 1 walkthrough.
Professor Ira Fay Class 1. Course Intro Syllabus Project 1.
Session 2 Basics of PHP.
Women in Game Programming
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
More Selections BIS1523 – Lecture 9.
The Johnson Times -Add and subtract with double digits.
Web Programming Ben Blanc
SEEM 4540 Tutorial 4 Basic PHP based on w3Schools
Intro to Programming (in JavaScript)
Presentation transcript:

Professor Ira Fay Class 11

Game Guru Programming for Game Designers

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

 Has everyone completed it?  Send me your link  Send me your PHP file  Final due in 1 week. More time?

 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.

 Code is executed in order  Typo-intolerant  += and ++  //  if ()  for () and while()  arrays

.htaccess  $_GET and $_POST  array_key_exists()  if()... else

 A very useful file for seeing errors!

 HTML Forms  PHP Forms

First name: Last name:

$weatherArray // result is 58 echo $weatherArray[0];

$weatherArray // result is 58 echo $weatherArray[‘day1’]; ‘day1’ ‘day2’ ‘day3’ ‘day4’‘day5’

$weatherArray ‘day1’ ‘day2’ ‘day3’ ‘day4’‘day5’ key value

First name: Last name:

// Special array variable called $_GET $_GET[‘firstname’]; $_GET[‘lastname’];

  Example!

// What if the form hasn’t been submitted?

// This takes a string and an array, and // returns true or false: array_key_exists(‘firstname’, $_GET); // This takes two numbers, and // returns a number: rand(1, 6);

// Only echo the name if the form has // been submitted if (array_key_exists(‘firstname’, $_GET)) { echo "Your name is "; echo $_GET[‘firstname’]; }

// Score starts at 0 $totalScore = 0; // Roll 1d6 $myRoll = rand(1, 6); // Add to the score if roll was >4 if ($myRoll > 4) { $totalScore += $myRoll; }

// Add to the score if roll was >4 if ($myRoll > 4) { $totalScore += $myRoll; }

// Add to the score if roll was >4 if ($myRoll > 4) { $totalScore += $myRoll; } // Otherwise, subtract from the score else { $totalScore -= $myRoll; }

// Only echo the name if the form has // been submitted if (array_key_exists(‘firstname’, $_GET)) { echo "Your name is "; echo $_GET[‘firstname’]; }

// Only echo the name if the form has // been submitted if (array_key_exists(‘firstname’, $_GET)) { echo "Your name is "; echo $_GET[‘firstname’]; } // otherwise, give form instructions else { echo "Please complete the form!"; }

 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 Final due Weds  Get to Know Hampshire project ongoing Game Guru: Pick a game to show next class, submit written analysis before class