
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.
-
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.
-
-
Sentinel started following Habbo WebGL Game Engine, PIXI.Graphics in class doesnt work with interactivity, Pixi.js renderer not working and and 2 others
-
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
-
Sentinel reacted to a post in a topic: My New Game Crazy Soccer Header Jumps 3 Now Published On Kongregate
-
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
-
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
-
-
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.
-
Sentinel reacted to a post in a topic: Creating a Mulitplayer game using HTML 5, Javascript, and Websockets
-
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.
- 19 replies
-
-
Luminous Wizard reacted to a post in a topic: Creating a Mulitplayer game using HTML 5, Javascript, and Websockets
-
There is a NPM package for combining React and Pixi https://npmjs.com/react-pixi
-
I hope you're not doing HTTP requests. I definitely recommend coding a TCP server or simply use something like socket.io
- 19 replies
-
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?