18. Algorithms

139 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
139
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

18. Algorithms

  1. 1. 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
  2. 2. Algorithms I CAP
  3. 3. 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
  4. 4. Demo! Refactoring Pong
  5. 5. Demo! Add Game Methods 1. Reset! 2. Pause! 3. Count Down
  6. 6. For next time… • Read Shiffman, p. 178–198 (Algorithms II, Debugging, & Libraries)! • Decide what to do about Friday…

×