Sentinel

Members
  • Content Count

    14
  • Joined

  • Last visited

About Sentinel

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Sentinel

    PIXI.Graphics in class doesnt work with interactivity

    Thanks for the fast reply. Sadly, it didn't make a difference at all. The graphics element is still not interactive, no matter where I assign the "interactive" property EDIT: I also discovered that none of the events works for any Pixi element regardless which it is. It worked flawlessly earlier, but all of suddenly it doesn't anymore.
  2. I'm totally in love with Pixi and have been for a while, but I'm running into an issue. So everything gets drawn correctly as it should. Now the issue is when I have to add interactivity to the actual Graphics element. Defining an any properties to the class such as "interactive" or "buttonMode" doesn't get applied to the actual Graphics element. Adding them after calling the super() method doesn't change anything either. I've created a gist including the files used for this exactly: https://gist.github.com/marcus-sa/3ec603f8f9c5d4bb6b0df514a4546c07
  3. Sentinel

    Pixi.js renderer not working

    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
  4. Sentinel

    Pixi.js renderer not working

    @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
  5. Sentinel

    Pixi.js renderer not working

    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.
  6. Sentinel

    Pixi.js renderer not working

    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.
  7. Sentinel

    Pixi.js renderer not working

    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
  8. Sentinel

    2D Camera

    Got it working from the projection example. Thanks a lot for the spoonfeeding
  9. Sentinel

    2D Camera

    Found what I was looking for. Is there any way I can implement a mouse drag event? So the camera follows the cursor position while dragging, and doesn't when drag has ended.
  10. Sentinel

    2D Camera

    I've taken a look at pixi-viewport and I really like it except for the ease drag part and the fact that it can't return a PIXI.DisplayObject that I can add myself to the stage and render it. t So I have a Pixi.Container I want the camera to move around instead of it inheriting the render and using its own render loop. Basically I want the same result as the Phaser.io Camera Maybe the documentation is just confusing me, but I can't seem to get it to work like I want. Is there any other way to do this? Because I want to have a GUI overlay.
  11. I don't know if https://deepstream.io is usuable for you, but that does support multi region with correspondingly real time database management. There's something like https://www.pubnub.com or https://webrtc.org I mean usually big multiplayer games like League of Legends, CSGO, COD etc. has different servers for different regions.
  12. Sentinel

    Pixi and React

    There is a NPM package for combining React and Pixi https://npmjs.com/react-pixi
  13. I hope you're not doing HTTP requests. I definitely recommend coding a TCP server or simply use something like socket.io
  14. Sentinel

    Habbo WebGL Game Engine

    This is strictly for educational purposes only Since Flash is pretty much being deprecated in most browsers so is Habbo. Since there's retro versions, most of Habbo's assets are available on the internet. I've been using Pixi for now to create a 2D loading screen, which I did successfully. Then it occurred to me that Pixi is mostly just a renderer, and doesn't support 3D the same way as Three or Babylon does. Problem is that, I found coding of 2D UI elements in both Three and Babylon really difficult compared to Pixi. In Habbo it's really minimal what is going to be 2.5D / 3D as only the rooms, avatars and furni are, the rest is basically 2D GUI. So this is how I've done it for now https://gist.github.com/marcus-sa/7993baa14e6301c762747142e55cb5cf Some questions: Is Habbo; 2D with projecting, 2.5D or 3D, and would it be enough to use Pixi only? If no: Would it be possible to extend Pixi with Three or Babylon when there's going to be rendered 2.5D /3D objects? If it's truly 2D with projecting, should I just use Phaser instead? What would be best to do?