Skip to main content
  1. /classes/
  2. Classes, Spring 2024/
  3. CS 2370 Spring 2024: Course Site/

cs2370 Notes: 08 Exploding Bugs

·63 words·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:

Nat Tuck
Author
Nat Tuck