feature testing

Discussion and feedback on Construct 2

Post » Sun Nov 23, 2014 5:08 pm

When reading @Ashley tutorial about fullscreen and orientation lock in browsers:

https://www.scirra.com/tutorials/1282/f ... n-browsers

I was wondering if there was any reliable way to test if those features exists, or are supported by the browser the user is using so we do not for exemple, show a button if the related feature does not work.

Of course trying to detect the browser itself and do a manual change like "if on safari, do nothing, else if on chrome, do this, else do that" is not an option (the whole concept is to have one codebase, not one per browser).
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Mon Nov 24, 2014 3:15 pm

Good point, I could add an option to check requesting fullscreen is supported. However does there really need to be a condition to check orientation lock is supported? You wouldn't typically have any in-game difference for that, right?
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Mon Nov 24, 2014 3:21 pm

I was talking for fullscreen support, indeed fullscreen locking not being supported has already enough fallbacks (we know if it is portrait or landscape, largely enough to make the game respond correctly) and it is a non essential feature (a passive, if you will) so I do not ask for a check for it.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to Construct 2 General

Who is online

Users browsing this forum: lukewasthefish and 6 guests