i made an archery game that uses your charging cable as the controller

sort of a spiritual successor to foldy bird, i wanted to make a game people without a folding phone could play too :p

i was inspired by defend your castle and bowmaster prelude (although my game is very basic)

source code: right-click -> view source
https://lyra.horse/fun/charchery/

Charchery

Phone charger archery

@rebane2001 Reminds me of this classic ... albeit a bit cooler.

@lunte161 @rebane2001 that image is fake, send me to heaven was banned from apple ios because apparently apps on the apple app store cant encourage users to break the device

literally 1984

@rebane2001 the fact that the cable looks damaged makes me think there was a lot of testing while developing ^^
@rebane2001 this is exactly the kind of thing i want to see on my tl :3
@rebane2001
the frayed cable is a nice touch👌
@rebane2001
lmao that's very cool, also i would be worried it would speedrun damaging the charging port

@mrpickles2000 @rebane2001 I suppose that could be mitigated by using one of those magnetic adapters. It would also have the effect of making it easier to connect, so you can fire off shots faster.

Wait, would that be cheating?

@hyrulian @mrpickles2000 @rebane2001 those are dangerous: they come apart after some uses and can produce a faulty contact.

This is a fun idea, and a sure way to destroy the charging port. Those have a limited number of uses.

@wtrmt @hyrulian @mrpickles2000 @rebane2001 I'm using Netdot's (haven't had any reliability problems) and can confirm the game works
@rebane2001 me with a faulty cable/port that constantly gets on/off at the minimum move while charging:
@rebane2001 Fun idea. Now I see that a usual game controlled by mouse clicks should have the hardware last several thousand times longer (probably reduced by much higher click rate of a user not experienced with the charging port).
@rebane2001 websites should not have access to that
Battery Status API - Web APIs | MDN

The Battery Status API, more often referred to as the Battery API, provides information about the system's battery charge level and lets you be notified by events that are sent when the battery level or charging status change. This can be used to adjust your app's resource usage to reduce battery drain when the battery is low, or to save changes before the battery runs out in order to prevent data loss.

MDN Web Docs
@hacknorris I know about it and what I'm saying is it shouldn't exist
@reiddragon agree. it should be exclusive to installed apps tbh…
@hacknorris apps don't use browser APIs, though
@Razemix @hacknorris those are websites, not apps
@reiddragon @hacknorris Yes and no. You can "install" them (i.e., add them to homescreen) and there are certain features that are only available once you do that. For example share_target in Chrome or push notifications in mobile Safari. All these special APIs could be restricted in a similar way.
@Razemix @hacknorris so they're websites with access to extra APIs, that doesn't make them apps
@reiddragon @hacknorris Why not? If it looks like an app and behaves like an app…
@Razemix @hacknorris in this case, it's a horse dressed in a camel suit.
@reiddragon @rebane2001 not without consent at least
@C3nC3 @rebane2001 no, it shouldn't have access at all. There is absolutely no legitimate use for this, at most gimmicks like the above, but most use ot as a data point for fingerprinting
@reiddragon @rebane2001 when there is a question if the page can access is like notifications etc I'd be fine with it. But yeah, it's a great fingerprint
@C3nC3 @rebane2001 websites should quite simply not have access to ANYTHING

The code can fundamentally not be trusted, ever, and as such it having access to anything is always a security and privacy risk

Also, for notifications: I've seen how a normie acts with those, they just accept everything then get constant notifications on their ssystem with right wing propaganda and scams. So no, websites should not be able to push notifications, either, because thw harm outweigh any theoretical good (oh, and I also don't truat random websites to have scripts that run all the time in my browser, even when the website isn't open, just to fetch notifications)
@reiddragon @C3nC3 imo notifications are fine (i even use them for fedi!), but the ux sucks - it should be that you have to open a menu to turn notifications on, not get an intrusive allow/block prompt
@rebane2001 @C3nC3 there are still the potential privacy and security issues with the script that has to run to fetch them
@rebane2001 Phone manufacturers love it.
@rebane2001 charging cycles HATE this simple trick!!
@rebane2001 may i have link to that? want to test :)

@rebane2001 that is amazing. we love it

(we would never play it, our cables have durability problems at the best of times and we have no desire to make that worse, but wow what a cool idea)

@rebane2001 the kind of stuff that would be done in the first decade of iphones existing :3
@rebane2001 oh this is the dumbest thing, i love it.
@rebane2001 I too hate my battery and USB-C port and punish them every day
@rebane2001 doesn't seem to be a very recomendable way to treat your charging cable... 😅
@joxe @rebane2001 but you do get real, random, pyrotechnic effects, like those Galaxy 7 explosion videos!
@rebane2001 @wtrmt NOW WITH ENHANCED REALITY™️ 😂
@joxe @rebane2001 “Best played in the dark, near flammable objects, like curtains or bedsheets”
“Results may vary”