{"id":15062825,"url":"https://github.com/lsevero/clj-raylib","last_synced_at":"2025-04-10T10:11:29.292Z","repository":{"id":57713478,"uuid":"261029038","full_name":"lsevero/clj-raylib","owner":"lsevero","description":"Raylib bindings for clojure","archived":false,"fork":false,"pushed_at":"2020-08-28T22:53:33.000Z","size":4791,"stargazers_count":24,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-24T08:15:29.250Z","etag":null,"topics":["clojure","game-development","game-engine","raylib"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/lsevero.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-05-03T22:00:24.000Z","updated_at":"2024-04-02T23:54:26.000Z","dependencies_parsed_at":"2022-09-26T21:30:54.445Z","dependency_job_id":null,"html_url":"https://github.com/lsevero/clj-raylib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsevero%2Fclj-raylib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsevero%2Fclj-raylib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsevero%2Fclj-raylib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsevero%2Fclj-raylib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsevero","download_url":"https://codeload.github.com/lsevero/clj-raylib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198884,"owners_count":21063628,"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":["clojure","game-development","game-engine","raylib"],"created_at":"2024-09-24T23:47:01.651Z","updated_at":"2025-04-10T10:11:29.257Z","avatar_url":"https://github.com/lsevero.png","language":"Java","readme":"# clj-raylib\n\nClojure bidings to the awesome [raylib](https://www.raylib.com/) library\n\n## Usage\n\n```clojure\n(ns basic\n  (:require [clj-raylib.core :refer :all])\n  (:gen-class))\n\n(defn -main\n  [\u0026 _]\n  (let [width 800\n        height 450]\n    (init-window! width height \"input keys\")\n    (set-target-fps! 60)\n    (loop [state {:ball [(/ width 2) (/ height 2)]}]\n      (when-not (window-should-close?)\n        (with-drawing\n          (clear-background! RAYWHITE)\n          (draw-text! \"move the ball with arrow keys\" 10 10 20 DARKGRAY) \n          (draw-circle! (:ball state) 50 MAROON))\n        (recur (-\u003e state\n                   (#(if (is-key-down? KEY-RIGHT) (update-in % [:ball 0] inc) %))\n                   (#(if (is-key-down? KEY-LEFT) (update-in % [:ball 0] dec) %))\n                   (#(if (is-key-down? KEY-UP) (update-in % [:ball 1] dec) %))\n                   (#(if (is-key-down? KEY-DOWN) (update-in % [:ball 1] inc) %))))))))\n```\n\nTo run the examples, clone this folder and run with:\n```bash\nlein run -m input-mouse/-main\n```\nAnd change the namespace to the accoding example you want.\n\n## License\n\nCopyright © 2020 FIXME\n\nThis program and the accompanying materials are made available under the\nterms of the Eclipse Public License 2.0 which is available at\nhttp://www.eclipse.org/legal/epl-2.0.\n\nThis Source Code may also be made available under the following Secondary\nLicenses when the conditions for such availability set forth in the Eclipse\nPublic License, v. 2.0 are satisfied: GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or (at your\noption) any later version, with the GNU Classpath Exception which is available\nat https://www.gnu.org/software/classpath/license.html.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsevero%2Fclj-raylib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsevero%2Fclj-raylib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsevero%2Fclj-raylib/lists"}