{"author_name":"GBGames","cat":"LD #24","comments":[],"epoch":1345946220,"likes":0,"metadata":{"p_key":"52907","p_author":"GBGames","p_authorkey":"251","p_urlkey":"88609","p_title":"Deadly Boulders","p_cat":"LD #24","p_event":"LD24","p_time":"1345946220","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"251","us_name":"GBGames","us_username":"gbgames","event_start":"1345766400","event_key":"12","event_name":"LD24"},"text":"<p>The player can control the tank, including firing bullets. I&#8217;ve also added boulders.<\/p>\n <p>They are randomly placed in the environment, and when the player passes them, they are removed from the game. If there are no boulders left, more are generated. <\/p>\n <p>Collision between the player and a boulder is deadly, as demonstrated by the randomly controlled tank in this video:<\/p>\n <p><iframe width=\"420\" height=\"315\" src=\"http:\/\/www.youtube.com\/embed\/b4KuyBsiBig\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n <p>I had some difficulty with handling bullet collisions with the boulders. Right now, they shoot right through them. I want them to disappear. Boulders are not affected by bullets. I have plans for boulders interacting with enemies and explosives, though. If an enemy hits a boulder, I think it would make for an interesting mechanic if the boulder starts to move towards the player. Explosives should be the only thing that destroys boulders. <\/p>\n <p>My current plan:<br \/>\n <s>&#8211; get the player\u2019s character in the game<\/s><br \/>\n <s>&#8211; make it controllable<\/s><br \/>\n <s>&#8211; add obstacles (most likely boulders)<\/s><br \/>\n <s>&#8211; make collisions between the player and obstacles deadly<\/s><br \/>\n <b>&#8211; make collisions between bullets and boulders result in bullets disappearing<\/b><br \/>\n &#8211; add an enemy<br \/>\n &#8211; create a wave of enemies<br \/>\n &#8211; create a way to modify the wave of enemies so each enemy evolves in some way<\/p>\n <p>One thing I was hoping to use was my component system, but so far I&#8217;ve represented bullets and boulders as positions, along with constants representing their collision radius. It&#8217;s working well enough. <\/p>\n <p>Once I get bullets working right (I&#8217;ll need that collision detection working for the enemies anyway), I can finally start working on the first enemy so I can get around to doing some evolving. <\/p>","time":"August 25th, 2012 8:57 pm","title":"Deadly Boulders"}