{"author_name":"unnamed1334","cat":"LD - Misc","comments":[{"author_name":"taviandir","time":"March 22, 2016 4:08 pm","epoch":1458680880,"text":"I&#8217;m planning on participating in the upcoming MiniLD#66 so this code was very interesting to look at, thank you! Good job! <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/>","spam":"N"}],"epoch":1458670020,"likes":3,"metadata":{"p_key":"9086","p_author":"unnamed1334","p_authorkey":"39851","p_urlkey":"44300","p_title":"Fog of War Script with Example","p_cat":"LD - Misc","p_event":"LD35","p_time":"1458670020","p_likes":"3","p_comments":"1","p_status":"UPD5","us_key":"39851","us_name":"unnamed1334","us_username":"unnamed1334","event_start":"1460678400","event_key":"33","event_name":"LD35"},"text":"<p>For anyone who wants to create a RTS game with some fog of war, I made a script that handles calculating and drawing fog of war.<\/p>\n <blockquote class=\"imgur-embed-pub\" lang=\"en\" data-id=\"i2Ggicx\"><p><a href=\"http:\/\/imgur.com\/i2Ggicx\">View post on imgur.com<\/a><\/p><\/blockquote>\n <p><script async src=\"\/\/s.imgur.com\/min\/embed.js\" charset=\"utf-8\"><\/script><\/p>\n <p>It tracks seen area, unseen area, unexplored area, and height. The script does not have line of sight implemented but should work identically in most cases.<\/p>\n <p>&nbsp;<\/p>\n <p>The script is not the most efficient and has some strange issues with pixels being automatically compressed but the script should give an example.<\/p>\n <p>&nbsp;<\/p>\n <p>You can download the source here:<\/p>\n <p><a href=\"https:\/\/drive.google.com\/file\/d\/0Bz235BbxwbbnekhqYUZ1Tk1saHc\/view?usp=sharing\">https:\/\/drive.google.com\/file\/d\/0Bz235BbxwbbnekhqYUZ1Tk1saHc\/view?usp=sharing<\/a><\/p>\n <p>&nbsp;<\/p>\n <p>You&#8217;re free to use or modify the script and use it however you want.<\/p>\n <p>&nbsp;<\/p>\n <p>&nbsp;<\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/minild66\/\" rel=\"tag\">#MiniLD66<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/resouce\/\" rel=\"tag\">resouce<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/unity\/\" rel=\"tag\">unity<\/a><\/p>","time":"March 22nd, 2016 1:07 pm","title":"Fog of War Script with Example"}