{"action":"created","issue":{"url":"https://api.github.com/repos/Cirrus-Minor/witchblast/issues/20","labels_url":"https://api.github.com/repos/Cirrus-Minor/witchblast/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Cirrus-Minor/witchblast/issues/20/comments","events_url":"https://api.github.com/repos/Cirrus-Minor/witchblast/issues/20/events","html_url":"https://github.com/Cirrus-Minor/witchblast/pull/20","id":106137000,"number":20,"title":"Add 20 frame acceleration to rats","user":{"login":"cxong","id":1083215,"avatar_url":"https://avatars.githubusercontent.com/u/1083215?v=3","gravatar_id":"","url":"https://api.github.com/users/cxong","html_url":"https://github.com/cxong","followers_url":"https://api.github.com/users/cxong/followers","following_url":"https://api.github.com/users/cxong/following{/other_user}","gists_url":"https://api.github.com/users/cxong/gists{/gist_id}","starred_url":"https://api.github.com/users/cxong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cxong/subscriptions","organizations_url":"https://api.github.com/users/cxong/orgs","repos_url":"https://api.github.com/users/cxong/repos","events_url":"https://api.github.com/users/cxong/events{/privacy}","received_events_url":"https://api.github.com/users/cxong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-12T06:34:21Z","updated_at":"2015-09-12T07:12:37Z","closed_at":"2015-09-12T06:50:09Z","pull_request":{"url":"https://api.github.com/repos/Cirrus-Minor/witchblast/pulls/20","html_url":"https://github.com/Cirrus-Minor/witchblast/pull/20","diff_url":"https://github.com/Cirrus-Minor/witchblast/pull/20.diff","patch_url":"https://github.com/Cirrus-Minor/witchblast/pull/20.patch"},"body":"I feel that many of the enemies in this game are too unpredictable because they can instantly change direction, so this is a demo of a solution on the rats: whenever they change direction (in the `compute()` function), they come to a stop (`velocity` 0), then accelerate up to `creatureSpeed` over 20 frames. The effect is subtle but makes them much less dangerous when they change direction:\r\n\r\n![rataccel](https://cloud.githubusercontent.com/assets/1083215/9830282/f0f22410-596b-11e5-9529-fe90dd2fcaf8.gif)\r\n\r\nLet me know what you think; perhaps the rats should be sped up to compensate too."},"comment":{"url":"https://api.github.com/repos/Cirrus-Minor/witchblast/issues/comments/139737789","html_url":"https://github.com/Cirrus-Minor/witchblast/pull/20#issuecomment-139737789","issue_url":"https://api.github.com/repos/Cirrus-Minor/witchblast/issues/20","id":139737789,"user":{"login":"cxong","id":1083215,"avatar_url":"https://avatars.githubusercontent.com/u/1083215?v=3","gravatar_id":"","url":"https://api.github.com/users/cxong","html_url":"https://github.com/cxong","followers_url":"https://api.github.com/users/cxong/followers","following_url":"https://api.github.com/users/cxong/following{/other_user}","gists_url":"https://api.github.com/users/cxong/gists{/gist_id}","starred_url":"https://api.github.com/users/cxong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cxong/subscriptions","organizations_url":"https://api.github.com/users/cxong/orgs","repos_url":"https://api.github.com/users/cxong/repos","events_url":"https://api.github.com/users/cxong/events{/privacy}","received_events_url":"https://api.github.com/users/cxong/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T07:12:37Z","updated_at":"2015-09-12T07:12:37Z","body":"After some testing, I've noticed that this change breaks many enemies and has some weird side effects. For example, the pumpkin enemy no longer moves. I'm guessing this is because their `creatureSpeed` is zero? Also, when the player collects good items or opens the boss door, he floats for a bit. Please be aware of these issues."}}