{"author_name":"Javabot","cat":"LD #35","comments":[{"author_name":"Snowdrama","time":"March 26, 2016 2:49 pm","epoch":1459021740,"text":"I like this, It took me a bit to realize you were testing to make sure it was NOT colliding and then flipping the response. Normally I would do it backwards, Test each point to see if it was inside the box, so it was twice as long.","spam":"N"}],"epoch":1459017540,"likes":2,"metadata":{"p_key":"9050","p_author":"Javabot","p_authorkey":"43281","p_urlkey":"44264","p_title":"The most useful function","p_cat":"LD #35","p_event":"LD35","p_time":"1459017540","p_likes":"2","p_comments":"1","p_status":"UPD5","us_key":"43281","us_name":"Javabot","us_username":"javabot","event_start":"1460678400","event_key":"33","event_name":"LD35"},"text":"<p>I find that this is my most used, most useful function: the simple box collision.<\/p>\n <p>function isCol(thex,they, othx, othy, thel, theh, othl, othh){<br \/>\n return !(they+theh &lt;= othy || they &gt;= othy+othh || thex+thel &lt;= othx || thex &gt;= othx+othl);<br \/>\n }<\/p>","time":"March 26th, 2016 1:39 pm","title":"The most useful function"}