{"id":20631128,"url":"https://github.com/qingyangmoke/tinyjs-plugin-p2","last_synced_at":"2026-04-21T02:03:45.574Z","repository":{"id":94240609,"uuid":"97472321","full_name":"qingyangmoke/tinyjs-plugin-p2","owner":"qingyangmoke","description":"tinyjs 中 引入 P2 物理引擎","archived":false,"fork":false,"pushed_at":"2022-08-30T06:19:12.000Z","size":727,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T04:33:59.787Z","etag":null,"topics":["ant-tinyjs","p2"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qingyangmoke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-17T12:11:23.000Z","updated_at":"2018-04-19T07:47:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f088a848-8be9-4a0f-9952-deb3f6c56ca5","html_url":"https://github.com/qingyangmoke/tinyjs-plugin-p2","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"62114fdda645fa1be1404dc00dd9b085bd56e2a2"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qingyangmoke%2Ftinyjs-plugin-p2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qingyangmoke%2Ftinyjs-plugin-p2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qingyangmoke%2Ftinyjs-plugin-p2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qingyangmoke%2Ftinyjs-plugin-p2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qingyangmoke","download_url":"https://codeload.github.com/qingyangmoke/tinyjs-plugin-p2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242588427,"owners_count":20154203,"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":["ant-tinyjs","p2"],"created_at":"2024-11-16T14:11:14.567Z","updated_at":"2026-04-21T02:03:45.548Z","avatar_url":"https://github.com/qingyangmoke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinyjs-plugin-p2\n\n\u003e tiny P2物理引擎\n\n## 查看demo\n\nhttp://tinyjs.net/#/plugins/tinyjs-plugin-p2/demo\n\n## P2\n\u003e P2 物理引擎\n\n## 引用方法\n\n- 推荐作为依赖使用\n\n  - `npm install tinyjs-plugin-p2 --save`\n\n- 也可以直接引用线上cdn地址，注意要使用最新的版本号，例如：\n\n  - https://gw.alipayobjects.com/as/g/tiny-plugins/tinyjs-plugin-p2/0.1.4/index.debug.js\n  - https://gw.alipayobjects.com/as/g/tiny-plugins/tinyjs-plugin-p2/0.1.4/index.js\n\n## 起步\n首先当然是要引入，推荐`NPM`方式，当然你也可以使用`CDN`或下载独立版本，先从几个例子入手吧！\n\n##### 1、最简单的例子\n\n引用 Tiny.js 源码\n``` html\n\u003cscript src=\"https://gw.alipayobjects.com/as/g/tiny/tiny/1.1.5/tiny.js\"\u003e\u003c/script\u003e\n```\n``` js\nvar p2 = require('tinyjs-plugin-p2');\n```\n\n## 依赖\n- `Tiny.js`: [Link](http://tinyjs.net/#/docs/api)\n\n## 相关文档\n- [Tiny.js](http://tinyjs.net/#/docs/api)\n- [phaser](https://github.com/photonstorm/phaser)\n- [p2](https://github.com/schteppe/p2.js)\n\n## API文档\nhttp://tinyjs.net/#/plugins/tinyjs-plugin-p2/docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqingyangmoke%2Ftinyjs-plugin-p2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqingyangmoke%2Ftinyjs-plugin-p2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqingyangmoke%2Ftinyjs-plugin-p2/lists"}