Avoid the red arrows by navigating the bee using the arrow keys. Collect flowers to shoot at the arrows and collect points by getting flowers, hitting arrows and reaching vegetables. When you reach 1000 points, a honey pot appears. To win the game reach the honey pot.
In the text area to the left create a function and associated setInterval to move the arrows using the Arrow class provided and following resources: arrow images: imageArrowRight,imageArrowLeft,imageArrowUp, imageArrowDown
Context for drawing the arrows: context2
Use function: checkMaze(integerValue) returns true/false .
integerValue is the dot number checked: true means that the dot is part of black area (not navigable). So, true means the arrow may not enter this area. The maze is defined over rectangular configuration of dots, numbered from 0 through dotList.length. Zero starts in the upper lefthand corner of the game area.