AntoniaChimp Posted April 30, 2019 Share Posted April 30, 2019 Hey ! I want to start a project with Pixi. But I really like some functions Hexi gives me. So I would like to mix them both. My plan was to use Hexi as main script and since its based on Pixi, call Pixi methods if needed. But unfortunately I dont know how to access the Pixi object from Hexi. On github it says I can relate to specific modules just by: hexi.bump.hit(spriteOne, spriteTwo); So I figured I could touch Pixi through hexi.pixi/ hexi.PIXI, but thats not the case. Does anyone has experience with it ? It would make it much more easier to do things than in plain Pixi. Quote Link to comment Share on other sites More sharing options...
botmaster Posted May 1, 2019 Share Posted May 1, 2019 If I'm not mistaken hexi hasn't got an update in 2 years which means it's a dead project. If you want to experiment that's fine but you'll be missing on the latest pixi updates/versions. As for working on a REAL project it's a NO, NO, NO, don't do that. Quote Link to comment Share on other sites More sharing options...
AntoniaChimp Posted May 1, 2019 Author Share Posted May 1, 2019 2 hours ago, botmaster said: If I'm not mistaken hexi hasn't got an update in 2 years which means it's a dead project. If you want to experiment that's fine but you'll be missing on the latest pixi updates/versions. As for working on a REAL project it's a NO, NO, NO, don't do that. Ok thanks for your answer ! there were some cool functions like grid or shoot, which made me write less code, but then I should do plain Pixi. Thanks! What was the stablest version ? Quote Link to comment Share on other sites More sharing options...
jonforum Posted May 1, 2019 Share Posted May 1, 2019 you can have equivalence on hit check for pixi like this. hitCheck(a, b){ // colision var ab = a._boundsRect; var bb = b._boundsRect; return ab.x + ab.width > bb.x && ab.x < bb.x + bb.width && ab.y + ab.height > bb.y && ab.y < bb.y + bb.height; }; http://pixijs.download/dev/docs/PIXI.DisplayObject.html#getBounds 100% stable with all plugins it v4.8.6v5 also but not all plugins are available for now, will need wait maybe ~1 or 2 week maybe for update. 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.