{"id":19118473,"url":"https://github.com/samme/phaser-camera-offset","last_synced_at":"2025-05-05T04:14:32.126Z","repository":{"id":57322843,"uuid":"73332338","full_name":"samme/phaser-camera-offset","owner":"samme","description":"Offsets the camera view from its follow target","archived":false,"fork":false,"pushed_at":"2017-02-22T20:46:10.000Z","size":76,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T04:14:16.503Z","etag":null,"topics":["phaser"],"latest_commit_sha":null,"homepage":"https://samme.github.io/phaser-camera-offset/","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samme.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-10T00:17:55.000Z","updated_at":"2024-05-29T12:54:53.000Z","dependencies_parsed_at":"2022-09-10T16:51:57.108Z","dependency_job_id":null,"html_url":"https://github.com/samme/phaser-camera-offset","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-camera-offset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-camera-offset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-camera-offset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-camera-offset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samme","download_url":"https://codeload.github.com/samme/phaser-camera-offset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252436586,"owners_count":21747472,"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":["phaser"],"created_at":"2024-11-09T05:06:25.981Z","updated_at":"2025-05-05T04:14:32.108Z","avatar_url":"https://github.com/samme.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Screenshot](https://samme.github.io/phaser-camera-offset/screenshot.png)\n\n[Demo](https://samme.github.io/phaser-camera-offset/)\n\nUse\n---\n\n```javascript\n// Set follow target, lerp, and offset:\n// camera.follow(target, style, lerpX, lerpY, offsetX, offsetY)\ncamera.follow(player, FOLLOW_STYLE, 0.5, 0.5, 64, 64);\n\n// Set offset only:\ncamera.targetOffset.x = 64;\ncamera.targetOffset.y = 64;\n\ncamera.targetOffset.set(64);\n\n// Remove offset:\ncamera.targetOffset.set(0);\n\n// Camera#unfollow() will also clear the offset\ncamera.unfollow();\n\ncamera.targetOffset.isZero() === true; //-\u003e true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-camera-offset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamme%2Fphaser-camera-offset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-camera-offset/lists"}