{"id":13307274,"url":"https://github.com/de-nuc/Nuc","last_synced_at":"2025-03-10T14:32:58.326Z","repository":{"id":84850486,"uuid":"333242341","full_name":"de-nuc/Nuc","owner":"de-nuc","description":"Lightweight Cross-platform 2D game framework","archived":false,"fork":false,"pushed_at":"2023-05-02T13:44:00.000Z","size":2224,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-02T08:49:21.806Z","etag":null,"topics":["2d","cross-platform","engine","framework","game","haxe","kha","lightweight"],"latest_commit_sha":null,"homepage":"","language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/de-nuc.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-26T23:10:34.000Z","updated_at":"2025-02-17T18:36:44.000Z","dependencies_parsed_at":"2024-11-03T08:42:34.448Z","dependency_job_id":"69d897bb-2fe7-420c-bf5a-9bb511b79899","html_url":"https://github.com/de-nuc/Nuc","commit_stats":null,"previous_names":["andreirudenko/nuc","de-nuc/nuc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/de-nuc%2FNuc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/de-nuc%2FNuc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/de-nuc%2FNuc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/de-nuc%2FNuc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/de-nuc","download_url":"https://codeload.github.com/de-nuc/Nuc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242868675,"owners_count":20198530,"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":["2d","cross-platform","engine","framework","game","haxe","kha","lightweight"],"created_at":"2024-07-29T18:00:15.823Z","updated_at":"2025-03-10T14:32:58.301Z","avatar_url":"https://github.com/de-nuc.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nuc is a lightweight cross-platform, 2d game framework.  \nBuild on top of [Kha](https://github.com/Kode/Kha) framework using [Haxe](https://haxe.org/) language. \n \n## Installation\n- Install [Kha](https://github.com/Kode/Kha/wiki/Getting-Started)\n- Init Kha Project\n- Clone Nuc to your project folder:\n\t```bash\n\tgit clone https://github.com/nuclibs/Nuc.git\n\t```\n- Open [khafile.js](https://github.com/Kode/Kha/wiki/khafile.js) from your project folder and add this lines:\n\n\t```js\n\tlet p = new Project(\"New Project\");\n\n\tawait p.addProject(\"Nuc\");\n\n\tp.addSources(\"Sources\");\n\tp.addShaders(\"Shaders\");\n\tp.addAssets(\n\t\t\"Assets/**\",\n\t\t{\n\t\t\tnameBaseDir: \"Assets\", \n\t\t\tdestination: \"Assets/{dir}/{name}\", \n\t\t\tname: \"{dir}/{name}\", \n\t\t\tnoprocessing: true, \n\t\t\tnotinlist: true\n\t\t}\n\t);\n\n\tresolve(p);\n\t```\n\t\n## Minimal example\n```haxe\n\nimport nuc.Resources;\nimport nuc.Window;\nimport nuc.events.AppEvent;\nimport nuc.events.RenderEvent;\nimport nuc.graphics.SpriteBatch;\nimport nuc.graphics.Camera;\nimport nuc.graphics.Texture;\n\nclass Game {\n\n\tvar camera:Camera;\n\tvar sb:SpriteBatch;\n\tvar parrotImage:Texture;\n\n\tpublic function new() {\n\t\tResources.loadAll(\n\t\t\t[\n\t\t\t\t'parrot.png'\n\t\t\t], \n\t\t\tready\n\t\t);\n\t}\n\n\tfunction ready() {\n\t\tApp.on(AppEvent.UPDATE, update);\n\t\tApp.on(RenderEvent.RENDER, render);\n\n\t\tcamera = new Camera(Window.width, Window.height);\n\t\tcamera.clearColor = new Color(0.2, 0.2, 0.2, 1.0);\n\n\t\tsb = new SpriteBatch();\n\n\t\tparrotImage = Resources.getTexture('parrot.png');\n\t}\n\n\tfunction update(elapsed:Float) {\n\n\t}\n\t\t\n\tfunction render(e:RenderEvent) {\n\t\tcamera.begin();\n\n\t\tsb.drawImage(parrotImage);\n\n\t\tcamera.end();\n\t}\n\t\n}\n\n```\n\n---\nThis framework is in development and is not ready for production.  \nI'm using it for my own projects and if you like this project and you want to contribute, feel free to do so.  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fde-nuc%2FNuc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fde-nuc%2FNuc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fde-nuc%2FNuc/lists"}