Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by koosvdkolk

I am currently investigating various game engines. What I want is to have a simple RPG type game. If the player does some action (e.g. press button when he is somewhere on the map) I want him/her to go to a simulation, which in fact is an external HTML5-application. In this simulation I want him/her to obtain some results and then get back in the RPG game created with Impact. This RPG game should obtain the results of the simulation.

Is such easily possible with the Impact engine?

Our developers have >10 years of web application experience.

1 decade ago by Joncom

I'm not sure, to be perfectly honest. I assume you mean having one ImpactJS game (which is the RPG) and then having a different ImpactJS game (simulation) that opens up and runs in parallel. It's a cool idea.

I'm not sure if it would work, because the ig object is created by the first game, and I suspect there would be conflict between the games, because both would assume they live in the ig object.

I'm sure it's possible, but it might require a little tweaking. I'd be interested to hear opinions from others familiar with what might be involved.

Edit:

All that said, I suspect you'd encounter this same "conflict" with other game engines as well. Running multiple instances of an engine in parallel is not the usual way games are developed.

1 decade ago by drhayes

If I understand your question correctly, you'd like to expose state from one HTML5 application to an Impact game. There's a ton of different ways you could do this: global variables, localStorage, storing it on the server and retrieving it with an XHR call.

That makes me think you're asking something else? What about this situation complicates any of those solutions?

And, FWIW, Phaser requires the programmer to instantiate the game class which means two games could run side-by-side. But I'm pretty sure that's not what koosvdkolk is asking, right?
Page 1 of 1
« first « previous next › last »