{"action":"created","issue":{"url":"https://api.github.com/repos/angered-ghandi/OpenAOE/issues/32","repository_url":"https://api.github.com/repos/angered-ghandi/OpenAOE","labels_url":"https://api.github.com/repos/angered-ghandi/OpenAOE/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/angered-ghandi/OpenAOE/issues/32/comments","events_url":"https://api.github.com/repos/angered-ghandi/OpenAOE/issues/32/events","html_url":"https://github.com/angered-ghandi/OpenAOE/issues/32","id":165994449,"number":32,"title":"Implement a unit selection system","user":{"login":"angered-ghandi","id":20009343,"avatar_url":"https://avatars.githubusercontent.com/u/20009343?v=3","gravatar_id":"","url":"https://api.github.com/users/angered-ghandi","html_url":"https://github.com/angered-ghandi","followers_url":"https://api.github.com/users/angered-ghandi/followers","following_url":"https://api.github.com/users/angered-ghandi/following{/other_user}","gists_url":"https://api.github.com/users/angered-ghandi/gists{/gist_id}","starred_url":"https://api.github.com/users/angered-ghandi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angered-ghandi/subscriptions","organizations_url":"https://api.github.com/users/angered-ghandi/orgs","repos_url":"https://api.github.com/users/angered-ghandi/repos","events_url":"https://api.github.com/users/angered-ghandi/events{/privacy}","received_events_url":"https://api.github.com/users/angered-ghandi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angered-ghandi/OpenAOE/milestones/1","html_url":"https://github.com/angered-ghandi/OpenAOE/milestones/1%20-%20Moving%20Units","labels_url":"https://api.github.com/repos/angered-ghandi/OpenAOE/milestones/1/labels","id":1888315,"number":1,"title":"1 - Moving Units","description":"This milestone will be accomplished when (moveable) units can be selected and commanded to move around the map.","creator":{"login":"angered-ghandi","id":20009343,"avatar_url":"https://avatars.githubusercontent.com/u/20009343?v=3","gravatar_id":"","url":"https://api.github.com/users/angered-ghandi","html_url":"https://github.com/angered-ghandi","followers_url":"https://api.github.com/users/angered-ghandi/followers","following_url":"https://api.github.com/users/angered-ghandi/following{/other_user}","gists_url":"https://api.github.com/users/angered-ghandi/gists{/gist_id}","starred_url":"https://api.github.com/users/angered-ghandi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angered-ghandi/subscriptions","organizations_url":"https://api.github.com/users/angered-ghandi/orgs","repos_url":"https://api.github.com/users/angered-ghandi/repos","events_url":"https://api.github.com/users/angered-ghandi/events{/privacy}","received_events_url":"https://api.github.com/users/angered-ghandi/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2016-07-17T20:29:01Z","updated_at":"2016-07-23T14:55:38Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-17T20:32:45Z","updated_at":"2016-08-01T00:08:15Z","closed_at":null,"body":"This system will detect when a player has left clicked a unit (ignore drag select for now), and keep track of which units are selected in a `SelectedUnits` resource in the entity component system. The selection graphic will be done in a separate issue, so for now, just println! the selected unit when it changes."},"comment":{"url":"https://api.github.com/repos/angered-ghandi/OpenAOE/issues/comments/236465551","html_url":"https://github.com/angered-ghandi/OpenAOE/issues/32#issuecomment-236465551","issue_url":"https://api.github.com/repos/angered-ghandi/OpenAOE/issues/32","id":236465551,"user":{"login":"angered-ghandi","id":20009343,"avatar_url":"https://avatars.githubusercontent.com/u/20009343?v=3","gravatar_id":"","url":"https://api.github.com/users/angered-ghandi","html_url":"https://github.com/angered-ghandi","followers_url":"https://api.github.com/users/angered-ghandi/followers","following_url":"https://api.github.com/users/angered-ghandi/following{/other_user}","gists_url":"https://api.github.com/users/angered-ghandi/gists{/gist_id}","starred_url":"https://api.github.com/users/angered-ghandi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angered-ghandi/subscriptions","organizations_url":"https://api.github.com/users/angered-ghandi/orgs","repos_url":"https://api.github.com/users/angered-ghandi/repos","events_url":"https://api.github.com/users/angered-ghandi/events{/privacy}","received_events_url":"https://api.github.com/users/angered-ghandi/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T00:08:15Z","updated_at":"2016-08-01T00:08:15Z","body":"Was stumped for a while, but I think I figured out how I can do unit selection closer to the original game using axis-aligned boxes:\r\n![unit_aaboxs](https://cloud.githubusercontent.com/assets/20009343/17280271/0d915c02-5741-11e6-8b42-3c3a7adefbdb.png)\r\n\r\nThose boxes look approximately the same size as the general area around units in the original game that you can click to select them. I'm going to unproject the mouse coordinate into world coords and then see which axis-aligned boxes contain the resulting point to select a unit.\r\n"}}
{"actor":{"display_login":"angered-ghandi"}}