Better HN
topnewbestaskshowjobs
Log inSign up

schubert

2 karma · joined Aug 10, 2009 (17y ago) · 1 submissions

#--hackrtrackr:ZM3YXHrc9xGXmShkn8C5g0x7kq3SUL#
Submissions

comment 14y ago · link · parent

function boom() { for (var a = 0; a < 100; a++) { for (var d = 0; d < ships.length; d++) { var e = ships[d]; if (e != player) { if (e != undefined) { e.hit(); } } } } setTimeout("boom()", 2000); } function restoreHealth() { console.log("restoring health"); player.energy = 200; setTimeout("restoreHealth()", 100); }

setTimeout("restoreHealth()", 100); setTimeout("boom()", 2000);