Show HN: Bubbles, a vanilla JavaScript web game (ehmorris.com)
Hey everybody, you might remember my older game, Lander! It made a big splash on Hacker News about 2 years ago. I'm still enjoying writing games with no dependencies. I've been working on Bubbles for about 6 months and would love to see your scores.
If you like it, you can build your own levels with my builder tool: https://ehmorris.com/bubbles/builder/ and share the levels here or via Github.
77 comments
[ 4.5 ms ] story [ 158 ms ] threadOne neat thing you can do is embed an SVG favicon in your html page, which will be properly rendered at all resolutions on all major browsers - plus it saves another sub-resource request. Here is the favicon at https://simpatico.io/svg
This can help you make your already clean source even cleaner and delete some subresources. Cheers![1] https://github.com/ehmorris/bubbles/
And the getter/setter system: I dont see a reason for over `{getHeight: () => height}` over `return {height, weight}` ?
Since canvasManager is mostly just data properties, you could also destructure those inline to funciton parameters, ie., function drawX({ctx, height, width, scale}) etc.
Some rougelike mechanics would also make it possible to naturally level the gameplay -- ie., the more failures a person has the more metaprogression they get, so worse players unlock a natural easy mode.
ie., if I hold a,s,d,f,g then I get 5 mirrors of my touchpad, and holding eg., a/g places two at the edges?
I was playing with a magic touch mouse, and have decided it was not designed for that interaction. Assuming designed for mobile and us desktop users are just square pegging a round hole.
Doesn't work for me at all on both Firefox and Chrome (latest versions for both) on MacOS using the touch pad. I can't get past that screen on my laptop. Had to open it up on my phone to see what comes after.
Otherwise it's a fun challenging game
Edit: yay, beat all levels after learning I can use slingshot multiple times
https://ehmorris.com/bubbles
Tapped 8 times: 2 hits, 6 misses Launched 444 slingshots Detonated 55 blasts
It took me a few times to realize that I could do bombs or slingshots by clicking in empty space. The tutorial makes it look like you have to click on a bubble. Maybe the black circle in the tutorial should be removed?
I also got a little confused in the beginning about par vs lives. At first it seemed like par was the only important thing, since that's what pops up after the level. The lives icon at the bottom wasn't particularly noticeable to me. I just kind of figured there were only N levels, until I finally realized that dropping bubbles was making me lose lives.
Edit: Oh, and you can multi-touch and set off multiple slingshots at once! Secrets secrets...
Easing into the difficulty slower sounds like a good plan!
Or maybe the author is going for the flappy bird effect. Make it punishingly hard, so players celebrate hitting level 4. But I didn’t have the same intant addiction as I did with Flappy Bird. Probably due to more complex gameplay and each level having 3 ways to play it.
I had a friend suggest a “course preview” during the countdown screen so that users can anticipate the bubbles without memorizing them.
touchscreen users have huge edge over desktop for sure.
Another fun game from the same author: https://news.ycombinator.com/item?id=35032506