{"id":18273204,"url":"https://github.com/goodcoder666/py-icehappy","last_synced_at":"2025-04-12T02:52:47.612Z","repository":{"id":181806281,"uuid":"474567510","full_name":"GoodCoder666/py-icehappy","owner":"GoodCoder666","description":"Accright/python3-pygame-icehappy的改进版，基于python3+pygame的开心消消乐小游戏。","archived":false,"fork":false,"pushed_at":"2025-01-01T04:54:58.000Z","size":4643,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T22:36:31.483Z","etag":null,"topics":["pygame","pygame-games","python","python-3","python-game","python-games","python3","python3-games"],"latest_commit_sha":null,"homepage":"","language":"Python","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/GoodCoder666.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2022-03-27T07:35:48.000Z","updated_at":"2025-03-14T03:55:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"e22d83fe-cb0d-437c-839a-cd9e12212f5c","html_url":"https://github.com/GoodCoder666/py-icehappy","commit_stats":null,"previous_names":["goodcoder666/py-icehappy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodCoder666%2Fpy-icehappy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodCoder666%2Fpy-icehappy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodCoder666%2Fpy-icehappy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodCoder666%2Fpy-icehappy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoodCoder666","download_url":"https://codeload.github.com/GoodCoder666/py-icehappy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248509805,"owners_count":21116124,"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":["pygame","pygame-games","python","python-3","python-game","python-games","python3","python3-games"],"created_at":"2024-11-05T12:05:35.421Z","updated_at":"2025-04-12T02:52:47.584Z","avatar_url":"https://github.com/GoodCoder666.png","language":"Python","readme":"[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://goodcoder666.github.io/post/license/) ![Python Version](https://img.shields.io/github/pipenv/locked/python-version/metabolize/rq-dashboard-on-heroku)\n\n# py-icehappy：基于Python3+Pygame制作的开心消消乐小游戏\n\n## 项目介绍\n\n首先在此感谢原版项目：[Accright/python3-pygame-icehappy](https://github.com/Accright/python3-pygame-icehappy)\n\n**本项目是原版的改进版**，建议先阅读[原版的README](https://github.com/Accright/python3-pygame-icehappy/blob/master/README.md)再查看或运行源代码，具体改进如下：\n\n1. 整理项目文件，如下：\n   - `Tree`、`Element`、`Board`三个类移动到 `sprites.py`\n   - `Sounds`类移动到 `sounds.py`\n   - **图片、音频分类整理**\n   - **清理无用图片**\n2. 优化代码，提升性能，**删除无用代码，减少重复调用**\n3. 代码整理：**修改变量名、注释改为英文**\n4. 修复部分bug\n\n*游戏内容基本没有修改，后续会增加关卡等。*\n\n### 运行方法\n\n注意本程序要求**Python 3.5及以上**，若版本过低请安装新版Python。\n\n打开终端，执行：\n\n```shell\n$ pip3 install -r requirements.txt\n$ python main.py\n```\n\n或者\n\n```shell\n$ pip3 install pygame\u003e=2\n$ python -m main\n```\n\n已测试的操作系统：\n\n- Windows 10/11\n- Ubuntu 16.04/20.04\n- WSL2 (`Windows Subsystem Linux 2`) Ubuntu 20.04\n\n如您运行时出现任何问题，**欢迎提出Issue！**\n\n### 文件分布\n\n|    文件    |         主要函数名/类名         |                   简介                   |\n| :--------: | :------------------------------: | :--------------------------------------: |\n|  main.py  |                -                |        主程序入口，控制游戏主循环        |\n| manager.py |   `TreeManager`，`Manager`   | 游戏底层逻辑，管理游戏界面显示及音频播放 |\n| sprites.py | `Board`，`Element`，`Tree` |   `pygame.sprite.Sprite`精灵的继承类   |\n| sounds.py |    `Sounds`，`playSound`    |      存储音频文件路径，控制音频播放      |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodcoder666%2Fpy-icehappy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoodcoder666%2Fpy-icehappy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodcoder666%2Fpy-icehappy/lists"}