Jump to content


Card game

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 and welcome to the GreenSock forums,


Yes, GSAP would be the perfect tool to handle animation in your card game.

Check out this demo:




Be sure to hit the "close" button in the top right so that you can see the navigation that allows you to shuffle the cards



  • Like 1
Link to comment
Share on other sites

Hello Carl


thank for the answer and yes thats perfect!

Exactly what we were looking for.

Do you have any hint about how would you handle the multiplayer part?



Link to comment
Share on other sites

Sorry, I really don't know what to suggest. There are many variables to consider when building a multi-player game. We really have to focus our efforts on supporting the GreenSock tools in here.


However, you should study what Blake did with this demo:




Open that same link in 2 separate browser windows. Add magnets and drag them around. Your actions will be mirrored in the other window in realtime. 

  • Like 2
Link to comment
Share on other sites

Nice card demo, Carl!


I used Firebase for that magnet demo. It's definitely one of the easiest ways to create a mulitplayer game without using a server. It's really just a database, but changes are synced across all connected clients in real-time, so you can use it to make multiplayer games.


Check out some of stuff you can do with Firebase. There's a multiplayer version of tetris you can learn from.


  • Like 3
Link to comment
Share on other sites

Thats wonderful.

Thanks for your help guys :)

Link to comment
Share on other sites

  • 4 years later...

Hi Carl,


I love the demo you provided but was wondering if you have access to the source code? 



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.