https://github.com/depuits/duckhunt
https://github.com/depuits/duckhunt
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/depuits/duckhunt
- Owner: depuits
- Created: 2024-01-30T14:56:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-30T15:21:39.000Z (over 2 years ago)
- Last Synced: 2025-03-02T13:28:27.426Z (over 1 year ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).