{"action":"created","comment":{"url":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/comments/22436824","id":22436824,"diff_hunk":"@@ -0,0 +1,62 @@\n+package com.mygdx.manager;\n+\n+import com.badlogic.gdx.Gdx;\n+import com.uwsoft.editor.renderer.data.ProjectInfoVO;\n+import com.uwsoft.editor.renderer.data.ResolutionEntryVO;\n+import com.uwsoft.editor.renderer.resources.ResourceManager;\n+\n+public class PlatformResourceManager extends ResourceManager {\n+\tpublic ResolutionEntryVO currentResolution;\n+\n+\tpublic float stageWidth;\n+\n+\tpublic void initPlatformerResources() {\n+\t\t// Loading project configuration file that keeps list of available\n+\t\t// resolutions\n+\t\tloadProjectVO();\n+\n+\t\t// figure out the best resolution from the list of available resolutions\n+\t\t// for the existing screen size\n+\t\tcurrentResolution = getBestResolutionMatch(getProjectVO());\n+\n+\t\t// Game stage width should be dynamic based on screen size, so if you\n+\t\t// have wider screen, instead of stretching\n+\t\t// It will be just more level visible for player.\n+\t\tstageWidth = Gdx.graphics.getHeight() / currentResolution.height\n+\t\t\t\t* Gdx.graphics.getWidth();\n+\n+\t\t// Sets working resolution, so init all resources will load in to memory\n+\t\t// resources of that resolution/size only\n+\t\tsetWorkingResolution(currentResolution.name);\n+\n+\t\t// loads into memory all needed assets\n+\t\tinitAllResources();\n+\t}\n+\n+\t/**\n+\t * This method finds the closest match from the available texture\n+\t * resolutions generated by overlap2d that are closest in size to the\n+\t * current screen size. The comparison goes by height.\n+\t * \n+\t * @param projctInfoVo\n+\t * @return ResolutionEntryVO\n+\t */\n+\tpublic ResolutionEntryVO getBestResolutionMatch(ProjectInfoVO projctInfoVo) {","path":"core/src/com/mygdx/manager/PlatformResourceManager.java","position":44,"original_position":44,"commit_id":"bac2f8062923578b59c58cf80b505668d9823a2a","original_commit_id":"bac2f8062923578b59c58cf80b505668d9823a2a","user":{"login":"yuinacor","id":6602501,"avatar_url":"https://avatars.githubusercontent.com/u/6602501?v=3","gravatar_id":"","url":"https://api.github.com/users/yuinacor","html_url":"https://github.com/yuinacor","followers_url":"https://api.github.com/users/yuinacor/followers","following_url":"https://api.github.com/users/yuinacor/following{/other_user}","gists_url":"https://api.github.com/users/yuinacor/gists{/gist_id}","starred_url":"https://api.github.com/users/yuinacor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuinacor/subscriptions","organizations_url":"https://api.github.com/users/yuinacor/orgs","repos_url":"https://api.github.com/users/yuinacor/repos","events_url":"https://api.github.com/users/yuinacor/events{/privacy}","received_events_url":"https://api.github.com/users/yuinacor/received_events","type":"User","site_admin":false},"body":"projctInfoVo 오타로 보이는데요.\r\nprojectInfoVo가 맞는 것 같습니다.","created_at":"2015-01-04T05:19:46Z","updated_at":"2015-01-04T05:19:46Z","html_url":"https://github.com/CienProject2014/OneLevelHero/pull/109#discussion_r22436824","pull_request_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/109","_links":{"self":{"href":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/comments/22436824"},"html":{"href":"https://github.com/CienProject2014/OneLevelHero/pull/109#discussion_r22436824"},"pull_request":{"href":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/109"}}},"pull_request":{"url":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/109","id":26742861,"html_url":"https://github.com/CienProject2014/OneLevelHero/pull/109","diff_url":"https://github.com/CienProject2014/OneLevelHero/pull/109.diff","patch_url":"https://github.com/CienProject2014/OneLevelHero/pull/109.patch","issue_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues/109","number":109,"state":"open","locked":false,"title":"#53 battle","user":{"login":"ChoiJIN","id":7521535,"avatar_url":"https://avatars.githubusercontent.com/u/7521535?v=3","gravatar_id":"","url":"https://api.github.com/users/ChoiJIN","html_url":"https://github.com/ChoiJIN","followers_url":"https://api.github.com/users/ChoiJIN/followers","following_url":"https://api.github.com/users/ChoiJIN/following{/other_user}","gists_url":"https://api.github.com/users/ChoiJIN/gists{/gist_id}","starred_url":"https://api.github.com/users/ChoiJIN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChoiJIN/subscriptions","organizations_url":"https://api.github.com/users/ChoiJIN/orgs","repos_url":"https://api.github.com/users/ChoiJIN/repos","events_url":"https://api.github.com/users/ChoiJIN/events{/privacy}","received_events_url":"https://api.github.com/users/ChoiJIN/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-01T12:47:16Z","updated_at":"2015-01-04T05:19:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a10bb9d106d164d27b47e19bbc2a59119c7cb332","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/109/commits","review_comments_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/109/comments","review_comment_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/comments/{number}","comments_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues/109/comments","statuses_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/statuses/bac2f8062923578b59c58cf80b505668d9823a2a","head":{"label":"CienProject2014:#53_Battle","ref":"#53_Battle","sha":"bac2f8062923578b59c58cf80b505668d9823a2a","user":{"login":"CienProject2014","id":7567868,"avatar_url":"https://avatars.githubusercontent.com/u/7567868?v=3","gravatar_id":"","url":"https://api.github.com/users/CienProject2014","html_url":"https://github.com/CienProject2014","followers_url":"https://api.github.com/users/CienProject2014/followers","following_url":"https://api.github.com/users/CienProject2014/following{/other_user}","gists_url":"https://api.github.com/users/CienProject2014/gists{/gist_id}","starred_url":"https://api.github.com/users/CienProject2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CienProject2014/subscriptions","organizations_url":"https://api.github.com/users/CienProject2014/orgs","repos_url":"https://api.github.com/users/CienProject2014/repos","events_url":"https://api.github.com/users/CienProject2014/events{/privacy}","received_events_url":"https://api.github.com/users/CienProject2014/received_events","type":"Organization","site_admin":false},"repo":{"id":21557302,"name":"OneLevelHero","full_name":"CienProject2014/OneLevelHero","owner":{"login":"CienProject2014","id":7567868,"avatar_url":"https://avatars.githubusercontent.com/u/7567868?v=3","gravatar_id":"","url":"https://api.github.com/users/CienProject2014","html_url":"https://github.com/CienProject2014","followers_url":"https://api.github.com/users/CienProject2014/followers","following_url":"https://api.github.com/users/CienProject2014/following{/other_user}","gists_url":"https://api.github.com/users/CienProject2014/gists{/gist_id}","starred_url":"https://api.github.com/users/CienProject2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CienProject2014/subscriptions","organizations_url":"https://api.github.com/users/CienProject2014/orgs","repos_url":"https://api.github.com/users/CienProject2014/repos","events_url":"https://api.github.com/users/CienProject2014/events{/privacy}","received_events_url":"https://api.github.com/users/CienProject2014/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CienProject2014/OneLevelHero","description":"libGDX based Role-Playing Game","fork":false,"url":"https://api.github.com/repos/CienProject2014/OneLevelHero","forks_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/forks","keys_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/teams","hooks_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/hooks","issue_events_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues/events{/number}","events_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/events","assignees_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/assignees{/user}","branches_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/branches{/branch}","tags_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/tags","blobs_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/refs{/sha}","trees_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/statuses/{sha}","languages_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/languages","stargazers_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/stargazers","contributors_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/contributors","subscribers_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/subscribers","subscription_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/subscription","commits_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/commits{/sha}","git_commits_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/commits{/sha}","comments_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/comments{/number}","issue_comment_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues/comments/{number}","contents_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/contents/{+path}","compare_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/merges","archive_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/downloads","issues_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues{/number}","pulls_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls{/number}","milestones_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/milestones{/number}","notifications_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/labels{/name}","releases_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/releases{/id}","created_at":"2014-07-07T05:03:51Z","updated_at":"2015-01-02T05:29:51Z","pushed_at":"2015-01-04T05:07:58Z","git_url":"git://github.com/CienProject2014/OneLevelHero.git","ssh_url":"git@github.com:CienProject2014/OneLevelHero.git","clone_url":"https://github.com/CienProject2014/OneLevelHero.git","svn_url":"https://github.com/CienProject2014/OneLevelHero","homepage":"","size":47106,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":20,"forks":3,"open_issues":20,"watchers":7,"default_branch":"Developer"}},"base":{"label":"CienProject2014:Developer","ref":"Developer","sha":"3fe4dea594ef921aa64248da2b0c55dc3179003f","user":{"login":"CienProject2014","id":7567868,"avatar_url":"https://avatars.githubusercontent.com/u/7567868?v=3","gravatar_id":"","url":"https://api.github.com/users/CienProject2014","html_url":"https://github.com/CienProject2014","followers_url":"https://api.github.com/users/CienProject2014/followers","following_url":"https://api.github.com/users/CienProject2014/following{/other_user}","gists_url":"https://api.github.com/users/CienProject2014/gists{/gist_id}","starred_url":"https://api.github.com/users/CienProject2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CienProject2014/subscriptions","organizations_url":"https://api.github.com/users/CienProject2014/orgs","repos_url":"https://api.github.com/users/CienProject2014/repos","events_url":"https://api.github.com/users/CienProject2014/events{/privacy}","received_events_url":"https://api.github.com/users/CienProject2014/received_events","type":"Organization","site_admin":false},"repo":{"id":21557302,"name":"OneLevelHero","full_name":"CienProject2014/OneLevelHero","owner":{"login":"CienProject2014","id":7567868,"avatar_url":"https://avatars.githubusercontent.com/u/7567868?v=3","gravatar_id":"","url":"https://api.github.com/users/CienProject2014","html_url":"https://github.com/CienProject2014","followers_url":"https://api.github.com/users/CienProject2014/followers","following_url":"https://api.github.com/users/CienProject2014/following{/other_user}","gists_url":"https://api.github.com/users/CienProject2014/gists{/gist_id}","starred_url":"https://api.github.com/users/CienProject2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CienProject2014/subscriptions","organizations_url":"https://api.github.com/users/CienProject2014/orgs","repos_url":"https://api.github.com/users/CienProject2014/repos","events_url":"https://api.github.com/users/CienProject2014/events{/privacy}","received_events_url":"https://api.github.com/users/CienProject2014/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CienProject2014/OneLevelHero","description":"libGDX based Role-Playing Game","fork":false,"url":"https://api.github.com/repos/CienProject2014/OneLevelHero","forks_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/forks","keys_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/teams","hooks_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/hooks","issue_events_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues/events{/number}","events_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/events","assignees_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/assignees{/user}","branches_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/branches{/branch}","tags_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/tags","blobs_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/refs{/sha}","trees_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/statuses/{sha}","languages_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/languages","stargazers_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/stargazers","contributors_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/contributors","subscribers_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/subscribers","subscription_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/subscription","commits_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/commits{/sha}","git_commits_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/git/commits{/sha}","comments_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/comments{/number}","issue_comment_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues/comments/{number}","contents_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/contents/{+path}","compare_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/merges","archive_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/downloads","issues_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues{/number}","pulls_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls{/number}","milestones_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/milestones{/number}","notifications_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/labels{/name}","releases_url":"https://api.github.com/repos/CienProject2014/OneLevelHero/releases{/id}","created_at":"2014-07-07T05:03:51Z","updated_at":"2015-01-02T05:29:51Z","pushed_at":"2015-01-04T05:07:58Z","git_url":"git://github.com/CienProject2014/OneLevelHero.git","ssh_url":"git@github.com:CienProject2014/OneLevelHero.git","clone_url":"https://github.com/CienProject2014/OneLevelHero.git","svn_url":"https://github.com/CienProject2014/OneLevelHero","homepage":"","size":47106,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":20,"forks":3,"open_issues":20,"watchers":7,"default_branch":"Developer"}},"_links":{"self":{"href":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/109"},"html":{"href":"https://github.com/CienProject2014/OneLevelHero/pull/109"},"issue":{"href":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues/109"},"comments":{"href":"https://api.github.com/repos/CienProject2014/OneLevelHero/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/CienProject2014/OneLevelHero/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/CienProject2014/OneLevelHero/statuses/bac2f8062923578b59c58cf80b505668d9823a2a"}}}}