{"action":"created","issue":{"url":"https://api.github.com/repos/lolzvid/undertale_techdemo/issues/1","labels_url":"https://api.github.com/repos/lolzvid/undertale_techdemo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lolzvid/undertale_techdemo/issues/1/comments","events_url":"https://api.github.com/repos/lolzvid/undertale_techdemo/issues/1/events","html_url":"https://github.com/lolzvid/undertale_techdemo/pull/1","id":119311621,"number":1,"title":"Refactor rendering into a render() function","user":{"login":"hlixed","id":12309977,"avatar_url":"https://avatars.githubusercontent.com/u/12309977?v=3","gravatar_id":"","url":"https://api.github.com/users/hlixed","html_url":"https://github.com/hlixed","followers_url":"https://api.github.com/users/hlixed/followers","following_url":"https://api.github.com/users/hlixed/following{/other_user}","gists_url":"https://api.github.com/users/hlixed/gists{/gist_id}","starred_url":"https://api.github.com/users/hlixed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlixed/subscriptions","organizations_url":"https://api.github.com/users/hlixed/orgs","repos_url":"https://api.github.com/users/hlixed/repos","events_url":"https://api.github.com/users/hlixed/events{/privacy}","received_events_url":"https://api.github.com/users/hlixed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-28T18:26:35Z","updated_at":"2015-11-29T15:10:46Z","closed_at":"2015-11-29T12:38:52Z","pull_request":{"url":"https://api.github.com/repos/lolzvid/undertale_techdemo/pulls/1","html_url":"https://github.com/lolzvid/undertale_techdemo/pull/1","diff_url":"https://github.com/lolzvid/undertale_techdemo/pull/1.diff","patch_url":"https://github.com/lolzvid/undertale_techdemo/pull/1.patch"},"body":"Howdy! I'm hlixed. You're new to GAME PROGRAMMING, aren'tcha? Golly, you must be so confused. Someone ought to teach you how things work around here! I guess little old me will have to do. ;)\r\n\r\nSee that text? That's your CODE, the very logic that governs your demo! But it's a bit inefficient. Four copies of the drawing code is a bit much, don't you think? That might even result in LAG! Down here, we eliminate LAG through... little white... \"code refactorings!\"\r\n\r\nInstead of having sf2d_start_frame, sf2d_draw_texture, and  sf2d_end_frame () four times, we can move that into a render function to only do it once! I know the concept might seem like it won't change, but little old me already took care of that! I made a new VARIABLE named curr_tex, and instead of calling all those big scary functions so many times, render() will only do it once. \r\n\r\nGolly, isn't that convenient! Well, that's just how we do things here in GAME PROGRAMMING. ;)\r\n"},"comment":{"url":"https://api.github.com/repos/lolzvid/undertale_techdemo/issues/comments/160421691","html_url":"https://github.com/lolzvid/undertale_techdemo/pull/1#issuecomment-160421691","issue_url":"https://api.github.com/repos/lolzvid/undertale_techdemo/issues/1","id":160421691,"user":{"login":"lolzvid","id":12992355,"avatar_url":"https://avatars.githubusercontent.com/u/12992355?v=3","gravatar_id":"","url":"https://api.github.com/users/lolzvid","html_url":"https://github.com/lolzvid","followers_url":"https://api.github.com/users/lolzvid/followers","following_url":"https://api.github.com/users/lolzvid/following{/other_user}","gists_url":"https://api.github.com/users/lolzvid/gists{/gist_id}","starred_url":"https://api.github.com/users/lolzvid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolzvid/subscriptions","organizations_url":"https://api.github.com/users/lolzvid/orgs","repos_url":"https://api.github.com/users/lolzvid/repos","events_url":"https://api.github.com/users/lolzvid/events{/privacy}","received_events_url":"https://api.github.com/users/lolzvid/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T15:10:46Z","updated_at":"2015-11-29T15:10:46Z","body":"I was trying to use timers earlier, but it seems like that it fails to compile (even including \"time.h\"). Is it my bad usage, or is it a code environment problem?"}}