If monster gets too near the house, it is repelled away.
(Also flash the screen, when this happens.)
If the mouse is clicked above the horizon (where sky meets ground),
do NOT move the gold;
instead, start a new bird from the left.
Project 2 -- moving creatures, gold, etc. (and monster?)
Create a dynamic sketch using draw() method,
with the following objects displayed on the screen:
- A sparkling lump of gold, which moves to a new location, when the mouse is clicked.
- The "hero" (you make up the name!), chases the gold.
- A dog, who follows the hero. (Puppy follows dog?)
- A bird (e.g. blue triangle, flying across the sky)
- Add a monster, to chase the hero.
Each of these objects has coordinates (x,y) variables,
and may also have velocity (dx,dy) variables.
The scene is a grassy field (occupying most of the sketch),
with a light blue sky above
(and maybe some buildings or hills on the horizon.)
Display title at top
(plus some instructions),
and be sure to display your name (lower-left corner).