{"action":"created","comment":{"url":"https://api.github.com/repos/lagora/zla/pulls/comments/52994877","id":52994877,"diff_hunk":"@@ -137,44 +59,9 @@ var zla = function (options) {\n     this.tileset = {};\n     this.sprite = {};\n     this.map = {};\n-    this.mkPalette = function (opts) {\n-      _checkMkPalette(opts);\n-\n-      if ('HEX' === opts.format) {\n-        var rgbValues = [];\n-        opts.data.map(function (value) {\n-          value = 0 === value.indexOf('#') ? value.substr(1) : value;\n-          rgbValues.push(ColorUtil.HexToRgb(value, 'r'));\n-          rgbValues.push(ColorUtil.HexToRgb(value, 'g'));\n-          rgbValues.push(ColorUtil.HexToRgb(value, 'b'));\n-        });\n-        opts.data = rgbValues;\n-        opts.format = 'RGB';\n-      }\n-\n-      this.palette[opts.name] = [];\n-      for (var i = 0; i < opts.data.length; i += 3) {\n-          var color = {r: opts.data[i], g: opts.data[i+1], b: opts.data[i+2]};\n-          this.palette[opts.name].push(color);\n-      }\n-  }.bind(this);\n-  this.mkGfx = function(opts) {\n-    _chkMkGfx(opts);\n-    // var bmpData = this.game.add.bitmapData(opts.width, opts.height);\n-    // var bmpData = new Phaser.BitmapData(this.game, opts.name, opts.width, opts.height);\n-    // this.game.cache.addBitmapData('test', bmpData);\n-    // for (let iy = 0; iy < opts.height; iy++) {\n-    //   for (let ix = 0; ix < opts.width; ix++) {\n-    //     let i = (iy*opts.height)+ix;\n-    //     let color = this.palette.gb[opts.data[i]];\n-    //     bmpData.setPixel(ix, iy, color.r, color.g, color.b, 0);\n-    //   }\n-    // }\n-    // this.game.add.sprite(0, 0);\n-    // let img = new Phaser.Image(this.game, 0, 0, bmpData);\n-  }.bind(this);\n-  this.mkTileset = function () {\n-  }.bind(this);\n+    this.mkPalette = function (opts) {}.bind(this);","path":"src/zla.js","position":127,"original_position":127,"commit_id":"9fe92b04ae97fb2d251c3e17adf4fcc40e9b5c9c","original_commit_id":"9fe92b04ae97fb2d251c3e17adf4fcc40e9b5c9c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'opts' is defined but never used.","created_at":"2016-02-16T10:49:14Z","updated_at":"2016-02-16T10:49:14Z","html_url":"https://github.com/lagora/zla/pull/8#discussion_r52994877","pull_request_url":"https://api.github.com/repos/lagora/zla/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/lagora/zla/pulls/comments/52994877"},"html":{"href":"https://github.com/lagora/zla/pull/8#discussion_r52994877"},"pull_request":{"href":"https://api.github.com/repos/lagora/zla/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/lagora/zla/pulls/8","id":59425836,"html_url":"https://github.com/lagora/zla/pull/8","diff_url":"https://github.com/lagora/zla/pull/8.diff","patch_url":"https://github.com/lagora/zla/pull/8.patch","issue_url":"https://api.github.com/repos/lagora/zla/issues/8","number":8,"state":"open","locked":false,"title":"fix","user":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-15T23:35:31Z","updated_at":"2016-02-16T10:49:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0bb73a76cf6bbe885d12a5ea308d0535d720d46e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lagora/zla/pulls/8/commits","review_comments_url":"https://api.github.com/repos/lagora/zla/pulls/8/comments","review_comment_url":"https://api.github.com/repos/lagora/zla/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lagora/zla/issues/8/comments","statuses_url":"https://api.github.com/repos/lagora/zla/statuses/9fe92b04ae97fb2d251c3e17adf4fcc40e9b5c9c","head":{"label":"lagora:dev","ref":"dev","sha":"9fe92b04ae97fb2d251c3e17adf4fcc40e9b5c9c","user":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"repo":{"id":51260599,"name":"zla","full_name":"lagora/zla","owner":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lagora/zla","description":"","fork":false,"url":"https://api.github.com/repos/lagora/zla","forks_url":"https://api.github.com/repos/lagora/zla/forks","keys_url":"https://api.github.com/repos/lagora/zla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lagora/zla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lagora/zla/teams","hooks_url":"https://api.github.com/repos/lagora/zla/hooks","issue_events_url":"https://api.github.com/repos/lagora/zla/issues/events{/number}","events_url":"https://api.github.com/repos/lagora/zla/events","assignees_url":"https://api.github.com/repos/lagora/zla/assignees{/user}","branches_url":"https://api.github.com/repos/lagora/zla/branches{/branch}","tags_url":"https://api.github.com/repos/lagora/zla/tags","blobs_url":"https://api.github.com/repos/lagora/zla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lagora/zla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lagora/zla/git/refs{/sha}","trees_url":"https://api.github.com/repos/lagora/zla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lagora/zla/statuses/{sha}","languages_url":"https://api.github.com/repos/lagora/zla/languages","stargazers_url":"https://api.github.com/repos/lagora/zla/stargazers","contributors_url":"https://api.github.com/repos/lagora/zla/contributors","subscribers_url":"https://api.github.com/repos/lagora/zla/subscribers","subscription_url":"https://api.github.com/repos/lagora/zla/subscription","commits_url":"https://api.github.com/repos/lagora/zla/commits{/sha}","git_commits_url":"https://api.github.com/repos/lagora/zla/git/commits{/sha}","comments_url":"https://api.github.com/repos/lagora/zla/comments{/number}","issue_comment_url":"https://api.github.com/repos/lagora/zla/issues/comments{/number}","contents_url":"https://api.github.com/repos/lagora/zla/contents/{+path}","compare_url":"https://api.github.com/repos/lagora/zla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lagora/zla/merges","archive_url":"https://api.github.com/repos/lagora/zla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lagora/zla/downloads","issues_url":"https://api.github.com/repos/lagora/zla/issues{/number}","pulls_url":"https://api.github.com/repos/lagora/zla/pulls{/number}","milestones_url":"https://api.github.com/repos/lagora/zla/milestones{/number}","notifications_url":"https://api.github.com/repos/lagora/zla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lagora/zla/labels{/name}","releases_url":"https://api.github.com/repos/lagora/zla/releases{/id}","deployments_url":"https://api.github.com/repos/lagora/zla/deployments","created_at":"2016-02-07T18:57:29Z","updated_at":"2016-02-08T00:13:38Z","pushed_at":"2016-02-16T10:48:33Z","git_url":"git://github.com/lagora/zla.git","ssh_url":"git@github.com:lagora/zla.git","clone_url":"https://github.com/lagora/zla.git","svn_url":"https://github.com/lagora/zla","homepage":null,"size":30093,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"lagora:master","ref":"master","sha":"d91e1277dd74beb6672ef9d66bc899378feddd31","user":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"repo":{"id":51260599,"name":"zla","full_name":"lagora/zla","owner":{"login":"lagora","id":1552901,"avatar_url":"https://avatars.githubusercontent.com/u/1552901?v=3","gravatar_id":"","url":"https://api.github.com/users/lagora","html_url":"https://github.com/lagora","followers_url":"https://api.github.com/users/lagora/followers","following_url":"https://api.github.com/users/lagora/following{/other_user}","gists_url":"https://api.github.com/users/lagora/gists{/gist_id}","starred_url":"https://api.github.com/users/lagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagora/subscriptions","organizations_url":"https://api.github.com/users/lagora/orgs","repos_url":"https://api.github.com/users/lagora/repos","events_url":"https://api.github.com/users/lagora/events{/privacy}","received_events_url":"https://api.github.com/users/lagora/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lagora/zla","description":"","fork":false,"url":"https://api.github.com/repos/lagora/zla","forks_url":"https://api.github.com/repos/lagora/zla/forks","keys_url":"https://api.github.com/repos/lagora/zla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lagora/zla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lagora/zla/teams","hooks_url":"https://api.github.com/repos/lagora/zla/hooks","issue_events_url":"https://api.github.com/repos/lagora/zla/issues/events{/number}","events_url":"https://api.github.com/repos/lagora/zla/events","assignees_url":"https://api.github.com/repos/lagora/zla/assignees{/user}","branches_url":"https://api.github.com/repos/lagora/zla/branches{/branch}","tags_url":"https://api.github.com/repos/lagora/zla/tags","blobs_url":"https://api.github.com/repos/lagora/zla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lagora/zla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lagora/zla/git/refs{/sha}","trees_url":"https://api.github.com/repos/lagora/zla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lagora/zla/statuses/{sha}","languages_url":"https://api.github.com/repos/lagora/zla/languages","stargazers_url":"https://api.github.com/repos/lagora/zla/stargazers","contributors_url":"https://api.github.com/repos/lagora/zla/contributors","subscribers_url":"https://api.github.com/repos/lagora/zla/subscribers","subscription_url":"https://api.github.com/repos/lagora/zla/subscription","commits_url":"https://api.github.com/repos/lagora/zla/commits{/sha}","git_commits_url":"https://api.github.com/repos/lagora/zla/git/commits{/sha}","comments_url":"https://api.github.com/repos/lagora/zla/comments{/number}","issue_comment_url":"https://api.github.com/repos/lagora/zla/issues/comments{/number}","contents_url":"https://api.github.com/repos/lagora/zla/contents/{+path}","compare_url":"https://api.github.com/repos/lagora/zla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lagora/zla/merges","archive_url":"https://api.github.com/repos/lagora/zla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lagora/zla/downloads","issues_url":"https://api.github.com/repos/lagora/zla/issues{/number}","pulls_url":"https://api.github.com/repos/lagora/zla/pulls{/number}","milestones_url":"https://api.github.com/repos/lagora/zla/milestones{/number}","notifications_url":"https://api.github.com/repos/lagora/zla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lagora/zla/labels{/name}","releases_url":"https://api.github.com/repos/lagora/zla/releases{/id}","deployments_url":"https://api.github.com/repos/lagora/zla/deployments","created_at":"2016-02-07T18:57:29Z","updated_at":"2016-02-08T00:13:38Z","pushed_at":"2016-02-16T10:48:33Z","git_url":"git://github.com/lagora/zla.git","ssh_url":"git@github.com:lagora/zla.git","clone_url":"https://github.com/lagora/zla.git","svn_url":"https://github.com/lagora/zla","homepage":null,"size":30093,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lagora/zla/pulls/8"},"html":{"href":"https://github.com/lagora/zla/pull/8"},"issue":{"href":"https://api.github.com/repos/lagora/zla/issues/8"},"comments":{"href":"https://api.github.com/repos/lagora/zla/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/lagora/zla/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/lagora/zla/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lagora/zla/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/lagora/zla/statuses/9fe92b04ae97fb2d251c3e17adf4fcc40e9b5c9c"}}}}