DOC PREVIEW
Duke CPS 004 - Introduction to Jam’s Video Game Package

This preview shows page 1-2-20-21 out of 21 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Introduction to Jam’s Video Game PackageThe PlanScope of the Video Game PackageBasic Design of the Video Game PackageSlide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Steps to Making a GameSlide 15How Pong was MadeSlide 17Slide 18Slide 19Slide 20Slide 21Last Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 1Introduction to Jam’sVideo Game PackageLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 2The Plan•Scope of Video Game Package•Basic Design of the Video Game Package•Steps to making a game•How the Pong was made•Limitations of the Video Game PackageLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 3Scope of the Video Game Package•Goals of Jam’s Video Game Package–Simple to use–Reasonably fast–Designed to be examined and modified for academic purposes in computer science courses•What Jam’s package is not designed for–High speed animation/user input–Scripting games–Complex gamesLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 4Basic Design of theVideo Game PackageAnimationCanvasKeyboardMouseGameLoopJFrameOrAppletTrackerSpriteTrackerSpriteTrackerSpriteLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 5Basic Design of theVideo Game PackageTrackerThe Tracker is whatMakes the BallSprite moveLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 6Basic Design of theVideo Game Package•Point2D.Double getLocation()•double getScaleFactor()•double getRotationAddition()•void advanceTime()TrackerLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 7Basic Design of theVideo Game PackageTrackerSpriteLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 8Basic Design of theVideo Game PackageHas instance variables, and mutator and accessor methods for:•Shape•Location•Size•Rotation•ColorTrackerSpriteLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 9Basic Design of theVideo Game PackageAnimationCanvasTrackerSpriteTrackerSpriteTrackerSpriteLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 10Basic Design of theVideo Game PackageAnimationCanvasis a JPanel•with a collection of Sprites•that paints itself by painting all of its Sprites AnimationCanvasTrackerSpriteTrackerSpriteTrackerSpriteLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 11Basic Design of theVideo Game PackageGameLoop adds:•animation•interaction via–Keyboard–MouseKeyboardMouseGameLoopAnimationCanvasTrackerSpriteTrackerSpriteTrackerSpriteLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 12Basic Design of theVideo Game PackageJFrame or Applet used to:•Put the game on the screen•Start the game•Provide game controlJFrameOrAppletLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 13Basic Design of theVideo Game PackageAnimationCanvasKeyboardMouseGameLoopJFrameOrAppletTrackerSpriteTrackerSpriteTrackerSpriteLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 14Steps to Making a Game1. Extend GameLoop.java–In Constructora. Make Spritesb. Make Trackersc. Attach Trackers to Spritesd. Add Sprites to AnimationCanvas–In advanceFrame provide game logic2. Make a JFrame or Applet3. Add extended GameLoop to JFrame or Applet4. setFrameRate to start the gameLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 15Basic Design of theVideo Game PackageAnimationCanvasKeyboardMouseGameLoopJFrameOrAppletTrackerSpriteTrackerSpriteTrackerSprite1. Extend GameLoop.java–In Constructora. Make Spritesb. Make Trackersc. Attach Trackers to Spritesd. Add Sprites to AnimationCanvas–In advanceFrame provide game logic2. Make a JFrame or Applet3. Add extended GameLoop to JFrame or Applet4. setFrameRate to start the gameLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 16How Pong was Made1. BallSprite was written to extend Sprite2. WallSprite was written to extend Sprite3. ProjectileTracker was written to implement a Tracker4. PongLoop was written to extend GameLoop5. Pong was written to use PongLoopLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 17How Pong was MadeSome of the more complex parts of Pong that we’ll talk about in more detail later:•Loops•Conditionals•Event handling•Inheritance & Interfaces•Collections•Collision detectionLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 18How Pong was MadeWhat you will need to know shortly:•Basic classes in the package•Basic structure of the package•Basic steps to making the game•General idea about how Pong.java and PongLoop.java work•Enough familiarity to make minor modifications to BallSprite and PongLoopLast Edited 1/10/04 CPS4: Java for Video Gameshttp://www.cs.duke.edu/education/courses/spring04/cps004/calendar.htmlVideo Game Package Intro 19How Pong was MadeWhat you don’t need to understand yet:•All of the classes in the package•All of the code in the basic classes•How to make your own classes like Pong and PongLoop from scratchLast Edited 1/10/04 CPS4: Java for Video


View Full Document

Duke CPS 004 - Introduction to Jam’s Video Game Package

Documents in this Course
Lecture

Lecture

18 pages

Chapter 7

Chapter 7

18 pages

Chapter 9

Chapter 9

15 pages

Java 1

Java 1

24 pages

Java 3

Java 3

11 pages

Lecture

Lecture

10 pages

Chapter 4

Chapter 4

28 pages

Chap 2

Chap 2

16 pages

Graphics

Graphics

20 pages

Lecture

Lecture

12 pages

HTML

HTML

16 pages

Java 1

Java 1

6 pages

Chapter 4

Chapter 4

16 pages

The Plan

The Plan

25 pages

Lecture

Lecture

16 pages

Chapter 6

Chapter 6

21 pages

Lecture

Lecture

18 pages

Lecture

Lecture

23 pages

Lecture

Lecture

16 pages

Lecture

Lecture

19 pages

Lecture

Lecture

12 pages

Lecture

Lecture

5 pages

Lecture

Lecture

26 pages

Lecture

Lecture

16 pages

Chapter 7

Chapter 7

23 pages

Lecture

Lecture

21 pages

Lecture

Lecture

4 pages

Lecture

Lecture

4 pages

Lecture

Lecture

8 pages

Lecture

Lecture

4 pages

Lecture

Lecture

10 pages

Chapter 4

Chapter 4

32 pages

Java

Java

4 pages

CompSci 4

CompSci 4

18 pages

Lecture

Lecture

26 pages

CompSci 4

CompSci 4

12 pages

HTML

HTML

17 pages

Lecture

Lecture

16 pages

Chapter 5

Chapter 5

22 pages

Lecture

Lecture

4 pages

Chapter 4

Chapter 4

10 pages

Chapter 2

Chapter 2

15 pages

Chapter 8

Chapter 8

14 pages

Lecture

Lecture

15 pages

Load more
Download Introduction to Jam’s Video Game Package
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Introduction to Jam’s Video Game Package and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Introduction to Jam’s Video Game Package 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?