I'm looking at purchasing impactjs, but had a question. The game I'm wanting to create will have multiple windows (say a planetary view, as well as a status window. Is this possible in impactjs?
1 decade ago
by drhayes
It feels like you're asking if ImpactJS has an explicit camera object, the output of which you can redirect... so, you could have multiple cameras and render the combined output somehow. The answer to that is no; there is one notional camera and you set its position via ig.game.screen:
http://impactjs.com/documentation/class-reference/game#screen-x-screen-y
Unless I'm wrong, and you're asking about drawing a HUD. I could imagine implementing that by drawing the HUD elements at the end of your game class' draw method pretty easily. Impact gives you access to the canvas' context for raw drawing operations.
Thanks for your reply.
Sorry about the confusion, I don't need a camera interface. What I'm looking for is implementing something like you have in Civ II, where if you click on an item on a game map, then you can get a status window that pops up to shows stats on the game item that was clicked. Something like a dockable status screen that I could show or hide based on user interaction within the game.
I figure this is possible, but wanted to make sure.
Pretty much anything is possible. For an example of what you might be looking for check out
http://impactjs.com/forums/games/galaxis-online for outdated but relevant screenshots. I use dialogs and windows and all sorts of UI stuff.
1 decade ago
by drhayes
Okay, DUDE. That looks beautiful! Please let me play this game! ( =
Thanks. It's still in the works... actually just finally getting back into it after a couple month (forced) break from it.
Page 1 of 1
« first
« previous
next ›
last »