{"assets":[],"author_link":"author\/pekuja\/","author_name":"pekuja","cat":"MiniLD #15","categories":["MiniLD #15"],"comments":[],"epoch":1264270140,"event":"LD15","likes":0,"metadata":{"p_key":"77239","p_author":"pekuja","p_authorkey":"0","p_urlkey":"285963","p_title":"Day 16: Shooting","p_cat":"MiniLD #15","p_event":"LD16","p_time":"1264270140","p_likes":"0","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1260489600","event_key":"2","event_name":"LD16"},"source_url":"2010\/01\/23\/day-16-shooting\/","text":"<p style=\"text-align: left\"><a href=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2010\/01\/mato-shooty2.png\"><img alt=\"mato-shooty2\" class=\"size-large wp-image-14879 aligncenter\" height=\"428\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2010\/01\/mato-shooty2-550x428.png\" width=\"550\"\/><\/a>I\u2019ve added shooting and aiming to Mato. I\u2019ve also added gamepad controls, tailored for an Xbox 360 controller. The game currently has just one weapon, similar to the chaingun in Liero, but I\u2019ll be adding more as I go on. The aiming is done with the second analog stick, while you can use the first analog stick to move left and right as well as control the direction of digging, so you can dig straight down, for example. The gun has analog control over the firing rate, with a maximum firing rate of 8 bullets a second. The clip is infinite right now, but that will change for the final version.<\/p>\n<p style=\"text-align: left\">One thing I\u2019ve noticed when writing Lua code is that it\u2019s pretty easy to write horribly bad code. I don\u2019t have to define classes, I\u2019ll just use create an ad hoc table with the necessary fields. My code is a horrible mess right now, but I am going to refactor it eventually. It\u2019s kinda nice to just make a mess of it all and write quick hacks.<\/p>\n<p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/lua\/\" rel=\"tag\">lua<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/mato\/\" rel=\"tag\">mato<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/shooting\/\" rel=\"tag\">shooting<\/a><\/p>","time":"January 23rd, 2010 6:09 pm","title":"Day 16: Shooting","title_was_empty":false}