The Impossible Maze and The Impossible Maze II (flash games from the mid/late 2000s) both used concepts related to “breaking” the fourth wall of flash that was the element that contained it.
Not sure if that’s the one you’re thinking of, but it fits the same sort of bill
Have you heard of the game "Oneshot"? It has a similar concept where it starts fucking with the game files and needing to be played in windowed mode so you can lay something over it. It was a fun time
For what? Saying “fuck off and enjoy life” to a snarky comment?
The only rule is “Inclusivity first” which technically we’re both breaking, I’m breaking it by saying my previous comment because it would drive you away from this subreddit to real life and you’re breaking it by your initial reply because it drives me away from wanting to interact in this subreddit.
Does it matter? It doesn't use flash now. It's cool. Someone did something cool, and people are enjoying it. You don't enjoy it, fine - but you come here and attempt to belittle it, and suck the joy out of it for others.
And I just find this approach to be sad. You sound like a really exhausting person to interact with.
Let younger (or simply new to the space) people discover cool shit - even if the concept isn't new. Share knowledge of the past if you have it and if you want to, but don't do it in a way that belittles the content, just say it as a cool fact.
I haven't done webgl stuff in years, but I could do that in unity by running identical particle system simulations on both canvases and using the absolute screen positions and window sizes as inputs as to where to draw the sphere and what rectangles to cull. I can't remember if localhost browser windows can talk together directly, but if not then you would have to add some javascript for sending window size and coordinates to a server that would echo that information back to all the listening canvases.
I'm assuming some code in each window is setting variables into whatever particle system is drawing on the canvas to tell it the number of spheres and where they are on the screen. Sorry, I haven't done web stuff in a while so I don't know the exact mechanics involved.
They do not interact at all. They only look like they do. The trick is both are running the exact same code using absolutely screen positioning so you only see part of the simulation in each window. When you open the second window, you tell both of them to draw a second sphere. It only looks like they're interacting because they're drawing the spheres exactly where the windows are.
The stream of particles coming out of the first sphere moves up or down depending on where the other sphere/window is. But that interaction can probably be done through local storage.
I don’t know the specific details on the implementation, but it has something to do with the ‘window.getScreenDetails()’ function in javascript which retrieves the details of all the currently opened screens on your device.
As for the cool render effect it’s probably a library like ThreeJS.
Windows and tabs supposed to be sandboxed and should not be able to share info for security reasons. I think it is uses a server to share info like window position similar to online multiplayer games.
You mean that you don't want it to be able to read the window's location and size relative to the screen, or don't want it to be able to read the contents of another browser window/dab (that's not happening anyway)?
I know nothing of how this is done done but would it be possible to do something similar by running a server with live physics on an animation and have two cameras Focused on either color with two different urls them using window position magic change the position of the sphere in the animation
148
u/beepboopnoise Nov 25 '23
window.getScreenDetails() + localStorage
sauce original sauce?
151
u/LegoDinoMan Nov 25 '23
Bro what the fuck
57
u/fsactual Nov 25 '23
I haven't done webgl stuff in years, but I could do that in unity by running identical particle system simulations on both canvases and using the absolute screen positions and window sizes as inputs as to where to draw the sphere and what rectangles to cull. I can't remember if localhost browser windows can talk together directly, but if not then you would have to add some javascript for sending window size and coordinates to a server that would echo that information back to all the listening canvases.
33
u/zephdev Nov 25 '23
I don’t know the specific details on the implementation, but it has something to do with the ‘window.getScreenDetails()’ function in javascript which retrieves the details of all the currently opened screens on your device.
As for the cool render effect it’s probably a library like ThreeJS.
12
u/captainlardnicus Nov 25 '23
The difficulty is not recreating this, the difficulty is avoiding a job in advertising when you do
11
u/demqhu Nov 25 '23
I'd join the others on screen details, and I would use maybe Broadcast Channel API for communication between the windows.
14
u/Joey-172 Nov 25 '23
That's very cool. it looks like the OC has a Twitter thread for people interested in learning the coding aspect of it:
https://twitter.com/nonfigurativ/status/1727657155409363120?t=OL9_n17L6oAWODd1a0wCdw&s=19
5
u/Xeon06 Nov 25 '23
Wes Bos has an example here with a webcam video stream, and has the repo linked in the next tweet
https://twitter.com/wesbos/status/1727730566143803522
4
u/Disastrous-Agency675 Nov 25 '23
Well first you need to become a god
4
u/rudawn Nov 26 '23
Black magic
2
u/CleasbyCode Nov 25 '23
Amazing.
2
u/zeb0777 Nov 25 '23
It has to do with reading the window size and location.
2
u/amejin Nov 26 '23
Might be a shared worker
2
u/davwad2 Nov 27 '23
This is neat
2
u/Fine-Entertainer2691 Jan 07 '24
Very cool
2
u/Kekipen Jan 30 '24
Windows and tabs supposed to be sandboxed and should not be able to share info for security reasons. I think it is uses a server to share info like window position similar to online multiplayer games.
1
u/aeroverra Nov 26 '23
Its cool but I would have no motivation to do that. My initial gut reaction is making sure my browser can't do that with the privacy addons I have.
1
u/No_Face_9657 Feb 24 '24
I know nothing of how this is done done but would it be possible to do something similar by running a server with live physics on an animation and have two cameras Focused on either color with two different urls them using window position magic change the position of the sphere in the animation
1
u/Midgetfromspace Feb 25 '24
i dont know
-6
u/RichiesPlank Nov 25 '23
What's a screen replacement cost?