From f3a6df06b04852646593cfe6903d1869d77340d4 Mon Sep 17 00:00:00 2001 From: Lachlan Date: Wed, 27 May 2015 18:56:12 +1000 Subject: [PATCH] Death timer working (black hearts). Time for weeds and some almost expired beef schnitzel, it was real cheap but expired today. --- playable/Assets/Scenes/Level1.unity | Bin 333628 -> 339036 bytes playable/Assets/Scripts/playerController.cs | 77 +++++++++++++------- 2 files changed, 51 insertions(+), 26 deletions(-) diff --git a/playable/Assets/Scenes/Level1.unity b/playable/Assets/Scenes/Level1.unity index 24c42ef4a775e521638d0bcf8ff68dc5686dcb0d..417cb58962d8f94d688174d9f8715e0381dff3cd 100644 GIT binary patch delta 34024 zcmZ|Y34Bw<`tb47v_M!5dk~OR0i$eTugVe-FbG1~t877v1Oy3tSu_Dbi=swB5?teY zt1Jfe+K8xirFumpphN^MvRJv^YZaHO2=8y&oc5Xi@5{#{>9^0BXXcqXlaq8|@6KjN zlg(NgmU?TATAimDhEbQtQT{f1b?wu&=dM-(S6auHf10#EeN$PBIxo-fb-Q&_(Zt#| z->eynmJFUZW9F?!8o{GCJ=Lx0rXS5uT)SZ2f<+ad$TmMwFL&0A+zJ|_sKqVw7R*>; zR5UYw&iq-6j0~C?d*|VPg@^m4Juy6Obm6kQ(gJCLC)V#vbJaGC34B^*Qpb~6J~p1m z>NIuqc=k+M33elo&A6VJyN+R~ahY+Wrd(l(VpB!jXw0x0My`lER_}g`&uRpW`6BRZ zFiD_H{0-)+YZzYQTBeQ?EQGb^WE=^4fPT4!jhOA@rU&nryGs*srv}a!DI#3)jN|Os}Z*zvtDEv z0XcX7y8J@A50rEKF;{voN$OaNMKL!Y z|4pX@YGp11OF%D=&!tAP9CNoajH|J4QpbM}^{f@d7V@z}PYnCwg$mVL3lfPcbb zm|VaE_J1F!l?3HxF>wF)wX$044ceQYtrfz?h{Ub1QcRWEEbECr^=jv|(K~n&OJGsr z_N9(fn7^%IG-yEmKLFKn8Vp{cCvLf>Y3(E?M{LKkuhipOVFj3%cFaxcV$9k}A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q|$}vRKi=C??O62xfcN$VdOP8PywLF(^m4 z1508u;VaiHUzq!z`VzJo^J21t4+bAx7{_Gc0Ooq%C|p%{l^+a)vhYKg=>xU!ipJX) z+Ax{$J}ivM&aA|8K2-DFk9jaTkz)s93yU%3L!{$i0+a~@`- z7_GzPVFp0?v z*X^}-_zPY8)Pz$A3}Z5(8#C=!6CT+5VWAC^AFq9Z1u@x~w|0JBn8f5K*l%O*1A1Kg z{Lg0eyTAx23rDfsFVw=}pMEK{W7Qu7@!V}#7+c2I@$|7Bvwo@m`2AHZgta8*uzu+4 z|H6@8z9?v{iM}6R#B#r?aZzb8*cZU$j00E#lQZsgV&`Ieg&Nlx3txp%}8`-#eY7e7SW z3r0XWlYN*ep)SdO%!{>S26^e@tG6~S31V_dDzKa%)qG!LZp_W|sx~YAKL|!aneg8$ zUtf~I787Wkp3h;PlU46WjK7EZc`Sr2AkO$}m|wthf67$;8s--|oE*QZOh! zWjyr$nx*zL>ZrfPBA6_47&Dz!2mKx9#pH5+QR~sAK}-(%ODuVo`#+g*)rhT29lxo8 z4`Crp#(jQ#+tL&!mt+s-`dvN6mel`vX%v%%mtwhpq_4L6`LD0v;oE;(8U$tFcUTgW zh36jIu*{KCJoO-SHU~x>wO~-8isOvrh z3u1EJf2w`gJyA^FRsRn&pEovP`ubo0w$JV<0_6xBU=^4wyt{p^d#xALxX-ZwCgUz| z)9&7Qjkqf?o0g?qS-bi_FS<7f%EDGGStHQYxS8LXp~f}FN-%_GJqaneMt7 zbxXcDl{va(aHGs-W%kpV+3m~DHqR=mU-o{xEJug31H-c_8k9}GIm=@$JFqItX(>Cj zJu6bXZ19dOSG}_FA7mAcEL+_)yS!V;%puvfvhhQ+t(j%(9NE^|Wy?lq`?{7bSe~8i X{+~{-XLtC|p+ni1maRLT9lQ4bN~ 0) - { - deathTimer -=Time.deltaTime; - if (!droppedCandy){ - Instantiate (newCandy, transform.position + Vector3.up, transform.rotation); - droppedCandy = true; + if (health <= 0|| dead ==true) { + dead = true; + if (dead == true){ + heartColor = false; + heartBlack = true; + heartTimer += Time.deltaTime; + if (heartTimer >=1.5f){ + health = 1; + } + if (heartTimer >=2.5f){ + health = 2; + } } - transform.position = new Vector3 (0,-50,0); - //gameObject.active = false; - - if(deathTimer <=0) - { - //gameObject.active = true; - - - Vector3 spawnPos = new Vector3 (Random.Range (-20.0f, 20.0f), 15.0f, 0); //picks random position - health = 3; //resets life - transform.position = spawnPos; //changes position - rigidbody2D.velocity = Vector2.zero; - deathTimer = deathTimer + 3.02f; - droppedCandy = false; - - } - }//end if - }//end death + if (deathTimer > 0) { + deathTimer -= Time.deltaTime; + if (!droppedCandy) { + Instantiate (newCandy, transform.position + Vector3.up, transform.rotation); + droppedCandy = true; + } + transform.position = new Vector3 (0, -50, 0); + if (deathTimer <= 0) { + Vector3 spawnPos = new Vector3 (Random.Range (-20.0f, 20.0f), 15.0f, 0); //picks random position + health = 3; //resets life + + transform.position = spawnPos; //changes position + rigidbody2D.velocity = Vector2.zero; + deathTimer = deathTimer + 3.02f; + heartTimer = heartTimer - 3.00f; + droppedCandy = false; + heartBlack = false; + dead = false; + heartColor = true; + } + }//end if + + + /*else if (hearts <= 0) { + dead = true; + }*/ + + }//end death + } private void applyPlayerDirection(float moveHorizontal) {