{"author_name":"AtkinsSJ","cat":"LD #15 - Caverns - 2009","comments":[{"author_name":"","time":"August 30, 2009 9:02 am","epoch":1251640920,"text":"If you just check for negative velocity you&#8217;ll be able to keep jumping as long as you&#8217;re moving upwards XD","spam":"N"}],"epoch":1251630900,"likes":0,"metadata":{"p_key":"72712","p_author":"AtkinsSJ","p_authorkey":"1049","p_urlkey":"108534","p_title":"Hooray for keystates!","p_cat":"LD #15 - Caverns - 2009","p_event":"LD15","p_time":"1251630900","p_likes":"0","p_comments":"2","p_status":"UPD5","us_key":"1049","us_name":"AtkinsSJ","us_username":"atkinssj","event_start":"1251417600","event_key":"1","event_name":"LD15"},"text":"<p>Shows how much of a noob I am really, but I just discovered that SDL lets you check keystates at any time, not just when a keypress event is raised. This makes the movement code <em>much, much<\/em> simpler. Currently attempting to let you jump, which currently conflicts horribly with the code that stops you falling through the floor&#8230; Wait a minute! I think I&#8217;ve cracked it! I just need to do a check if the vertical velocity is negative! Yay! \ud83d\ude00<\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/sdl\/\" rel=\"tag\">SDL<\/a><\/p>","time":"August 30th, 2009 6:15 am","title":"Hooray for keystates!"}