From last time…
•

Using the PGraphics object as image layers or
off-screen image buffers!

•

Collision detection based on distance vs.
color–using an off-screen image buffer!

•

Iteration 1 graded and returned via email
Algorithms I

CAP
Pseudo-coding
1. Tackle one object at a time!
2. Decide what it needs to know (its data), what it
needs to do (its methods), and how it needs to
be built initially (its constructor)!
3. Write pseudo-code first, then translate it into
real code in small chunks
Demo!
Refactoring Pong
Demo!
Add Game Methods
1. Reset!
2. Pause!
3. Count Down
For next time…
•

Read Shiffman, p. 178–198
(Algorithms II, Debugging, & Libraries)!

•

Decide what to do about Friday…

18. Algorithms

  • 1.
    From last time… • Usingthe PGraphics object as image layers or off-screen image buffers! • Collision detection based on distance vs. color–using an off-screen image buffer! • Iteration 1 graded and returned via email
  • 2.
  • 3.
    Pseudo-coding 1. Tackle oneobject at a time! 2. Decide what it needs to know (its data), what it needs to do (its methods), and how it needs to be built initially (its constructor)! 3. Write pseudo-code first, then translate it into real code in small chunks
  • 4.
  • 5.
    Demo! Add Game Methods 1.Reset! 2. Pause! 3. Count Down
  • 6.
    For next time… • ReadShiffman, p. 178–198 (Algorithms II, Debugging, & Libraries)! • Decide what to do about Friday…