{"id":19688568,"url":"https://github.com/maxvol/gameplaykitdsl","last_synced_at":"2025-06-21T00:10:16.016Z","repository":{"id":89974626,"uuid":"168410750","full_name":"maxvol/GameplayKitDSL","owner":"maxvol","description":"Swift DSL for constructing GameplayKit objects.","archived":false,"fork":false,"pushed_at":"2021-07-31T04:24:21.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T09:57:56.729Z","etag":null,"topics":["dsl","gameplaykit","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/maxvol.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":"2019-01-30T20:32:33.000Z","updated_at":"2021-10-24T02:50:46.000Z","dependencies_parsed_at":"2023-05-30T18:00:32.052Z","dependency_job_id":null,"html_url":"https://github.com/maxvol/GameplayKitDSL","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/maxvol/GameplayKitDSL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxvol%2FGameplayKitDSL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxvol%2FGameplayKitDSL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxvol%2FGameplayKitDSL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxvol%2FGameplayKitDSL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxvol","download_url":"https://codeload.github.com/maxvol/GameplayKitDSL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxvol%2FGameplayKitDSL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261039156,"owners_count":23100978,"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":["dsl","gameplaykit","swift"],"created_at":"2024-11-11T18:38:21.543Z","updated_at":"2025-06-21T00:10:11.004Z","avatar_url":"https://github.com/maxvol.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GameplayKitDSL\nSwift DSL for constructing GameplayKit objects.\n\n```swift\nlet agent = GKAgent.agent2D {\n                $0.radius = 10\n                $0.maxSpeed = 100\n                $0.maxAcceleration = 50\n            }\n```\n\n```swift\nlet behavior = GKBehavior.behavior {\n        $0.setWeight(50, for: Goal.wander)\n        $0.setWeight(50, for: Goal.avoid)\n    }\n```\n\n```swift\nlet spriteEntity = GKEntity.entity { entity in\n    entity.skNodeComponent {\n        $0.node = sprite\n    }\n    entity.agent2D { agent in\n        agent.delegate = entity.components.filter { $0 is GKSKNodeComponent }.first? as? GKSKNodeComponent\n    }\n}\n\n```\n\n```swift\nlet obstacles = [\n        GKObstacle.circle(radius: 50) {\n            $0.position = vector_float2(-100, -100)\n        },\n        GKObstacle.circle(radius: 50) {\n            $0.position = vector_float2(-100, 100)\n        },\n        GKObstacle.circle(radius: 50) {\n            $0.position = vector_float2(100, -100)\n        },\n        GKObstacle.circle(radius: 50) {\n            $0.position = vector_float2(100, 100)\n        }\n    ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxvol%2Fgameplaykitdsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxvol%2Fgameplaykitdsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxvol%2Fgameplaykitdsl/lists"}