An open API service indexing awesome lists of open source software.

https://github.com/depuits/duckhunt


https://github.com/depuits/duckhunt

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# Duckhunt

Simple script enabling you to add ducks on any page.

## Usage

Include `js` and `css` in html:

```html

```

Create element to place the container in:

```html


```

Create an instance of the duckhunt passing the id of parent element:

```js
var hunter = Duckhunt.create('flySpace');

// optionally edit some values
hunter.maxDucks = 10;
hunter.duckSpawnDelay = [ 200 /*min*/, 1500 /*max*/]; // in ms
```

## Example

Example can be found [here](https://depuits.github.io/duckhunt/index.html).