Skip to main content

cs2370 Notes: 08 Exploding Bugs

··1 min

Designing a function: #

  • Purpose statement
  • Signature (e.g. int -> int)
  • Examples
  • Stub
  • Standard pattern
  • Write the body
  • Asserts

Pyglet and the Exploding Bugs #

From the hw03 starter code:

  • Walk through the hw03 starter code.
  • Remove the bat.
  • Make the bugs move in a sin wave, at varying speeds.
  • Make the bugs explode when they hit each other.

Here’s an explosion: