Is it possible to mount a playable video game into a discourse forum?

(Jonathan Kuehling) #1

Hello. Brand new user here.

I was wondering if it would be possible to mount a playable video game (with simple graphics of course) on a discourse forum and have the game access statistics and user character attributes?

Could someone tell me if this even remotely possible?

(Erlend Sogge Heggen) #2

It’s probably possible, just as you can embed Google Maps or Sketchfab in Discourse. But I don’t see any reason why you’d need to play the game inside of a Discourse forum. You have the game access forum data and vice versa without coupling them together on the same page.

I’d recommend having dedicated pages for the playable games, and inserting Discourse into that as is appropriate.

(Jonathan Kuehling) #3

Thanks man! Appreciated…

Again, I’m brand new to this software. So would you just make a normal web browser game? Like some of the ones you see advertised on Facebook?

What exactly do I have it access?

Lets say I wanted it to be clear that there is a game linked to my specific Discourse forum. And in order to build a game profile, you have to use your forum login handle. Any idea how I would feed that data to the game engine?

(Erlend Sogge Heggen) #4

You’d use this: Discourse API Documentation

(Jonathan Kuehling) #5

Gotcha! This’ll be really cool if I can get it working! :smiley:

My main objective of creating the game (in addition to teaching myself how to code) is to help supplement the forum activity. I hope I can pull this off lol.

Thanks again!

(Eli the Bearded) #6

I’ve seen one of the emulated machine games hosted at embeded in a private Discourse. It worked, but it wasn’t a very good experience. Your success or failure will probably rest with how well the game is suited for embedding.

(Jonathan Kuehling) #7

Thanks @elijah, after reading this, I think it makes a lot more sense to NOT embed it:

When I thought about it some more, all I really need to do is retrieve basic data from the forum and I think I’m good to go :smiley: