charlie_says Posted October 2, 2013 Share Posted October 2, 2013 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.) Quote Link to comment Share on other sites More sharing options...
Paul-Andre Posted October 2, 2013 Share Posted October 2, 2013 I know nothing about anything, but if you have a game engine going, why would you want to integrate a different platform for game states? Quote Link to comment Share on other sites More sharing options...
Paul Brzeski Posted October 7, 2013 Share Posted October 7, 2013 What do you mean by game states? Do you mean you're trying to implement some kind of persistency? I'd say the simplest way to get quick results might be to setup a REST API on a node.js server Quote Link to comment Share on other sites More sharing options...
charlie_says Posted October 7, 2013 Author Share Posted October 7, 2013 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... Quote Link to comment Share on other sites More sharing options...
Paul Brzeski Posted October 7, 2013 Share Posted October 7, 2013 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. Quote Link to comment Share on other sites More sharing options...
Psychho Posted October 7, 2013 Share Posted October 7, 2013 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? Quote Link to comment Share on other sites More sharing options...
charlie_says Posted October 12, 2013 Author Share Posted October 12, 2013 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.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.