{"id":15722393,"url":"https://github.com/defold/sample-screen-to-world-coordinates","last_synced_at":"2025-10-16T21:43:49.944Z","repository":{"id":215296302,"uuid":"738591558","full_name":"defold/sample-screen-to-world-coordinates","owner":"defold","description":"This sample project shows how to convert from screen to world coordinates while using a camera component.","archived":false,"fork":false,"pushed_at":"2024-06-17T05:44:22.000Z","size":64,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-30T15:23:52.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","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/defold.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":"2024-01-03T15:26:38.000Z","updated_at":"2024-06-21T12:55:35.000Z","dependencies_parsed_at":"2024-01-03T16:39:39.509Z","dependency_job_id":"c9a3a500-5f0e-47cb-8191-28c3de8d2d21","html_url":"https://github.com/defold/sample-screen-to-world-coordinates","commit_stats":null,"previous_names":["defold/sample-screen-to-world-coordinates"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fsample-screen-to-world-coordinates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fsample-screen-to-world-coordinates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fsample-screen-to-world-coordinates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defold%2Fsample-screen-to-world-coordinates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defold","download_url":"https://codeload.github.com/defold/sample-screen-to-world-coordinates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237267940,"owners_count":19282312,"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-03T22:07:18.050Z","updated_at":"2025-10-16T21:43:49.829Z","avatar_url":"https://github.com/defold.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"This sample project shows how to convert from screen to world coordinates while using a camera component. The conversion is made in the `screen_to_world(camera, x, y, z)` function in `camera.lua`.\n\nThe project also shows how the `screen_to_world()` function can be used to anchor game objects to the corners of the screen regardless of screen resolution and aspect ratio.\n\n## Credits\nGraphics by [Kenney.nl](https://kenney.nl/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefold%2Fsample-screen-to-world-coordinates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefold%2Fsample-screen-to-world-coordinates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefold%2Fsample-screen-to-world-coordinates/lists"}