Simple script enabling you to add ducks on any page.
Include js
and css
in html:
<link type="text/css" rel="stylesheet" href="duckhunt.css" />
<script type="text/javascript" src="duckhunt.js"></script>
Create element to place the container in:
<div id="flySpace"></div>
Create an instance of the duckhunt passing the id of parent element:
var hunter = Duckhunt.create('flySpace');
// optionally edit some values
hunter.maxDucks = 10;
hunter.duckSpawnDelay = [ 200 /*min*/, 1500 /*max*/]; // in ms
Example can be found here.