HN Companion◀︎ back | HN Companion home | new | best | ask | show | jobs
Show HN: A little physical breakout clone (brontosaurusrex.github.io)
15 points by brontosaurusrex 4 days ago | 13 comments
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.



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.


Thanks for feedback.

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

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.

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).

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!


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.

The new beta brings some ornamental debris and slightly worse fps: https://brontosaurusrex.github.io/physical/v8beta/

(f to show fps, shift+f to reset lowest fps)


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

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

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

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.


Kinda fun