Programming games Examples. Classwork: work and show something of your final project. Homework: (finish…)

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

Understanding an Apps Architecture ASFA Computer Science: Principles Fall 2013.
Mouse Tutorial for Win XP In this tutorial you will learn to: Move the mouse Click and double click Make selections Manage windows Use menus Click the.
Programs/Algorithms.  Computer Architecture  What is a computer program?  Flow chart  Data states  Data  Variables  History – Why VB?  Procedural.
靜宜大學資管系 楊子青 1 Programming Your App’s Memory 靜宜大學資管系 楊子青
Python Magic Select a Lesson: Why Learn to Code? Basic Python Syntax
Spreadsheets in Finance and Forecasting Presentation 8 Buttons, Boxes and Bars.
Alice Variables Pepper. Set to Java look Edit / preferences restart.
Information Technology Center Hany Abdelwahab Computer Specialist.
Web Page Behavior IS 373—Web Standards Todd Will.
Computer Science 103 Chapter 4 Advanced JavaScript.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
Sequencing Miss Regan. Blood Hound  Does anyone know what the Bloodhound project is?  Video 1 Video 1  Video 2 Video 2  Link to website Link to website.
20 Questions Assignment Intro James Wei Professor Peck March 19, 2014 Slides by James Wei.
Practice Management Training Webinar - Chapter 2 of 4 Ros Campbell Product Consultant.
A Prezi presentation is like creating a mind map. It is created on a blank canvas and you decide where the information goes on this canvas.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
Programming Games Computer science big ideas. Computer Science jargon. Show virtual dog Homework: [Catch up: dice game, credit card or other form.] Plan.
by Chris Brown under Prof. Susan Rodger Duke University June 2012
Programming Games Recap on Google Maps. Creating elements. Dynamic creation of elements (multiple video elements). Geolocation. Classwork/Homework: Catch-up.
Making a Timer in Alice.
Advanced Web Design Scripting Tutorial Chapters. Scripting Intro The scripting part of the forthcoming Advanced Web Design textbook introduces you to.
Programming Games Google Map API examples. CSS. Classwork/homework: Catch up. Upload work. Show your [more] complex Google Maps API example. Plan your.
Programming Games Show your simple video. More video examples. Audio. Classwork/Homework: Produce more complex video program.
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
By the end of this session you should be able to...
Programming games Reflection Bouncing things, Memory Server-side: Survey. ActionScript 2 examples. Homework: Finish Video or Audio. Post proposal for your.
Programming games Show your version of Bo the dog. Start cannonball Preview: video, audio work session (cannonball) Homework: Cannonball with ball in a.
Topic 25 - more array algorithms 1 "To excel in Java, or any computer language, you want to build skill in both the "large" and "small". By "large" I mean.
Choose camera and microphone
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
By Melissa Dalis Professor Susan Rodger Duke University June 2011 Multiplication Table.
StopPreviousNext 1 Internet training course Workbook 2 How to use the Internet Easy English workbook July 2010.
Instructions To start a new game, click the “Start New Game” button. To reset the game in order to change the Answers and Questions on each slide, as.
Creating User Interfaces Recap HTML/HTML5 JavaScript features Homework: keep working on user observation studies. Review JavaScript.
Creating Databases Local storage. join & split Classwork: show 1 table application. Share designs for oscars application. Adaptive select. Homework: [Catch.
Programming Games Reprise on drawing on canvas. Jargon (concepts): objects. Demonstrate slingshot. Mouse events. Work on your cannonball. Homework: Finish.
Piñata Game: Keeping Score in Alice By Maggie Bashford Professor Susan Rodger Duke University July
JavaScript Programming Unit #1: Introduction. What is Programming?
Programming games Problems. Schedule Various examples. Homework: rps, bo (don't go back to do this), cannonball, Video or Audio should be complete. Now.
Start. Instructions Read through the tutorial and follow along with the step- by-step review. To go back Next page To return to this page For hints Table.
11.4 Properties of Logarithms. Logarithms A logarithm is an operation, a little like taking the sine of an angle. Raising a constant to a power is called.
Jan 2001C.Watters1 World Wide Web and E-Commerce Client Side Processing.
Programming games Context of what we are doing. Drawing on canvas. Homework: [Complete coin toss examples.] Do your own drawings. Upload files to website.
Nonvisual Arrays by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Programming Games Logic. Slide show. Range input. Storage. Datatypes. Binary numbers. Homework: Catch up. This includes uploading projects to your server.
Computer Game Design ActionScript is… Object-oriented programming Everything you do in ActionScript does something to some object* Some objects.
Programming Games Show your rock-paper-scissors. Demonstrate bouncing ball. Demonstrate and examine Bo the dog. Homework: Modify Bo to make your own.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
Creating Databases for Web Applications State capitals quiz: demonstrates parallel structures AND multi-purpose php files Classwork: design a new quiz.
Computer Science I Share plans for virtual something. Text. Show my virtual dog. Classwork: Plans for your virtual something. Homework: start implementation.
Programming games in Visual Basic Review programming & VB topics Insertion sort. Best times. Generate questions & answer patterns for quiz Lab/Homework:
Programming Games Reprise: radio buttons. Creating instances at runtime. Buttons. Present your sound or video. Final project assignment. Homework: [Catch.
© 2007 Pearson Addison-Wesley. All rights reserved2-1 Character Strings A string of characters can be represented as a string literal by putting double.
Programming Games Reprise: credit cards. Show video projects. Demonstrate Find Daniel and Virtual Dog. Homework: [Catch up.] Post proposal for your JavaScript.
PHP Form Processing * referenced from
Computer Science I Go over midterm. Reprise on curves. Table examples. The map function. Testing Strings. Fonts. Classwork/Homework: Complete midterm project.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Computer Science I Split. Regular Expressions Classwork: Trivia questions. Share. Show (stage 1) final project. Homework: work on final project.
Creating Databases Local storage. join & split
Programming Games Work / finish and show dice game. Extras. Timed events. ftp. index file. Homework: Catch up and do slide show.
Computational Thinking
File IO and Strings CIS 40 – Introduction to Programming in Python
Alice Variables Pepper.
Tutorial 10: Programming with javascript
Catchup. Work on project.
Creating User Interfaces
Programming Games Reprise on drawing on canvas. Jargon (concepts): objects. Demonstrate slingshot. Mouse events. Work on animation project. Homework: Finish.
Primary School Computing
Long Division.
Presentation transcript:

Programming games Examples. Classwork: work and show something of your final project. Homework: (finish…)

States capitals game Demonstrate

States capitals This could be countries. Find a map. Divide it up into individual instances. NOTE: don't change the origin/registration point of any state. So most states will have origin NOT on/in the state. Set up parallel arrays holding –State name –Capital name –neighbors

States capitals Use radio buttons for questions. Design interface—think about mouse clicks and text area. Set up functions for asking question and functions can handling the event of the answer being given. Check out tutorial.

skier Demonstrate

skier Mountain moves. The skier does not move down the mountain. Use of arrow moves skier left and right. Place gates –Determine how to see if skier misses a gate Design decision: stop game immediately or keep score. See tutorial. See source code for iterative design: skier1, skier2, skier3, skier4

String methods How do you examine a part of a string? Suppose you have a variable, course, coursename, holding something like MAT or NME course.substr(0,3) will return "MAT" or "NME" Course.substr(3,1) will return "1" or "3" Is this an upper-level course? if (Number(course.substr(3,1))>2) ….

substr, continued I used this in the radio button video play. This worked (only) because I named the buttons according to a pattern (THAT I MADE UP) so that I/my code can detect and use something from the names!

String methods There are many, some consistency across different languages. There is substr and substring. QUIZ: do search to find out difference between these two string methods.

How do you combine strings? If variable bos holds "MAT", "NME", etc. and num holds "1420", "3440", etc. and section holds "20", "45", etc. then the full name of a course is ????? Answer: use +

Answer course = bos+num+"."+section;

SharedObject Reprise: a version of cookies. Persistent data on the client computer. –Browser specific. –Used for behavioral marketing. Demonstrate. 30/simpleso.html

SharedObject Store name-value pair For complex data, need to do calculations to create one long string –split –Join do search to find how these work. They are string methods.

Map program Request to have mouse move a hole/shadow over a Google Maps. html5/mapshadow.htmlhttp://faculty.purchase.edu/jeanine.meyer/ html5/mapshadow.html Issues: –how to put canvas on top of div where the map goes – how to draw the mask (hint: use "rgba(r,b,g,.5)"; –how to manage events

Homework [Show projects] [Make proposal for your project] SHOW YOUR PROJECT Study guide to final and come to my office with questions and come to class with questions.