Sentinel Posted December 13, 2017 Share Posted December 13, 2017 So basically I have a big project ongoing. Instead of having nested constructors that passed down all the game data such as renderer, resources and so on, I decided in my Game.js file to make it static and then require that in every other file and directly get the required data through there. It is quite a big project, so I am not going to include files, instead I'll be linking to my git repository. The issue is that nothing gets rendered on the screen and no errors are shown at all. I've tried 2 different browsers aswell. I've tried with both the CanvasRenderer and WebGLRenderer yet the same error still occurs. And I've checked the PIXI Container that gets rendered, and it does contain children of other DisplayObjects. https://github.com/marcus-sa/StormEngine/tree/dev/client Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 13, 2017 Share Posted December 13, 2017 Code looks fine. Can you give me a webpage to debug? I have a list of things to check in my mind. Btw, set(point.x, point.y) is the same as copy(point), i hope we'll rename it to copyFrom. For big projects I use TS and no import/exports. Storing stuff in Game.js is fine too Quote Link to comment Share on other sites More sharing options...
Sentinel Posted December 13, 2017 Author Share Posted December 13, 2017 4 minutes ago, ivan.popelyshev said: Code looks fine. Can you give me a webpage to debug? I have a list of things to check in my mind. Uhh I'll see what I can do here, because it's implemented into a CMS I've written, so I would first have to set it up on Heroku and get a remote control MySQL server then. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 13, 2017 Share Posted December 13, 2017 I'm asking that because code really looks fine. By the way, for camera and other things, I recommend to look at "pivot+position" combo , I mentioned it too many times in this subforum. Quote Link to comment Share on other sites More sharing options...
Sentinel Posted December 13, 2017 Author Share Posted December 13, 2017 2 minutes ago, ivan.popelyshev said: I'm asking that because code really looks fine. By the way, for camera and other things, I recommend to look at "pivot+position" combo , I mentioned it too many times in this subforum. Yeah I've seen you mentioning it a couple of times, but for now in this prototype the camera does its purpose. I'll reply back to the thread when I can give you a webpage to debug. Quote Link to comment Share on other sites More sharing options...
Sentinel Posted December 13, 2017 Author Share Posted December 13, 2017 @ivan.popelyshev do you have the opportunity to use TeamViewer? Because that'll be a lot more efficient than me having to set it all up on a server first. If you've got Discord mine is Sentinel#2435 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 13, 2017 Share Posted December 13, 2017 I'll use discord later, im not ready right now may be in 2 hours. Quote Link to comment Share on other sites More sharing options...
Sentinel Posted December 13, 2017 Author Share Posted December 13, 2017 1 hour ago, ivan.popelyshev said: I'll use discord later, im not ready right now may be in 2 hours. I fixed it. Had something to do with the height and width of the renderer. options.container.offsetWidth options.container.offsetHeight and this.config.container.offsetWidth this.config.container.offsetHeight was what made the renderer not show anything at all, so I switched them out with what I had before which was window.innerWidth window.innerHeight Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 13, 2017 Share Posted December 13, 2017 remember that after init you can use "renderer.screen". 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.