Download presentation
Presentation is loading. Please wait.
Published byGregory Stafford Modified over 8 years ago
1
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 1 Lesson 1: Introduction to Pong
2
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 2 Pong Computer ping-pong without a net First video-game in history –Invented by Ralph Baer –First commercialized in 1972 –Originally implemented on an oscilloscope –Home Pong machines were made for the TV, but could only play Pong
3
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 3 Goal You will be designing and implementing a Pong game You will use object-oriented design
4
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 4 Discover Pong Find Pong on-line, example: www.addictinggames.com/pong.html www.addictinggames.com/pong.html Play Pong After you play it for a few minutes, fill out distributed worksheet Pong Questionnaire
5
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 5 Pong Objects What objects did you see? What state information (attributes) does each object have? What differentiates similar objects (such as the paddles) from each other?
6
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 6 The Pong Object What is the purpose of the actual Pong playing field itself? Why do we need Pong? What information (attributes) does it need?
7
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 7 The State of Objects Each object is built from a class A class is only a pattern, and cannot have state An object exhibits behaviors and state What are the state properties of each object?
8
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 8 Pong Classes What classes do we need to implement Pong? What attributes (state information) does each class have?
9
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 9 Pong Classes ClassAttributes Ballposition, velocity, size Paddleposition, size Pongsize, borders, keyPresses
10
This computer science resource was developed through a collaboration between IBM Corporation and CSTA. 10 Lesson 1 Homework What behaviors (methods) does each class display?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.