{"id":13991986,"url":"https://github.com/finscn/The-Best-JS-Game-Framework","last_synced_at":"2025-07-22T15:30:49.166Z","repository":{"id":17147930,"uuid":"19914625","full_name":"finscn/The-Best-JS-Game-Framework","owner":"finscn","description":"This is the best javascript game framework on the earth.","archived":false,"fork":false,"pushed_at":"2017-08-28T04:21:32.000Z","size":677,"stargazers_count":468,"open_issues_count":4,"forks_count":53,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-05-26T04:13:18.389Z","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/finscn.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-05-18T16:05:29.000Z","updated_at":"2025-05-11T08:30:38.000Z","dependencies_parsed_at":"2022-07-26T14:02:05.238Z","dependency_job_id":null,"html_url":"https://github.com/finscn/The-Best-JS-Game-Framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/finscn/The-Best-JS-Game-Framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finscn%2FThe-Best-JS-Game-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finscn%2FThe-Best-JS-Game-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finscn%2FThe-Best-JS-Game-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finscn%2FThe-Best-JS-Game-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/finscn","download_url":"https://codeload.github.com/finscn/The-Best-JS-Game-Framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finscn%2FThe-Best-JS-Game-Framework/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266520574,"owners_count":23942288,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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-09T14:01:43.419Z","updated_at":"2025-07-22T15:30:48.827Z","avatar_url":"https://github.com/finscn.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","3. 前端游戏框架"],"sub_categories":[],"readme":"The-Best-JS-Game-Framework\n==========================\n\nThis is the best javascript game framework on the earth.\n\n\n\n--------------------------\n## Why is it the best?\n...\n\n呃... 我的英文也只能装逼到这里了, 下面还是用中文吧\n\n* 足够简单，特别适合开发微信上到处疯传的那种轻量级小游戏\n* 极易扩展和重写\n* Duck-Type First\n* 尊重每一位开发者自己的习惯, 只提供真正的\"框架\", 而不是试图\"绑架\"开发者\n* 不做没有必要的封装\n    * 例如2D渲染部分.我一直不理解那些试图封装 canvas 2D API的做法.它已经足够简单实用了，封装的意义除了向开发者输出引擎/框架作者自己的价值观之外，意义何在呢? 把context交给开发者自己不好吗?\n\n\n## 这个项目只是一个恶搞吧?\n...\n\n熟悉前端开发的朋友应该听说过 [vanilla-js](http://vanilla-js.com/) 这个东西.\n它本身最大的意义就在于宣扬了一种前端开发的哲学和理念(暂且不管这个哲学和理念是不是好).\n\n很多朋友看到我这个东西也会有类似的疑问:\n\n\u003e尼玛, 你这个分明就什么都没做啊? 我能写个更简单灵活的:`setInterval(function(){  /* TODO sth.*/  },1000/FPS);` ... 你是在搞笑吧?\n\n其实如果你这么觉得也没有错.我也是在通过这个项目来表达一种我自己这几年来体会到的 HTML5 2D 游戏开发的哲学和理念(暂且不管这个哲学和理念是不是好).\n\n我也在用这个理念做出了一点点东西.\n部分视频:\n\n* Deviant Steel\n\nhttp://v.youku.com/v_show/id_XNzUwNjc2Nzgw.html\n\n\n* Beside You\n\nhttp://v.youku.com/v_show/id_XNjg2OTIzNTc2.html\n\n\n* COC-like\n\nhttp://v.youku.com/v_show/id_XNzU0MjQ0OTky.html\n\n\n* Tiny Wings\n\nhttp://v.youku.com/v_show/id_XNDMyMTYyOTQ0.html\n\n\n* Stealth Game\n\nhttp://v.youku.com/v_show/id_XNDEyMzg5NTUy.html\n\n\n\n* Platform Game (游戏片段穿插在视频中)\n\nhttp://v.youku.com/v_show/id_XNjUxOTAwNDY0.html\n\n\n...\n\n(还有很多游戏, 就不一一列列出了)\n\n--------------------\n\n\n当然，这些游戏没有任何一个在商业上取得了成功，甚至商业上的失败也没有取得过，因为根本没有商业化。\n那是不是意味着我的这套HTML5游戏开发的哲学和理念没有价值呢？\n这个不是我说的算的事情。\n\n总之，HTML5这么简单的东西，我觉得需要的是真正的框架，以及各种开发者自己用着顺手的工具。\n而不是一个大包大揽的，绑架开发者的所谓的『引擎』。\n\n上面视频中列举的游戏，确实不是一个这个简单的 Game.js 能搞定的, 它们还用到了这些东西:\n\n```\nAnimation.js\nAStarSearch.js\nCamera.js\nCollisionUtils.js\nDataStore.js\nDijkstraSearch.js\nEntityTemplate.js\nEvent.js\nEventDispatcher.js\nFrame.js\nGT-Toucher.js\nLinkedList.js\nProcessQ.js\nResourcePool.js\nSound.js\nSprite.js\nTileMap.js\nTimeQueue.js\nTween.js\n... ...\n```\n\n但是，这些东西都是彼此独立的，都是和框架无关的。而且开发者可以随意替换成自己用着顺手的类似工具。\n而不是『你要是想用我的钳子，必须也买我的锤子』这种霸道的做法。\n\n\n好了， 先说这些，去吃晚饭了。\n\n（待续...）\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinscn%2FThe-Best-JS-Game-Framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinscn%2FThe-Best-JS-Game-Framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinscn%2FThe-Best-JS-Game-Framework/lists"}