{"action":"created","issue":{"url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/332","repository_url":"https://api.github.com/repos/daid/EmptyEpsilon","labels_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/332/comments","events_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/332/events","html_url":"https://github.com/daid/EmptyEpsilon/pull/332","id":161812635,"number":332,"title":"Implement turreted beams","user":{"login":"oznogon","id":19192104,"avatar_url":"https://avatars.githubusercontent.com/u/19192104?v=3","gravatar_id":"","url":"https://api.github.com/users/oznogon","html_url":"https://github.com/oznogon","followers_url":"https://api.github.com/users/oznogon/followers","following_url":"https://api.github.com/users/oznogon/following{/other_user}","gists_url":"https://api.github.com/users/oznogon/gists{/gist_id}","starred_url":"https://api.github.com/users/oznogon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oznogon/subscriptions","organizations_url":"https://api.github.com/users/oznogon/orgs","repos_url":"https://api.github.com/users/oznogon/repos","events_url":"https://api.github.com/users/oznogon/events{/privacy}","received_events_url":"https://api.github.com/users/oznogon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-22T23:56:17Z","updated_at":"2016-06-23T18:59:40Z","closed_at":"2016-06-23T05:27:19Z","pull_request":{"url":"https://api.github.com/repos/daid/EmptyEpsilon/pulls/332","html_url":"https://github.com/daid/EmptyEpsilon/pull/332","diff_url":"https://github.com/daid/EmptyEpsilon/pull/332.diff","patch_url":"https://github.com/daid/EmptyEpsilon/pull/332.patch"},"body":"Resolves #227.\r\n\r\n-   Add variables, getters, and setters for turreted beams.\r\n-   Add beam rotation mechanics.\r\n-   Draw turret bounds on short-range radar.\r\n-   Implement configurable turret arc, direction, and rotation rate.\r\n-   Implement GM screen tweak UI sliders.\r\n\r\nTo implement, add `setBeamWeaponTurret(<INDEX>, <ARC>, <DIRECTION>, <ROTATION_RATE>)` to a shipTemplate, with the index of the beam to make turreted.\r\n\r\nFor example, this creates two 10-degree beams, one on each side of a ship, within 90-degree turret arcs that rotate at 0.25 degrees per tick (~15 deg/sec):\r\n\r\n``` Lua\r\nvariation:setBeamWeapon(0, 10, 270, 1500.0, 6.0, 8)\r\nvariation:setBeamWeapon(1, 10,  90, 1500.0, 6.0, 8)\r\n\r\n--                          Idx, Arc, Dir, Rotation\r\nvariation:setBeamWeaponTurret(0, 90, 270, 0.25)\r\nvariation:setBeamWeaponTurret(1, 90, 90, 0.25)\r\n```\r\n\r\n![turret](https://cloud.githubusercontent.com/assets/19192104/16287740/5d42edc6-389a-11e6-89c4-5773087c449e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/comments/228150551","html_url":"https://github.com/daid/EmptyEpsilon/pull/332#issuecomment-228150551","issue_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/332","id":228150551,"user":{"login":"oznogon","id":19192104,"avatar_url":"https://avatars.githubusercontent.com/u/19192104?v=3","gravatar_id":"","url":"https://api.github.com/users/oznogon","html_url":"https://github.com/oznogon","followers_url":"https://api.github.com/users/oznogon/followers","following_url":"https://api.github.com/users/oznogon/following{/other_user}","gists_url":"https://api.github.com/users/oznogon/gists{/gist_id}","starred_url":"https://api.github.com/users/oznogon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oznogon/subscriptions","organizations_url":"https://api.github.com/users/oznogon/orgs","repos_url":"https://api.github.com/users/oznogon/repos","events_url":"https://api.github.com/users/oznogon/events{/privacy}","received_events_url":"https://api.github.com/users/oznogon/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T18:59:40Z","updated_at":"2016-06-23T18:59:40Z","body":"^ moved to an issue for easier tracking"}}
{"actor":{"display_login":"oznogon"}}