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

Earlier comments
vessenes3 replies#
This is super fun, and it works on mobile. Thanks for making it!

If you want some ideas for multiplayer, see if you can dig up “BattleTris” - it was a brown university cs student game that allowed networked Tetris play in the 1990s. I could be wrong but I think Bryan Cantrill was one of the people who made it. Anyway, my memory is that it had a lot of fun ways to mess with the opposing player, and you might find some good ideas in it.

mh-2 replies#
I don't recall ever playing BattleTris, but Tetrinet is one that got passed around IRC a lot in the 90s. It was a blast. Seconding the notion that their gameplay is a good source of inspiration.

https://en.wikipedia.org/wiki/TetriNET

teach#
TetriNET was fantastic. My students played SO much of it in class after they finished their assignments for the day. We even made/used custom skins to improve visibility and thus gameplay
vessenes#
Battletris was x11 on sparc I believe.
lecarore#
Yeah,the side by side "collaborative" multiplayer where you can mess with others was fun, but I decided making it fun in single player was a better first step, and multiplayer could come after. I can also more easily test and iterate on single player games. Finally, no need for a backend server if the game is just a static html file :)
bcantrill1 reply#
Yes -- great memory! Amazingly, Adam and I talked about BattleTris on Oxide and Friends just two weeks ago[0] -- and specifically how BattleTris almost prevented ZFS from coming into being. (!)

[0] https://www.youtube.com/watch?v=VbLz79trgz8#t=14m12s

vessenes#
Love this. I'll look forward to reminiscing!
jader2011 reply#
This is fun!

A quick note that I think I found a way to cheat that you may (or may not) want to patch (though I’ve still enjoyed my plays while “cheating”).
I’m on iPhone, and can simply lift my finger to pause the game. Putting my finger back down immediately transports the puck to where my finger lands.
So if you just keep tapping slowly where you want the puck to hit a ball or catch coins, you can easily catch most coins and still hit the ball(s), and play the game in slow motion.
I was pretty quickly able to clear a run while collecting most coins, and it became very easy to make it through without missing a ball.
I guess one fix would be to not immediately transport, and have the puck still animate towards where your finger lands.
But still, I imagine it’d still be easy to never miss a ball, because of being able to simulate slow motion. So you may need to drop the “pause on lift” altogether, and just leave the puck where it is but keep the ball(s) and coins moving.

lecarore#
Good point, yeah, it's not hard to exploit this, but as it's a single player game, cheating just hurts you. On desktop, you can open the console and write score=100000. However, i see how the challenge feels less interesting if you have to actively avoid cheating. I think i could add a slower and slower puck move as you pause the game more and more times in a run, this way that "trick" quickly looses interest, while you still get to pause the game if you reached your stop in the metro, and won't be punished for it.
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.

lecarore5 replies#
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

Continue this thread — 5 replies

Apreche1 reply#
This is actually a good game idea. If you keep working on it and polishing it, it could be a hit.
lecarore#
Thank you. I enjoy playing it during my programming breaks, and fixing issues as they go, to the point where it often derails me from real work. All that to say, i'll keep working on it :)

Load more comments