menisadi

joined 1 year ago
[โ€“] menisadi@programming.dev 3 points 11 months ago (2 children)

Interesting. But won't it work only for the background? Waldo isn't part of the background, he is a separate object as he changes position after each time you find him and click on it (I forgot to mention this important point).

 

I quite new to web development. I created a simple game which suppose to raise awareness to the RP syndrome (which I suffer from). The simple goal is to find Waldo but the twist is that there is nothing but him on the screen.

I want to add a "flashlight courser effect" meaning that the only visible part of the screen should be the one around the courser (for some fixed or maybe chosen radius). But, I don't want the rest of the screen (the non-visible) to be black but white / blank (as this is in a way the way that I see the world). The other elements (buttons, score and counter) should stay visible always.

Can someone advice me on how can it be done? Ideally there should be two switches (on the corner) one controlling the mode (full visibility vs limited field of vision) and the second one controlling the type of "darkness" (black vs white).

Here is the link to the repo with the current code: https://github.com/menisadi/RPWaldo

Thanks in advance

Update: Thanks everyone!!! I used the SVG idea and added the flashlight effect" (even added a switch to toggle the "flashlight mode" on and off). Working great. Thanks!

[โ€“] menisadi@programming.dev 29 points 1 year ago (15 children)

Wait, all the family and friends switched to Signal? what? how?

[โ€“] menisadi@programming.dev 1 points 1 year ago (1 children)

Sorry to bother but what about mobile?

But if YouTube doesn't earn enough how will they be able to maintain the site? Agree that they can earn a little less but for some reason it doesn't work that way (I'm not aware of a service of such scale which keep profit at minimum) ๐Ÿคท

[โ€“] menisadi@programming.dev 3 points 1 year ago (2 children)

Thanks! Just curious, is AdBlock intentionally programmed to block only such advertisements? Or is it just a slightly "worse" ad blocker?

[โ€“] menisadi@programming.dev 2 points 1 year ago (5 children)

That is great! But can I ask how much do you donate? I feel that if I try to donate to all the creators that I use the tools they develop or consume the content they create, this expense will bypass my rent (unless I will give everyone a really, really small donation).

I agree that the system is getting a bit out of control. But take Spotify for example, most of the users are using the free tier which is one of the reasons what Spotify, which has really minimalistic ads, simply can't make enough profit to cover the costs. Sites which throw countless ads at you are terrible indeed but there could be a place between removing all the ads and sites which have pop-up full-screen ads every 2 minutes.

 

After thinking about it for a long time I came to the conclusion that I'm OK with ads. They are not so annoying to me and as long as they are not popping out or really interfering forcefully I fine with them being there. As far as I can see ads are the de-facto fuel for a broad part of the content-creation monetization system which I consume heavily (mainly YouTube).

so, I want to configure my set-up so it won't block all the ads (especially not on YouTube). But, I do think that the amount tracking this days sites have is highly exaggerated and unnecessary (I worked on data-science so I can say that with a bit of confidence). Therefor I do want to block trackers and third-party cookies if possible.

Currently using Firefox both on my Macbook and my Android phone (with Duckduckgo as my search engine).

Is the above possible? Which extensions might be relevant?

Thanks And please don't kill\cancel me :)