{"id":20207261,"url":"https://github.com/art-emini/duckengine","last_synced_at":"2026-03-01T22:36:00.710Z","repository":{"id":36983270,"uuid":"374862340","full_name":"art-emini/DuckEngine","owner":"art-emini","description":"A 2D Game Engine for the web.","archived":false,"fork":false,"pushed_at":"2023-08-25T02:14:11.000Z","size":7217,"stargazers_count":111,"open_issues_count":13,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-04T23:32:55.631Z","etag":null,"topics":["2d","engine","fast","framework","game","game-development","game-engine","game-framework","javascript-game-engine","js-game-engine","library","npm","simple","typescript"],"latest_commit_sha":null,"homepage":"https://art-emini.github.io/DuckEngine/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/art-emini.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.1.2.0.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-08T02:54:12.000Z","updated_at":"2025-06-19T06:19:15.000Z","dependencies_parsed_at":"2024-11-14T05:38:25.619Z","dependency_job_id":null,"html_url":"https://github.com/art-emini/DuckEngine","commit_stats":null,"previous_names":["ksplatdev/duckengine"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/art-emini/DuckEngine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art-emini%2FDuckEngine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art-emini%2FDuckEngine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art-emini%2FDuckEngine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art-emini%2FDuckEngine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/art-emini","download_url":"https://codeload.github.com/art-emini/DuckEngine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art-emini%2FDuckEngine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29987115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2d","engine","fast","framework","game","game-development","game-engine","game-framework","javascript-game-engine","js-game-engine","library","npm","simple","typescript"],"created_at":"2024-11-14T05:28:16.695Z","updated_at":"2026-03-01T22:36:00.693Z","avatar_url":"https://github.com/art-emini.png","language":"TypeScript","readme":"# ![DuckEngine](global/Logo.png)\n\n**v2.0.0 released! [Changelog](CHANGELOG.md)**\n\n| [Docs](#docs) | [Wiki](#wiki) | [Getting Started](https://github.com/ksplatdev/DuckEngine/wiki/Getting-Started) | [Demos](#demos) | [Download](#download) |\n\n![Build Badge](https://img.shields.io/github/workflow/status/ksplatdev/DuckEngine/CodeQL?style=flat-square)\n![Release Badge](https://img.shields.io/github/v/release/ksplatdev/DuckEngine?style=flat-square)\n![License Badge](https://img.shields.io/github/license/ksplatdev/DuckEngine?label=license\u0026style=flat-square)\n[![wakatime](https://wakatime.com/badge/github/ksplatdev/DuckEngine.svg)](https://wakatime.com/badge/github/ksplatdev/DuckEngine)\n![Lint Badge](https://github.com/ksplatdev/DuckEngine/actions/workflows/lint.yml/badge.svg)\n![Format Badge](https://github.com/ksplatdev/DuckEngine/actions/workflows/format.yml/badge.svg)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nA 2D Game Engine for the web.\n\n## Features\n\n- Customizable Hitbox Based Physics Engine\n- Multiple Scenes\n- Fast \u0026 Performant\n- Sprites \u0026 Spritesheets\n- Many GameObjects\n- Plugins \u0026 PluginManager\n- Multiple Cameras with Effects\n- Animations \u0026 State Machines \u0026 Cutscenes\n- Hitboxes and Colliders\n- Keyboard, and Mouse Inputs\n- DPR / Mobile Scaling\n- Advanced Particle System\n- Cache \u0026 Fast Loading Times\n- Effects and Presets\n- Advanced UI System\n- Groups \u0026 Management\n- Advanced Tilemap System\n- Small Package Size\n- Static Lighting\n- Asset Preloader \u0026 Manager\n- Textures \u0026 Manager\n- Made fully in TypeScript\n- Typedefs\n- [Docs](#docs)\n- A lot more...\n\n## Performance \u0026 Compatibility\n\n### Browser Requirements\n\n1. Browser supports ES6 (EcmaScript2015)\n2. Browser supports Canvas APIs\n\n### Rankings\n\n1. Chromium Based Browsers, includes Chrome, Opera, Edge, Vivaldi, and Brave\n2. Safari\n3. Firefox | [Bugs](#firefox-bugs)\n\n### Recommendation\n\n- Google Chrome or any other Chromium based browser\n\n### Browser Bugs\n\n#### Firefox Bugs\n\n- More stuttering than Chromium Browsers and Safari.\n- Garbage collection occurs more often than Safari and Chromium Browsers. (Causes *very* minor and not noticeable stutters.)\n\n## Download\n\n### Github\n\n1. Download the [latest release](https://github.com/ksplatdev/DuckEngine/releases/latest).\n2. Setup an asset bundler like webpack or parcel.\n3. Import DuckEngine.\n4. Read the [docs](https://ksplatdev.github.io/DuckEngine/).\n\n### NPM\n\n1. Run `npm install duckengine`.\n2. Setup an asset bundler like webpack or parcel.\n3. Import DuckEngine.\n4. Read the [docs](https://ksplatdev.github.io/DuckEngine/).\n\n### CDN\n\n1. Setup an asset bundler like webpack or parcel.\n2. Import DuckEngine from URL\n   - Regular \u003chttps://cdn.jsdelivr.net/npm/duckengine@2.1.0/dist/index.js\u003e\n   - Minified \u003chttps://cdn.jsdelivr.net/npm/duckengine@2.1.0/dist/index.min.js\u003e\n3. Read the [docs](https://ksplatdev.github.io/DuckEngine/).\n\n### Itch.io\n\n1. Download DuckEngine from \u003chttps://ksplatdev.itch.io/duckengine\u003e\n2. Import DuckEngine into your project.\n3. Read the [docs](https://ksplatdev.github.io/DuckEngine/).\n\n## [Docs](https://ksplatdev.github.io/DuckEngine/)\n\nLearn how to use DuckEngine with simple, clean, documentation with typings and more.\n\n## [Discussions](https://github.com/ksplatdev/DuckEngine/discussions)\n\nAsk questions, share ideas, engage with the community, and share your work with DuckEngine Discussions.\n\n## [Wiki](https://github.com/ksplatdev/DuckEngine/wiki)\n\nRead and learn about DuckEngine with the DuckEngine wiki.\n\n## How to use with Typescript\n\nHow to use DuckEngine with Typescript.\n\n1. Setup webpack/parcel and tsconfig.\n2. Import DuckEngine and Duck for types.\n\nNot working ? Add the following to your tsconfig.json\n\n```json\n{\n    \"typeRoots\": [\n        \"./node_modules/@types\",\n        \"path_to_duckengine_index.d.ts\"\n    ],\n    \"types\": [\n        \"DuckEngine\"\n    ]\n}\n```\n\n### Duck Namespace\n\nThe Duck Namespace has types such as gameobject, every class config, all classes, and more.\n\n### [Typescript Example](examples/ts/myScene.ts)\n\n## Developers' Guide\n\n### Requirements\n\n1. Knowledge of TypeScript, Git, and HTML Canvas.\n2. Reading and agreeing to the [Contributing](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md) documents.\n3. Basic knowledge of how DuckEngine works.\n\n### How to contribute\n\n1. Reading and agree to the [Contributing](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md) documents.\n2. Fork the repository and create a new branch following the [branch guidelines](branch_guidelines.md).\n3. Clone the fork to your device.\n4. CD (change directories) into the cloned directory.\n5. Run `yarn upgrade`.\n6. Run `yarn run build` or `ctrl + shift + b` for vscode users.\n7. Make your changes.\n8. Test your changes on codesandbox by forking this [codesandbox](https://codesandbox.io/s/duckengine-test-7gfbt?file=/src/scene.js) and updating the duckengine.js file. (Or any other way you would like to test it.)\n9. Create a pull request.\n10. Wait for it to be reviewed and revised and possibly merged.\n\n### Dev Scripts\n\n1. `yarn run test` - Opens the [codesandbox test](https://codesandbox.io/s/duckengine-test-7gfbt?file=/src/scene.js).\n2. `yarn run build` - Compiles typescript, bundles files, creates minified version, builds docs, and copies package.json to dist.\n3. `yarn run build:docs` - Uses TypeDoc to build docs.\n4. `yarn run webpack` - Bundles files in lib directory.\n5. `yarn run minify` - Uses uglifyjs to minify bundled file.\n6. `yarn run format` - Uses Prettier to format files.\n7. `yarn run format:watch` - Watches for changes and formats once changes are saved.\n8. `yarn run lint` - Uses ESLint to lint all files in the src directory.\n9. `yarn run lint:watch` - Watches for changes and fixes all fixable issues found by ESLint.\n10. `yarn run lint:fix` - Uses ESLint to fix all fixable issues found by ESLint.\n11. `yarn run tree` - Prints out all files and directories used in [readme](#file-structure).\n12. `yarn run serve` - Serves the docs on :8080.\n13. `yarn run checkout` - Runs the checkout shell script with bash. Run before thinking about publishing a release.\n\n### Branches\n\n1. main - main branch\n2. staging - stage changes to this branch\n\n## Versions\n\nDuckEngine follows [SemVer](https://semver.org/).\n\n## Demos\n\n### [Simple Demo Game](https://github.com/ksplatdev/DuckEngine-Demo-Game/tree/main)\n\n### [Test Template](https://codesandbox.io/s/duckengine-test-7gfbt?file=/src/scene.js)\n\n### [Particle Test](https://codesandbox.io/s/duckengine-particle-test-dhcr1?file=/src/scene.js)\n\n### [Tilemap test](https://codesandbox.io/s/duckengine-tilemap-test-ryqqz?file=/src/scene.js)\n\n## Attribution\n\nThe cube in the [DuckEngine Logo](global/Logo.png) is by José Manuel de Laá from the Noun Project.\n\n## License\n\n[MIT](LICENSE)\n\n## Author\n\nBleart Emini\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fart-emini%2Fduckengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fart-emini%2Fduckengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fart-emini%2Fduckengine/lists"}