5 ms·
Fullscreen games providing a battery indicator is always nice.
by iameli 7y ago
Fullscreen games providing a battery indicator is always nice.
- fenwick67 7y agoSeems legit, although that should probably be the OSes job to overlay that
- deadmutex 7y agoThat has its own set of challenges -- now you have to design your game so that the battery indicator doesn't cover up an important part of the game. Also, what if the OS allows it to be configurable location/size, etc.
- fenwick67 7y agoI was imagining a pop-up saying "your battery is getting low"
- CraneWorm 7y ago> now you have to design your game so that the battery indicator doesn't cover up an important part of the game You should not be able to do that; It's a feature that you cannot do that.
- deadmutex 7y ago? You should not be able to re-layout your visual elements in the game if the battery indicator hides it?
- zzo38computer 7y agoMostly agreed. However, if the screen is split into the system area and document area, then the battery indicator could go in the system area, and the game need not know where it is; only the size of the document area needs to be known by the game (and not whether or not the system area is present, what it contains, etc).
- saagarjha 7y agoSounds like a job for safe area insets.
- deadmutex 7y agoThanks! I did not know about these before. It looks like a step in the right direction. Though what would be the next step? It seems like there would still the complexity of laying out all the controls/HUD (or other visual elements) in the game.
- saagarjha 7y agoWell, it's not going to fix the layout for you, but it'll ensure that it won't end up under a curve of the screen or behind some UI protrusion.