{"assets":[],"author_link":"author\/william_edwards\/","author_name":"Will Edwards","cat":"LD #26","categories":["LD #26"],"comments":[],"epoch":1366445460,"event":"LD26","likes":8,"metadata":{"p_key":"78458","p_author":"Will Edwards","p_authorkey":"0","p_urlkey":"287468","p_title":"I\u2019m not in so here\u2019s some code you can adapt","p_cat":"LD #26","p_event":"LD26","p_time":"1366445460","p_likes":"8","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1366934400","event_key":"16","event_name":"LD26"},"source_url":"2013\/04\/20\/im-not-in-so-heres-some-code-you-can-adapt\/","text":"<p>My <a href=\"http:\/\/williame.github.io\/barebones.js\/\">barebones.js<\/a> webGL library now has a basic heightmap-based terrain and simple camera system:<\/p>\n<p><a href=\"http:\/\/www.ludumdare.com\/compo\/2013\/04\/20\/im-not-in-so-heres-some-code-you-can-adapt\/barebones-js_20130416-190131\/\" rel=\"attachment wp-att-225150\"><img alt=\"barebones.js_20130416-190131\" class=\"alignnone size-large wp-image-225150\" height=\"416\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/04\/barebones.js_20130416-190131-550x416.jpg\" width=\"550\"\/><\/a><\/p>\n<p>It is hopefully <a href=\"https:\/\/github.com\/williame\/barebones.js\/blob\/gh-pages\/demo_grid_terrain.js\">simple enough<\/a> and isolated enough that you can borrow it, adapt it, or learn from it without needing to adopt barebones.js.<\/p>\n<p>It does top-down and 3D views, and makes it easy to work out where the user clicked and to update the map tiles.\u00a0 Grid is optional.<\/p>\n<p>Each tile can have its own texture etc.<\/p>\n<p>So go make an RTS or something!<\/p>\n<p>Good luck!<\/p>","time":"April 20th, 2013 8:11 am","title":"I\u2019m not in so here\u2019s some code you can adapt","title_was_empty":false}