{"action":"opened","issue":{"url":"https://api.github.com/repos/AStudy/Tokko/issues/26","labels_url":"https://api.github.com/repos/AStudy/Tokko/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/AStudy/Tokko/issues/26/comments","events_url":"https://api.github.com/repos/AStudy/Tokko/issues/26/events","html_url":"https://github.com/AStudy/Tokko/issues/26","id":56954201,"number":26,"title":"ステージをクラス化する","user":{"login":"Okuya","id":7269265,"avatar_url":"https://avatars.githubusercontent.com/u/7269265?v=3","gravatar_id":"","url":"https://api.github.com/users/Okuya","html_url":"https://github.com/Okuya","followers_url":"https://api.github.com/users/Okuya/followers","following_url":"https://api.github.com/users/Okuya/following{/other_user}","gists_url":"https://api.github.com/users/Okuya/gists{/gist_id}","starred_url":"https://api.github.com/users/Okuya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Okuya/subscriptions","organizations_url":"https://api.github.com/users/Okuya/orgs","repos_url":"https://api.github.com/users/Okuya/repos","events_url":"https://api.github.com/users/Okuya/events{/privacy}","received_events_url":"https://api.github.com/users/Okuya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-08T14:59:23Z","updated_at":"2015-02-08T14:59:23Z","closed_at":null,"body":"今の実装ではステージ中の要素の管理をトップのsetupとdrawメソッドで行っている。\r\nそのため、敵機や弾などステージを構成する要素の配列がグローバル変数になっている。\r\nまた、トップステージの変更時に全ての変数を手動で再初期化するのはバグの温床になりそう。\r\n\r\nこれらの理由からステージの管理をクラス化してトップから分離する。"}}