The following is identical to the instructions for Project 2.
For example, instead of drawing Zoog with statements like this:
fill( 255,200,200 );
ellipse( zoogX, zoogY, 30,30 ); // Head
// +++ add eyes, here.
fill( 255,255,200 );
rect( zoogX-20, zoogY+15, 40, 80 ); // Body
fill( 0 );
text( "Zoog", zoogX-15, zoogY+35 ); // Name
Call a function with arguments, such as this:
showZoog( zoogX, zoogY );
Try to eliminate most of the global declarations,
and try to use constructors with multiple arguments
(to avoid initializing properties after instantiation).
ALSO:
Add eyes to a character's face,
and try to add some
animation
(changing shape from frame to frame).
The following is identical to the instructions for Project 1.
Make at least three things move. For example:
REMEMBER:
Code
readability
is very important.
|
PROJECT 0a scene and some creatures. SCENE: At least five items, such as:
|