{"action":"created","issue":{"url":"https://api.github.com/repos/dick-ey/MattDickeyArt/issues/1","labels_url":"https://api.github.com/repos/dick-ey/MattDickeyArt/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/dick-ey/MattDickeyArt/issues/1/comments","events_url":"https://api.github.com/repos/dick-ey/MattDickeyArt/issues/1/events","html_url":"https://github.com/dick-ey/MattDickeyArt/issues/1","id":61980819,"number":1,"title":"Tetris Clock?","user":{"login":"andrewmok","id":10732163,"avatar_url":"https://avatars.githubusercontent.com/u/10732163?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewmok","html_url":"https://github.com/andrewmok","followers_url":"https://api.github.com/users/andrewmok/followers","following_url":"https://api.github.com/users/andrewmok/following{/other_user}","gists_url":"https://api.github.com/users/andrewmok/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmok/subscriptions","organizations_url":"https://api.github.com/users/andrewmok/orgs","repos_url":"https://api.github.com/users/andrewmok/repos","events_url":"https://api.github.com/users/andrewmok/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-16T05:59:45Z","updated_at":"2015-03-19T01:45:59Z","closed_at":null,"body":"Sorry, idk where else to put this. Are you gonna put the Tetris Clock from reddit on ur Git?"},"comment":{"url":"https://api.github.com/repos/dick-ey/MattDickeyArt/issues/comments/83257573","html_url":"https://github.com/dick-ey/MattDickeyArt/issues/1#issuecomment-83257573","issue_url":"https://api.github.com/repos/dick-ey/MattDickeyArt/issues/1","id":83257573,"user":{"login":"dick-ey","id":8560685,"avatar_url":"https://avatars.githubusercontent.com/u/8560685?v=3","gravatar_id":"","url":"https://api.github.com/users/dick-ey","html_url":"https://github.com/dick-ey","followers_url":"https://api.github.com/users/dick-ey/followers","following_url":"https://api.github.com/users/dick-ey/following{/other_user}","gists_url":"https://api.github.com/users/dick-ey/gists{/gist_id}","starred_url":"https://api.github.com/users/dick-ey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dick-ey/subscriptions","organizations_url":"https://api.github.com/users/dick-ey/orgs","repos_url":"https://api.github.com/users/dick-ey/repos","events_url":"https://api.github.com/users/dick-ey/events{/privacy}","received_events_url":"https://api.github.com/users/dick-ey/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T01:45:59Z","updated_at":"2015-03-19T01:45:59Z","body":"Sure thing. dick.ey@icloud.com \n\n\n> On Mar 18, 2015, at 18:11, andrewmok <notifications@github.com> wrote:\n> \n> I have an bit of code that could help with the color code, but I won't be able to get to it until the tomorrow. Do you have a personal email or do u prefer to talk like this?\n> \n> Sent from my iPhone\n> \n> > On Mar 18, 2015, at 1:10 PM, dick-ey <notifications@github.com> wrote:\n> > \n> > I have run into the issue with the time being behind. Sometimes it's up to an hour behind. \n> > \n> > I think that color is a property of the object constructor for the canvas so I made a global var called colors as an array and then set the constructor property color to be a random element although they all just show up black at the moment so we're on the right track. \n> > \n> > That's all I've got atm. \n> > \n> > \n> > \n> > \n> > > On Mar 17, 2015, at 21:11, andrewmok <notifications@github.com> wrote:\n> > > \n> > > 1. Do you mean like this?\n> > > \n> > > container {\n> > > -webkit-transform: scale(.8);\n> > > } \n> > > \n> > > because this:\n> > > \n> > > body {\n> > > //background-color: #202020;\n> > > margin: 0;\n> > > color: white;\n> > > font-family: 'Ubuntu', sans-serif;\n> > > -webkit-transform: scale(.8);\n> > > }\n> > > \n> > > Doesn�t seem to do the trick. It makes it smaller but it�s not in the right position.\n> > > \n> > > \n> > > 2. I think I need to edit line 28 of the HTML but i don�t know what to touch exactly. I tried changing the 1000 to 500. The only reason I�m trying to do this is because sometimes I notice my clock a few minutes behind when I check it. Is that a problem for you?\n> > > \n> > > 3. That did the trick. Finally the time will show before my phone falls back asleep.\n> > > \n> > > 4. I have an idea. Buuuut I�m not smart enough to figure it out. What I�m thinking is to open Tetris.js and make an array with a bunch of colors (ex �Red� �Orange� �Green� �Yellow�) instead of a random generator. Then, we edit line 14 (or 54?) so it randomly selects a color from the array. Does this sound like it�ll work?\n> > > \n> > > Can�t wait to fix this with you! Thanks\n> > > \n> > > \n> > > On Mar 16, 2015, at 10:31 PM, dick-ey <notifications@github.com> wrote:\n> > > \n> > > > So far I've only figured out two of those issues, although I haven't had a lot of time to work on it.\n> > > > \n> > > > 1. you can adjust the size of the entire thing by using Css. Under the container property add this: -webkit-transform: scale(.8); for 80% of full size.\n> > > > \n> > > > 2. Not sure, but I can probably find this pretty easily.\n> > > > \n> > > > 3. The blocks drop in terms of the number. Each number is a 25ms animation which can be adjusted on line 47 or 48 of Tetris.js as opposed to 37. (I don't think I changed any of this from the original, but I can look into it.) \n> > > > \n> > > > 4. Not sure, and could potentially take a while to find this part of the code, but I like the idea!\n> > > > \n> > > > MD\n> > > > \n> > > > > On Mar 16, 2015, at 23:13, andrewmok <notifications@github.com> wrote:\n> > > > > \n> > > > > Sorry, I didn�t mean it like that. I already did talk to the original dev (Long Ho, btw) because I�m trying to:\n> > > > > 1. Reposition the clock to fit for the iPhone 5s\n> > > > > 2. Have the clock refresh more often\n> > > > > 3. Make the blocks drop faster\n> > > > > 4. Have each falling block a different color.\n> > > > > \n> > > > > I�m looking back and forth between you and the original code, but I�m getting a little lost in yours. I�ve just learned basic javascript and cannot understand most of your code. It would be great if you could help me out though!\n> > > > > \n> > > > > P.S.https://github.com/longlho/tetris-clock/blob/gh-pages/js/Tetris.js#L37 This is how to make the blocks fall faster in the original code, but I can�t find this in yours. Maybe you can?\n> > > > > \n> > > > > \n> > > \n> > > —\n> > > Reply to this email directly or view it on GitHub.\n> > > \n> > —\n> > Reply to this email directly or view it on GitHub.\n> > \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}