{"id":33169576,"url":"https://github.com/dparis/phzr","last_synced_at":"2026-04-02T01:07:07.640Z","repository":{"id":36439170,"uuid":"40744196","full_name":"dparis/phzr","owner":"dparis","description":"A ClojureScript wrapper for the Phaser HTML5 game framework","archived":false,"fork":false,"pushed_at":"2016-02-24T13:13:32.000Z","size":1082,"stargazers_count":111,"open_issues_count":7,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-20T19:04:51.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/dparis.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":"2015-08-15T02:42:25.000Z","updated_at":"2024-12-10T04:37:49.000Z","dependencies_parsed_at":"2022-07-08T15:33:51.907Z","dependency_job_id":null,"html_url":"https://github.com/dparis/phzr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dparis/phzr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dparis%2Fphzr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dparis%2Fphzr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dparis%2Fphzr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dparis%2Fphzr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dparis","download_url":"https://codeload.github.com/dparis/phzr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dparis%2Fphzr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:05:07.454Z","status":"ssl_error","status_checked_at":"2026-04-02T00:56:46.496Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-11-16T01:00:33.531Z","updated_at":"2026-04-02T01:07:07.613Z","avatar_url":"https://github.com/dparis.png","language":"Clojure","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# phzr\n\nA ClojureScript wrapper for the Phaser HTML5 game framework.\n\n![](https://clojars.org/phzr/latest-version.svg)\n\n[![Join the chat at https://gitter.im/dparis/phzr](https://badges.gitter.im/Join%20Chat.svg)]\n(https://gitter.im/dparis/phzr?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n## What is Phaser?\n\n[Phaser](http://phaser.io) is a fast, free and fun open source framework\nfor Canvas and WebGL powered browser games. It supports several physics\nlibraries, tilemaps, sprite and vector animations, and audio/video rendering,\nas well as many other features.\n\n\n## Okay, so what is phzr?\n\nThe phzr wrapper aims to provide a complete facade over the Phaser library.\nNamespaces in phzr should line up with the corresponding Phaser\nJavascript class hierarcy, i.e. `Phaser.AnimationManager` can be referenced\nat `phzr.animation-manager`. Instance methods for a class namespace always\ntake an instance of that class as the first argument. Static methods do not,\nand are denoted by a trailing hyphen. If the corresponding Phaser class can be\ninstantiated, the phzr namespace will also include a constructor function which\nfollows the Clojure record constructor arrow naming scheme.\n\nAlong with the namespace wrappers, phzr also\n[extends](src/phzr/impl/extend/core.cljs#L33) each Phaser class to implement a\nnumber of useful Clojure protocols. Currently, this allows functions like `get`,\n`get-in`, and `seq` to work on Phaser objects. As phzr develops, it may extend\nPhaser classes to more core protocols. When working with Phaser objects in phzr,\nonly public properties are exposed through the protocol implementations.\nIf a Phaser class has constants, the corresponding phzr namespace will have a\n`const` function which takes a keyword as an argument. All property and constant\nnames have been converted to Clojure-style kebab-case keywords.\n\nAdditionally, Phaser classes implement the IPhaserObj protocol defined in the\nphzr.core namespace. Currently, this protocol specifies a function `pset!`,\nwhich allows phaser object properties to be mutated directly. The `pset!`\nfunction works similarly to `aset`, differing in that it accepts only the\nkeyword-ized versions of the object property names, and will not allow mutations\non properties marked as read-only or internal.\n\n\n## How do I get started?\n\nJust include the phzr library in your ClojureScript project's build\ndependencies. The phzr library makes use of the awesome cljsjs package\nsystem to pull in the correct Phaser javascript source automatically.\n\nOnce you've got phzr installed in your project, check out the Phaser\n[documentation](http://phaser.io/docs) and\n[learning resources](http://phaser.io/learn) to get started using Phaser.\n\nCheck out the [phzr-demo](https://github.com/dparis/phzr-demo) app for some\nexamples!\n\n\n## How can I contribute?\n\nCheck the phzr github project for open issues and feel free to submit a PR.\n\nIn the immediate future, the phzr source needs to be reviewed for accuracy.\nMost of the source was auto-generated by parsing a JSON representation of the\nsource which was itself generated from the jsdoc comments in the Phaser\njavascript code. Check out the [gen-phzr](https://github.com/dparis/gen-phzr)\napp for more details.\n\nSeveral of the Phaser demo projects have been implemented successfully\nusing phzr as an initial sanity test, but there are almost certainly dark\ncorners and special cases which will need to be hand-tweaked.\n\n\n## License\n\nCopyright © 2015 Dylan Paris\n\nDistributed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdparis%2Fphzr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdparis%2Fphzr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdparis%2Fphzr/lists"}