Jump to content

Wrapper framework suggestions


charlie_says
 Share

Recommended Posts

I've made a simple-ish game engine using three.js and now I'd like to finish it. There seems to be lots of frameworks I could use to move between the various game states, but most of them seem to do too much - in the sense that I'd need to rip the game apart to incorporate it into the framework.

 

Any suggestions (I have looked at melon.js and phaser, of course, but both seem to be a bit OTT for this requirement.)

Link to comment
Share on other sites

Sorry, I've clearly didn't word my initial question very well.

 

What I'm interested in something that allows me to build menus, game over screens etc. in conjunction with a game made with three.js. Whether or not the menus are rendered with three is not so important to me - but most of the frameworks I've looked at seem to either not really handle this aspect of making a game, or, if they do, are so tightly integrated with their game engine that it's not obvious how you'd include three...

Link to comment
Share on other sites

Is your application currently client side only or are you using some kind of webserver (apache, nginx, IIS) ?

 

I'd suggest looking at an MVC framework for whatever webserver you can get into. Let me know if you're familiar with MVC's but you will essentially be able to layout the 'objects' of your system and then make use of either automated scaffolding or at least some kind of templating to generate your UI's. 

Link to comment
Share on other sites

Sorry, I've clearly didn't word my initial question very well.

 

What I'm interested in something that allows me to build menus, game over screens etc. in conjunction with a game made with three.js. Whether or not the menus are rendered with three is not so important to me - but most of the frameworks I've looked at seem to either not really handle this aspect of making a game, or, if they do, are so tightly integrated with their game engine that it's not obvious how you'd include three...

You can place regular DOM elements over your game or just place a 2D canvas over your game and render your menu on that?

Link to comment
Share on other sites

Thanks Psychho, this may be the way I'll have to go...

But, all the same, it seems slightly 'backward' to have to have all the logic (for menu/splash/hi-score/whatever) in the game.js code and then show the relevant <div> rather than have menu.js/splash.js/etc. (even if they control the DOM elements.)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...