{"author_name":"Cybearg","cat":"LD #26","comments":[],"epoch":1367035380,"likes":1,"metadata":{"p_key":"45677","p_author":"Cybearg","p_authorkey":"22470","p_urlkey":"81337","p_title":"pfscore1","p_cat":"LD #26","p_event":"LD26","p_time":"1367035380","p_likes":"1","p_comments":"0","p_status":"UPD5","us_key":"22470","us_name":"Cybearg","us_username":"cybearg","event_start":"1366934400","event_key":"16","event_name":"LD26"},"text":"<p>I added a life system using pfscore1. Currently it doesn&#8217;t really do much, but I&#8217;ve set up the movement so that a collision with the playfield (based on the ball, which is in the center of the player sprite and rendered in the layer below so it&#8217;s not visible) causes the playfield to turn red and the player loses one life of three.<\/p>\n <p>A bit it set to ensure that the player doesn&#8217;t continually lose lives. This means that a player could &#8220;abuse&#8221; the system by hanging on a wall to memorize the layout of a screen, but since that knowledge will only help them until they&#8217;ve gotten to the edge of the screen, I don&#8217;t consider it a problem. If the player really wants to make that sacrifice, why not?<\/p>\n <p><a href=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/04\/pfscore1.gif\"><img class=\"alignnone size-medium wp-image-234695\" alt=\"pfscore1\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/04\/pfscore1-300x197.gif\" width=\"300\" height=\"197\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/04\/pfscore1-300x197.gif 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/04\/pfscore1-550x361.gif 550w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n <p>&nbsp;<\/p>\n <p>I got around the loss of missile0 by having player 1 (the second player) be the player that is actually being controlled. This should work fine, since there will only be a single enemy on screen a a time, and it can just as well be player0 as it could have been player1, but since the enemy won&#8217;t have any attack, there&#8217;s no real cost in losing missile0. Thinking outside the box. <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>","time":"April 26th, 2013 11:03 pm","title":"pfscore1"}