{"id":16187007,"url":"https://github.com/robloach/raylib-duktape","last_synced_at":"2025-03-19T03:30:36.064Z","repository":{"id":50810129,"uuid":"200772385","full_name":"RobLoach/raylib-duktape","owner":"RobLoach","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-16T01:04:53.000Z","size":233,"stargazers_count":30,"open_issues_count":4,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-04-09T06:57:33.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/RobLoach.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}},"created_at":"2019-08-06T03:50:43.000Z","updated_at":"2023-02-17T08:36:18.000Z","dependencies_parsed_at":"2023-01-20T01:00:59.058Z","dependency_job_id":null,"html_url":"https://github.com/RobLoach/raylib-duktape","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-duktape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-duktape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-duktape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-duktape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobLoach","download_url":"https://codeload.github.com/RobLoach/raylib-duktape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243963607,"owners_count":20375648,"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":"2024-10-10T07:20:01.917Z","updated_at":"2025-03-19T03:30:35.493Z","avatar_url":"https://github.com/RobLoach.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo.png](examples/shapes/logo.png)\n\n# raylib-duktape\n\nEmbedded JavaScript bindings for [raylib](https://www.raylib.com/), a simple and easy-to-use library to learn videogames programming.\n\n`raylib-duktape` uses [Duktape](https://duktape.org/) and [Dukglue](https://github.com/Aloshi/dukglue).\n\n## Example\n\n``` js\nconst screenWidth = 800\nconst screenHeight = 450\n\nInitWindow(screenWidth, screenHeight, \"raylib [core] example - basic window\")\nSetTargetFPS(60)\n\nwhile (!WindowShouldClose()) {\n    BeginDrawing()\n        ClearBackground(RAYWHITE)\n        DrawText(\"Congrats! You created your first window!\", 190, 200, 20, LIGHTGRAY)\n    EndDrawing()\n}\n\nCloseWindow()\n```\n\n## CLI\n\nA [raylib-duktape](bin/raylib-duktape.cpp) CLI launcher is provided to allow running raylib JavaScript files.\n\n``` bash\nraylib-duktape core_basic_window.js\n```\n\n## API\n\nInitialize raylib-duktape through your Duktape context.\n\n``` c\n#include \"raylib-duktape.h\"\n\n// After initializing the Duktape heap...\nduk_raylib_init(ctx, 0);\n```\n\n## Build\n\n``` bash\ngit clone https://github.com/RobLoach/raylib-duktape.git\ncd raylib-duktape\nmkdir build\ncd build\ncmake ..\nmake\nmake test\n```\n\n## License\n\n[zlib](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fraylib-duktape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobloach%2Fraylib-duktape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fraylib-duktape/lists"}