{"action":"created","issue":{"url":"https://api.github.com/repos/DemoProductions/shmup/issues/60","repository_url":"https://api.github.com/repos/DemoProductions/shmup","labels_url":"https://api.github.com/repos/DemoProductions/shmup/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/DemoProductions/shmup/issues/60/comments","events_url":"https://api.github.com/repos/DemoProductions/shmup/issues/60/events","html_url":"https://github.com/DemoProductions/shmup/pull/60","id":163506021,"number":60,"title":"split enemy and movement scripts","user":{"login":"flip40","id":10754057,"avatar_url":"https://avatars.githubusercontent.com/u/10754057?v=3","gravatar_id":"","url":"https://api.github.com/users/flip40","html_url":"https://github.com/flip40","followers_url":"https://api.github.com/users/flip40/followers","following_url":"https://api.github.com/users/flip40/following{/other_user}","gists_url":"https://api.github.com/users/flip40/gists{/gist_id}","starred_url":"https://api.github.com/users/flip40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flip40/subscriptions","organizations_url":"https://api.github.com/users/flip40/orgs","repos_url":"https://api.github.com/users/flip40/repos","events_url":"https://api.github.com/users/flip40/events{/privacy}","received_events_url":"https://api.github.com/users/flip40/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-02T07:08:27Z","updated_at":"2016-07-03T02:32:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DemoProductions/shmup/pulls/60","html_url":"https://github.com/DemoProductions/shmup/pull/60","diff_url":"https://github.com/DemoProductions/shmup/pull/60.diff","patch_url":"https://github.com/DemoProductions/shmup/pull/60.patch"},"body":"Split LinearEnemy into Enemy (probably a superclass for AI classes to inherit from in the long run) and an EnemyMovement Class. I added functionality in EnemyMovement class to allow modifying the linear movement by Sin or Cos waves. We could definitely go much further with defining movement inside of this class.\r\n\r\nOur \"LinearEnemy\" was turned into a LinearEnemy prefab. I also added a couple other enemy examples (LinearWave and LinearCircular).\r\n\r\nAlso as a bit of an explanation on what is going on with the editor groups...\r\nBase Movement defines linear movement on x or y. This will **not** be modified. The X and Y modifier groups have their various changes **added** to the base x / y velocity, meaning that you can set a movement pattern, and still move it across the screen. The best example and explanation for this is in the LinearCircularEnemy prefab. The X and Y Modifier sections provide the necessary arguments for a perfect circular motion, however this perfect circle is happening locally. With no base X or Y velocity, it will do a circle, however if you apply a base X velocity of less than 1, the circle will move left across the screen. Maybe I should rename the sections to X / Y Additives? That might not be any clearer though."},"comment":{"url":"https://api.github.com/repos/DemoProductions/shmup/issues/comments/230131803","html_url":"https://github.com/DemoProductions/shmup/pull/60#issuecomment-230131803","issue_url":"https://api.github.com/repos/DemoProductions/shmup/issues/60","id":230131803,"user":{"login":"normundy","id":10818718,"avatar_url":"https://avatars.githubusercontent.com/u/10818718?v=3","gravatar_id":"","url":"https://api.github.com/users/normundy","html_url":"https://github.com/normundy","followers_url":"https://api.github.com/users/normundy/followers","following_url":"https://api.github.com/users/normundy/following{/other_user}","gists_url":"https://api.github.com/users/normundy/gists{/gist_id}","starred_url":"https://api.github.com/users/normundy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normundy/subscriptions","organizations_url":"https://api.github.com/users/normundy/orgs","repos_url":"https://api.github.com/users/normundy/repos","events_url":"https://api.github.com/users/normundy/events{/privacy}","received_events_url":"https://api.github.com/users/normundy/received_events","type":"User","site_admin":false},"created_at":"2016-07-03T02:32:59Z","updated_at":"2016-07-03T02:32:59Z","body":"Other things:\r\nDo all enemies shoot? Currently each enemy shoots on each update\r\nPossibility for Movement class that EnemyMovement inherits from?\r\n"}}
{"actor":{"display_login":"normundy"}}