{"id":24113827,"url":"https://github.com/michaeljohnn/pull-the-radish","last_synced_at":"2025-02-28T10:27:10.801Z","repository":{"id":22296617,"uuid":"25631401","full_name":"michaeljohnn/pull-the-radish","owner":"michaeljohnn","description":"拔萝卜游戏","archived":false,"fork":false,"pushed_at":"2014-11-20T17:24:48.000Z","size":914,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T04:52:11.857Z","etag":null,"topics":[],"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/michaeljohnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-23T10:23:08.000Z","updated_at":"2014-11-20T17:24:48.000Z","dependencies_parsed_at":"2022-08-21T01:00:33.512Z","dependency_job_id":null,"html_url":"https://github.com/michaeljohnn/pull-the-radish","commit_stats":null,"previous_names":["michaeljohnn/pull-the-radish"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeljohnn%2Fpull-the-radish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeljohnn%2Fpull-the-radish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeljohnn%2Fpull-the-radish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeljohnn%2Fpull-the-radish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaeljohnn","download_url":"https://codeload.github.com/michaeljohnn/pull-the-radish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241137862,"owners_count":19916215,"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":[],"created_at":"2025-01-11T04:50:26.707Z","updated_at":"2025-02-28T10:27:10.783Z","avatar_url":"https://github.com/michaeljohnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n# Cocos2d-JS Single File Engine User Guide\n\nThis guide is for the usage of single file engine of Cocos2d-JS which can be retrieved from [the online downloader](http://cocos2d-x.org/filecenter/jsbuilder/).\n\nYou may have downloaded one of these three versions:\n\n- **Full Version**: Full Version engine contains all features and all extensions for Cocos2d-JS, it can help you explore its great possibility. You can refer to the feature list in [Cocos2d-JS documentation page](http://www.cocos2d-x.org/docs/manual/framework/html5/en)\n\n- **Cocos2d-JS Lite Version**: Lite Version contains some core features of Cocos2d-JS, it's extremely easy to use and light as a feather. Its features are listing below:\n    + Canvas renderer (No WebGL support)\n    + Scene and Layers\n    + Event Manager\n    + Scheduler\n    + Sprite and Texture2D\n    + LabelTTF\n    + Audio\n    + Actions\n    + Menu and MenuItems\n\n- **Customized Version**: Customize your own version of Cocos2d-JS with the features you need, you should know the meaning of these features to construct a suitable version. All the features you chose will be included in the downloaded engine js file.\n\n## Usage\n\nThe usage have been demonstrated in the downloaded package, you can see the cocos2d-js-v3.0[-lite].js is embeded in the HelloWorld.html, after the window loading you will be able to use Cocos2d-JS API in your custom js code.\n\nYou need to host these files on a web server or local web server to see the result.\n\n## Useful links\n\n- [Online API reference](http://www.cocos2d-x.org/reference/html5-js/V3.0/index.html)\n- [Downloadable API Reference](http://www.cocos2d-x.org/filedown/Cocos2d-JS-v3.0-API.zip)\n- [Document root](http://cocos2d-x.org/docs/manual/framework/html5/en)\n- [Github repository](https://github.com/cocos2d/cocos2d-js)\n- [Online forum](http://discuss.cocos2d-x.org/category/javascript)\n- [Online test cases](http://cocos2d-x.org/js-tests/)\n\n## About Closure Compiler\n\nYou can use [Google Closure Compiler](https://developers.google.com/closure/compiler/) to compress all js files to a smaller size even if you downloaded the compressed version. Steps are showing below:\n\n1. Download Closure Compiler's jar app\n2. Configure the build.xml with your own configurations\n3. Run `ant` in the terminal\n4. Replace the embeded js files in HelloWorld.html with the single output file `game.min.js`\n\nPlease be noticed that you can not write any js code in your html file, all js codes should be compressed at the same time, otherwise errors will be triggered.\n\n## Notice\n\nWhile openning the HelloWorld.html, you will receive an error:\n\"Failed to load resource: the server responded with a status of 404 (Not Found)\" for the file `project.json`\n\nIt's not a problem, you can simply igore it, or you can get rid of this error by creating an empty `project.json` file.\n\n=========================\n\n# Cocos2d-JS单文件引擎使用指引\n\n这篇指引主要介绍如何使用从[在线下载工具](http://cocos2d-x.org/filecenter/jsbuilder/)下载下来的Cocos2d-JS的单文件引擎。\n\n你有可能下载了下面三个版本中的一个：\n\n- **Full Version**: 完整版引擎包含Cocos2d-JS引擎的所有功能特性以及所有扩展，使用这个版本可以帮助你发掘Cocos2d-JS令人惊艳的创造力和可能性。你可以从[官方文档首页](http://www.cocos2d-x.org/docs/manual/framework/html5/en)中查看Cocos2d-JS所支持的特性列表。\n\n- **Cocos2d-JS Lite Version**: 精简版本只包含Cocos2d-JS的核心特性，它的优势是稳定，轻量，简单易用。它所包含的特性列表如下：\n    + Canvas渲染器 (不支持WebGL)\n    + 场景和图层\n    + 事件管理器\n    + 计时器\n    + 精灵和贴图\n    + TTF文本\n    + 声音\n    + 动作\n    + 菜单和菜单项\n\n- **Customized Version**: 如果你选择了定制版本的引擎，引擎脚本文件将包含你所选择的所有特性。\n\n## 使用方式\n\n单文件引擎的使用方式和其他Web库完全一样，你只需要将脚本嵌入到你的页面中即可，可以参考下载目录中的HelloWorld.html。在window的加载过程结束之后，你将可以在你的用户脚本中使用Cocos2d-JS的API。\n\n你需要将这些文件放到一个本地服务器或在线服务器并通过服务器访问才可以看到正确的结果。\n\n## 帮助链接\n\n- [在线API reference](http://www.cocos2d-x.org/reference/html5-js/V3.0/index.html)\n- [下载API Reference](http://www.cocos2d-x.org/filedown/Cocos2d-JS-v3.0-API.zip)\n- [文档目录](http://cocos2d-x.org/docs/manual/framework/html5/en)\n- [Github仓库](https://github.com/cocos2d/cocos2d-js)\n- [在线论坛](http://www.cocoachina.com/bbs/thread.php?fid=59)\n- [在线测试例](http://cocos2d-x.org/js-tests/)\n\n## 关于脚本压缩\n\n你可以使用[Google Closure Compiler](https://developers.google.com/closure/compiler/)来将所有js文件压缩成一个文件，Closure Compiler的高级压缩压缩比非常高，即便你下载的是压缩版引擎，也可以获得可观的压缩比。具体压缩步骤如下：\n\n1. 下载Closure Compiler的jar程序文件\n2. 按照自己的环境配置build.xml\n3. 在控制台运行ant命令\n4. 将页面中的所有js引用删除，引入打包出的`game.min.js`\n\n请注意，你不可以在html页面中写任何js脚本，所有js脚本都必须一起打包起来，否则会引起错误。\n\n## 注意\n\n当你通过服务器访问游戏页面的时候，你将在控制台中发现一个错误提示：\n\"Failed to load resource: the server responded with a status of 404 (Not Found)\"，提示`project.json`文件找不到\n\n这是正常现象，并不是问题，你可以忽略它。或者可以添加一个空的`project.json`文件来避免这个错误报告。\n=======\n=======\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e bfc9a36c3c5f3715910d378c717d177ce8281b78\npull-the-radish\n===============\n\n拔萝卜游戏\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e bfc9a36c3c5f3715910d378c717d177ce8281b78\n=======\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e bfc9a36c3c5f3715910d378c717d177ce8281b78\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeljohnn%2Fpull-the-radish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaeljohnn%2Fpull-the-radish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeljohnn%2Fpull-the-radish/lists"}