Lurker News
Hi HN ! This is an open source project I've been working on for a while. It's actually the third breakout-like game I've built. I really like the simplicity of the concept, having just one input (the puck horizontal position) and a simple gameplay that gives a low skill floor.

My girlfriend and I played a lot of the excellent LBreakoutHD, an open source breakout game that follows the traditional formula of having multiple lives, scoring points by breaking bricks and catching the good upgrades that spawn randomly and fall down, while avoiding bad upgrades.
She liked this game because it is non-violent, and doesn't make her sick like the first person 3D games. There are some issues though, it gets boring to break the last bricks, it's a bit unfair or slow sometimes, and the run length is too long with 30 something levels to clear for a high score.
I wanted to make a clone that would be fix those issues. I first tried to introduce more strategy by making the upgrades visible from the start, instead of them appearing randomly. You'd then strategize what to break first to earn more points. That first version is playable (https://breakout-v1.lecaro.me/) but a bit too complex.
I then wanted to simplify the gameplay, but make the game multiplayer in split screen (https://breakout-v2.lecaro.me/). Instead of bonus and malus, each brick drops some coins, and you need to catch them with the puck. This worked pretty well. You can play with the keyboard (A/D and LEFT/RIGHT keys) or mouse or both. The bomb explosions will blow coins around, including the coins of other players, and if you lose your ball, then a gap opens between your screen and the guy next to you, to give him a chance to lend you his ball. You can play using your phone as a controller by scanning the QR code, but make sure everyone is on the same Wi-Fi and that the the firewalls are down.
For my last version (https://breakout.lecaro.me/) is focused on the game feel and juice. It is about breaking bricks and catching coins, like the v2, but you can now pick upgrades at the end of each level. Your score unlocks more upgrades and levels that are added to the pool for the next runs. There are currently 31 upgrades and 91 levels to unlock.
Please have a try and tell me what you think. The game should run well on Firefox, safari and chrome on mobile and pc. It is available in F-Droid and on the play store, The source code is on GitLab. All links are in the game menu.

Comments (189) 55 threads

Show all comments

Showing thread 15 of 55

whitehexagon1 reply#
Really fun, nice work. Oops, I skipped the extra life, since it wasn't too clear I only had one. The destroy last brick didnt seem to work. It said I had +1 choice for only missing 3x, but I only received the coin choice. And missed ball gave me a 'list.findLast is not a function' (brave) and didnt run at all on my bit older FF, but not your fault, I lose a site a week at the moment, and I refuse to play the never ending updates game.

Anyway, what a refreshing twist on an old fav. of mine. I dont even know what the console was called, but my cousin had this on an Atari cartridge thingy. Years later I wrote my own in a 4GL that no one will ever have heard of, but I never captured the feel of the original. I think this exceeds the original, well done!

lecarore1 reply#
Yeah, it's not clear how many lives you start with, but I'm going to guess people will quickly figure out that the game is over once the ball is lost. Destroy last brick was buggy (< sign instead of <= , silly mistake) but should work now. +1 choice means you get 4 options in the upgrades list instead of 3, but you can still only pick one thing in the list. +1 upgrade happens when you don't miss at all, by the way. Funny, my tests today crashed when I tried to use findLast, and I realized it's not as common of a function as I thought. I've just redefined it to let you play on FF LTS. I'm a grumpy Debian and FF user myself, but I have the latest Firefox because as a Web dev I need to reproduce the issues my users report.
whitehexagon1 reply#
awesome, fixed for brave thanks. I now get to see the 'run finished' page, but feels strange, I played 4 or 5 levels and then run complete, then another 4 or 5 levels, and reached smiley, but looks like you lose upgrades each time. Anyway lvl 3 ball piercing with 2 balls was started to feel like a bullet shooter with coins exploding everywhere, great fun!

I had one level completed that showed 0 out of 0 and 0 in 0, or something like that. Also an occasion where I got to pick 3 upgrades after a single level, felt like god mode or something hehe.
On my old FF(esr) it fails at ctx.fillStyle = currentLevelInfo()?.color || 'black' (game.js 148) expected expression, got '.' which is what most sites these days seem to use to crash my grumpy old browsing.
I'll give the last brick another run, thanks.

lecarore1 reply#
Ah yes, I guess the a?.b syntax is also quite new, and as a grumpy many myself, i didn't feel like adding a js preprocessor. This syntax is used 25 times, i think at that point it would be more reasonable to write my game in typescript or something else kids do these days haha. The run should complete at level 7, unless you extend it with the "+1 level" upgrade up to three time. If you stop at level 4 or 5 it means you dropped the ball, or there's a bug. And yes, once the run is over, you loose all upgrades, however some new ones are unlocked and added to the "pool", same for levels, so you'll see interesting new things in the next run. The "pick 3 upgrades" should happen when you play very well and clear the level in 30 seconds without missing any coins and without ever shooting nothing (well, then you'd get 4 upgrades actually). If the game bugs out and ends the level immediately, it will effectively consider you did all those things. I don't have telemetry, so I have no idea what could have caused this. Can you tell me the OS, browser name and browser version ? I'll give it a try on browserstack. Or maybe even better, open the dev console and see if there's some funny business happening over there
whitehexagon4 replies#
I'm glad you have no stats, especially for hours spent playing! I have a better feel for it now, and still really like it. Although it can be a bit jarring to have crazy upgrades and clear a level in 3s, only to have completed the run, and be back to 60s+ level 1. I worked out the extra levels thing you mentioned (it was probably always 7 but felt shorter because of the fast pace!) and I hit 10 levels on a few runs, but the text was wrong a couple times eg. '+1 level lvl 2 - 1 more brick replaced by a bomb'. The new coins are cute, although I also liked the spray of colour on the old ones. The repulse is fun, although I had one ball bouncing left to right a few times, before another one shifted it, but could imagine a stuck ball had it missed. 6149 my top score so far. Do those scores/stats persist between plays, otherwise I might never be able to close the browser again! Right, 'one last game' to see what wind is all about.

Continue this thread — 4 replies