<!doctype html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"><metahttp-equiv="X-UA-Compatible"content="ie=edge"><title>Breakout 71</title><metaname="description"content="A breakout game with roguelite mechanics. Break bricks, catch coins, pick upgrades, repeat. Play for free on mobile and desktop."><style>*{box-sizing:border-box;font-family:CourierNew,Courier,LucidaSansTypewriter,LucidaTypewriter,monospace}body{width:100vw;height:100vh;height:calc(var(--vh,1vh)*100);color:#fff;background-size:120px120px;background-color:var(--background1);--background1:#030c23;--background2:#03112a;margin:0;padding:0;overflow:hidden}#game{height:100vh;height:calc(var(--vh,1vh)*100);width:100vw;position:absolute;top:0;left:0}#score,#menu{z-index:1;appearance:none;font:inherit;color:#fff;background:00;border:none;min-width:40px;min-height:40px;padding:10px;line-height:20px;position:absolute;top:0}#score:hover,#score:focus,#menu:hover,#menu:focus{cursor:pointer;background:#0000004d}#score{right:0}#menu{left:0}@mediascreenand(orientation:portrait){#menu>span{display:none}}.popup{z-index:10;background:#000000e6;display:flex;position:fixed;inset:0;overflow:auto}.popup>div{transform-origin:50%;flex-direction:column;align-items:stretch;width:100%;max-width:450px;margin:auto;padding:20px10px;display:flex}.popup.actionsAsGrid>div{max-width:800px;§ion{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));display:grid}}.popup>div>*{margin:0;padding:0}.popup>div>h2,.popup>div>p{margin-bottom:20px}.popup>div>section{flex-direction:column;align-items:stretch;margin-top:20px;display:flex;&button{font:inherit;color:#fff;cursor:pointer;text-align:left;background:#000c;border:1pxsolid#fff;gap:10px;margin-top:-1px;padding:10px;display:flex;&:not([disabled]):hover,&:not([disabled]):focus{z-index:1;border-color:#f1d33b;position:relative}&[disabled]{opacity:.5;filter:saturate(0);pointer-events:none}&>div{flex-grow:1}&>div>em{opacity:.8;display:block}&.grey-out-unless-hovered{&:not(:hover){opacity:.6;&img{filter:saturate(0)}}}}}.popupbutton.close-modale{color:#fff;cursor:pointer;background:00;border:none;width:60px;height:60px;position:absolute;top:0;right:0;overflow:hidden;&:before{content:"+";font-size:80px;display:inline-block;position:absolute;top:34px;left:26px;transform:translate(-50%,-50%)rotate(45deg)}&:hover{background:#000;font-weight:700}}.popup.textAfterButtons{color:#ffffff94}.popupa[href]{color:inherit}.popupa[href]:hover,.popupa[href]:focus{color:#fff}.progress{color:#fff;text-align:center;background:#1c1c2f;border-radius:5px;padding:5px10px;display:block;position:relative;overflow:hidden;box-shadow:inset3px3px5px#00000080}.progress>.progress_bar_part{transform-origin:00;z-index:1;background:#4049ca;animation:1sease-outbothgrow;display:block;position:absolute;inset:0;box-shadow:inset3px3px5px#00000080}.progress>span{z-index:2;display:block;position:relative}@keyframesgrow{0%{transform:scaleX(0)}}#level-recording-container{text-align:center;max-width:400px;margin:40px}#level-recording-containerimg,#level-recording-containervideo{max-width:100%;height:auto}#level-recording-containera{display:block}#level-recording-containeravideo{border-radius:10px;outline:1pxsolid#fff;margin:20pxauto;display:block;box-shadow:2px2px5px#000}@media(width>=1200px){#level-recording-container{max-width:calc(50vw-305px);position:absolute;top:40px;left:40px}}.histogram{align-items:stretch;gap:10px;margin:10px040px;display:flex}.histogram>span{flex-direction:column;flex-grow:1;justify-content:flex-end;width:10px;display:flex;position:relative}.histogram>span.active>span{background:#4049ca}.histogram>span>span{background:#1c1c2f;border-radius:5px;width:100%;min-height:1px;display:block}.histogram>span>span>span{pointer-events:none;white-space:nowrap;transform-origin:0100%;text-align:center;font-size:13px;display:block;position:absolute;bottom:-20px;left:50%;transform:translate(-50%)}.histogram>span:not(:hove
With this perk, you can survive dropping the ball once. A heart in the top right corner will remind you of how many extra lives you have. `},{requires:"",threshold:0,id:"streak_shots",giftable:!0,name:"Single puck hit streak",max:1,help:_=>"More coins if you break many bricks at once",fullHelp:`Every time you break a brick, your combo (number of coins per bricks) increases by one. However, as soon as the ball touches your puck,
This can stack with other combo related perks, the combo will rise faster but reset more easily as any of the conditions is enough to reset it. `},{requires:"",threshold:0,id:"base_combo",giftable:!0,name:"+3 base combo",max:7,help:_=>`Every brick drops at least ${1+3*_} coins.`,fullHelp:`Your combo (number of coins per bricks) normally starts at 1 at the beginning of the level, and resets to one when you bounce around without hitting anything.
With this perk, the combo starts 3 points higher, so you'll always get at least 4 coins per brick. Whenever your combo reset, it will go back to 4 and not 1.
Your ball will glitter a bit to indicate that its combo is higher than one.`},{requires:"",threshold:0,giftable:!1,id:"slow_down",name:"Slower ball",max:2,help:_=>`Ball moves ${_>1?"even":""} more slowly.`,fullHelp:`The ball starts relatively slow, but every level of your run it will start a bit faster, and it will also accelerate if you spend a lot of time in one level. This perk makes it
more manageable. You can get it at the start every time by enabling kid mode in the menu.`},{requires:"",threshold:0,giftable:!1,id:"bigger_puck",name:"Bigger puck",max:2,help:_=>`Easily catch ${_>1?"even":""} more coins.`,fullHelp:`A bigger puck makes it easier to never miss the ball and to catch more coins, and also to precisely angle the bounces (the ball's angle only depends on where it hits the puck).
However, a large puck is harder to use around the sides of the level, and will make it sometimes unavoidable to miss (not hit anything) which comes with downsides. `},{requires:"",threshold:0,giftable:!1,id:"viscosity",name:"Viscosity",max:3,help:_=>`${_>1?"Even slower":"Slower"} coins fall.`,fullHelp:`Coins normally accelerate with gravity and explosions to pretty high speeds. This perk constantly makes them slow down, as if they were in some sort of viscous liquid.
This makes catching them easier, and combines nicely with perks that influence the coin's movement. `},{requires:"",threshold:0,id:"left_is_lava",giftable:!0,name:"Avoid left side",max:1,help:_=>"More coins if you don't touch the left side.",fullHelp:`Whenever you break a brick, your combo will increase by one, so you'll get one more coin from all the next bricks you break.
of the reset conditions are met.`},{requires:"",threshold:0,id:"right_is_lava",giftable:!0,name:"Avoid right side",max:1,help:_=>"More coins if you don't touch the right side.",fullHelp:`Whenever you break a brick, your combo will increase by one, so you'll get one more coin from all the next bricks you break.
of the reset conditions are met.`},{requires:"",threshold:0,id:"top_is_lava",giftable:!0,name:"Sky is the limit",max:1,help:_=>"More coins if you don't touch the top.",fullHelp:`Whenever you break a brick, your combo will increase by one. However, your combo will reset as soon as your ball hit the top of the screen.
The effect stacks with other combo perks.`},{requires:"",threshold:0,giftable:!1,id:"skip_last",name:"Easy Cleanup",max:7,help:_=>`The last ${_>1?_+" bricks":"brick"} left will self-destruct.`,fullHelp:`You need to break all bricks to go to the next level. However, it can be hard to get the last ones.
So if you find it difficult to break the last bricks, getting this perk a few time can help.`},{requires:"",threshold:500,id:"telekinesis",giftable:!0,name:"Puck controls ball",max:2,help:_=>1==_?"Control the ball's trajectory.":"Stronger effect on the ball",fullHelp:`Right after the ball hits your puck, you'll be able to direct it left and right by moving your puck.
The effect stops when the ball hits a brick and resets the next time it touches the puck. It also does nothing when the ball is going downward after bouncing at the top. `},{requires:"",threshold:1e3,giftable:!1,id:"coin_magnet",name:"Coins magnet",max:3,help:_=>1==_?"Puck attracts coins.":"Stronger effect on the coins",fullHelp:`Directs the coins to the puck. The effect is stronger if the coin is close to it already. Catching 90% or 100% of coins bring special bonuses in the game.
Another way to catch more coins is to hit bricks from the bottom. The ball's speed and direction impacts the spawned coin's velocity. `},{requires:"",threshold:1500,id:"multiball",giftable:!0,name:"+1 ball",max:6,help:_=>`Start every levels with ${_+1} balls.`,fullHelp:`As soon as you drop the ball in Breakout 71, you loose. With this perk, you get two balls, and so you can afford to lose one.
some further perks available, and of course clears the level faster.`},{requires:"",threshold:2e3,giftable:!1,id:"smaller_puck",name:"Smaller puck",max:2,help:_=>1==_?"Also gives +5 base combo.":"Even smaller puck and higher base combo",fullHelp:`This makes the puck smaller, which in theory makes some corner shots easier, but really just raises the difficulty.
That's why you also get a nice bonus of +5 coins per brick for all bricks you'll break after picking this. `},{requires:"",threshold:3e3,id:"pierce",giftable:!0,name:"Piercing",max:3,help:_=>`Ball pierces ${3*_} bricks after a puck bounce.`,fullHelp:`The ball normally bounces as soon as it touches something. With this perk, it will continue its trajectory for up to 3 bricks broken.
After that, it will bounce on the 4th brick, and you'll need to touch the puck to reset the counter. This combines particularly well with Sapper. `},{requires:"",threshold:4e3,id:"picky_eater",giftable:!0,name:"Picky eater",max:1,help:_=>"More coins if you break bricks color by color.",fullHelp:`Whenever you break a brick the same color as your ball, your combo increases by one.
`},{requires:"",threshold:5e3,giftable:!1,id:"metamorphosis",name:"Stain",max:1,help:_=>"Coins color the bricks they touch.",fullHelp:`With this perk, coins will be of the color of the brick they come from, and will color the first brick they touch in the same color. Coins spawn with the speed
`},{requires:"",threshold:6e3,id:"compound_interest",giftable:!0,name:"Compound interest",max:1,help:()=>"+1 combo per brick broken, resets on coin lost",fullHelp:`Your combo will grow by one every time you break a brick, spawning more and more coin with every brick you break. Be sure however to catch every one of those coins
with your puck, as any lost coin will decrease your combo by one point. One your combo is above the minimum, the bottom of the play area will
have a red line to remind you that coins should not go there. This perk combines with other combo perks, the combo will rise faster but reset more easily.
`},{requires:"",threshold:7e3,id:"hot_start",giftable:!0,name:"Hot start",max:3,help:_=>`Start at combo ${15*_+1}, -${_} combo per second`,fullHelp:`At the start of every level, your combo will start at +15 points, but then every second it will be decreased by one. This means the first 15 seconds in a level will spawn
many more coins than the following ones, and you should make sure that you clear the level quickly. The effect stacks with other combo related perks, so you might be able to raise
the combo after the 15s timeout, but it will keep ticking down. Every time you take the perk again, the effect will be more dramatic.
`},{requires:"",threshold:9e3,id:"sapper",giftable:!0,name:"Sapper",max:7,help:_=>1===_?"The first brick broken becomes a bomb.":`The first ${_} bricks broken become bombs.`,fullHelp:`Instead of just disappearing, the first brick you break will be replaced by a bomb brick. Bouncing the ball on the puck re-arms the effect. "Piercing" will instantly
detonate the bomb that was just placed. Leveling-up this perk will allow you to place more bombs. Remember that bombs impact the velocity of nearby coins, so too many explosions
could make it hard to catch the fruits of your hard work.
`},{requires:"",threshold:11e3,id:"bigger_explosions",name:"Kaboom",max:1,giftable:!1,help:_=>"Bigger explosions",fullHelp:"The default explosion clears a 3x3 square, with this it becomes a 5x5 square, and the blowback on the coins is also significantly stronger. "},{requires:"",threshold:13e3,giftable:!1,id:"extra_levels",name:"+1 level",max:3,help:_=>`Play ${_+7} levels instead of 7`,fullHelp:`The default run can last a max of 7 levels, after which the game is over and whatever score you reached is your run score.
Each level of this perk lets you go one level higher. The last levels are often the ones where you make the most score, so the difference can be dramatic.`},{requires:"",threshold:15e3,giftable:!1,id:"pierce_color",name:"Color pierce",max:1,help:_=>"Balls pierce bricks of their color.",fullHelp:`Whenever a ball hits a brick of the same color, it will just go through unimpeded.
Once it reaches a brick of a different color, it will break it, take its color and bounce.`},{requires:"",threshold:18e3,giftable:!1,id:"soft_reset",name:"Soft reset",max:2,help:_=>`Combo grows ${_>1?"even":""} slower but resets less.`,fullHelp:"The combo normally climbs every time you break a brick. This will sometimes cancel that climb, but also limit the impact of a combo reset."},{requires:"multiball",threshold:21e3,giftable:!1,id:"ball_repulse_ball",name:"Personal space",max:3,help:_=>1===_?"Balls repulse balls.":"Stronger repulsion force",fullHelp:`Balls that are less than half a screen width away will start repulsing each other. The repulsion force is stronger if they are close to each other.
Particles will jet out to symbolize this force being applied. This perk is only offered if you have more than one ball already.`},{requires:"multiball",threshold:25e3,giftable:!1,id:"ball_attract_ball",name:"Gravity",max:3,help:_=>1===_?"Balls attract balls.":"Stronger attraction force",fullHelp:`Balls that are more than half a screen width away will start attracting each other. The attraction force is stronger when they are furthest away from each other.
Rainbow particles will fly to symbolize the attraction force. This perk is only offered if you have more than one ball already.`},{requires:"",threshold:3e4,giftable:!1,id:"puck_repulse_ball",name:"Soft landing",max:2,help:_=>1===_?"Puck repulses balls.":"Stronger repulsion force",fullHelp:"When a ball gets close to the puck, it will start slowing down, and even potentially bouncing without touching the puck."},{requires:"",threshold:35e3,giftable:!1,id:"wind",name:"Wind",max:3,help:_=>1===_?"Puck position creates wind.":"Stronger wind force",fullHelp:`The wind depends on where your puck is, if it's in the center of the screen nothing happens, if it's on the left it will blow leftwise, if it's on the right of the screen
then it will blow rightwise. The wind affects both the balls and coins.`},{requires:"",threshold:4e4,giftable:!1,id:"sturdy_bricks",name:"Sturdy bricks",max:4,help:_=>1===_?"Bricks sometimes resist hits but drop more coins.":"Bricks resist more and drop more coins",fullHelp:`With level one of this perk, the ball has a 20% chance to bounce harmlessly on bricks,
This +10% is not shown in the combo number. At level 4 the ball has 80% chance of bouncing and brings 40% more coins.`},{requires:"",threshold:45e3,giftable:!1,id:"respawn",name:"Respawn",max:4,help:_=>1===_?"The first brick hit of two+ will respawn.":"More bricks can respawn",fullHelp:`After breaking two or more bricks, when the ball hits the puck, the first brick will be put back in place, provided that space is free and the brick wasn't a bomb.
Some particle effect will let you know where bricks will appear. Levelling this up lets you respawn up to 4 bricks at a time, but there should always be at least one destroyed.
`},{requires:"",threshold:5e4,giftable:!1,id:"one_more_choice",name:"+1 choice until run end",max:3,help:_=>1===_?"Further level ups will offer one more option in the list.":"Even more options",fullHelp:`Every upgrade menu will have one more option.
<p>You just finished level ${G+1}/${_F()} and picked those upgrades so far : </p><p>${_p()}</p>
<divid="level-recording-container"></div>
`,s=await e_({title:"Pick an upgrade "+(e?"("+(e+1)+")":""),actions:_,text:`<p>
You caught ${_a-_g} coins ${a} out of ${_u} in ${Math.round(_5/1e3)} seconds${r}.
You missed ${_d} times ${l}.
${r&&a&&l&&"Impressive, keep it up !"||(r||a||l)&&"Well done !"||"Try to catch all coins, never miss the bricks or clear the level under 30s to gain additional choices and upgrades."}
`});let c=function(_,e){let t=_.length;for(;--t;)if(e(_[t],t,_))return _[t]}(i,_=>_.threshold<=o)?.threshold||0,n=i.find(_=>_.threshold>o);if(n){let _=n?.threshold-c;e+=`Score ${n.threshold-o} more points to reach the next unlock.`;let t=((o-c)/_).toFixed(2);l+=`
`};_+=t("Total score",_=>_.score,""),_+=t("Catch rate",_=>Math.round(_.score/_.coins_spawned*100),"%"),_+=t("Bricks broken",_=>_.bricks_broken,""),_+=t("Bricks broken per minute",_=>Math.round(_.bricks_broken/_.runTime*6e4)," bpm"),_+=t("Hit rate",_=>Math.round((1-_.misses/_.puck_bounces)*100),"%"),_+=t("Duration per level",_=>Math.round(_.runTime/1e3/_.levelsPlayed),"s"),_+=t("Level reached",_=>_.levelsPlayed,""),_+=t("Upgrades applied",_=>_.upgrades_picked,""),_+=t("Balls lost",_=>_.balls_lost,""),_+=t("Average combo",_=>Math.round(_.coins_spawned/_.bricks_broken),""),(_+=t("Max combo",_=>_.max_combo,""))&&(_=`<p>Find below your run statistics compared to your ${e.length-1} best runs.</p>`+_)}catch(_){console.warn(_)}return _}()}
</div>`,r?o.setAttribute("disabled","disabled"):o.addEventListener("click",_=>{_.preventDefault(),i(e)}),o.className=a,n.appendChild(o)}),a){let _=document.createElement("div");_.className="textAfterButtons",_.innerHTML=a,c.appendChild(_)}s.appendChild(c),c.querySelector("button:not([disabled])")?.focus()}).then(_=>(_8--,_9=null,_),()=>{_9=null,_8--})}let ee={};function et(_){if(void 0===ee[_])try{ee[_]=JSON.parse(localStorage.getItem("breakout-settings-enable-"+_))}catch(_){console.warn(_)}return ee[_]??w[_]?.default??!1}async function er(){Z(!0);let _=await e_({title:` ${_a} points at level ${G+1} / ${_F()}`,text:`
${_S?"<p>This is a test run, score is not recorded permanently</p>":""}
<p>Upgrades picked so far : </p>
<p>${_p()}</p>
`,allowClose:!0,actions:[{text:"Resume",help:"Return to your run",value:()=>{}},{text:"Restart",help:"Start a brand new run.",value:()=>{_G()}}]});_&&_()}async function ea(){Z(!0);let _=[];for(let e in w)w[e]&&_.push({disabled:w[e].disabled(),icon:et(e)?W["icon:checkmark_checked"]:W["icon:checkmark_unchecked"],text:w[e].name,help:w[e].help,value:()=>{!function(_){ee[_]=!et(_);try{localStorage.setItem("breakout-settings-enable-"+_,JSON.stringify(ee[_]))}catch(_){console.warn(_)}w[_].afterChange&&w[_].afterChange()}(e),ea()}});let e=Math.max(...f.map(_=>_.threshold)),t=await e_({title:"Breakout 71",text:`
`,allowClose:!0,actions:[{text:"Resume",help:"Return to your run",value(){}},{text:"Starting perk",help:"Try perks and levels you unlocked",value(){el()}},..._,(document.fullscreenEnabled||document.webkitFullscreenEnabled)&&(null!==document.fullscreenElement?{text:"Exit Fullscreen",icon:W["icon:exit_fullscreen"],help:"Might not work on some machines",value(){eh()}}:{icon:W["icon:fullscreen"],text:"Fullscreen",help:"Might not work on some machines",value(){eh()}}),{text:"Creative mode",help:_q()<e?"Unlocksattotalscore$"+e:"Testrunswithcustomperks",disabled:_q()<e,asyncvalue(){let_={},e;for(;e=awaite_({title:"Selectperks",text:'Selectperksbelowandpress"startrun"totrythemoutinatestrun.Scoresandstatsarenotrecorded.',actionsAsGrid:!0,actions:[...f.map(e=>({icon:e.icon,text:e.name,help:(_[e.id]||0)+"/"+e.max,value:e,className:_[e.id]?"":"grey-out-unless-hovered"})),{text:"Startrun",value:"start"}]});){if("start"===e){_G(_);break}e&&(_[e.id]=((_[e.id]||0)+1)%(e.max+1))}}},{text:"ResetGame",help:"Erasehighscoreandstatistics",asyncvalue(){awaite_({title:"Reset",actions:[{text:"Yes",value:!0},{text:"No",value:!1}],allowClose:!0})&&(localStorage.clear(),window.location.reload())}}],textAfterButtons:`
<p>
<span>Made in France by <ahref="https://lecaro.me">Renan LE CARO</a>.</span>
`});t&&t()}async function el(){let _=_q(),e=[...f.sort((_,e)=>_.threshold-e.threshold).map(({name:e,id:t,threshold:r,icon:a,fullHelp:l})=>({text:e,help:_>=r?l:`Unlocks at total score ${r}.`,disabled:_<r,value:{perk:t},icon:a})),...k.sort((_,e)=>_.threshold-e.threshold).map(e=>{let t=_>=e.threshold;return{text:e.name,help:t?`A ${e.size}x${e.size} level with ${e.bricks.filter(_=>_).length} bricks`:`Unlocks at total score ${e.threshold}.`,disabled:!t,value:{level:e.name},icon:W[e.name]}})],t=Math.round(e.filter(_=>!_.disabled).length/e.length*100),r=await e_({title:`You unlocked ${t}% of the game.`,text:`
<p> Your total score is ${_}. Below are all the upgrades and levels the games has to offer.
</p>`,actions:e,allowClose:!0});r&&(!G||await e_({title:"Restart run to try this item?",text:"You're about to start a new run with the selected unlocked item, is that really what you wanted ? ",actions:[{value:!0,text:"Restart game to test item"},{value:!1,text:"Cancel"}]}))&&(_M=r,_G())}function eo(_,e){return Math.sqrt(Math.pow(_.x-e.x,2)+Math.pow(_.y-e.y,2))}function es(){return`hsl(${2*Math.round(_5/4)%360},100%,70%)`}function ei(_,e,t,r){let a=eo(_,e),l=D/2;if(a>l)return;let o=(_.x-e.x)/a,s=(_.y-e.y)/a,i=-t*(l-a)/(1.2*l)/3*Math.min(500,_5)/500;r&&(e.vx+=o*i,e.vy+=s*i),_.vx-=o*i,_.vy-=s*i,_b.push({type:"particle",duration:100,time:_5,size:S/2,color:es(),ethereal:!0,x:_.x,y:_.y,vx:-(10*o)+_.vx+(Math.random()-.5)*2,vy:-(10*s)+_.vy+(Math.random()-.5)*2}),r&&_b.push({type:"particle",duration:100,time:_5,size:S/2,color:es(),ethereal:!0,x:e.x,y:e.y,vx:10*o+e.vx+(Math.random()-.5)*2,vy:10*s+e.vy+(Math.random()-.5)*2})}function ec(){et("record")&&r?.state==="recording"&&r?.pause()}function en(){et("record")&&r&&(r?.stop(),r=null)}function eh(){try{if(null!==document.fullscreenElement)document.exitFullscreen?document.exitFullscreen().then():document.webkitCancelFullScreen&&document.webkitCancelFullScreen();else{let _=document.documentElement;_.requestFullscreen?_.requestFullscreen().then():_.webkitRequestFullscreen&&_.webkitRequestFullscreen()}}catch(_){console.warn(_)}}_7.addEventListener("click",_=>{_.preventDefault(),er().then()}),document.getElementById("menu").addEventListener("click",_=>{_.preventDefault(),ea().then()});const em={ArrowLeft:0,ArrowRight:0,Shift:0};function eb(_,e){em[_]=e,_R=(em.ArrowRight-em.ArrowLeft)*(1+2*em.Shift)*D/50}document.addEventListener("keydown",_=>{"f"!==_.key.toLowerCase()||_.ctrlKey||_.metaKey?_.key in em&&eb(_.key,1):eh()," "===_.key&&!_8&&(H?Z(!0):q(),_.preventDefault())}),document.addEventListener("keyup",_=>{let e=document.querySelector("button:focus");if(_.key in em)eb(_.key,0);else if("ArrowDown"===_.key&&e?.nextElementSibling?.tagName==="BUTTON")e?.nextElementSibling?.focus();else if("ArrowUp"===_.key&&e?.previousElementSibling?.tagName==="BUTTON")e?.previousElementSibling?.focus();else if("Escape"===_.key&&_9)_9();else if("Escape"===_.key&&H)Z(!0);else if("m"!==_.key.toLowerCase()||_8){if("s"!==_.key.toLowerCase()||_8)return;er().then()}else ea().then();_.preventDefault()}),X(),_G(),function _(){Q();let e=performance.now();if(L=D/12*(3-A.smaller_puck+A.bigger_puck),_R&&_L($+_R),H){_5+=e-_A,_V.runTime+=e-_A,_V.max_combo=Math.max(_V.max_combo,O);let _=Math.min(4,(e-_A)/(1e3/60));_*=+!!H,_y=_y.filter(_=>!_.destroyed),_i=_i.filter(_=>!_.destroyed);let t=_m.filter(_=>_&&"black"!==_).length;if(_5>_E+1e3&&A.hot_start&&(_E=_5,function(_,e,t){let r=Math.max(0,O-(O=Math.max(T(),O-_)));r&&(_0.comboDecrease(),void 0!==e&&void 0!==t&&_b.push({type:"text",text:"-"+r,time:_5,color:"red",x:e,y:t,duration:300,size:20}))}(A.hot_start,$,j-40)),t<=A.skip_last&&!_6&&(_m.forEach((_,e)=>{_&&_I(e,_i[0],!0)}),_6++),t||_y.length){if(H||_5){let e=!1,t=Math.round(S/2);if(_y.forEach(r=>{if(r.destroyed)return;A.coin_magnet&&(r.vx+=_*($-r.x)/(100+Math.pow(r.y-j,2)+Math.pow(r.x-$,2))*A.coin_magnet*100);let a=1-(.03*A.viscosity+.005)*_;r.vy*=a,r.vx*=a,r.vx>7*C&&(r.vx=7*C),r.vx<-7*C&&(r.vx=-7*C),r.vy>7*C&&(r.vy=7*C),r.vy<-7*C&&(r.vy=-7*C),r.a+=r.sa,r.vy+=_*r.weight*.8;let l=Math.abs(r.sx)+Math.abs(r.sx),o=_P(r,t,_);if(r.y>j-t-20&&r.y<j+20+r.vy&&Math.abs(r.x-$)<t+L/2+20)r.destroyed=!0,_a+=r.points,function(_){if(!_S)try{localStorage.setItem("breakout_71_total_score",JSON.stringify(_q()+_))}catch(_){}}(r.points),_a>_o&&!_S&&(_o=_a,localStorage.setItem("breakout-3-hs",_a.toString())),et("basic")||_b.push({type:"particle",duration:100+50*Math.random(),time:_5,size:S/2,color:r.color,x:r.previousx,y:r.previousy,vx:(z.width-r.x)/100,vy:-r.y/100,ethereal:!0}),Date.now()-_s>16&&(_s=Date.now(),_0.coinCatch(r.x)),_V.score+=r.points;else r.y>z.height+t&&(r.destroyed=!0,A.compound_interest&&P(r.x,r.y));let s=function(_){let e=S/2,{x:t,y:r,previousx:a,previousy:l}=_,o=_T(a,r,e),s=_T(t,l,e),i=void 0===o&&void 0=