{"id":14235391,"url":"https://github.com/los-cocos/cocos","last_synced_at":"2025-12-16T16:46:39.195Z","repository":{"id":16737917,"uuid":"19495302","full_name":"los-cocos/cocos","owner":"los-cocos","description":"graphic library for games and multimedia, for python language on PC-like hardware","archived":false,"fork":false,"pushed_at":"2023-10-08T02:08:15.000Z","size":12120,"stargazers_count":638,"open_issues_count":52,"forks_count":148,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-08-10T23:39:43.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://los-cocos.github.io/cocos-site/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/los-cocos.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-05-06T13:31:43.000Z","updated_at":"2025-08-07T12:33:46.000Z","dependencies_parsed_at":"2023-01-11T19:31:30.170Z","dependency_job_id":null,"html_url":"https://github.com/los-cocos/cocos","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/los-cocos/cocos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/los-cocos%2Fcocos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/los-cocos%2Fcocos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/los-cocos%2Fcocos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/los-cocos%2Fcocos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/los-cocos","download_url":"https://codeload.github.com/los-cocos/cocos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/los-cocos%2Fcocos/sbom","scorecard":{"id":599321,"data":{"date":"2025-08-11","repo":{"name":"github.com/los-cocos/cocos","commit":"24ec855c2817a1ecf1f2151130ea920108319f4d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 3/28 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/los-cocos/cocos/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/los-cocos/cocos/main.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:36","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:37","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:38","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T23:58:40.028Z","repository_id":16737917,"created_at":"2025-08-20T23:58:40.028Z","updated_at":"2025-08-20T23:58:40.028Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27768415,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-20T21:01:51.330Z","updated_at":"2025-12-16T16:46:39.161Z","avatar_url":"https://github.com/los-cocos.png","language":"Python","funding_links":[],"categories":["Code","Game Development","Table of Contents","GameEngine Design","Python","📚 فهرست"],"sub_categories":["Engines and Frameworks","بازیسازی"],"readme":"=======\ncocos2d\n=======\n\n.. image:: https://github.com/los-cocos/cocos/actions/workflows/main.yml/badge.svg\n   :target: https://github.com/los-cocos/cocos/actions\n\n| A framework for building 2D games, demos, and other graphical/interactive applications.\n| Draws using OpenGL, which is hardware accelerated.\n| Targets the Operating Systems linux, mac or windows on Pc-like hardware.\n\n| Provides some conventions and classes to help you structure a \"scene based application\".\n| A cocos2d application consists of several scenes, and a workflow connecting the different scenes.\n| It provides you with a \"director\" (a singleton) which handles that workflow between scenes.\n| Each scene is composed of an arbitrary number of layers;\n| layers take care of drawing to the screen (using the pyglet and OpenGL APIs), handling events and in general contain all of the game/application logic.\n\ncocos2d simplifies the game development in these areas:\n\n* Flow control: Manage the flow control between different scenes in an easy way\n* Sprites: Fast and easy sprites\n* Actions: Just tell sprites what you want them to do. Composable actions like move, rotate, scale and much more\n* Effects: Effects like waves, twirl, lens and much more\n* Tiled Maps: Support for rectangular and hexagonal tiled maps\n* Collision: Basic pure python support for collisions\n* Transitions: Move from scene to scene with style\n* Menus: Built in classes to create menus\n* Text Rendering: Label and HTMLLabel with action support\n* Built-in Python Interpreter: For debugging purposes\n* Access to OpenGL functionality\n* and much more! http://los-cocos.github.io/cocos-site/\n\nRequirements\n------------\n\nSoftware:\n\n* python 3.6+\n* pyglet 1.4.10+, \u003c 2.0 ( http://pyglet.org )\n* Linux, Windows or Mac OS/X\n\nHardware:\n\n* To execute some effects you will need a video card with the:\n    GL_EXT_framebuffer_object extension.\n\n\nInstalling\n----------\n\nBeing a pure python package the usual options are available; you\ncan look at the INSTALL file for some details\n\n\nLearning cocos2d\n----------------\n\n* Go to the online tutorials / documentation page:\n  http://los-cocos.github.io/cocos-site/doc.html\n\n  You will find:\n   * the Programming Guide\n   * the API Reference\n   * some tutorial videos\n\n  The tutorials are included in the source package.\n\n* Lot of miniprograms that demonstrates the available objects and possible actions.\n  There are a great starting point while learning and experimenting with cocos:\n  you find a sample with the object that interest you exercising the features\n  that you need, read the code, run, modify and re-run to experiment.\n  \n  Also, handy to know what is available in cocos: run all the tests and by\n  looking at the code you know what to look at in the docs.\n\n  You can find them at the test directory in the source distribution.\n  After unpacking, to run the tests you can do::\n\n      $ cd test\n      $ python test_*.py\n\n* More complex sample programs\n\n  You can find it in the samples directory in the source distribution, and the\n  most complex in subdirectories there, including a presentation done with\n  Cocos himself.\n  \n  After unpacking, to run the samples you can do::\n   \n      $ cd samples\n      $ python sample_name.py\n\n\nDo you have any doubt?\n    + http://groups.google.com/group/cocos-discuss\n\n\nDid you find any bug?\n    + http://groups.google.com/group/cocos-discuss\n    + https://github.com/los-cocos/cocos\n\n\nCurrent repository is at\n    + https://github.com/los-cocos/cocos\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flos-cocos%2Fcocos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flos-cocos%2Fcocos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flos-cocos%2Fcocos/lists"}