{"author_name":"gavin5564","cat":"LD #22","comments":[],"epoch":1324005000,"likes":1,"metadata":{"p_key":"62676","p_author":"gavin5564","p_authorkey":"5689","p_urlkey":"98448","p_title":"Just pre-submitting some content.","p_cat":"LD #22","p_event":"LD22","p_time":"1324005000","p_likes":"1","p_comments":"0","p_status":"UPD5","us_key":"5689","us_name":"gavin5564","us_username":"gavin5564","event_start":"1323993600","event_key":"8","event_name":"LD22"},"text":"<p>Hey guys,<\/p>\n <p>Just making available a 2d camera class (xna 3.1 and 4.0) that I will be using for the compo, Cheers.<\/p>\n <p>Its super easy to use and has Zoom(in, out), move left,right,up,down, rotate left and right, it also returns the object position via real world co-ords not camera cords(you can get these aswell if you need) for easy collision detection.<\/p>\n <p>\/\/Create a object<br \/>\n Camera _TheCam;<\/p>\n <p>\/\/initialise it in the load method<br \/>\n _TheCam = new Camera(this.graphicsDevice, YourStartPos(vector 2));<\/p>\n <p>\/\/then draw it first in the draw method<br \/>\n camera.draw(spritebatch);<\/p>\n <p>\/\/Download Link<br \/>\n http:\/\/www.mediafire.com\/?iszra8ha1qh5hyu<\/p>\n <p>\/\/The camera in action.. Fast forward to about 45 seconds into the video<br \/>\n <iframe width=\"500\" height=\"375\" src=\"http:\/\/www.youtube.com\/embed\/shCsx8Tts1k?fs=1&#038;feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n <p>Gavin.<\/p>","time":"December 15th, 2011 10:10 pm","title":"Just pre-submitting some content."}