Assignment-02

 

 

 

Foreword

Resources

Code Listings

Foil Sets

Assignments

Solutions

External Resources

SiteMap

Search

Home

Up ] Assignment-01a ] Assignment-01b ] Assignment-01c ] Assignment-01d ] [ Assignment-02 ] Assignment-02a ] Assignment-03 ] Assignment-03a ] Assignment-03b ] Assignment-03c ] Assignment-03d ] Assignment-04 ] Assignment-04a ] Assignment-04b ] Assignment-05 ] Assignment-06 ] Assignment-07 ]

Writing a Java applet with moving objects

  1. You may choose to design your own animation/moving object applet.
  2. or explore the moving object examples shown in class.
    1. Copy the movable rectangles and other movable objects examples from the web page.
    2. Write an applet similar to mRectApplet.java or mObjApplet.java that has one or more moving rectangles, circles, and triangles.
    3. Make another child class for a different shape (hexagons?, mushrooms?, trees?, text?, images?) and extend your test program to have one or more of these.
    4. Add the boundary checks, if you haven't already, and try unusual bounce patterns (different directions?, different slope?)