Week 5 – Arrays && Collisions && GUI

In-class outline

  •  Arrays
    • What are they?
      • how are they represented in a machine
    • How to declare them
    • Initialize them (a couple ways)
    • Operating on an array
      • the slow way
      • the fast way with loops
      • example of mouse trails
    • Arrays of objects
      • many squares example
  • Interactive objects
    • overlap/hit detection – sliders
    • collision with circles