{"action":"created","issue":{"url":"https://api.github.com/repos/EnclaveGames/Cyber-Orb/issues/1","labels_url":"https://api.github.com/repos/EnclaveGames/Cyber-Orb/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/EnclaveGames/Cyber-Orb/issues/1/comments","events_url":"https://api.github.com/repos/EnclaveGames/Cyber-Orb/issues/1/events","html_url":"https://github.com/EnclaveGames/Cyber-Orb/issues/1","id":54568047,"number":1,"title":"Global variables","user":{"login":"jsvoboda","id":2502359,"avatar_url":"https://avatars.githubusercontent.com/u/2502359?v=3","gravatar_id":"","url":"https://api.github.com/users/jsvoboda","html_url":"https://github.com/jsvoboda","followers_url":"https://api.github.com/users/jsvoboda/followers","following_url":"https://api.github.com/users/jsvoboda/following{/other_user}","gists_url":"https://api.github.com/users/jsvoboda/gists{/gist_id}","starred_url":"https://api.github.com/users/jsvoboda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsvoboda/subscriptions","organizations_url":"https://api.github.com/users/jsvoboda/orgs","repos_url":"https://api.github.com/users/jsvoboda/repos","events_url":"https://api.github.com/users/jsvoboda/events{/privacy}","received_events_url":"https://api.github.com/users/jsvoboda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-16T11:57:12Z","updated_at":"2015-01-18T22:12:45Z","closed_at":null,"body":"Hi, \r\nas a javascript newb I was kind of trying to copy the structure of your game, but realized that you are extensively using global variables.\r\n\r\nFor example:\r\n```\r\nBall.Game = function(game) {\r\n\tkeys = null;\r\n\tball = null;\r\n\twalls = null;\r\n        ...\r\n};\r\n```\r\n\r\nWould you mind explaining why?\r\n\r\nThank you,\r\nJaromír"},"comment":{"url":"https://api.github.com/repos/EnclaveGames/Cyber-Orb/issues/comments/70428860","html_url":"https://github.com/EnclaveGames/Cyber-Orb/issues/1#issuecomment-70428860","issue_url":"https://api.github.com/repos/EnclaveGames/Cyber-Orb/issues/1","id":70428860,"user":{"login":"end3r","id":373344,"avatar_url":"https://avatars.githubusercontent.com/u/373344?v=3","gravatar_id":"","url":"https://api.github.com/users/end3r","html_url":"https://github.com/end3r","followers_url":"https://api.github.com/users/end3r/followers","following_url":"https://api.github.com/users/end3r/following{/other_user}","gists_url":"https://api.github.com/users/end3r/gists{/gist_id}","starred_url":"https://api.github.com/users/end3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/end3r/subscriptions","organizations_url":"https://api.github.com/users/end3r/orgs","repos_url":"https://api.github.com/users/end3r/repos","events_url":"https://api.github.com/users/end3r/events{/privacy}","received_events_url":"https://api.github.com/users/end3r/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T22:12:45Z","updated_at":"2015-01-18T22:12:45Z","body":"The demo game was created at a doc sprint during weekend a few months ago and was just a proof of concept, but I never had the chance to finish it. I'll try to rewrite it as it should be, with all the good practices, and describe everything in detail in the related article."}}