{"author_name":"TFernando","cat":"LD #17 - Islands - 2010","comments":[{"author_name":"","time":"April 25, 2010 12:14 am","epoch":1272172440,"text":"Neat. I named my project Envasive temporarily, but that&#8217;s way too close to your name&#8230; OOPS!","spam":"N"}],"epoch":1272171180,"likes":0,"metadata":{"p_key":"70943","p_author":"TFernando","p_authorkey":"1164","p_urlkey":"106764","p_title":"Predator Explosion","p_cat":"LD #17 - Islands - 2010","p_event":"LD17","p_time":"1272171180","p_likes":"0","p_comments":"1","p_status":"UPD5","us_key":"1164","us_name":"TFernando","us_username":"tfernando","event_start":"1271980800","event_key":"3","event_name":"LD17"},"text":"<p>No screenshot, but I&#8217;ve got the basic movement and predator\/prey dynamic set up now in Version 0.3 of Invasive. (<a href=\"http:\/\/nightflyergames.com\/games\/LD17\/\">Available here<\/a>)<\/p>\n <p>Decided to stick with the name Glompers for the invasive species, and Kiwis for the endangered species. Starting with 5 Glompers, the Kiwis all get eaten in about a minute. <\/p>\n <p>So far I&#8217;m not doing any real pathfinding at all&#8230; The kiwis are choosing a direction randomly each frame (and getting stuck in the SE corners of each island for some reason I haven&#8217;t figured out yet), and the Glompers move in one direction until they hit an edge, at which point they change direction. I may change the Kiwis to have the same movement schema as the Glompers&#8230;<\/p>\n <p>I think I&#8217;m going to need something which the Kiwis can run into that makes them spawn. That can be a player placeable object in addition to the not-yet-implemented traps and walls. Otherwise I think the game will be over before the player has a chance to do anything.<\/p>\n <p>On the plus side, my engine seems to be handling a couple thousand kiwis pretty well! Rather than using Gilbert&#8217;s collision detection, I added a map-sized blank bitmap to my Fauna class (which holds all the animals). Since I don&#8217;t actually add that bitmap to the stage at any time, it doesn&#8217;t seem to be dragging down my rendering performance very much. When the kiwis move, they plot their location on that map as a single pixel, and when the glompers move, they check to see if they&#8217;re on a pixel that has the kiwi color. The glompers thus only have to check the entire kiwi list if they&#8217;re definately in collision with at least one kiwi. This can probably be optimized further, but it seems good enough for now.<\/p>\n <p>-TF<\/p>","time":"April 24th, 2010 11:53 pm","title":"Predator Explosion"}