{"id":20438397,"url":"https://github.com/huang2002/hengine","last_synced_at":"2025-06-14T06:04:35.157Z","repository":{"id":57262772,"uuid":"131492860","full_name":"huang2002/hengine","owner":"huang2002","description":"A 2D graphic engine for javascript/typescript.","archived":false,"fork":false,"pushed_at":"2022-03-17T04:02:23.000Z","size":646,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T01:41:00.898Z","etag":null,"topics":["2d-game-engine","3h","canvas","h5","hengine","html5","javascript","play","typescript"],"latest_commit_sha":null,"homepage":"","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/huang2002.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-29T12:31:09.000Z","updated_at":"2024-12-10T16:33:54.000Z","dependencies_parsed_at":"2022-09-01T04:27:10.206Z","dependency_job_id":null,"html_url":"https://github.com/huang2002/hengine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huang2002/hengine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang2002%2Fhengine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang2002%2Fhengine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang2002%2Fhengine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang2002%2Fhengine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huang2002","download_url":"https://codeload.github.com/huang2002/hengine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang2002%2Fhengine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259768509,"owners_count":22908228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-game-engine","3h","canvas","h5","hengine","html5","javascript","play","typescript"],"created_at":"2024-11-15T09:10:51.402Z","updated_at":"2025-06-14T06:04:35.136Z","avatar_url":"https://github.com/huang2002.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hengine\n\n\u003e A simple graphic engine for `canvasom`.\n\n## Links\n\n- [Documentation](https://github.com/huang2002/hengine/wiki)\n- [Changelog](./CHANGELOG.md)\n- [License (MIT)](./LICENSE)\n\n## Example\n\n```javascript\nconst engine = new HE.CanvasEngine({\n    interactive: true,\n    renderer: new COM.Renderer({\n        canvas: document.getElementById('canvas'),\n        width: 480,\n        height: 320,\n        ratio: 2,\n    }),\n    style: {\n        fillStyle: '#FFF',\n    },\n    resizerOptions: {\n        container: document.body,\n        padding: 10,\n    },\n});\n\nconst startScene = COM.create(HE.SceneNode, {\n    id: 'start-scene',\n}, [\n    COM.create(COM.TextNode, {\n        stretch: 1,\n        content: 'hello world',\n        style: {\n            fillStyle: '#000',\n            textAlign: 'center',\n            textBaseline: 'middle',\n        },\n    }),\n]);\n\nengine.enter(startScene);\n\nengine.resizer.update(() =\u003e {\n    engine.updateAndRender();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuang2002%2Fhengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuang2002%2Fhengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuang2002%2Fhengine/lists"}