{"action":"closed","issue":{"url":"https://api.github.com/repos/NSasquatch/Wario-Land-3/issues/1","labels_url":"https://api.github.com/repos/NSasquatch/Wario-Land-3/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/NSasquatch/Wario-Land-3/issues/1/comments","events_url":"https://api.github.com/repos/NSasquatch/Wario-Land-3/issues/1/events","html_url":"https://github.com/NSasquatch/Wario-Land-3/issues/1","id":94926500,"number":1,"title":"Improve Animation-Class","user":{"login":"NSasquatch","id":6960788,"avatar_url":"https://avatars.githubusercontent.com/u/6960788?v=3","gravatar_id":"","url":"https://api.github.com/users/NSasquatch","html_url":"https://github.com/NSasquatch","followers_url":"https://api.github.com/users/NSasquatch/followers","following_url":"https://api.github.com/users/NSasquatch/following{/other_user}","gists_url":"https://api.github.com/users/NSasquatch/gists{/gist_id}","starred_url":"https://api.github.com/users/NSasquatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSasquatch/subscriptions","organizations_url":"https://api.github.com/users/NSasquatch/orgs","repos_url":"https://api.github.com/users/NSasquatch/repos","events_url":"https://api.github.com/users/NSasquatch/events{/privacy}","received_events_url":"https://api.github.com/users/NSasquatch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NSasquatch/Wario-Land-3/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-14T11:35:40Z","updated_at":"2015-07-14T19:17:12Z","closed_at":"2015-07-14T19:17:12Z","body":"The animation-class is still very limited. It would be great to be able to control the order of sprites much more.\r\n\r\nOne improvement would be to separate the information about the order of the sprites from the actual surfaces. One argument could be the list of all the surfaces, and another one the order in which these surfaces should appear - which could be much longer than the amount of surfaces given. To combine it with the length of the single sprites, a list could look like this:\r\n```Python\r\n[(frame_nr_1, frame_1_length), (frame_nr_2, frame_2_length) ...]\r\n```\r\nAn animation that plays its surfaces in order 1, 2, 1, 3, 1, 2, 1, 3 with each frame being showed 100 frames would then look like this:\r\n```Python\r\nAnimation(self, [surface_1, surface_2, surface_3], [(0, 100), (1, 100), (0, 100), (2, 100)])\r\n```"}}