Show HN: A little physical breakout clone

brontosaurusrex.github.io

16 points by brontosaurusrex 5 days ago

Idea: How about a 5 minute game I can play in my browser and it's actually fun to play.

Controls: Mouse or keyboard (left/right, left alt/right alt or A/D), space and esc are pause toggle. Page up / Page Down are next or previous level (if already unlocked).

Cheats: Z toggles zapper, M toggles magnets.

Debug stuff: I, P, E keys are toggles for various stuff (E lets you change some aspects of physics engine).

Game is maybe playable on mobile devices, there is a menu on top right, and then click the circle to select type of control.

Physical engine is decoupled from refresh rate and runs at 240 Hz.

Fully vibe coded (deepseek, chatgpt), levels are human made with some amount of love.

alucardo 11 hours ago

Nice! played through the 28 levels.

About the mouse control: many times i failed because my cursor went outside the viewport and the paddle stopped moving. So i got to keep the mouse inside the game area, which is kinda annoying visually too. Even in fullscreen there are borders where the cursor can fall and die.

Another feedback: the ball bounces a bit too vertically on block corners, it seems it could bounce a bit more diagonally.

And i found the big-blocks levels a bit difficult because it was hard to send the ball at the top of the screen.

Thank you, i had fun :)

  • brontosaurusrex 1 hour ago

    Thanks for feedback. I'll see what I can do with cursor getting out of the play window, would cursor lock be a solution? (click once to lock, click twice to unlock).

    Yeah the physics, this is ~ 5th internal version already, there were more pronounced corner angles at some point, but it got unplayable.

    Big block levels; The idea is to encourage the player to find two bounce solutions, where first bounce is spinned and 2nd would be to 'correctly' translate that spin into upward speed.

tanseydavid 5 days ago

I really like the many variations from the original that you have added (the physics like spin and anti-gravity).

These surprises made it far-more-interesting to play than I expected.

thenthenthen 1 day ago

Its a bit hard to play on ios, the controls only work in the playable area, so your finger blocks the action. On iOS there is a ‘bar’ at the bottom of the screen when in landscape mode, interfering (visually) with the paddle/parallel

  • brontosaurusrex 1 day ago

    There is a triple dot menu at the top, and then click the ball and it should present with 4 different type of mobile controllers (one being tilt for example). p.s. I haven't tested the game on mobile devices much, I haven't tested iOS at all.

    • thenthenthen 23 hours ago

      iOS is a pain. Things like sensor data need to be activated in a certain order (like.. before other events etc). The tilt doenst work on iOS (you should get a dialog box that requests access).

chromadon 1 day ago

I selected tilt controls and it doesn’t respond to any motion. The “fullscreen” button doesn’t do anything resulting in a tiny game window.

It’s a shame because I love breakout!

  • brontosaurusrex 23 hours ago

    Thanks for feedback, it appears I need DeviceOrientationEvent.requestPermission() call before the game can tilt (Maybe in next version), and I can't force a true programmatic fullscreen mode using standard JavaScript code on iOS 13 and newer.

robovs 1 day ago

This is oddly satisfying! What's are the triggers for the different types of physics?

  • brontosaurusrex 1 day ago

    There is 3 types of bricks (common, magical and unbreakable), the ones with 'magical' powers will trigger different 'power-ups'.

pixel_popping 5 days ago

Website not loading (stuck on plausible.io) fyi.

  • brontosaurusrex 5 days ago

    Counter will be disabled in the near future, thanks for feedback.

    According to the plausible we got staggering 82 hits since yesterday. Roughly 50% desktop and 50% mobile, with average time on page 1 minute and 24 seconds.