{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/19276","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/19276/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/19276/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/19276/events","html_url":"https://github.com/godotengine/godot/pull/19276","id":327831405,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxNTI4OTA2","number":19276,"title":"Add snapping support for Camera2D","user":{"login":"Xrayez","id":17108460,"node_id":"MDQ6VXNlcjE3MTA4NDYw","avatar_url":"https://avatars1.githubusercontent.com/u/17108460?v=4","gravatar_id":"","url":"https://api.github.com/users/Xrayez","html_url":"https://github.com/Xrayez","followers_url":"https://api.github.com/users/Xrayez/followers","following_url":"https://api.github.com/users/Xrayez/following{/other_user}","gists_url":"https://api.github.com/users/Xrayez/gists{/gist_id}","starred_url":"https://api.github.com/users/Xrayez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xrayez/subscriptions","organizations_url":"https://api.github.com/users/Xrayez/orgs","repos_url":"https://api.github.com/users/Xrayez/repos","events_url":"https://api.github.com/users/Xrayez/events{/privacy}","received_events_url":"https://api.github.com/users/Xrayez/received_events","type":"User","site_admin":false},"labels":[{"id":73330066,"node_id":"MDU6TGFiZWw3MzMzMDA2Ng==","url":"https://api.github.com/repos/godotengine/godot/labels/enhancement","name":"enhancement","color":"44bbff","default":true},{"id":279097966,"node_id":"MDU6TGFiZWwyNzkwOTc5NjY=","url":"https://api.github.com/repos/godotengine/godot/labels/topic:core","name":"topic:core","color":"ffdd44","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/godotengine/godot/milestones/7","html_url":"https://github.com/godotengine/godot/milestone/7","labels_url":"https://api.github.com/repos/godotengine/godot/milestones/7/labels","id":2529217,"node_id":"MDk6TWlsZXN0b25lMjUyOTIxNw==","number":7,"title":"3.1","description":"","creator":{"login":"akien-mga","id":4701338,"node_id":"MDQ6VXNlcjQ3MDEzMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/4701338?v=4","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"open_issues":963,"closed_issues":1508,"state":"open","created_at":"2017-05-18T13:33:56Z","updated_at":"2018-05-30T20:33:42Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-05-30T17:39:21Z","updated_at":"2018-05-30T21:36:00Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/godotengine/godot/pulls/19276","html_url":"https://github.com/godotengine/godot/pull/19276","diff_url":"https://github.com/godotengine/godot/pull/19276.diff","patch_url":"https://github.com/godotengine/godot/pull/19276.patch"},"body":"This allows to snap camera's position transform to a grid, will be useful for tile-map based games.\r\nWhen combined with smoothing, this creates cool transitions between grid cells.\r\n\r\nRefer to this [video](https://www.youtube.com/watch?v=CqU6w164AbU) by @NathanLovato (GDQuest)."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/393327546","html_url":"https://github.com/godotengine/godot/pull/19276#issuecomment-393327546","issue_url":"https://api.github.com/repos/godotengine/godot/issues/19276","id":393327546,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzMyNzU0Ng==","user":{"login":"Xrayez","id":17108460,"node_id":"MDQ6VXNlcjE3MTA4NDYw","avatar_url":"https://avatars1.githubusercontent.com/u/17108460?v=4","gravatar_id":"","url":"https://api.github.com/users/Xrayez","html_url":"https://github.com/Xrayez","followers_url":"https://api.github.com/users/Xrayez/followers","following_url":"https://api.github.com/users/Xrayez/following{/other_user}","gists_url":"https://api.github.com/users/Xrayez/gists{/gist_id}","starred_url":"https://api.github.com/users/Xrayez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xrayez/subscriptions","organizations_url":"https://api.github.com/users/Xrayez/orgs","repos_url":"https://api.github.com/users/Xrayez/repos","events_url":"https://api.github.com/users/Xrayez/events{/privacy}","received_events_url":"https://api.github.com/users/Xrayez/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T21:36:00Z","updated_at":"2018-05-30T21:36:00Z","author_association":"CONTRIBUTOR","body":"Averaged between class conventions and Godot code base conventions...\r\n\r\nI realized I could add `set/get_snapping_drawing_enabled` methods to draw grid lines, similar to other editor drawing methods like `set/get_screen_drawing_enabled`, but this could be done as a separate PR."}}
{"actor":{"display_login":"Xrayez"}}