Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On bootup, log enabled/detected features #707

Closed
3 tasks
kamranayub opened this issue Dec 2, 2016 · 4 comments
Closed
3 tasks

On bootup, log enabled/detected features #707

kamranayub opened this issue Dec 2, 2016 · 4 comments
Labels
feature Label applied to new feature requests help wanted asking for help from the community, may require a certain platform or skill set to implement
Milestone

Comments

@kamranayub
Copy link
Member

Context

To aid in browser/device testing, it might be good to have a formal mechanism to register detected/enabled browser features and log them at bootup time so a developer can see what Excalibur sees as enabled or available.

Proposal

  • WebGL support
  • Web Audio vs. HTML5 Audio support
  • Gamepad API
@kamranayub kamranayub added feature Label applied to new feature requests good first issue good for people new to open source and Excalibur help wanted asking for help from the community, may require a certain platform or skill set to implement and removed good first issue good for people new to open source and Excalibur labels Dec 2, 2016
@guahanweb
Copy link
Contributor

I'll look into this one. Shouldn't be too difficult.

@guahanweb
Copy link
Contributor

Playing with some IIFE's in the Detector to have a constant with a feature support matrix available, then outputting some debugging in the Engine setup:
image

@kamranayub
Copy link
Member Author

That's awesome!

@eonarheim
Copy link
Member

Very cool!

@jedeen jedeen added this to the 0.9.0 Release milestone Dec 7, 2016
@eonarheim eonarheim assigned eonarheim and unassigned eonarheim Dec 8, 2016
kamranayub pushed a commit that referenced this issue Dec 9, 2016
Closes #707 

## Changes:

- Added singleton browser feature support matrix into Detector.ts
- Added debug step in Engine.ts to log feature support matrix
- Added a getter to access the current support matrix from consuming modules: `Detector.getBrowserFeatures()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Label applied to new feature requests help wanted asking for help from the community, may require a certain platform or skill set to implement
Projects
None yet
Development

No branches or pull requests

4 participants