Programming Games Mouse position. Examples. Review for final quiz.

Slides:



Advertisements
Similar presentations
Hyper Text Markup Language Developing & Hosting a Web page Lecture 21.
Advertisements

1 Undergraduate Curriculum Revision Department of Computer Science February 10, 2010.
Georgia Department of Education. Information Technology Pathways.
Aug 22, Fall 2005ITCS4010/ ITCS4010/ Computer Game Design and Development Tiffany Barnes, Ph.D. STECH403E
CSCI 3 Introduction to Computer Science. CSCI 3 Course Description: –An overview of the fundamentals of computer science. Topics covered include number.
Computer Science 162 Section 1 CS162 Teaching Staff.
Courses Presented by Computer Science (CS) Building.
Platforms for Learning in Computer Science July 28, 2005.
Integrating Business Education and Computer Science to Prepare Students for the 21 st Century Barbara Ericson Advanced.
CSC 110 – Intro to Computing Lecture 2: More Computing History & Binary Numbers.
CSE Graphical User Interface Design & Implementation Jason Murphy Lecture 1 - Introduction.
Object Oriented Programming CEN 221. Course Description Classes, objects, inheritance, polymorphism, graphical user interfaces, event handling, exception.
CS426 Game Programming II Dan Fleck. Why games?  While the ideas in this course are demonstrated programming games, they are useful in all parts of computer.
M1G Introduction to Database Development 6. Building Applications.
Course Introduction Software Engineering
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.
IT 351 Mobile &Wireless Computing Semester 1, Dr. Hala Mokhtar Room th floor.
Online Friends’ Community Presented by: Stuart Monaghan HND in Computing th May 2002.
Programming games Examples. Classwork: work and show something of your final project. Homework: (finish…)
Introduction to Humanities Computing Spring 1999.
Careers in Information Technology Milton Ramer & Courtney Lisenbee.
HEPL 3110: Computer Applications to Purchasing & Supplies Mgt Lecturer: Fredrick A. Odero Mobile:
BIT 115: Introduction To Programming Instructor: Jon Peck
INFSCI 2935: Introduction to Computer Security1 Project Implementation Implementation  Reasonable sophistication  Up to 3 people maximum Survey type.
CMSC104 Problem Solving and Computer Programming Spring 2011 Section 04 John Park.
Programming Games [Show Google Maps project.] Demonstrate more examples. Classwork/Homework: Decide on final project. Post proposal to moodle.
CMSC104 Problem Solving and Computer Programming Spring 2009 Sections 0201 & 0301 Ms. Dawn Block.
CS Curriculum Changes Fall, BS Computer Science 2015 COMPUTER SCIENCE COURSES—64 Hours COMPUTER SCIENCE CORE (48 Hours) CS 258Intro to Object-Oriented.
1 10/15/04CS150 Introduction to Computer Science 1 Reading from and Writing to Files Part 2.
4.01 How Web Pages Work.
Munster Programming Training
Accelerated B.S./M.S An approved Accelerated BS/MS program allows an undergraduate student to take up to 6 graduate level credits as an undergraduate.
OCR Cambridge Technical Introductory Diploma in IT
CMSC104 Problem Solving and Computer Programming Spring 2008
Course Introduction 공학대학원 데이타베이스
Computer Science 195/295 Title: Computing Seminar
CMSC104 Problem Solving and Computer Programming Fall 2010 Section 01
Computer Science Courses
ECE 671 – Lecture 1 Introduction.
Mobile &Wireless Computing
CSE 3 – Fall 2015 Sierra Ampudia
Windows 7 Operating Systems.
Computer Concept What is a computer?
Introduction to Canvas
Programming Games [Show Google Maps project.] Demonstrate more examples. Classwork/Homework: Decide on final project. Post proposal to moodle. 1.
ORIENTATION TO CANVAS.
Project Implementation Survey type paper New idea/research ??
ECE 671 – Lecture 1 Introduction.
CMSC 104 Problem Solving and Computer Programming Fall 2010
Game Design Practicum (CMPS 179) Summer 2012 Course Overview
Geo 318 – Introduction to GIS Programming
ISA 562 Information Security Theory and Practice
CMSC104 Problem Solving and Computer Programming Fall 2010
Introduction to Canvas
CMSC104 Problem Solving and Computer Programming Spring 2010
Information Technology Pathway Updates
CMSC104 Problem Solving and Computer Programming Fall 2009 Section 2
Introduction to Canvas
Pima Medical Institute Online Education
Visual Programming Lecture 1.
Homework Reading Machine Projects Labs
TOPIC: HARDWARE AND SOFTWARE
CMSC104 Problem Solving and Computer Programming Spring 2010
Parent guide for using the website features
Introduction to JavaScript
Interactive Media Technology
Computer Science Courses in the Major
Computer Vision Project
Computer Science Dr Hwang Chair, Computer Science Department
Presentation transcript:

Programming Games Mouse position. Examples. Review for final quiz. Classwork: Catch up. Finish final project. Show notebook. Homework: Upload project(s). Update index.html and send me the link.

How to get the position of mouse on canvas [See examples for use with touch.] Approach in early days required differences for different browsers. "Modern" way uses bounding rectangle: Global variable: canvasrect; In init function, canvas1 = document.getElementById("canvas"); canvasrect = canvas1.getBoundingClientRect();

Position of mouse, summary Global variable: var canvasrect; In init function, canvas1 = document.getElementById("canvas"); canvasrect = canvas1.getBoundingClientRect(); In function set up to respond to a mouse event: function mousestart(ev) { sx = ev.clientX-canvasrect.left; sy = ev.clientY-canvasrect.top; …}

Silly bee eating game http://faculty.purchase.edu/jeanine.meyer/html5/chasingStuff.html Use parts for your own game. Note: I added the alert at the start because I forgot how to play the game.

Braiding Demonstrate on desktop and on iPad. http://faculty.purchase.edu/jeanine.meyer/braidmenu.html Use what is termed "2 and ½ D " Liked the shaking. Note: you can view all the source code on a desktop computer.

Questions for final? Review guide for final. Review lecture charts. Be on time.

Other computing courses Introductory Computer Science I Introduction to Programming with Max Programming for Visual Artists Next semester Creating Databases for Web Applications Other: CS II, Data Structures, Creating User Interfaces, Networking & Security, Topics in Advanced Computing, Social Software, Mobile Media Math + computing: Calculus III, Numerical Analysis, OR & Data Science, Number Theory

Classwork/homework [Catch up] Show your final project! Upload work and Update your index.html file and Send to me.