Is it possible to use Discourse within a browser based video game?

I’m new to Discourse. I’d like to know if anyone has had experience using Discourse within a browser based video game, in order to use its chat and account features.

I’m hoping to use Discourse on my site as a forum, and then the players within the game would hopefully be linked with the same forum users rather than making separate accounts.

And would it be possible to implement a chat within the game using Discourse?

Thanks!

Discourse forums can be oneboxed on other websties, I know that. Be sure it is your own forum first, since other forums being oneboxed are illegal within the gamr