9 ms·
Brickception
- sva_ 3y agoIt is rather difficult with a tiling window manager
- ranting-moth 3y agoLinux/Firefox: Paddle doesn't move and the paddle popup doesn't bounce the ball. Linux/Chrome: Paddle doesn't move but the paddle popup does bounce the ball.
- Retr0id 3y agoSame Linux/Firefox experience here, and I'm on Wayland, which I have a feeling might be relevant. Edit: also GNOME 45
- remedan 3y agoTo add another data point, it works for on me on Linux/Firefox/X. So the Wayland theory might be correct.
- prmoustache 3y agoWhich makes me glad I am using wayland. I am not comfortable with the idea that one browser window could be aware of things like the position of another browser window on my desktop.
- alt227 3y agoAre you really that worried that firefox is aware of the desktop coordinates of 2 of its own windows?
- berkes 3y agoBetter even: the parent window knows the position of it's child window. So firefox only knows the one window. And that in a situation where you actively had to allow the permission for the parent to spawn the child in the first place. Sounds nothing but reasonable to me.
- dahart 3y agoFirefox knows where all its windows are, of course, but that’s not the potential issue being raised. The problem is allowing untrusted javascript access to that info. Luckily, Firefox doesn’t do that, it only allows you (JavaScript author) window information for the windows you’ve directly opened in code.
- bandrami 3y agoNot on Wayland it doesn't. Nor does it know if either window is visible, nor if it has been damaged since the last render.
- boudin 3y agoActually I don't think Firefox knows the position of the window in Wayland. I thought that coordinates of windows were considered as a compositor concern and not shared with the client.
- dahart 3y agoThe browser doesn’t communicate such things between unrelated clients, say, on different domains. The browser does allow a site to communicate with the popup that it opened, which is what this game is doing, and is not problematic.
- sdeframond 3y agoAre you aware of the window.screenX property? It does not really seem to have any restriction. Does it? https://developer.mozilla.org/en-US/docs/Web/API/Window/screenX https://developer.mozilla.org/en-US/docs/Web/API/Window/scre...
- dahart 3y agoYes, you can access window.screenX for your own window, but not for other windows. If you’re writing code for an iframe embedded into a domain that’s not yours, your code does not have access to the parent’s windows.screenX.
- mnd999 3y agoSame with sway. It also tiles the windows for you, which doesn't help.
- Prunkton 3y agoworks fine for me on: KDE 5.27.9 Qt 5.15.11 Wayland 1.22.0-1 Firefox 120.0 upper bound of the inner window is not perfect though
- humanfromearth9 3y agoso you have KDE on top of Qt on top of Wayland on top of Firefox -> are you running wayland in Firefox? if yes, you might run Firefox in Wayland instead of xorg to have some further *ception
- focusedone 3y agoLinux/Firefox: Works fine here. KDE Neon 5.27 Only issue is the low resolution screen on my old Thinkpad makes it difficult to see the entire game area. Super cool game! Plays great on higher res screens, just wanted to test on Linux.
- _lnrx 3y agoGame is working fine for me. Linux/Chrome on gnome with enabled wayland ozone.
- Jnr 3y agoLinux/Wayland/Firefox: it doesn't interact with the window since wayland probably doesn't provide location data. Linux/Wayland/Chromium: chromium crashes as soon as I click "launch game" :))
- Self-Perfection 3y agoLinux/Xorg/Firefox/KDE Paddle coordinate gets updated only when I release the paddle window.
- jstummbillig 3y agoThe amount of anxiety that imagining playing this game gives me is considerable. Very cool idea though.
- deleted 3y ago[deleted]
- burrish 3y agoVery original, can't wait to play this at work
- Karliss 3y ago> Very original It's a copy of someone else doing exactly the same thing (2 layers of breakout played by moving window) but in C++ (which the author credits) both years before the following. Although the general concept of having games creatively use windows is probably much older. I assume it showed up now because of recent trend of people rediscovering that this concept works in (some) browsers and making various non breakout variations of it of it https://news.ycombinator.com/item?id=38413660 https://news.ycombinator.com/item?id=38413660
- matsemann 3y agoJust make it Excel themed!
- traveler1 3y agoUnfortunately doesn't work on the Arc browser and presumably Orion, or any other browsers which put pop-up windows into a new tab instead.
- vladvasiliu 3y agoDoesn't work on Edge 119.0.2151.93 either. Initially it doesn't open the pop-up. Once I allow it, it opens correctly in a new window, but the smaller window doesn't move with the mouse.
- tibanne 3y agoOnly one level deep? Does time go faster in the smaller one?
- mft_ 3y agoGreat idea! (It doesn't seem to allow 'steering' of the ball by varying where it hits the bat, though?)
- bestouff 3y agoDoesn't work here (Firefox 115.2) Paddle doesn't move.
- pedrogpimenta 3y agoSame here. On Linux with KDE, if it matters.
- shmde 3y agoThe inner browser top(acting like a paddle) is not detecting collision with the ball Firefox Version 120.0
- alt227 3y agoWorks fine for me on firefox 120 on windows
- xlogout 3y agoI think it might be a Xorg vs. Wayland thing rather than browser version. IIRC Wayland does not report coordinates of the window relative to screenspace.
- levodelellis 3y agoHitting the last brick was the worst. Instead of pausing the top maybe swap the playing fields so I have more control over the paddle/ball? It took over 2 minutes just to hit one brick in the smaller one
- alt227 3y agoThis idea is amazing yet completely evil at the same time.
- seabass-labrax 3y agoThis is absolutely wonderful! I didn't think it would work with my setup (bspwm and Firefox 115), but it did. I consider myself pretty good with these kinds of games, but this really does take Breakout to a new dimension, with a difficulty to match!
- fisian 3y agoI had a similar idea using two windows for a game. One large window with an overview map and a popup window you can move around as a magnifying lens that shows details and lets you interact. However, I never tried implementing it.
- WindyMiller 3y agoWildly annoying that this isn't called 'Brickursion'.
- dylan604 3y agoIf you've missed the reference to Inception, then that's on you. I think it is aptly named.
- WindyMiller 3y agoDon't worry, I get it. I just think it's a bit daft that the title is now so thoroughly associated with a fairly mechanical part of how the film functions, when it's not only a pre-existing word but also refers to a much more significant idea within the film itself. Plus, the 'rick' of 'brick' sounds a bit like the 'rec' of 'recursion'. But I think I was a bit harsh in this case, the way the two parts of the game interact is more reminiscent of the dream layers in the film than is often the case with such Inception references.
- BearOso 3y agoThank you. This *ception misuse is annoying. Conception is the act of creating an idea. Inception is the point at which something is conceived. The movie created a fake verb form that means "to induce a conception." None of this is conceptually related to the nested dreams in the movie.
- omnibrain 3y agoReminds me of reYal, a game with "recursive" controls a friend of mine created: https://store.steampowered.com/app/1080780/reYal/ https://store.steampowered.com/app/1080780/reYal/
- olejorgenb 3y agoCool concept. As a reviewer said - if you get into the flow it's interesting. But the chunkiness of the controls kinda ruins the experience and make it harder than necessary to get into that flow.
- trizoza 3y agoThis is soooooo gooooood! Love it! :D:D
- pacfish 3y agoHard crashes Chrome for me (all windows instantly disappear on pressing 'LAUNCH GAME') - Chrome beta (120.0.6099.35) on Wayland (not using X) on Ubuntu 23.04. I wasn't expecting it to work due to Wayland, but the crash was impressive!
- edfletcher_t137 3y agoFrustratingly difficult: I love it! The cleverness here is excellent. Well done!
- NietTim 3y agoHahaha genius. Doesn't work on safari/mac os for me for some reason (console says "maximum stack size exceeded") but works fine on chrome
- matthewiiiv 3y agoThis is simultaneously, amazing and terrible. Congratulations!
- stevage 3y agoWow, this is clever. And for once, it's cleverly weird in a way that is interesting to play. Not only do you have to deal with playing two games of breakout at once, but the same mouse controls two paddles simultaneously, but at different scales. The interesting challenge is when the two balls are briefly in sync but you can't hit them at once. You have to move the window paddle up so you hit its ball earlier, then go and get the tiny ball. Easier said than done though...
- layer8 3y agoMake it a two-player game by making the paddle of each player the brick wall of the other player. This is also easily extended to N > 2 players.
- humanfromearth9 3y agoThis could just be crazy, given that brick walls may be composed of various types of bricks that break with various numbers of hits and also given that the walls will have various shapes depending on which bricks you break first. This drastically changes the game in the sense that as a player, you can't decide precisely which bricks of the opponent you break (as opponents move their walls): you have some influence on which one of your bricks you break and you most fundamental goal is to make sure that the ball just bounces against your own paddle/wall to send it back and not lose a life. And the more you touch the ball with your paddle, the more the paddle's size shrinks (because of all the broken bricks), which contributes to make the game harder for you and might give your adversary some chance to come back. That's a terrific idea, even without the brickception (just a simple brick-wall-paddle).
- goldenkey 3y agoMight as well just include everyone's games inside of everyone else's game as nested entities whose microstates determine the above games macrostates. This is very similar to Reflective Towers Of Interpreters: https://blog.sigplan.org/2021/08/12/reflective-towers-of-interpreters/ https://blog.sigplan.org/2021/08/12/reflective-towers-of-int...
- Uptrenda 3y agoI love it, OP. Really creative take on the original game and this is a totally unique use of windows as an input. It's smart on many levels. I wonder if this game could be used as a benchmark for alternating attention (switching between tasks.) People with disorders like ADHD and others that effect executive function are supposed to have difficulty with this. So it would be interesting to see if ones score increased off medication vs on medication. Or even if a healthy person saw an increase with stimulants. Psychologists love games like this because it lets them study isolated aspects of cognition in a standardized way. It's honestly a cool project.
- metabagel 3y ago> It's smart on many levels. Two levels. ;-)
- brcmthrowaway 3y agoCan someone write an RL bot to play this game?
- vaxintar 3y agoCompletely broken with my i3 setup
- askiiart 3y agoIt works with my sway setup [1], but only on Chromium, not Librewolf. I'm pretty sure it's just a Librewolf/FF issue, since it seems to open pop-ups in new tabs, not as windows. [1] https://git.askiiart.net/askiiart/dotfiles/src/branch/main/sway/config https://git.askiiart.net/askiiart/dotfiles/src/branch/main/s...
- Nav_Panel 3y agosame but I didn't expect anything different from a TWM for a game that relies on floating windows
- KMnO4 3y agoI opened the link, and laughed at how dumb I am to think this would work in i3
- myself248 3y agoHave we completely decided as a culture that "inception", which once meant "beginning", now means "recursion"? I liked to think that words had meaning.
- madeofpalk 3y agoIt does have a meaning. It's a pop culture reference.
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- dahart 3y agoNo, we haven’t decided that inception is synonymous with recursion, but even if we had, lots and lots of words have always had multiple meanings, and meanings that come and go, and meanings that change over time. Language is fluid and is defined by its usage and not by static prescription, which is one of the fun aspects of language. Embrace it and enjoy the ride! ;)
- ryukoposting 3y agoIf language never evolved, then most of us would be "instructors of the sentient hunks of distilled sand."
- account42 3y agoDoesn't that sound so much cooler than software engineer or programmer though?
- vinberdon 3y agoThis is beautiful.
- sonicanatidae 3y agoVery clever. Well done!
- passion__desire 3y agoReminds me of Gettier Problems in Epistemology : A desert traveller is searching for water. He sees, in the valley ahead, a shimmering blue expanse. Unfortunately, it’s a mirage. But fortunately, when he reaches the spot where there appeared to be water, there actually is water, hidden under a rock. Did the traveller know, as he stood on the hilltop hallucinating, that there was water ahead? Here's a real world example : https://www.instagram.com/p/CzWlxkbp0vT/ https://www.instagram.com/p/CzWlxkbp0vT/ Imagine a video feedback loop version of gettier problem where the problem is resolved only at the Nth nested level. Sort of like this short story : https://qntm.org/responsibility https://qntm.org/responsibility
- iamgopal 3y agoOnce I changed half my working code ( and wasted an Hour of time ) before realising that I was testing different code. On the other hand, now newer code had 10 times more testing points.
- 8n4vidtmkvmk 3y agoI'm going to say no, he didn't know. But I don't think I can properly articulate why which just get me into trouble with an even more nuanced variant of that question.
- passion__desire 3y agoLet me illustrate a probable story which might muddy the waters and expand the surface area of belief. Consider a woman whose child is suffering from a disease. She has gone to all the doctors she was recommended and found no success. She is told to visit Church and pray to Jesus. After the sunday mass, she tells her story to few random church goers. They immediately recognize the medical condition and tell her to visit a particular doctor. Doctor sees her child and provides medication. Her child is cured after few years. Now the question is did she know going to church would solve her medical problems?
- erhaetherth 3y ago
- ChrisArchitect 3y ago(2019) Blast from the past, the author had a Show HN: https://news.ycombinator.com/item?id=20126142 https://news.ycombinator.com/item?id=20126142
- nialv7 3y agoWhy stop at depth 2? ;-)
- deleted 3y ago[deleted]
- SamBam 3y agoI tried changing the size of the smaller window, and it worked briefly to allow the ball to bounce off the now-larger size, before the game snapped the window size back to the original. It made me think that changing the window could be part of the game somehow. Perhaps as you drag it bigger the playing field of the smaller game increases in width, so that game becomes harder (and also you can't move the paddle as far because your new window is too big to drag). Or maybe you should be able to capture the ball in the big window into the smaller window, and the size and position of the smaller window determines its entry point.
- chungy 3y agoThe ball in the lower window only bounces off the browser's chrome and not the title bar. This is making the game harder than it could be (and possibly an unfixable problem?). Also I have wobbly windows and that makes the game hard too.
- smittywerben 3y agoThis game is so silly it makes me laugh. It works great on Windows 10. I don't have that fancy trimmed chrome titlebar just the regular box style. It reminds me of a program my brother wrote in high school that would spawn invading spaceships (Java Triangles) onto your desktop and they would bonk your mouse around. Meanwhile, I was in the corner of the lab playing Starcraft.
- adam12 3y agoReminded me of this pong inside a sprite tutorial for the c64: https://youtu.be/C_J4dSAWqY4?si=BQN90pEFjOaGtOxj&t=1118 https://youtu.be/C_J4dSAWqY4?si=BQN90pEFjOaGtOxj&t=1118
- xer0x 3y agoNeat! I didn't know this was possible!
- mck- 3y agoReminds me of a thread on HN from 2013 that turned tic-tac-toe into something much more interesting and in a same way meta [1] I made a simple online playable game of it back then: http://mck-.github.io/T3/ http://mck-.github.io/T3/ [1] https://news.ycombinator.com/item?id=5898506 https://news.ycombinator.com/item?id=5898506
- neilparikh 3y agoSomewhat related game: https://store.steampowered.com/app/1533050/Press_Ctrl/ https://store.steampowered.com/app/1533050/Press_Ctrl/
- wly_cdgr 3y agoI absolutely don't want to play it all the way through but that is irrelevant, love it
- elf25 3y ago[dead]
- eshack94 3y agoThis reminds me of an old PC game called DX-Ball that my uncle and I used to play back in the late 90s/early 2000s. Super cool project, OP!
- rpdillon 3y agoDX-Ball was really great! The block breaking animations and overall polish are very memorable for me. You sent me searching for it with your comment, and it's still around: https://gamesnostalgia.com/game/dx-ball https://gamesnostalgia.com/game/dx-ball File size: 380k. I miss those days.
- signatureMove 3y agoI would like to see additional windows spawned after a certain point for a true 'brickception' experience.
- kderbe 3y agoIf this gives you an appetite for more block-breaking, check out Pippin Barr's BREAKSOUT, a collection of 36 wacky variants of Breakout: https://pippinbarr.com/breaksout/info/ https://pippinbarr.com/breaksout/info/ See also: https://news.ycombinator.com/from?site=pippinbarr.com https://news.ycombinator.com/from?site=pippinbarr.com https://news.ycombinator.com/from?site=pippinbarr.github.io https://news.ycombinator.com/from?site=pippinbarr.github.io
- riwsky 3y agoReminds me of one of my favorite games of all time: The Mountain and the Motorcycle: https://achewood.com/2004/07/13/title.html https://achewood.com/2004/07/13/title.html
- dragontamer 3y agoThe paddle seems buggy. It seems like the "right" side of a paddle always increases the speed, while the "left" side of the paddle always decreases the speed. This behavior should be direction dependent: ie: the left-side of the paddle should push the ball to the left, while the right-side of the paddle should push the ball to the right. Classic breakout controls. For the first 2 or 3 games, I thought you couldn't control the speed. I was wrong, its just that the speed-control in this game is very small (it requires about 6 or 7 bounces to go from minimum speed to max speed), while also having a very non-intuitive speed/direction control scheme for the paddle.