Jump to content
Search Community
Divyesh test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi Guys,

 

I'm going to start work with game developing with best UI. But i confused which platform is best. because i heard about pixiJs or greensock as well can you please suggest to me which is the best.

 

thanks,

Divyesh Padamani

Link to comment
Share on other sites

It is not really GSAP vs Pixi JS. They work together. Pixi JS will render everything to canvas.

 

GSAP will handle the animation for you. GSAP animates any numerical values of objects so it works with PIXI JS really well. Some of properties of Pixi JS are under multiple objects like, pixiObject.scale.x so pixiPlugin simplifies your syntax.

 

https://greensock.com/docs/Plugins/PixiPlugin

 

There are some other plugins that will make your life easier.

 

https://greensock.com/docs/Plugins/DirectionalRotationPlugin

 

https://greensock.com/docs/Plugins/Physics2DPlugin

 

https://greensock.com/docs/Plugins/PhysicsPropsPlugin

 

Here is basic example of how you can use GSAP to animate PIXI objects. If your confusion was if you should use HTML or Pixi JS then, Pixi JS is ideal for game development.

 

See the Pen vzEQQy?editors=1010 by Sahil89 (@Sahil89) on CodePen

 

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...