Skip to content
matthewgoral edited this page Mar 30, 2016 · 27 revisions

Preview

  • Videos + Book Chapters, Examples for Week 5
    • For each of the examples, what can the autonomous agent perceive?
    • For each of the examples, how does the agent react to its environment? What are its priorities?

Systems! Add it to a previous assignment or make a new one. Some suggestions:

  • Use a particle system in the design of a "Mover" object. In other words take, say, one of our earlier examples and instead of rendering a Mover object as a simple circle, emit particles from the mover's location.
  • Create a particle system where the particles respond to each other via forces. For example, what if you connect the particles with spring forces? Or an attraction / repulsion force? (Sample Answer 1, Sample Answer 2)
  • Model a specific visual effect using a particle system -- fire, smoke, explosion, waterfall, etc.
  • Create a simulation of an object shattering into many pieces. How can you turn one large shape into many small particles? What if there are several large shapes on the screen and they shatter when you click on them? (Sample Answer)
  • Create a particle system with different “kinds” of particles in the same system. Try varying more than just the look of the particles. How do you deal with different behaviors using inheritance?
  • Use an array of images and assign each Particle object a different image. Even though single images are drawn by multiple particles, make sure you don’t call loadImage() any more than you need to, i.e. once for each image file. (Sample Answer)

Please create a web page to document your homework. Make sure it include some visual documentation of your work as well as the source code. To the extent possible, please post your link before 10am on Wednesday morning, Feb 24.

Post your work